北京一号线 宁波一号线 步骤操作调整

This commit is contained in:
joylink_cuiweidong 2020-03-30 11:03:35 +08:00
parent 72f121b7a5
commit 08dc9befc4
6 changed files with 198 additions and 106 deletions

View File

@ -187,25 +187,33 @@ export default {
}, },
// //
split() { split() {
commitOperate(menuOperate.Section.split, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.split, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.sectionControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.sectionControl.doShow(operate, this.selected);
}
}); });
}, },
alxeEffective() { alxeEffective() {
commitOperate(menuOperate.Section.alxeEffective, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.alxeEffective, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.alxeEffective.doShow(data.operate, this.selected); if (valid) {
this.$refs.alxeEffective.doShow(operate, this.selected);
}
}); });
}, },
// //
active() { active() {
commitOperate(menuOperate.Section.active, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.active, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.sectionControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.sectionControl.doShow(operate, this.selected);
}
}); });
}, },
// //
axlePreReset(selectType) { axlePreReset(selectType) {
commitOperate(menuOperate.Section.axlePreReset, {sectionCode:selectType.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.axlePreReset, {sectionCode:selectType.code}, 0).then(({valid, operate})=>{
this.$refs.sectionControl.doShow(data.operate, selectType); if (valid) {
this.$refs.sectionControl.doShow(operate, selectType);
}
}); });
}, },
// //
@ -216,8 +224,10 @@ export default {
// }, // },
// //
setSpeed() { setSpeed() {
commitOperate(menuOperate.Section.setSpeed, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.setSpeed, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.speedLimitControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.speedLimitControl.doShow(operate, this.selected);
}
}); });
} }
} }

View File

