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

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.rpMenuPopShow = false;
this.clearRpRow();
this.$emit('close');
},
//
sendRunplan() {

View File

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

View File

@ -1,11 +1,21 @@
<template>
<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>
<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>
<DispatchCmd ref="dispatchCmd" @close="close" />
<DispatcherLoger ref="dispatcherLoger" @close="close" />
</div>
</template>
<script>
import DispatchCmd from '@/views/dispatcherStationManage/dispatchCmd';
import DispatcherLoger from '@/views/dispatcherLoger/index';
export default {
name:'TerminalList',
components: {
DispatchCmd,
DispatcherLoger
},
data() {
return {
terminalList:[],
@ -19,8 +29,8 @@ export default {
],
'02':[
{name:'行调工作站', code:'dispatchWork', click:this.noEvent},
{name:'调度计划', code:'schedulingPlan', click:this.noEvent},
{name:'调度命令', code:'dispatchingCommand', click:this.noEvent}
{name:'调度计划', code:'schedulingPlan', click:this.schedulingPlan},
{name:'调度命令', code:'dispatchingCommand', click:this.dispatchingCommand}
]
},
'subway':{
@ -59,6 +69,17 @@ export default {
methods:{
noEvent(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;
}
}
};