删除实训平台运行图编辑,修改综合演练值班员角色调整问题

This commit is contained in:
fan 2019-11-14 11:30:32 +08:00
parent 595db4f8b7
commit e41d324c27
8 changed files with 630 additions and 640 deletions

View File

@ -1,18 +1,16 @@
<template> <template>
<div id="PlanMenuTool"> <div id="PlanMenuTool">
<div class="nav"> <div class="nav">
<div class="tool" v-for="(item,index) in tools" :key="index"> <div v-for="(item,index) in tools" :key="index" class="tool">
<img :src="item.src" :alt="item.title" /> <img :src="item.src" :alt="item.title">
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex';
import { prefixIntrger } from '@/utils/date'; import { prefixIntrger } from '@/utils/date';
import logo_ from '@/assets/logo_.png'; import logo_ from '@/assets/logo_.png';
export default { export default {
name: 'PlanMenuTool', name: 'PlanMenuTool',
data() { data() {
@ -22,100 +20,100 @@
title: '服务器1', title: '服务器1',
operate: '', operate: '',
src: logo_, src: logo_,
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '服务器2', title: '服务器2',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '前置机1', title: '前置机1',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '前置机2', title: '前置机2',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '主调', title: '主调',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '调度台1', title: '调度台1',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '调度台2', title: '调度台2',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '调度台3', title: '调度台3',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '大屏', title: '大屏',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '维护工作站', title: '维护工作站',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '运行图显示人工站', title: '运行图显示人工站',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '跳停', title: '跳停',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '扣车', title: '扣车',
operate: '', operate: '',
src: '', src: '',
click: this.undeveloped, click: this.undeveloped
}, },
{ {
title: '列车报警', title: '列车报警',
operate: '', operate: '',
src: logo_, src: logo_,
click: this.undeveloped, click: this.undeveloped
} }
] ]
} };
},
watch: {
'$store.state.training.initTime': function (initTime) {
let date = new Date(initTime);
this.time = `${prefixIntrger(date.getHours(), 2)}:${prefixIntrger(date.getMinutes(), 2)}${prefixIntrger(date.getSeconds(), 2)}`
}
}, },
computed: { computed: {
isShowSystemTime() { isShowSystemTime() {
return this.$route.params.mode == 'demon' || this.$route.params.mode === 'dp' || !this.$route.params.mode; return this.$route.params.mode == 'demon' || this.$route.params.mode === 'dp' || !this.$route.params.mode;
} }
}, },
watch: {
'$store.state.training.initTime': function (initTime) {
const date = new Date(initTime);
this.time = `${prefixIntrger(date.getHours(), 2)}:${prefixIntrger(date.getMinutes(), 2)}${prefixIntrger(date.getSeconds(), 2)}`;
}
},
mounted() { mounted() {
this.initTools(); this.initTools();
}, },
@ -124,7 +122,7 @@
this.tools = []; this.tools = [];
} }
} }
} };
</script> </script>
<style scoped rel="stylesheet/scss" lang="scss" scoped> <style scoped rel="stylesheet/scss" lang="scss" scoped>

View File

@ -526,11 +526,6 @@ export const asyncRouter = [
path: 'draft', path: 'draft',
component: PackageDraft, component: PackageDraft,
hidden: true hidden: true
},
{
path: 'runPlan/manage/:mapId',
component: PlanMonitorDetail,
hidden: true
} }
] ]
} }

View File

@ -232,7 +232,7 @@ export default {
this.$emit('getUserRole'); this.$emit('getUserRole');
break; break;
case 'Attendant': case 'Attendant':
if (!item['stationCode']) { if (!item['deviceCode']) {
this.$store.dispatch('training/setPrdType', ''); this.$store.dispatch('training/setRoles', 'Attendant'); this.$store.dispatch('training/setPrdType', ''); this.$store.dispatch('training/setRoles', 'Attendant');
break; break;
} }

View File

@ -145,9 +145,6 @@ export default {
this.setLocalRoute(`${UrlConfig.trainingPlatform.prodDetail}/${obj.id}?mapId=${this.mapId}`); this.setLocalRoute(`${UrlConfig.trainingPlatform.prodDetail}/${obj.id}?mapId=${this.mapId}`);
this.$router.push({ path: `${UrlConfig.trainingPlatform.prodDetail}/${obj.id}`, query: { mapId: this.mapId}}); this.$router.push({ path: `${UrlConfig.trainingPlatform.prodDetail}/${obj.id}`, query: { mapId: this.mapId}});
break; break;
case 'Plan':
this.$router.push({ path: `${UrlConfig.trainingPlatform.runPlan}/${this.mapId}`, query: {lineCode: '02'} });
break;
} }
}).catch((error) => { }).catch((error) => {
if (error.code === '40004') { if (error.code === '40004') {