宁波一号线 站遥控 控制权转移代码调整
This commit is contained in:
parent
8663a4fba0
commit
329b3efef3
@ -189,6 +189,7 @@ export default {
|
||||
this.restoreBeforeDevices();
|
||||
this.$refs.table.setCurrentRow();
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
this.$store.dispatch('socket/shiftMsgQueue');
|
||||
mouseCancelState(this.selected);
|
||||
},
|
||||
restoreBeforeDevices() {
|
||||
|
@ -134,17 +134,18 @@ export default {
|
||||
this.operation = operate.operation;
|
||||
}
|
||||
this.dialogShow = true;
|
||||
if (this.$store.state.training.prdType == '01') {
|
||||
this.controlProps = {
|
||||
'03': '紧急站控',
|
||||
'02': '站控'
|
||||
};
|
||||
}
|
||||
// if (this.$store.state.training.prdType == '01') {
|
||||
// this.controlProps = {
|
||||
// '03': '紧急站控',
|
||||
// '02': '站控'
|
||||
// };
|
||||
// }
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
},
|
||||
doClose() {
|
||||
this.dialogShow = false;
|
||||
this.$store.dispatch('training/emitTipFresh');
|
||||
this.$store.dispatch('socket/shiftMsgQueue');
|
||||
},
|
||||
cancel() {
|
||||
const operate = {
|
||||
|
@ -110,11 +110,13 @@ export default {
|
||||
deep: true
|
||||
},
|
||||
'$store.state.socket.msgHead': function (elem) {
|
||||
if (elem && (elem.operateType == 'CM_Apply_For_Station_Control' || elem.operateType == 'CM_Apply_For_Center_Control')) {
|
||||
if (!this.dialogShow && elem && (elem.operateType == 'CM_Apply_For_Station_Control' || elem.operateType == 'CM_Apply_For_Center_Control') && !elem.success) {
|
||||
if (elem.params.stationCodes && elem.params.stationCodes.length) {
|
||||
this.doShow(elem);
|
||||
this.sourceMemberId = elem.sourceMemberId;
|
||||
}
|
||||
} else {
|
||||
this.$store.dispatch('socket/shiftMsgQueue');
|
||||
}
|
||||
},
|
||||
'$store.state.map.keyboardEnterCount': function (val) {
|
||||
@ -228,9 +230,7 @@ export default {
|
||||
},
|
||||
doClose() {
|
||||
this.disabledAgree = false;
|
||||
if (this.dialogShow) {
|
||||
this.$store.dispatch('socket/shiftMsgQueue');
|
||||
}
|
||||
this.$store.dispatch('socket/shiftMsgQueue');
|
||||
|
||||
this.count = 0;
|
||||
this.dialogShow = false;
|
||||
|
Loading…
Reference in New Issue
Block a user