From ec166fb43c0c42c611ebd39955c4cbd75ca713c4 Mon Sep 17 00:00:00 2001 From: renpy Date: Tue, 29 Aug 2023 19:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=BF=87=E6=BB=A4=E5=8F=B0?= =?UTF-8?q?=E7=AB=99=E5=90=8E=EF=BC=8C=E6=B3=A2=E7=BA=B9=E4=BE=9D=E6=97=A7?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stationOperation/index.vue | 42 ++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue index 5c82903..7d0b611 100644 --- a/src/views/stationOperation/index.vue +++ b/src/views/stationOperation/index.vue @@ -212,7 +212,8 @@ export default { stationTypeList: [], treeData: [], // 台站树列表 - timer: null + timer: null, + updataFilterType: [] } }, created() { @@ -269,7 +270,26 @@ export default { }) }) this.orgStationList = res.result - this.upDateStationList = res.result + if (this.updataFilterType.length>0) { + this.upDateStationList = this.orgStationList.filter(item => this.updataFilterType.includes(item.stationType)) + } else { + this.upDateStationList = res.result + } + if (this.markerList.length > 0) { + let curList = [] + this.markerList.forEach(item => { + if (item.stationType!="Nuclear Facility" && item.stationType!="NRL") { + this.orgStationList.forEach(el => { + if (parseInt(el.id) == item.stationId) { + curList.push(el) + } + }) + } + }) + this.upDateStationList=curList + } else { + this.upDateStationList=[] + } } else { this.$message.warning("This operation fails. Contact your system administrator") } @@ -409,6 +429,23 @@ export default { // 修改地图上的marker列表 onChangeMarker(markerList) { this.markerList = markerList + let curList = [] + if (markerList.length>0) { + markerList.forEach(item => { + if (item.stationType!="Nuclear Facility" && item.stationType!="NRL") { + this.orgStationList.forEach(el => { + if (parseInt(el.id) == item.stationId) { + el.stationType = item.stationType + el.stationId = item.stationId + curList.push(el) + } + }) + } + }) + this.upDateStationList=curList + } else { + this.upDateStationList=[] + } }, // 是否绘制圆圈 @@ -421,6 +458,7 @@ export default { * 根据类型筛选地图上的marker列表 */ onFilterMarker({ filterType, filterDataQuality }) { + this.updataFilterType = filterType console.log( '%c [ filterType, filterDataQuality ]-343', 'font-size:13px; background:pink; color:#bf2c9f;',