@ -332,94 +332,109 @@ export default {
}, },
// //
arrangementRoute() { arrangementRoute() {
commitOperate(menuOperate.Signal.arrangementRoute, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.arrangementRoute, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeSelection.doShow(data.operate, this.selected, this.getRouteList(this.selected)); if (valid) {
this.$refs.routeSelection.doShow(operate, this.selected, this.getRouteList(this.selected));
}
}); });
}, },
// //
setRoute(route) { setRoute(route) {
commitOperate(menuOperate.Signal.arrangementRoute, {routeCode:route.code}, [], 3).then((data)=>{ commitOperate(menuOperate.Signal.arrangementRoute, {routeCode:route.code}, [], 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
cancelTrainRoute() { cancelTrainRoute() {
commitOperate(menuOperate.Signal.cancelTrainRoute, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.cancelTrainRoute, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeControl.doShow(operate, this.selected);
}
}); });
}, },
// //
cancelTrainRouteByLow(selectType) { cancelTrainRouteByLow(selectType) {
commitOperate(menuOperate.Signal.cancelTrainRoute, {signalCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.Signal.cancelTrainRoute, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
humanTrainRoute(selectType) { humanTrainRoute(selectType) {
commitOperate(menuOperate.Signal.humanTrainRoute, {signalCode:selectType.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.humanTrainRoute, {signalCode:selectType.code}, 0).then(({valid, operate})=>{
data.operate.cmdType = CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE; if (valid) {
this.$refs.password.doShow(data.operate); operate.cmdType = CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE;
this.$refs.password.doShow(operate);
}
}); });
}, },
// //
reopenSignalByRoute(selectType) { reopenSignalByRoute(selectType) {
commitOperate(menuOperate.Signal.reopenSignal, {signalCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.Signal.reopenSignal, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
reopenSignal() { reopenSignal() {
commitOperate(menuOperate.Signal.reopenSignal, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.reopenSignal, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeControl.doShow(operate, this.selected);
}
}); });
}, },
// //
signalClose() { signalClose() {
commitOperate(menuOperate.Signal.signalClose, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.signalClose, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeControl.doShow(operate, this.selected);
}
}); });
}, },
// //
signalCloseByLow(selectType) { signalCloseByLow(selectType) {
commitOperate(menuOperate.Signal.signalClose, {signalCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.Signal.signalClose, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
humanControl() { humanControl() {
commitOperate(menuOperate.Signal.humanControl, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.humanControl, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeHandControl.doShow(data.operate, this.selected, this.getRouteList(this.selected)); if (valid) {
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
}
}); });
}, },
// //
atsAutoControl() { atsAutoControl() {
commitOperate(menuOperate.Signal.atsAutoControl, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.atsAutoControl, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeHandControl.doShow(data.operate, this.selected, this.getRouteList(this.selected)); if (valid) {
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
}
}); });
}, },
// //
singalPassModel(selectType) { singalPassModel(selectType) {
commitOperate(menuOperate.Signal.setAutoInterlock, {signalCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.Signal.setAutoInterlock, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
singalCancelPassModel(selectType) { singalCancelPassModel(selectType) {
commitOperate(menuOperate.Signal.cancelAutoInterlock, {signalCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.Signal.cancelAutoInterlock, {signalCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
detail() { detail() {
commitOperate(menuOperate.Signal.detail, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.detail, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeDetail.doShow(data.operate, this.selected, this.getRouteList(this.selected)); if (valid) {
this.$refs.routeDetail.doShow(operate, this.selected, this.getRouteList(this.selected));
}
}); });
}, },
// //

View File

@ -243,28 +243,32 @@ export default {
}, },
// //
setDetainTrainByLow(selectType) { setDetainTrainByLow(selectType) {
commitOperate(menuOperate.StationStand.setDetainTrain, {standCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.StationStand.setDetainTrain, {standCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
/** 取消扣车 */ /** 取消扣车 */
cancleDetainTrainByLow(selectType) { cancleDetainTrainByLow(selectType) {
commitOperate(menuOperate.StationStand.cancelDetainTrain, {standCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.StationStand.cancelDetainTrain, {standCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
setDetainTrain() { setDetainTrain() {
commitOperate(menuOperate.StationStand.setDetainTrain, {standCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.StationStand.setDetainTrain, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.standControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.standControl.doShow(operate, this.selected);
}
}); });
}, },
// //
cancelDetainTrain() { cancelDetainTrain() {
commitOperate(menuOperate.StationStand.cancelDetainTrain, {standCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.StationStand.cancelDetainTrain, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.standControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.standControl.doShow(operate, this.selected);
}
}); });
}, },
// //
@ -293,14 +297,18 @@ export default {
}, },
// //
cancelJumpStop() { cancelJumpStop() {
commitOperate(menuOperate.StationStand.cancelJumpStop, {standCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.StationStand.cancelJumpStop, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.standJumpStopControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.standJumpStopControl.doShow(operate, this.selected);
}
}); });
}, },
// //
setStopTime() { setStopTime() {
commitOperate(menuOperate.StationStand.setStopTime, {standCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.StationStand.setStopTime, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.standStopTime.doShow(data.operate, this.selected, []); if (valid) {
this.$refs.standStopTime.doShow(operate, this.selected, []);
}
}); });
}, },
// //
@ -313,20 +321,26 @@ export default {
}, },
// //
earlyDeparture() { earlyDeparture() {
commitOperate(menuOperate.StationStand.earlyDeparture, {standCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.StationStand.earlyDeparture, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.standControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.standControl.doShow(operate, this.selected);
}
}); });
}, },
// //
setBackStrategy() { setBackStrategy() {
commitOperate(menuOperate.StationStand.setBackStrategy, {standCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.StationStand.setBackStrategy, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.standBackStrategy.doShow(data.operate, this.selected); if (valid) {
this.$refs.standBackStrategy.doShow(operate, this.selected);
}
}); });
}, },
// //
detail() { detail() {
commitOperate(menuOperate.StationStand.detail, {standCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.StationStand.detail, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.standDetail.doShow(data.operate, this.selected, []); if (valid) {
this.$refs.standDetail.doShow(operate, this.selected, []);
}
}); });
} }
} }

View File

