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 @@