From ab8f3297f7c8243d486c9da0900e4f813b2ea2df Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期三, 27 十一月 2024 17:16:46 +0800 Subject: [PATCH] 功能更新 --- src/views/visualization/list/chart1.vue | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/visualization/list/chart1.vue b/src/views/visualization/list/chart1.vue index 6ee422b..afa4e70 100644 --- a/src/views/visualization/list/chart1.vue +++ b/src/views/visualization/list/chart1.vue @@ -1,6 +1,6 @@ <template> <div class="chartListBox" :childData="childData"> - <div class="aside-title"> 闆�</div> + <div class="aside-title">闆风數</div> <div class="echartBox" v-show="roadItem.address"> <table class="chartTable"> <tr> @@ -27,9 +27,9 @@ <td>{{ roadItem.line }}</td> <td style="color:#f56c6c">{{ roadItem.level }}</td> <td style="color:#409eff"> - <el-button v-show="flagData != roadItem.address" class="elButton" type="primary" plain + <el-button v-show="flagData != roadItem.type" class="elButton" type="primary" plain size="mini" @click="setChangeItem()">璇︽儏</el-button> - <el-button v-show="flagData == roadItem.address" class="elButton" type="danger" plain + <el-button v-show="flagData == roadItem.type" class="elButton" type="danger" plain size="mini" @click="setCannelItem()">閲嶇疆</el-button> </td> </tr> @@ -84,6 +84,8 @@ }, methods: { setCannelItem() { + this.$store.state.mapLayers.weatherFlag = false; + this.$store.state.mapLayers.weatherFlag = 2 this.flagData = null; mapWeather.closeRegionWeather() }, @@ -93,8 +95,10 @@ }, setChangeItem() { var res = this.roadItem; - window.regionWeather = res.address; + window.regionWeather = res.type; var event = new Event('POIDetailDataChange'); + this.$store.state.mapLayers.weatherMsg = mapWeather.getWearData(res); + this.$store.state.mapLayers.weatherFlag = 1; window.dispatchEvent(event); mapWeather.setRegionWeatherType(res); }, -- Gitblit v1.9.3