Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
93c5bc4fb6
@ -200,7 +200,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
loadSpare() {
|
loadSpare() {
|
||||||
commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}).then(({valid, operate})=>{
|
commitOperate(menuOperate.Section.loadSpareTrain, {sectionCode:this.selected.code}, 0).then(({valid, operate})=>{
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs.loadSpareTrain.doShow(operate, this.selected);
|
this.$refs.loadSpareTrain.doShow(operate, this.selected);
|
||||||
}
|
}
|
||||||
|
@ -80,11 +80,11 @@ export default {
|
|||||||
// handler: this.detail,
|
// handler: this.detail,
|
||||||
// cmdType: CMD.Section.CMD_SECTION_DETAILS
|
// cmdType: CMD.Section.CMD_SECTION_DETAILS
|
||||||
// }
|
// }
|
||||||
{
|
// {
|
||||||
label: ' 增加车次',
|
// label: ' 增加车次',
|
||||||
handler: this.addSpare,
|
// handler: this.addSpare,
|
||||||
cmdType: CMD.Section.CMD_TRAIN_LOAD_TRIP_NUMBER_TRAIN
|
// cmdType: CMD.Section.CMD_TRAIN_LOAD_TRIP_NUMBER_TRAIN
|
||||||
}
|
// }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
menuForce: [
|
menuForce: [
|
||||||
|
@ -285,48 +285,21 @@ export default {
|
|||||||
this.$store.dispatch('training/setTriggerFaultCount', this.selected);
|
this.$store.dispatch('training/setTriggerFaultCount', this.selected);
|
||||||
},
|
},
|
||||||
nextStation() {
|
nextStation() {
|
||||||
const group = this.$route.query.group;
|
this.trainSend('Drive_Ahead');
|
||||||
const param = {
|
|
||||||
commandType: 'Drive_Ahead',
|
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
|
||||||
params: {}
|
|
||||||
};
|
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
|
||||||
}).catch((error) => {
|
|
||||||
console.error(error);
|
|
||||||
this.$refs.noticeInfo.doShow();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
routeBlockRun() {
|
routeBlockRun() {
|
||||||
const group = this.$route.query.group;
|
this.trainSend('Route_Block_Drive');
|
||||||
const param = {
|
|
||||||
commandType: 'Route_Block_Drive',
|
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
|
||||||
params: {}
|
|
||||||
};
|
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
|
||||||
}).catch((error) => {
|
|
||||||
console.error(error);
|
|
||||||
this.$refs.noticeInfo.doShow();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
handleOverFuideSignal() {
|
handleOverFuideSignal() {
|
||||||
const group = this.$route.query.group;
|
this.trainSend('Drive_Through_The_Guide_Signal');
|
||||||
const param = {
|
|
||||||
commandType: 'Drive_Through_The_Guide_Signal',
|
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
|
||||||
params: {}
|
|
||||||
};
|
|
||||||
commitTrainSend(group, param).then(({valid, operate})=>{
|
|
||||||
}).catch((error) => {
|
|
||||||
console.error(error);
|
|
||||||
this.$refs.noticeInfo.doShow();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
handleOverEedLight() {
|
handleOverEedLight() {
|
||||||
|
this.trainSend('Drive_Through_The_Red_Light');
|
||||||
|
},
|
||||||
|
trainSend(type) {
|
||||||
const group = this.$route.query.group;
|
const group = this.$route.query.group;
|
||||||
const param = {
|
const param = {
|
||||||
commandType: 'Drive_Through_The_Red_Light',
|
commandType: type,
|
||||||
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
targetMemberId: this.memberList.find(ele => ele.deviceCode == this.selected.code).id,
|
||||||
params: {}
|
params: {}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user