设备类型增加沙盘

This commit is contained in:
Yuan 2023-07-05 09:50:49 +08:00
parent b1345badec
commit 4e0fa46cc2
3 changed files with 54 additions and 45 deletions

View File

@ -1,16 +1,19 @@
<template>
<div id="menuBarDatie">
<menu-bar ref="menuBar" :menu-normal="menuNormal" style="width:100%;" />
<setOperationPlan ref="setOperationPlan" />
</div>
</template>
<script>
import MenuBar from '@/jmapNew/theme/components/menus/menuBarNew';
import { destroySimulationByAdmin, exitSimulation} from '@/api/simulation';
import MenuBar from '@/jmapNew/theme/components/menus/menuBarNew'
import { destroySimulationByAdmin, exitSimulation } from '@/api/simulation'
import setOperationPlan from './menuDialog/setOperationPlan.vue'
export default {
name: 'DispatchWorkMenuBar',
components: {
MenuBar
MenuBar,
setOperationPlan,
},
data() {
return {
@ -21,99 +24,104 @@ export default {
children: [
{
title: 'Exit',
click: this.handleExit
}
]
click: this.handleExit,
},
],
},
{
title: 'UI Control',
operate: '',
children: []
children: [],
},
{
title: 'Station',
operate: '',
children: []
children: [],
},
{
title: 'Station Ctrl Mode',
operate: '',
children: []
children: [],
},
{
title: 'Train Control',
operate: '',
children: []
children: [],
},
{
title: 'Signal Device Control',
operate: '',
children: []
children: [],
},
{
title: 'Operation Plan',
operate: '',
children: []
click: this.openOperationPlan,
children: [],
},
{
title: 'Plan Details',
operate: '',
children: []
children: [],
},
],
}
]
};
},
created() {},
methods: {
blankClickClose() {
this.$refs.menuBar.doClose();
this.$refs.menuBar.doClose()
},
handleExit() {
this.$confirm('Whether to exit emulation?', 'Hint', {
confirmButtonText: 'Confirm',
cancelButtonText: 'Cancel',
type: 'warning'
type: 'warning',
}).then(() => {
this.back();
});
this.back()
})
},
back() {
if (this.$store.state.training.simulationCreator) {
destroySimulationByAdmin(this.group);
destroySimulationByAdmin(this.group)
} else {
exitSimulation(this.group);
exitSimulation(this.group)
}
if (this.projectDevice && this.$store.state.training.simulationCreator) {
this.logout();
this.logout()
} else if (this.$route.query.third) {
if (this.$route.query.project === 'cgy' || this.$route.query.project === 'drts') {
window.parent.postMessage('back', '*');
window.parent.postMessage('back', '*')
} else {
window.close();
window.close()
}
} else if (this.projectDevice) {
this.logout();
this.logout()
} else {
this.$router.go(-1);
this.$router.go(-1)
}
},
//
logout() {
this.$store.dispatch('LogOut').then(() => {
location.reload();
});
}
}
};
location.reload()
})
},
openOperationPlan() {
console.log
this.$refs.setOperationPlan.doShow()
},
},
}
</script>
<style rel="stylesheet/scss" lang="scss">
#menuBarDatie{
line-height:30px;
#menuBarDatie {
line-height: 30px;
}
#menuBarDatie #menuBar .menu-li-block .label{
#menuBarDatie #menuBar .menu-li-block .label {
padding: 0px 30px 0px 5px !important;
}
.img-box{
.img-box {
width: 20px;
height: 20px;
margin-top: 30px;

View File

@ -231,7 +231,8 @@ export default {
{ label: '列车', value: 'TRAIN' },
{ label: 'UDP客户端', value: 'UDP_CLIENT' },
{ label: '站台PIS', value: 'PIS_STAND' },
{ label: '列车PIS', value: 'PIS_TRAIN' }
{ label: '列车PIS', value: 'PIS_TRAIN' },
{ label: '沙盘运行计划', value: 'SAND_TABLE_RUN_PLAN' },
],
ossList: [
{ name: '场景1', url: '场景1—桂花园道岔故障配分版60分.pdf' },

View File

@ -87,7 +87,7 @@ StompClient.prototype = {
closeStompDebug() {
if (this.clientIns) {
if (isDev || isTest) {
this.clientIns.debug = function (message) { console.debug(message); };
this.clientIns.debug = function (message) { /* console.debug(message); */ };
} else {
this.clientIns.debug = function (message) {};
}