大铁线路 列车添加发车指令

This commit is contained in:
joylink_cuiweidong 2022-05-16 15:07:25 +08:00
parent 53a2a1478d
commit e0f39c9f3d

View File

@ -179,6 +179,10 @@ export default {
{
label: '换端',
handler: this.handleTurnDirection
},
{
label: '发车',
handler: this.handleDepartTrain
}
],
menuSpeed: [
@ -559,6 +563,19 @@ export default {
this.$refs.noticeInfo.doShow();
});
},
handleDepartTrain() {
const group = this.$route.query.group;
const param = {
commandType: 'Depart_Train',
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();
});
},
undeveloped() {
this.doClose();
this.$alert('实现中......', '提示', {