大铁线路 终端切换代码调整

This commit is contained in:
joylink_cuiweidong 2022-09-16 14:47:15 +08:00
parent bf4b376d04
commit 9657620d15
3 changed files with 27 additions and 4 deletions

View File

@ -375,6 +375,7 @@ export default {
this.isShow = false; this.isShow = false;
this.rpMenuPopShow = false; this.rpMenuPopShow = false;
this.clearRpRow(); this.clearRpRow();
this.$emit('close');
}, },
// //
sendRunplan() { sendRunplan() {

View File

@ -769,6 +769,7 @@ export default {
}, },
doClose() { doClose() {
this.dialogShow = false; this.dialogShow = false;
this.$emit('close');
}, },
tabClick() { tabClick() {
console.log('tabClick'); console.log('tabClick');

View File

@ -1,11 +1,21 @@
<template> <template>
<div>
<div v-if="isShow" class="terminalList"> <div v-if="isShow" class="terminalList">
<div v-for="(eachTerminal,index) in terminalList" :key="index" :class="active==index?'eachTerminal active':'eachTerminal'" @click="eachTerminal.click(index)">{{ eachTerminal.name }}</div> <div v-for="(eachTerminal,index) in terminalList" :key="index" :class="active==index?'eachTerminal active':'eachTerminal'" @click="eachTerminal.click(index)">{{ eachTerminal.name }}</div>
</div> </div>
<DispatchCmd ref="dispatchCmd" @close="close" />
<DispatcherLoger ref="dispatcherLoger" @close="close" />
</div>
</template> </template>
<script> <script>
import DispatchCmd from '@/views/dispatcherStationManage/dispatchCmd';
import DispatcherLoger from '@/views/dispatcherLoger/index';
export default { export default {
name:'TerminalList', name:'TerminalList',
components: {
DispatchCmd,
DispatcherLoger
},
data() { data() {
return { return {
terminalList:[], terminalList:[],
@ -19,8 +29,8 @@ export default {
], ],
'02':[ '02':[
{name:'行调工作站', code:'dispatchWork', click:this.noEvent}, {name:'行调工作站', code:'dispatchWork', click:this.noEvent},
{name:'调度计划', code:'schedulingPlan', click:this.noEvent}, {name:'调度计划', code:'schedulingPlan', click:this.schedulingPlan},
{name:'调度命令', code:'dispatchingCommand', click:this.noEvent} {name:'调度命令', code:'dispatchingCommand', click:this.dispatchingCommand}
] ]
}, },
'subway':{ 'subway':{
@ -59,6 +69,17 @@ export default {
methods:{ methods:{
noEvent(index) { noEvent(index) {
this.active = index; this.active = index;
},
schedulingPlan(index) {
this.active = index;
this.$refs.dispatcherLoger.doShow();
},
dispatchingCommand(index) {
this.active = index;
this.$refs.dispatchCmd.doShow();
},
close() {
this.active = 0;
} }
} }
}; };