取消进路调整

This commit is contained in:
fan 2022-11-22 16:02:36 +08:00
parent fbeef9c6b5
commit d0d77bd350

View File

@ -38,7 +38,7 @@
</el-row>
<confirm-control ref="confirmControl" :pop-class="popClass" @close="doClose" />
<ning-bo-confirm-tip ref="ningBoConfirmTip" @close="doClose" />
<password-box ref="password" :pop-class="popClass" @checkOver="passWordCommit" />
<password-box ref="password" :pop-class="popClass" @checkOver="passWordCommit" />
<notice-info ref="noticeInfo" :pop-class="popClass" />
</el-dialog>
</template>
@ -126,7 +126,7 @@ export default {
},
methods: {
doShow(operate, selected) {
this.$root.$emit('dialogOpen', selected);
this.$root.$emit('dialogOpen', selected);
this.selected = selected;
if (!this.dialogShow) {
this.passModel = false;
@ -157,7 +157,7 @@ export default {
doClose() {
this.loading = false;
this.dialogShow = false;
this.$root.$emit('dialogClose', this.selected);
this.$root.$emit('dialogClose', this.selected);
this.$store.dispatch('training/emitTipFresh');
this.mouseCancelState(this.selected);
},
@ -196,9 +196,9 @@ export default {
});
break;
case 'fuzhou-01__systerm':
if (this.$store.state.training.prdType === '01') {
if (this.$store.state.map.picture === 'localWork') {
this.sendCommand(menuOperate.Signal.cancelTrainRoute);
} else if (this.$store.state.training.prdType === '02') {
} else if (this.$store.state.map.picture === 'dispatchWork') {
this.sendCommandNext(menuOperate.Signal.cancelTrainRoute).then(operate => {
operate['messages'] = [this.$t('tip.signalModeToManualModeTipPrefix') + this.signalName + this.$t('tip.signalModeToManualModeTipSuffix')];
this.$refs.confirmControl.doShow(operate);
@ -206,9 +206,9 @@ export default {
}
break;
case 'xian-01__systerm':
if (this.$store.state.training.prdType === '01') {
if (this.$store.state.map.picture === 'localWork') {
this.sendCommand(menuOperate.Signal.cancelTrainRoute);
} else if (this.$store.state.training.prdType === '02') {
} else if (this.$store.state.map.picture === 'dispatchWork') {
this.sendCommandNext(menuOperate.Signal.cancelTrainRoute).then(operate => {
operate['messages'] = `取消以信号机${this.selected.name}为始端的进路,该进路即将由自动信号模式转为人工模式!`;
this.$refs.confirmControl.doShow(operate);