Merge branch 'test_deplotSimulation' of git.code.tencent.com:lian-cbtc/jl-client into test_deplotSimulation

This commit is contained in:
yuan 2021-09-07 15:31:00 +08:00
commit e85986a5f7
2 changed files with 585 additions and 519 deletions

View File

@ -122,9 +122,14 @@
<span class="status_detailInfo" style="color: #e61013">{{ alamMessage }}</span>
</div>
<div class="delayTime">
<<<<<<< HEAD
<span class="status_lable">延时<br />时间</span>
<span class="status_detailInfo" style="color: #e61013">{{ delayInfo }} {{ delayTime }}</span>
<!-- <span class="status_detailInfo" style="color: #e61013">非进路解锁延时 07 </span> -->
=======
<span class="status_lable">延时<br />时间</span>
<span class="status_detailInfo" style="color: #e61013">{{ delayTime }}</span>
>>>>>>> 5d1297176fb6d1137d44a095e2e76c0157239c37
</div>
</div>
<password-box ref="password" pop-class="fuzhou-01__systerm" @checkOver="passWordCommit" />
@ -150,7 +155,6 @@ export default {
inter: null,
operation: '0',
delayTime: '',
delayInfo: '',
promptInfo: '',
alamMessage: '',
deviceList: [],
@ -210,6 +214,20 @@ export default {
}
}
},
//
trainingOperation(operate) {
this.$store
.dispatch('training/nextNew', operate)
.then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true })
}
})
.catch((error) => {
console.error(error)
this.$refs.noticeInfo.doShow()
})
},
passWordCommit(data) {
let operate = {}
if (data.overNext) {
@ -233,20 +251,6 @@ export default {
}
this.trainingOperation(operate)
},
//
trainingOperation(operate) {
this.$store
.dispatch('training/nextNew', operate)
.then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true })
}
})
.catch((error) => {
console.error(error)
this.$refs.noticeInfo.doShow()
})
},
resetMbmButton() {
this.$store.dispatch('menuOperation/setButtonOperation', null)
Handler.clear() //

View File

@ -13,21 +13,21 @@
</template>
<script>
import PopMenu from '@/components/PopMenu'
import RouteControl from '@/jmapNew/theme/components/menus/dialog/routeControl'
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault'
import RouteSelection from './dialog/routeSelection'
import RouteLock from './dialog/routeLock'
import RouteCmdControl from './dialog/routeCmdControl'
import RouteHandControl from './dialog/routeHandControl'
import RouteDetail from './dialog/routeDetail'
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo'
import CMD from '@/scripts/cmdPlugin/CommandEnum'
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler'
import { mapGetters } from 'vuex'
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler'
import { menuOperate, commitOperate } from '@/jmapNew/theme/components/utils/menuOperate'
import PopMenu from '@/components/PopMenu';
import RouteControl from '@/jmapNew/theme/components/menus/dialog/routeControl';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import RouteSelection from './dialog/routeSelection';
import RouteLock from './dialog/routeLock';
import RouteCmdControl from './dialog/routeCmdControl';
import RouteHandControl from './dialog/routeHandControl';
import RouteDetail from './dialog/routeDetail';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import { mapGetters } from 'vuex';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
import { menuOperate, commitOperate } from '@/jmapNew/theme/components/utils/menuOperate';
export default {
name: 'SignalMenu',
@ -40,117 +40,119 @@ export default {
RouteHandControl,
RouteDetail,
NoticeInfo,
SetFault,
SetFault
},
props: {
selected: {
type: Object,
default() {
return null
},
},
return null;
}
}
},
data() {
return {
menu: [],
clickNum:0,
oldSelected:null,
menuNormal: {
Local: [
{
label: this.$t('menu.menuSignal.routeSelect'),
handler: this.arrangementRoute,
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE,
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE
},
{
label: this.$t('menu.menuSignal.routeCancel'),
handler: this.cancelTrainRoute,
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE,
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE
},
{
label: this.$t('menu.menuSignal.signalBlock'),
handler: this.lock,
cmdType: CMD.Signal.CMD_SIGNAL_BLOCK,
cmdType: CMD.Signal.CMD_SIGNAL_BLOCK
},
{
label: this.$t('menu.menuSignal.signalDeblock'),
handler: this.unlock,
cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK,
cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK
},
{
label: this.$t('menu.menuSignal.signalReopen'),
handler: this.reopenSignal,
cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL,
cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL
},
{
label: this.$t('menu.menuSignal.signalOff'),
handler: this.signalClose,
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL,
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL
},
{
label: '进路引导',
handler: this.guide,
cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE,
cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE
},
{
label: this.$t('menu.menuSignal.setInterlockAutoRoute'),
handler: this.setAutoInterlock,
cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO,
cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO
},
{
label: this.$t('menu.menuSignal.cancelInterlockAutoRoute'),
handler: this.cancelAutoInterlock,
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO,
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO
},
{
label: this.$t('menu.menuSignal.setInterlockAutoTrigger'),
handler: this.setAutoTrigger,
cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO_TRIGGER,
cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO_TRIGGER
},
{
label: this.$t('menu.menuSignal.cancelInterlockAutoTrigger'),
handler: this.cancelAutoTrigger,
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO_TRIGGER,
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO_TRIGGER
},
{
label: '查询进路控制模式',
handler: this.detail,
cmdType: CMD.Signal.CMD_SIGNAL_DETAIL,
},
cmdType: CMD.Signal.CMD_SIGNAL_DETAIL
}
],
Center: [
{
label: this.$t('menu.menuSignal.routeSelect'),
handler: this.arrangementRoute,
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE,
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE
},
{
label: this.$t('menu.menuSignal.routeCancel'),
handler: this.cancelTrainRoute,
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE,
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE
},
{
label: this.$t('menu.menuSignal.signalBlock'),
handler: this.lock,
cmdType: CMD.Signal.CMD_SIGNAL_BLOCK,
cmdType: CMD.Signal.CMD_SIGNAL_BLOCK
},
{
label: this.$t('menu.menuSignal.signalDeblock'),
handler: this.unlock,
cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK,
cmdType: CMD.Signal.CMD_SIGNAL_UNBLOCK
},
{
label: this.$t('menu.menuSignal.signalOff'),
handler: this.signalClose,
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL,
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_SIGNAL
},
{
label: this.$t('menu.menuSignal.signalReopen'),
handler: this.reopenSignal,
cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL,
cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL
},
{
label: '引导进路办理',
handler: this.guide,
cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE,
cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE
},
// {
// label: this.$t('menu.menuSignal.setInterlockAutoRoute'),
@ -175,67 +177,127 @@ export default {
{
label: '进路交人工控',
handler: this.humanControl,
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING,
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING
},
{
label: '进路交ATS自动控',
handler: this.atsAutoControl,
cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING,
cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING
},
{
label: '查询进路控制模式',
handler: this.detail,
cmdType: CMD.Signal.CMD_SIGNAL_DETAIL,
},
],
cmdType: CMD.Signal.CMD_SIGNAL_DETAIL
}
]
},
menuForce: [
{
label: this.$t('menu.menuSignal.setFault'),
handler: this.setStoppage,
cmdType: CMD.Fault.CMD_SET_FAULT,
cmdType: CMD.Fault.CMD_SET_FAULT
},
{
label: this.$t('menu.menuSignal.cancelFault'),
handler: this.cancelStoppage,
cmdType: CMD.Fault.CMD_CANCEL_FAULT,
cmdType: CMD.Fault.CMD_CANCEL_FAULT
},
{
label: this.$t('menu.menuSection.triggerFaultManagement'),
handler: this.triggerFaultManagement,
cmdType: CMD.Fault.CMD_TRIGGER_FAULT,
},
],
cmdType: CMD.Fault.CMD_TRIGGER_FAULT
}
]
};
},
computed: {
...mapGetters('training', ['mode', 'operatemode']),
...mapGetters('menuOperation', ['buttonOperation']),
...mapGetters('map', ['routeList']),
group() {
return this.$route.query.group
},
return this.$route.query.group;
}
},
watch: {
'$store.state.menuOperation.menuCount': function (val) {
if (this.$store.getters['menuOperation/checkDialogIsOpen'](DeviceMenu.Signal) && !this.buttonOperation) {
this.doShow(this.$store.state.menuOperation.menuPosition)
this.doShow(this.$store.state.menuOperation.menuPosition);
} else {
this.doClose()
this.doClose();
}
},
'$store.state.menuOperation.selectedCount': function (val) {
if (this.buttonOperation && this.$store.state.menuOperation.selected._type == 'Signal') {
this.operationHandler(this.buttonOperation, this.$store.state.menuOperation.selected)
this.operationHandler(this.buttonOperation, this.$store.state.menuOperation.selected);
} else if (!this.buttonOperation && this.$store.state.menuOperation.selected._type == 'Signal') {
//
const signal = this.$store.state.menuOperation.selected;
if (this.clickNum >= 1) {
let route = null;
this.routeList.forEach(elem => {
if (elem.startSignalCode === this.oldSelected.code) {
if (elem.endSignalCode === signal.code) {
route = elem;
}
const signalCode = this.$store.getters['map/getDeviceByCode'](elem.endSignalCode);
const data = Object.assign({_type: 'Signal'}, signalCode);
data.isRouteActive = false;
this.$store.dispatch('map/updateMapDevices', data);
}
});
if (route) {
commitOperate(menuOperate.Signal.arrangementRoute, {routeCode:route.code}, 3).then(({valid, operate})=>{
}).catch(error=>{
console.error(error);
this.$refs.noticeInfo.doShow();
});
} else {
this.$refs.noticeInfo.doShow(`没有以[${this.oldSelected.name}(${this.oldSelected.code})]为始端信号机,以[${signal.name}(${signal.code})] 为终端信号机的进路`);
}
this.clickNum = 0;
} else {
let isArrangementRoute = false;
const sectionModel = this.$store.getters['map/getDeviceByCode'](signal.sectionCode);
if (sectionModel) {
//
const sectionLeft = this.$store.getters['map/getDeviceByCode'](sectionModel.leftSectionCode);
const sectionRight = this.$store.getters['map/getDeviceByCode'](sectionModel.rightSectionCode);
if (sectionLeft.routeLock || sectionRight.routeLock) {
isArrangementRoute = true;
}
}
//
if (signal.redOpen && !signal.greenOpen && !signal.yellowOpen && isArrangementRoute) { //
commitOperate(menuOperate.Signal.reopenSignal, { signalCode: signal.code }, 3).then(({ valid, operate }) => {
if (valid) {
// this.$refs.routeControl.doShow(operate, this.selected);
}
}).catch((error) => {
console.error(error);
this.$refs.noticeInfo.doShow();
});
} else {
this.oldSelected = signal;
this.routeList.forEach(elem => {
if (elem.startSignalCode === this.oldSelected.code) {
const signalCode = this.$store.getters['map/getDeviceByCode'](elem.endSignalCode);
const data = Object.assign({_type: 'Signal'}, signalCode);
data.isRouteActive = true;
this.$store.dispatch('map/updateMapDevices', data);
}
});
this.clickNum++;
}
}
}
}
},
},
methods: {
initMenu() {
this.menu = MenuContextHandler.covert(this.menuNormal)
this.menu = MenuContextHandler.covert(this.menuNormal);
//
if (this.operatemode === OperateMode.FAULT) {
this.menu = this.menuForce
this.menu = this.menuForce;
}
},
operationHandler(buttonOperation, selectType) {
@ -247,14 +309,14 @@ export default {
if (valid) {
// this.$refs.routeLock.doShow(operate, this.selected);
} else {
this.$refs.noticeInfo.doShow()
this.$refs.noticeInfo.doShow();
}
})
.catch((error) => {
console.error(error)
this.$refs.noticeInfo.doShow()
})
break
console.error(error);
this.$refs.noticeInfo.doShow();
});
break;
}
//
case OperationEvent.Signal.unlock.button.operation: {
@ -264,14 +326,14 @@ export default {
if (valid) {
// this.$refs.routeLock.doShow(operate, this.selected);
} else {
this.$refs.noticeInfo.doShow()
this.$refs.noticeInfo.doShow();
}
})
.catch((error) => {
console.error(error)
this.$refs.noticeInfo.doShow()
})
break
console.error(error);
this.$refs.noticeInfo.doShow();
});
break;
}
//
case OperationEvent.Signal.cancelTrainRoute.button.operation: {
@ -280,249 +342,249 @@ export default {
if (valid) {
// this.$refs.routeLock.doShow(operate, this.selected);
} else {
this.$refs.noticeInfo.doShow()
this.$refs.noticeInfo.doShow();
}
})
.catch((error) => {
console.error(error)
this.$refs.noticeInfo.doShow()
})
break
console.error(error);
this.$refs.noticeInfo.doShow();
});
break;
}
//
//
default: {
break
break;
}
}
},
doShow(point) {
this.initMenu()
this.initMenu();
if (this.$refs && this.$refs.popMenu && this.menu && this.menu.length) {
this.$refs.popMenu.resetShowPosition(point)
this.$refs.popMenu.resetShowPosition(point);
}
},
doClose() {
if (this.$refs && this.$refs.popMenu) {
this.$refs.popMenu.close()
this.$refs.popMenu.close();
}
},
//
setStoppage() {
commitOperate(menuOperate.Common.setFault, { code: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected)
this.$refs.setFault.doShow(menuOperate.Common.setFault, this.selected);
}
})
});
},
//
cancelStoppage() {
commitOperate(menuOperate.Common.cancelFault, { code: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected)
this.$refs.setFault.doShow(menuOperate.Common.cancelFault, this.selected);
}
})
});
},
//
getRouteList(selectType) {
const routes = []
const routes = [];
this.routeList.forEach((elem) => {
if (elem.startSignalCode === selectType.code) {
routes.push(elem)
routes.push(elem);
}
})
return routes
});
return routes;
},
//
arrangementRoute() {
commitOperate(menuOperate.Signal.arrangementRoute, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeSelection.doShow(operate, this.selected, this.getRouteList(this.selected))
this.$refs.routeSelection.doShow(operate, this.selected, this.getRouteList(this.selected));
}
})
});
},
//
cancelTrainRoute() {
commitOperate(menuOperate.Signal.cancelTrainRoute, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
lock() {
commitOperate(menuOperate.Signal.lock, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeLock.doShow(operate, this.selected)
this.$refs.routeLock.doShow(operate, this.selected);
}
})
});
},
//
unlock() {
commitOperate(menuOperate.Signal.unlock, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeCmdControl.doShow(operate, this.selected)
this.$refs.routeCmdControl.doShow(operate, this.selected);
}
})
});
},
//
reopenSignal() {
commitOperate(menuOperate.Signal.reopenSignal, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
guide() {
commitOperate(menuOperate.Signal.guide, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeCmdControl.doShow(operate, this.selected)
this.$refs.routeCmdControl.doShow(operate, this.selected);
}
})
});
},
//
setAutoInterlock() {
commitOperate(menuOperate.Signal.setAutoInterlock, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
cancelAutoInterlock() {
commitOperate(menuOperate.Signal.cancelAutoInterlock, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
setAutoTrigger() {
commitOperate(menuOperate.Signal.setAutoTrigger, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
cancelAutoTrigger() {
commitOperate(menuOperate.Signal.cancelAutoTrigger, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
signalClose() {
commitOperate(menuOperate.Signal.signalClose, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
// ()
humanControl() {
commitOperate(menuOperate.Signal.humanControl, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected))
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
}
})
});
},
// ATS
atsAutoControl() {
commitOperate(menuOperate.Signal.atsAutoControl, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected))
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
}
})
});
},
//
detail() {
commitOperate(menuOperate.Signal.detail, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeDetail.doShow(operate, this.selected, this.getRouteList(this.selected))
this.$refs.routeDetail.doShow(operate, this.selected, this.getRouteList(this.selected));
}
})
});
},
triggerFaultManagement() {
this.$store.dispatch('training/setTriggerFaultCount', this.selected)
this.$store.dispatch('training/setTriggerFaultCount', this.selected);
},
//
guide() {
commitOperate(menuOperate.Signal.guide, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeCmdControl.doShow(operate, this.selected)
this.$refs.routeCmdControl.doShow(operate, this.selected);
}
})
});
},
//
setAutoInterlock() {
commitOperate(menuOperate.Signal.setAutoInterlock, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
cancelAutoInterlock() {
commitOperate(menuOperate.Signal.cancelAutoInterlock, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
setAutoTrigger() {
commitOperate(menuOperate.Signal.setAutoTrigger, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
cancelAutoTrigger() {
commitOperate(menuOperate.Signal.cancelAutoTrigger, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
//
signalClose() {
commitOperate(menuOperate.Signal.signalClose, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeControl.doShow(operate, this.selected)
this.$refs.routeControl.doShow(operate, this.selected);
}
})
});
},
// ()
humanControl() {
commitOperate(menuOperate.Signal.humanControl, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected))
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
}
})
});
},
// ATS
atsAutoControl() {
commitOperate(menuOperate.Signal.atsAutoControl, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected))
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
}
})
});
},
//
detail() {
commitOperate(menuOperate.Signal.detail, { signalCode: this.selected.code }, 0).then(({ valid, operate }) => {
if (valid) {
this.$refs.routeDetail.doShow(operate, this.selected, this.getRouteList(this.selected))
this.$refs.routeDetail.doShow(operate, this.selected, this.getRouteList(this.selected));
}
})
});
},
triggerFaultManagement() {
this.$store.dispatch('training/setTriggerFaultCount', this.selected)
},
},
}
this.$store.dispatch('training/setTriggerFaultCount', this.selected);
}
}
};
</script>