@ -238,63 +238,76 @@ export default {
}, },
// //
lock(selectType) { lock(selectType) {
commitOperate(menuOperate.Switch.lock, {switchCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.Switch.lock, {switchCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
unlock(selectType) { unlock(selectType) {
commitOperate(menuOperate.Switch.unlock, {switchCode:selectType.code}, 0).then((data)=>{ commitOperate(menuOperate.Switch.unlock, {switchCode:selectType.code}, 0).then(({valid, operate})=>{
this.$refs.switchControl.doShow(data.operate, selectType); if (valid) {
this.$refs.switchControl.doShow(operate, selectType);
}
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
switchTurnoutForce(selectType) { switchTurnoutForce(selectType) {
commitOperate(menuOperate.Switch.turnoutForce, {switchCode:selectType.code}, 0).then((data)=>{ commitOperate(menuOperate.Switch.turnoutForce, {switchCode:selectType.code}, 0).then(({valid, operate})=>{
this.$refs.switchControl.doShow(data.operate, selectType); if (valid) {
this.$refs.switchControl.doShow(operate, selectType);
}
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
locate(selectType) { locate(selectType) {
commitOperate(menuOperate.Switch.locate, {switchCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.Switch.locate, {switchCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
reverse(selectType) { reverse(selectType) {
commitOperate(menuOperate.Switch.reverse, {switchCode:selectType.code}, 3).then((data)=>{ commitOperate(menuOperate.Switch.reverse, {switchCode:selectType.code}, 3).then(({valid, operate})=>{
}).catch(error=>{ }).catch(error=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
split() { split() {
commitOperate(menuOperate.Switch.split, {switchCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Switch.split, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.switchControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.switchControl.doShow(operate, this.selected);
}
}); });
}, },
// //
active() { active() {
commitOperate(menuOperate.Switch.active, {switchCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Switch.active, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.switchControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.switchControl.doShow(operate, this.selected);
}
}); });
}, },
// //
setSpeed() { setSpeed() {
commitOperate(menuOperate.Switch.setSpeed, {switchCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Switch.setSpeed, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.speedLimitControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.speedLimitControl.doShow(operate, this.selected);
}
}); });
}, },
// //
alxeEffective() { alxeEffective() {
commitOperate(menuOperate.Switch.alxeEffective, {switchCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Switch.alxeEffective, {switchCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.alxeEffective.doShow(data.operate, this.selected); if (valid) {
this.$refs.alxeEffective.doShow(operate, this.selected);
}
}); });
}, },
undeveloped() { undeveloped() {

View File

@ -151,51 +151,65 @@ export default {
// //
alxeFailure() { alxeFailure() {
this.mouseCancelState(this.selected); this.mouseCancelState(this.selected);
commitOperate(menuOperate.Section.alxeFailure, {sectionCode:this.selected.code}, 3).then((data)=>{ commitOperate(menuOperate.Section.alxeFailure, {sectionCode:this.selected.code}, 3).then(({valid, operate})=>{
}).catch((error)=>{ }).catch((error)=>{
this.$refs.noticeInfo.doShow({}, error.message); this.$refs.noticeInfo.doShow({}, error.message);
}); });
}, },
// //
fault() { fault() {
commitOperate(menuOperate.Section.fault, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.fault, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.sectionUnLock.doShow(data.operate, this.selected); if (valid) {
this.$refs.sectionUnLock.doShow(operate, this.selected);
}
}); });
}, },
// //
split() { split() {
commitOperate(menuOperate.Section.split, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.split, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.sectionControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.sectionControl.doShow(operate, this.selected);
}
}); });
}, },
// //
alxeEffective() { alxeEffective() {
commitOperate(menuOperate.Section.alxeEffective, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.alxeEffective, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.alxeEffective.doShow(data.operate, this.selected); if (valid) {
this.$refs.alxeEffective.doShow(operate, this.selected);
}
}); });
}, },
// //
active() { active() {
commitOperate(menuOperate.Section.active, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.active, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.sectionControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.sectionControl.doShow(operate, this.selected);
}
}); });
}, },
// //
lock() { lock() {
commitOperate(menuOperate.Section.lock, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.lock, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.sectionControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.sectionControl.doShow(operate, this.selected);
}
}); });
}, },
// //
unlock() { unlock() {
commitOperate(menuOperate.Section.unlock, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.unlock, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.sectionUnLock.doShow(data.operate, this.selected); if (valid) {
this.$refs.sectionUnLock.doShow(operate, this.selected);
}
}); });
}, },
// //
setSpeed() { setSpeed() {
commitOperate(menuOperate.Section.setSpeed, {sectionCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Section.setSpeed, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.speedLimitControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.speedLimitControl.doShow(operate, this.selected);
}
}); });
} }
} }

