添加 停止行驶 指令(右键列车->停车,普通模式也可以操作)
This commit is contained in:
parent
0668dc181d
commit
d3041dc121
@ -183,6 +183,10 @@ export default {
|
|||||||
{
|
{
|
||||||
label: '发车',
|
label: '发车',
|
||||||
handler: this.handleDepartTrain
|
handler: this.handleDepartTrain
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '停车',
|
||||||
|
handler: this.handleParkingTrain
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
menuSpeed: [
|
menuSpeed: [
|
||||||
@ -576,6 +580,20 @@ export default {
|
|||||||
this.$refs.noticeInfo.doShow();
|
this.$refs.noticeInfo.doShow();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
handleParkingTrain(){
|
||||||
|
const group = this.$route.query.group;
|
||||||
|
const param = {
|
||||||
|
commandType: 'Parking_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() {
|
undeveloped() {
|
||||||
this.doClose();
|
this.doClose();
|
||||||
this.$alert('实现中......', '提示', {
|
this.$alert('实现中......', '提示', {
|
||||||
|
Loading…
Reference in New Issue
Block a user