关闭(C)
@@ -176,13 +176,15 @@ export default {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
this.$store.dispatch('menuOperation/setSelected', {device: val});
- const sectionEle = this.$store.getters['map/getDeviceByCode'](val.code);
- this.speedLimitValue = sectionEle.speedUpLimit;
- if (this.speedLimitValue > 0) {
- this.$refs.table2.setCurrentRow(this.limitList[this.speedLimitValue / 5 - 1]);
- } else {
- this.$refs.table2.setCurrentRow();
- }
+ // const sectionEle = this.$store.getters['map/getDeviceByCode'](val.code);
+ // this.speedLimitValue = sectionEle.speedUpLimit;
+ // if (this.speedLimitValue > 0) {
+ // this.$refs.table2.setCurrentRow(this.limitList[this.speedLimitValue / 5 - 1]);
+ // } else {
+ // this.$refs.table2.setCurrentRow();
+ // }
+ this.$refs.table2.setCurrentRow()
+ this.speedLimitValue = 0;
}
}).catch(() => {
this.$refs.noticeInfo.doShow();
@@ -192,15 +194,17 @@ export default {
if (!val) { return; }
this.initEle = null;
this.commandEleCode = null;
- const step = {
- operation: OperationEvent.Command.common.choose1.operation,
- val: val.value,
- param: {speedLimitValue: val.value}
- };
+
+ const step = {
+ operation: OperationEvent.Command.common.choose1.operation,
+ val: val.value,
+ param: {speedLimitValue: val.value}
+ };
+
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
if (valid) {
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
- this.speedLimitValue = val.value;
+ this.speedLimitValue = val.value;
}
}).catch(() => {
this.$refs.noticeInfo.doShow();
diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/sectionLimitSpeed.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/sectionLimitSpeed.vue
index d1b1f57d5..41f1ba52e 100644
--- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/sectionLimitSpeed.vue
+++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/sectionLimitSpeed.vue
@@ -187,8 +187,8 @@ export default {
},
commit(isClose = true) {
const operate = {
- // cmdType: this.command ? CMD.Section.CMD_SECTION_SET_LIMIT_SPEED : CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED,
- cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
+ cmdType: this.speedLimitValue ? CMD.Section.CMD_SECTION_SET_LIMIT_SPEED : CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED,
+ // cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
operation: isClose ? OperationEvent.Command.common.confirm1.operation : OperationEvent.Command.common.apply1.operation,
over: true,
param: {sectionCode: this.selected.code, speedLimitValue:this.speedLimitValue}
diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/signalCanBlock.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/signalCanBlock.vue
index f23c08cef..de966f947 100644
--- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/signalCanBlock.vue
+++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/signalCanBlock.vue
@@ -92,7 +92,7 @@ export default {
return this.dialogShow ? OperationEvent.Signal.arrangementRoute.menu.domId : '';
},
title() {
- return '开始允许锁闭解除';
+ return '确认/取消允许锁闭';
}
},
watch: {
diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/switchCommand.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/switchCommand.vue
index 75d9c496e..1e42dcf3b 100644
--- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/switchCommand.vue
+++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/switchCommand.vue
@@ -33,14 +33,14 @@
设置位置
- 定位
- 反位
+ 定位
+ 反位
设置预留
- 自动与预留
- 预留
- 释放
+ 自动与预留
+ 预留
+ 释放