View File

@ -291,80 +291,106 @@ export default {
}, },
// //
arrangementRoute() { arrangementRoute() {
commitOperate(menuOperate.Signal.arrangementRoute, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.arrangementRoute, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeSelection.doShow(data.operate, this.selected, this.getRouteList(this.selected)); if (valid) {
this.$refs.routeSelection.doShow(operate, this.selected, this.getRouteList(this.selected));
}
}); });
}, },
// //
cancelTrainRoute() { cancelTrainRoute() {
commitOperate(menuOperate.Signal.cancelTrainRoute, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.cancelTrainRoute, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeControl.doShow(operate, this.selected);
}
}); });
}, },
// //
lock() { lock() {
commitOperate(menuOperate.Signal.lock, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.lock, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeLock.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeLock.doShow(operate, this.selected);
}
}); });
}, },
// //
unlock() { unlock() {
commitOperate(menuOperate.Signal.unlock, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.unlock, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeUnLock.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeUnLock.doShow(operate, this.selected);
}
}); });
}, },
// //
reopenSignal() { reopenSignal() {
commitOperate(menuOperate.Signal.reopenSignal, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.reopenSignal, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeControl.doShow(operate, this.selected);
}
}); });
}, },
// //
signalClose() { signalClose() {
commitOperate(menuOperate.Signal.signalClose, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.signalClose, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeControl.doShow(operate, this.selected);
}
}); });
}, },
// //
humanControl() { humanControl() {
commitOperate(menuOperate.Signal.humanControl, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.humanControl, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeHandControl.doShow(data.operate, this.selected, this.getRouteList(this.selected)); if (valid) {
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
}
}); });
}, },
// //
atsAutoControl() { atsAutoControl() {
commitOperate(menuOperate.Signal.atsAutoControl, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.atsAutoControl, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeHandControl.doShow(data.operate, this.selected, this.getRouteList(this.selected)); if (valid) {
this.$refs.routeHandControl.doShow(operate, this.selected, this.getRouteList(this.selected));
}
}); });
}, },
// //
singalPassModel() { singalPassModel() {
commitOperate(menuOperate.Signal.setAutoInterlock, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.setAutoInterlock, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeControl.doShow(operate, this.selected);
}
}); });
}, },
// //
singalCancelPassModel() { singalCancelPassModel() {
commitOperate(menuOperate.Signal.cancelAutoInterlock, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.cancelAutoInterlock, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeControl.doShow(data.operate, this.selected); if (valid) {
this.$refs.routeControl.doShow(operate, this.selected);
}
}); });
}, },
// //
detail() { detail() {
commitOperate(menuOperate.Signal.detail, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.detail, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routeDetail.doShow(data.operate, this.selected, this.getRouteList(this.selected)); if (valid) {
this.$refs.routeDetail.doShow(operate, this.selected, this.getRouteList(this.selected));
}
}); });
}, },
// //
humanTrainRoute() { humanTrainRoute() {
commitOperate(menuOperate.Signal.cancelGuide, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.cancelGuide, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routerCommand.doShow(data.operate, this.selected, '是否执行人解列车进路命令?'); if (valid) {
this.$refs.routerCommand.doShow(operate, this.selected, '是否执行人解列车进路命令?');
}
}); });
}, },
// //
guide() { guide() {
commitOperate(menuOperate.Signal.guide, {signalCode:this.selected.code}, 0).then((data)=>{ commitOperate(menuOperate.Signal.guide, {signalCode:this.selected.code}, 0).then(({valid, operate})=>{
this.$refs.routerCommand.doShow(data.operate, this.selected, '是否执行引导命令?'); if (valid) {
this.$refs.routerCommand.doShow(operate, this.selected, '是否执行引导命令?');
}
}); });
} }
} }