From e176823ec6416e062db4ee3f7a2ccdc48bb86842 Mon Sep 17 00:00:00 2001 From: fan Date: Mon, 18 Jul 2022 13:07:45 +0800 Subject: [PATCH 01/30] =?UTF-8?q?=E5=8D=A0=E7=BA=BF=E6=9D=BF&=E8=BF=9B?= =?UTF-8?q?=E8=B7=AF=E5=BA=8F=E5=88=97=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/datie_02/menus/bottomTable.vue | 30 +++++++++++++++--- .../theme/datie_02/menus/menuButtonCtc.vue | 2 +- .../theme/datie_02/menus/menuSection.vue | 1 - src/views/newMap/displayCity/lineBoard.vue | 31 +++++++++++++++---- src/views/newMap/displayNew/menuSchema.vue | 2 +- src/views/newMap/displayNew/selectStation.vue | 26 ++++++++++++++++ .../newMap/jointTrainingNew/menuSchema.vue | 1 + .../newMap/mapDraftPicture/createPicture.vue | 1 + .../newMap/mapsystemNew/common/index.vue | 14 ++++++--- 9 files changed, 89 insertions(+), 19 deletions(-) diff --git a/src/jmapNew/theme/datie_02/menus/bottomTable.vue b/src/jmapNew/theme/datie_02/menus/bottomTable.vue index 951aa37af..9958410c1 100644 --- a/src/jmapNew/theme/datie_02/menus/bottomTable.vue +++ b/src/jmapNew/theme/datie_02/menus/bottomTable.vue @@ -48,7 +48,7 @@
车站
{ this.showTable = !this.showTable; }); - if (this.stationList && this.stationList.length) { - this.stationCode = this.stationList[0].code; - } + // if (this.stationList && this.stationList.length) { + // this.stationCode = this.stationList[0].code; + // } }, methods: { doShow() { + this.initShowStationList(this.$store.state.map.showCentralizedStationCode); this.showTable = true; }, doClose() { this.showTable = false; }, + initShowStationList(val) { + if (val) { + const centralizedStation = this.$store.getters['map/getDeviceByCode'](val); + const sn = centralizedStation.sn; + this.showStationList = [centralizedStation]; + this.stationCode = centralizedStation.code; + this.stationList.forEach(station => { + if (station.sn === sn - 1) { + this.showStationList.unshift(station); + } else if (station.sn === sn + 1) { + this.showStationList.push(station); + } + }); + } + }, getRouteStatus(status) { if (status === '2') { return '触发完成'; diff --git a/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue b/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue index d61074b9b..089e0d40a 100644 --- a/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue +++ b/src/jmapNew/theme/datie_02/menus/menuButtonCtc.vue @@ -397,7 +397,7 @@ export default { }, buttonDown(operation, commandTypeList) { const station = this.$store.getters['map/getDeviceByCode'](this.$store.state.map.showCentralizedStationCode); - if (station.controlMode === 'Interlock') { return; } + if (!station || station.controlMode === 'Interlock') { return; } this.clearOperate(); if (operation != this.Command.cancel.clearMbm.operation) { const operate = { diff --git a/src/jmapNew/theme/datie_02/menus/menuSection.vue b/src/jmapNew/theme/datie_02/menus/menuSection.vue index ed38c5993..3bfec1c27 100644 --- a/src/jmapNew/theme/datie_02/menus/menuSection.vue +++ b/src/jmapNew/theme/datie_02/menus/menuSection.vue @@ -121,7 +121,6 @@ export default { }, watch: { '$store.state.menuOperation.menuCount': function (val) { - console.log(this.buttonOperation, '***********'); if (this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Section) && (!this.buttonOperation || this.$route.query.ctc)) { this.doShow(this.$store.state.menuOperation.menuPosition); } else { diff --git a/src/views/newMap/displayCity/lineBoard.vue b/src/views/newMap/displayCity/lineBoard.vue index 5307377fe..8cf6449db 100644 --- a/src/views/newMap/displayCity/lineBoard.vue +++ b/src/views/newMap/displayCity/lineBoard.vue @@ -12,7 +12,7 @@
{ + if (station.sn === sn - 1) { + this.showStationList.unshift(station); + } else if (station.sn === sn + 1) { + this.showStationList.push(station); + } + }); + } + }, doShow() { this.dialogVisible = true; - if (this.stationList[0]) { - this.selectStandCode(this.stationList[0].code); - this.selectStandCode1(this.stationList[0].code); + this.initShowStationList(this.$store.state.map.showCentralizedStationCode); + if (this.showStationList[0]) { + this.selectStandCode(this.showStationList[0].code); + this.selectStandCode1(this.showStationList[0].code); } }, selectStandCode(code) { diff --git a/src/views/newMap/displayNew/menuSchema.vue b/src/views/newMap/displayNew/menuSchema.vue index 7020693bc..57b5f1610 100644 --- a/src/views/newMap/displayNew/menuSchema.vue +++ b/src/views/newMap/displayNew/menuSchema.vue @@ -1,7 +1,7 @@