From 0e36937718de47492af2733ef7245378bbd48333 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 12 Aug 2020 10:02:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8C=BA=E6=AE=B5=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/foshan_01/menus/dialog/speedLimitControl.vue | 8 ++++---- src/jmapNew/theme/foshan_01/menus/menuSection.vue | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/jmapNew/theme/foshan_01/menus/dialog/speedLimitControl.vue b/src/jmapNew/theme/foshan_01/menus/dialog/speedLimitControl.vue index b452c3adc..efe69bee6 100644 --- a/src/jmapNew/theme/foshan_01/menus/dialog/speedLimitControl.vue +++ b/src/jmapNew/theme/foshan_01/menus/dialog/speedLimitControl.vue @@ -134,7 +134,7 @@ export default { }, speedList() { const list = [{ name: '不限速', value: '-1' }]; - for (var i = 0; i * this.speedSpace <= this.maxSpeed; i++) { + for (var i = 1; i * this.speedSpace <= this.maxSpeed; i++) { const speed = String(i * this.speedSpace); list.push({ name: speed, value: speed }); } @@ -382,15 +382,15 @@ export default { } else if (this.operation == OperationEvent.Section.cancelSpeed.menu.operation) { /** 区段取消限速*/ operate.operation = OperationEvent.Section.cancelSpeed.order.operation; - operate.message = `在【${this.name}】区段,区段取消限速${this.speed}km/h,确认下达吗?`; + operate.message = `在【${this.name}】区段,区段取消限速,确认下达吗?`; } else if (this.operation == OperationEvent.Switch.setSpeed.menu.operation) { /** 道岔设置限速*/ operate.operation = OperationEvent.Switch.setSpeed.order.operation; operate.message = `在【${this.name}】区段,道岔设置限速${this.speed}km/h,确认下达吗?`; } else if (this.operation == OperationEvent.Switch.cancelSpeed.menu.operation) { - /** 区段取消限速*/ + /** 道岔区段取消限速*/ operate.operation = OperationEvent.Switch.cancelSpeed.order.operation; - operate.message = `在【${this.name}】区段,道岔取消限速${this.speed}km/h,确认下达吗?`; + operate.message = `在【${this.name}】区段,道岔区段取消限速,确认下达吗?`; } this.setMessage('请点击“确认1”按钮,确认命令!'); diff --git a/src/jmapNew/theme/foshan_01/menus/menuSection.vue b/src/jmapNew/theme/foshan_01/menus/menuSection.vue index f319bf5a7..9c81537e1 100644 --- a/src/jmapNew/theme/foshan_01/menus/menuSection.vue +++ b/src/jmapNew/theme/foshan_01/menus/menuSection.vue @@ -57,6 +57,11 @@ export default { label: '区段切除', handler: this.split, cmdType: CMD.Section.CMD_SECTION_CUT_OFF + }, + { + label: '设置临时限速', + handler: this.setSpeed, + cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED } // { // label: '区段故障解锁',