diff --git a/src/jmapNew/theme/fuzhou_01/menus/dialog/standRunLevel.vue b/src/jmapNew/theme/fuzhou_01/menus/dialog/standRunLevel.vue index fa3d153c7..e58c2b90a 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/dialog/standRunLevel.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/dialog/standRunLevel.vue @@ -154,10 +154,7 @@ export default { const stationIndex = this.sortStationList.findIndex((item) => item.code == selected.stationCode); if (selected.right) { const nextStation = this.sortStationList[stationIndex + 1]; - let nextStationStand = ''; - this.stationStandList.forEach(stand => { - if (stand.stationCode === nextStation.code && stand.right) { nextStationStand = stand; } - }); + const nextStationStand = this.stationStandList.find(stand => stand.stationCode === nextStation.code && stand.right); nextStation && nextStationStand && this.tempData.push({ name: `${nextStationStand.name}(${nextStation.name})`, time: selected.runLevelTime ? selected.runLevelTime : 0, @@ -165,11 +162,7 @@ export default { }); } else { const nextStation = this.sortStationList[stationIndex - 1]; - let nextStationStand = ''; - this.stationStandList.forEach(stand => { - if (stand.stationCode === nextStation.code && stand.right) { nextStationStand = stand; } - }); - console.log(nextStation, nextStationStand, '========'); + const nextStationStand = this.stationStandList.find(stand => stand.stationCode === nextStation.code && !stand.right); nextStation && nextStationStand && this.tempData.push({ name: `${nextStationStand.name}(${nextStation.name})`, time: selected.runLevelTime ? selected.runLevelTime : 0, diff --git a/src/jmapNew/theme/ningbo_03/menus/index.vue b/src/jmapNew/theme/ningbo_03/menus/index.vue index a30403dd2..c2646200a 100644 --- a/src/jmapNew/theme/ningbo_03/menus/index.vue +++ b/src/jmapNew/theme/ningbo_03/menus/index.vue @@ -74,6 +74,9 @@ export default { watch: { isShowBar(val) { val && this.$store.dispatch('config/updateMenuBar'); + }, + '$store.state.map.mapStateLoadedCount': function () { + this.$store.dispatch('map/flushMapRef'); } }, mounted() { diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/initSignalBlock.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/initSignalBlock.vue index 2f4e2b264..7bad76a30 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/initSignalBlock.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/initSignalBlock.vue @@ -3,7 +3,7 @@ - 确定(O) + 确定(O) - 应用(A) + 应用(A) 关闭(C) @@ -78,6 +78,13 @@ export default { isBlock() { return this.operate && this.operate.operation === OperationEvent.Signal.lock.menu.operation; }, + filterSignalList() { + return this.signalList.map(el => { + return this.$store.getters['map/getDeviceByCode'](el.code); + }).filter(el => { + return this.isBlock ? !el.blockade : el.blockade; + }); + }, show() { return this.dialogShow && !this.$store.state.menuOperation.break; }, @@ -124,7 +131,7 @@ export default { this.$refs.singleTable.setCurrentRow(); this.$store.dispatch('training/emitTipFresh'); }, - commit() { + commit(isClose = false) { const step = { code: `${this.selected.code}`, operation: this.isBlock ? OperationEvent.Signal.lock.confirm.operation : OperationEvent.Signal.unlock.confirm.operation, @@ -135,8 +142,10 @@ export default { this.$store.dispatch('menuOperation/handleBreakFlag', { break: true }); this.$refs.signalBlock.doShow(step, this.selected); this.initEle = this.selected; + isClose && this.isClose(); } }).catch(() => { + isClose && this.isClose(); this.$refs.noticeInfo.doShow(); }); }, diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/initSignalMode.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/initSignalMode.vue index 81ad6aa22..eeed57aa8 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/initSignalMode.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/initSignalMode.vue @@ -1,8 +1,8 @@