diff --git a/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js b/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js index f4a30142c..04a2fc013 100644 --- a/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js +++ b/src/jlmap3d/jl3dsimulation/connect/Jlmap3dSubscribeNew.js @@ -104,6 +104,10 @@ export function Jlmap3dSubscribeNew(jlmap3d,routegroup,jsonwebwork) { initall(event.data.body); return; } + if (event.data.type == 'Simulation_Over') { + window.close(); + return; + } }; this.updatamap = function(newsectionlist,newlinklist,newsignallist,newstationstandlist,newtrainlisttest,newrealsectionlist,newrails, materiallist, nowaction, scene) { diff --git a/src/jmapNew/theme/fuzhou_01/operationConfig.js b/src/jmapNew/theme/fuzhou_01/operationConfig.js index 7a6a09b19..d8d1c955a 100644 --- a/src/jmapNew/theme/fuzhou_01/operationConfig.js +++ b/src/jmapNew/theme/fuzhou_01/operationConfig.js @@ -1,6 +1,7 @@ // 操作规则定义 // {id: "1", trainingType: "ControlConvertMenu", name: "车站名称"} // {id: "2", trainingType: "ControlConvertMenu", name: "车站控制模式编号"} + // {id: "3", trainingType: "Signal", name: "进路名称"} // {id: "4", trainingType: "Signal", name: "进路编号"} // {id: "5", trainingType: "Signal", name: "信号机名称"} @@ -707,7 +708,7 @@ export default { minDuration: 8, operateType: 'Signal_Close_Signal', skinCode: '02', - trainingName: '信号关灯({3})', + trainingName: '信号关灯({5})', trainingRemark: '信号关灯', trainingType: 'Signal', productTypes: ['01', '02'], @@ -722,7 +723,7 @@ export default { minDuration: 8, operateType: 'Signal_Reopen_Signal', skinCode: '02', - trainingName: '信号重开({3})', + trainingName: '信号重开({5})', trainingRemark: '信号重开', trainingType: 'Signal', productTypes: ['01', '02'], diff --git a/src/views/jlmap3d/maintainer/jl3dmaintainer.vue b/src/views/jlmap3d/maintainer/jl3dmaintainer.vue index 9973d407f..167338d9c 100644 --- a/src/views/jlmap3d/maintainer/jl3dmaintainer.vue +++ b/src/views/jlmap3d/maintainer/jl3dmaintainer.vue @@ -5,7 +5,7 @@
- {{ $t('global.back') }} + 退出
@@ -94,6 +94,11 @@ export default { }; }, + watch: { + '$store.state.socket.simulationOver':function(val) { + window.close(); + } + }, beforeDestroy() { // console.log("destroy"); if (this.jlmap3d) { @@ -217,9 +222,10 @@ export default { this.deviceShow = true; this.$refs.faultdevice.showroom(); }, - back() { - this.$emit('back'); + quit() { + // this.$emit('back'); this.isswitch = false; + window.close(); }, onMouseOverNormal() { this.normalShow=true; diff --git a/src/views/newMap/displayNew/exam/index.vue b/src/views/newMap/displayNew/exam/index.vue index 78d39abbf..4c8ca1a7e 100644 --- a/src/views/newMap/displayNew/exam/index.vue +++ b/src/views/newMap/displayNew/exam/index.vue @@ -191,6 +191,7 @@ export default { }, // 结束加载状态 endViewLoading(isSuccess) { + console.log(isSuccess, '****'); if (!isSuccess) { this.$store.dispatch('map/mapClear'); } diff --git a/src/views/newMap/displayNew/index.vue b/src/views/newMap/displayNew/index.vue index 01e01f1a4..d7be018e2 100644 --- a/src/views/newMap/displayNew/index.vue +++ b/src/views/newMap/displayNew/index.vue @@ -5,7 +5,7 @@ - + diff --git a/src/views/newMap/displayNew/menuDemon.vue b/src/views/newMap/displayNew/menuDemon.vue index bd54c6c9e..f8947aeb6 100644 --- a/src/views/newMap/displayNew/menuDemon.vue +++ b/src/views/newMap/displayNew/menuDemon.vue @@ -10,7 +10,7 @@