地车通信&受电弓操作

This commit is contained in:
fan 2023-11-24 16:29:22 +08:00
parent ed9340f261
commit 7094bca4f4
5 changed files with 69 additions and 1 deletions

View File

@ -425,6 +425,10 @@ export default class Train extends Group {
// 西安二号线 列车停车状态 闪烁红色
this.updateTrainBodyFault(model.orderStop);
}
if (!model.groundCommunicable) {
this.trainL && this.trainL.setColor('#f00');
this.trainR && this.trainR.setColor('#f00');
}
}
}
setTrainTypeColor(type) {

View File

@ -631,6 +631,10 @@ export const menuOperate = {
takeOver: {
operation: OperationEvent.Driver.takeOver.menu.operation,
cmdType: CMD.Driver.CMD_DRIVER_TAKEOVER
},
specialPantographUpDown: {
operation: OperationEvent.Driver.pantograph.menu.operation,
cmdType: CMD.Driver.CMD_SPECIAL_PANTOGRAPH_UP_DOWN
}
},
CTC: {

View File

@ -226,6 +226,31 @@ export default {
handler: this.handlerApplyRmMode
}
]
},
{
label: '受电弓操作',
children: [
{
label: '受电弓1升',
handler: this.pantogrphOneUp,
cmdType: CMD.Driver.CMD_SPECIAL_PANTOGRAPH_UP_DOWN
},
{
label: '受电弓1降',
handler: this.pantogrphOneDown,
cmdType: CMD.Driver.CMD_SPECIAL_PANTOGRAPH_UP_DOWN
},
{
label: '受电弓2升',
handler: this.pantogrphTwoUp,
cmdType: CMD.Driver.CMD_SPECIAL_PANTOGRAPH_UP_DOWN
},
{
label: '受电弓2降',
handler: this.pantogrphTwoDown,
cmdType: CMD.Driver.CMD_SPECIAL_PANTOGRAPH_UP_DOWN
}
]
}
],
menuSpeed: [
@ -586,6 +611,34 @@ export default {
this.$refs.trainSetWorkATP.doShow(operate, this.selected);
}
});
},
pantogrphOneUp() {
commitOperate(menuOperate.Driver.specialPantographUpDown, { index: 1, up: true, groupNumber: this.selected.code }, 3).then(({valid, operate}) => {
}).catch((error)=> {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
pantogrphOneDown() {
commitOperate(menuOperate.Driver.specialPantographUpDown, { index: 1, up: false, groupNumber: this.selected.code }, 3).then(({valid, operate}) => {
}).catch((error)=> {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
pantogrphTwoUp() {
commitOperate(menuOperate.Driver.specialPantographUpDown, { index: 2, up: true, groupNumber: this.selected.code }, 3).then(({valid, operate}) => {
}).catch((error)=> {
console.error(error);
this.$refs.noticeInfo.doShow();
});
},
pantogrphTwoDown() {
commitOperate(menuOperate.Driver.specialPantographUpDown, { index: 2, up: false, groupNumber: this.selected.code }, 3).then(({valid, operate}) => {
}).catch((error)=> {
console.error(error);
this.$refs.noticeInfo.doShow();
});
}
}
};

View File

@ -104,7 +104,8 @@ export default {
CMD_INBOUND: {value: 'Inbound', label: '回库'},
CMD_CHANGE_PRESELECTION_MODE: {value: 'Change_Preselection_Mode', label: '修改预选模式'},
CMD_APPLY_NRM: {value: 'Apply_NRM', label: '转NRM模式'},
CMD_DRIVER_TAKEOVER: {value: 'Driver_TakeOver', label: '接管开关'}
CMD_DRIVER_TAKEOVER: {value: 'Driver_TakeOver', label: '接管开关'},
CMD_SPECIAL_PANTOGRAPH_UP_DOWN: { value: 'Special_Pantograph_Up_Down', label: '受电弓升降' }
// CMD_DEPART_TRAIN: {value: 'Depart_Train', label: '发车'},
// CMD_PARKING_TRAIN : {value: 'Parking_Train', label: '停车'}
},

View File

@ -5149,6 +5149,12 @@ export const OperationEvent = {
operation: '130e',
domId: '_Tips-Driver-takeOver'
}
},
pantograph: {
menu: {
operation: '130f',
domId: '_Tips-Driver-pantograph'
}
}
},
// 语音会话