代码调整

This commit is contained in:
fan 2020-08-31 13:27:27 +08:00
parent e6f7ade236
commit 8c07cf764a
7 changed files with 22 additions and 9 deletions

View File

@ -104,6 +104,10 @@ export function Jlmap3dSubscribeNew(jlmap3d,routegroup,jsonwebwork) {
initall(event.data.body); initall(event.data.body);
return; return;
} }
if (event.data.type == 'Simulation_Over') {
window.close();
return;
}
}; };
this.updatamap = function(newsectionlist,newlinklist,newsignallist,newstationstandlist,newtrainlisttest,newrealsectionlist,newrails, materiallist, nowaction, scene) { this.updatamap = function(newsectionlist,newlinklist,newsignallist,newstationstandlist,newtrainlisttest,newrealsectionlist,newrails, materiallist, nowaction, scene) {

View File

@ -1,6 +1,7 @@
// 操作规则定义 // 操作规则定义
// {id: "1", trainingType: "ControlConvertMenu", name: "车站名称"} // {id: "1", trainingType: "ControlConvertMenu", name: "车站名称"}
// {id: "2", trainingType: "ControlConvertMenu", name: "车站控制模式编号"} // {id: "2", trainingType: "ControlConvertMenu", name: "车站控制模式编号"}
// {id: "3", trainingType: "Signal", name: "进路名称"} // {id: "3", trainingType: "Signal", name: "进路名称"}
// {id: "4", trainingType: "Signal", name: "进路编号"} // {id: "4", trainingType: "Signal", name: "进路编号"}
// {id: "5", trainingType: "Signal", name: "信号机名称"} // {id: "5", trainingType: "Signal", name: "信号机名称"}
@ -707,7 +708,7 @@ export default {
minDuration: 8, minDuration: 8,
operateType: 'Signal_Close_Signal', operateType: 'Signal_Close_Signal',
skinCode: '02', skinCode: '02',
trainingName: '信号关灯({3})', trainingName: '信号关灯({5})',
trainingRemark: '信号关灯', trainingRemark: '信号关灯',
trainingType: 'Signal', trainingType: 'Signal',
productTypes: ['01', '02'], productTypes: ['01', '02'],
@ -722,7 +723,7 @@ export default {
minDuration: 8, minDuration: 8,
operateType: 'Signal_Reopen_Signal', operateType: 'Signal_Reopen_Signal',
skinCode: '02', skinCode: '02',
trainingName: '信号重开({3})', trainingName: '信号重开({5})',
trainingRemark: '信号重开', trainingRemark: '信号重开',
trainingType: 'Signal', trainingType: 'Signal',
productTypes: ['01', '02'], productTypes: ['01', '02'],

View File

@ -5,7 +5,7 @@
<div class="display-draft"> <div class="display-draft">
<el-button-group> <el-button-group>
<el-button type="primary" @click="back">{{ $t('global.back') }}</el-button> <el-button type="primary" @click="quit">退出</el-button>
</el-button-group> </el-button-group>
</div> </div>
@ -94,6 +94,11 @@ export default {
}; };
}, },
watch: {
'$store.state.socket.simulationOver':function(val) {
window.close();
}
},
beforeDestroy() { beforeDestroy() {
// console.log("destroy"); // console.log("destroy");
if (this.jlmap3d) { if (this.jlmap3d) {
@ -217,9 +222,10 @@ export default {
this.deviceShow = true; this.deviceShow = true;
this.$refs.faultdevice.showroom(); this.$refs.faultdevice.showroom();
}, },
back() { quit() {
this.$emit('back'); // this.$emit('back');
this.isswitch = false; this.isswitch = false;
window.close();
}, },
onMouseOverNormal() { onMouseOverNormal() {
this.normalShow=true; this.normalShow=true;

View File

@ -191,6 +191,7 @@ export default {
}, },
// //
endViewLoading(isSuccess) { endViewLoading(isSuccess) {
console.log(isSuccess, '****');
if (!isSuccess) { if (!isSuccess) {
this.$store.dispatch('map/mapClear'); this.$store.dispatch('map/mapClear');
} }

View File

@ -5,7 +5,7 @@
<transition name="el-zoom-in-bottom"> <transition name="el-zoom-in-bottom">
<map-system-draft ref="mapCanvas" @back="back" /> <map-system-draft ref="mapCanvas" @back="back" />
</transition> </transition>
<status-icon v-if="$route.query.lineCode == '11' || $route.query.lineCode == '10'" ref="statusIcon" /> <status-icon v-if="($route.query.lineCode == '11' || $route.query.lineCode == '10') && isDemon" ref="statusIcon" />
<menu-demon v-if="isDemon" ref="menuDemon" :offset="offset" :offset-bottom="offsetBottom" :data-error="dataError" :text-status-height="textStatusHeight" /> <menu-demon v-if="isDemon" ref="menuDemon" :offset="offset" :offset-bottom="offsetBottom" :data-error="dataError" :text-status-height="textStatusHeight" />
<menu-lesson v-if="isLesson" ref="lessonMenu" :offset="offset" :data-error="dataError" :offset-bottom="offsetBottom" :tip-bottom="tipBottom" /> <menu-lesson v-if="isLesson" ref="lessonMenu" :offset="offset" :data-error="dataError" :offset-bottom="offsetBottom" :tip-bottom="tipBottom" />
<menu-exam v-if="isExam" ref="menuExam" :offset="offset" :data-error="dataError" :offset-bottom="offsetBottom" /> <menu-exam v-if="isExam" ref="menuExam" :offset="offset" :data-error="dataError" :offset-bottom="offsetBottom" />

View File

@ -10,7 +10,7 @@
<demon-menu <demon-menu
ref="demonMenu" ref="demonMenu"
:is-all-show="!dataError" :is-all-show="!dataError"
:jl3dmodel-show="isShow3dmodel && !isShowScheduling" :jl3dmodel-show="isShow3dmodel && !isShowScheduling && !isDrive"
:jl3dname-show="!isShowScheduling&&!isDrive" :jl3dname-show="!isShowScheduling&&!isDrive"
:cctv-show="!isShowScheduling" :cctv-show="!isShowScheduling"
:schedule-load-show="isShowScheduling && !runing" :schedule-load-show="isShowScheduling && !runing"
@ -117,7 +117,7 @@ export default {
jl3dname: this.$t('display.demon.threeDimensionalView'), jl3dname: this.$t('display.demon.threeDimensionalView'),
jl3dstation: this.$t('display.demon.threeDimensionalStation'), jl3dstation: this.$t('display.demon.threeDimensionalStation'),
jl3dmodel: this.$t('display.demon.deviceView'), jl3dmodel: this.$t('display.demon.deviceView'),
isShow3dmodel :false, isShow3dmodel :true,
isGoback: false, isGoback: false,
runing:false, runing:false,
prdTypeMap: { prdTypeMap: {

View File

@ -141,7 +141,7 @@ export default {
} }
code && this.setCenter(code); code && this.setCenter(code);
}, },
'$store.state.map.mapViewLoadedCount': function (val) { // '$store.state.map.mapViewLoadedCount': function (val) { //
this.$store.state.exam.deviceCode && this.setCenter(this.$store.state.exam.deviceCode); this.$store.state.exam.deviceCode && this.setCenter(this.$store.state.exam.deviceCode);
}, },
'$store.state.config.canvasSizeCount': function (val) { '$store.state.config.canvasSizeCount': function (val) {
@ -392,6 +392,7 @@ export default {
}, },
// //
mapViewLoaded(loading) { mapViewLoaded(loading) {
// console.log(loading, '**************');
this.loading = loading; this.loading = loading;
if (loading) { if (loading) {
this.$refs.progressBar && this.$refs.progressBar.start(); this.$refs.progressBar && this.$refs.progressBar.start();