From 88d09f264560243bb437b8450c10befb0f54ec6b Mon Sep 17 00:00:00 2001 From: fan Date: Tue, 30 May 2023 16:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=99=90=E9=80=9F=E7=81=B0?= =?UTF-8?q?=E6=98=BE=E5=88=A4=E6=96=AD=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/beijing_01/menus/menuSection.vue | 4 ++-- src/jmapNew/theme/fuzhou_01/menus/menuSection.vue | 4 ++-- src/jmapNew/theme/race_01/menus/menuSection.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/jmapNew/theme/beijing_01/menus/menuSection.vue b/src/jmapNew/theme/beijing_01/menus/menuSection.vue index f81a1e719..34983af55 100644 --- a/src/jmapNew/theme/beijing_01/menus/menuSection.vue +++ b/src/jmapNew/theme/beijing_01/menus/menuSection.vue @@ -79,14 +79,14 @@ export default { label: '设置临时限速', handler: this.setSpeed, cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED, - isDisabled: (section, work) => section.speedUpLimit !== -1, + isDisabled: (section, work) => section.speedUpLimit > 0, isShow: (section, work) => work === 'dispatchWork' && section.type !== '04' }, { label: '取消临时限速', handler: this.cancelSpeed, cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, - isDisabled: (section, work) => section.speedUpLimit === -1, + isDisabled: (section, work) => section.speedUpLimit <= 0, isShow: (section, work) => work === 'dispatchWork' && section.type !== '04' } ], diff --git a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue index afeb3d702..6612aaa04 100644 --- a/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue +++ b/src/jmapNew/theme/fuzhou_01/menus/menuSection.vue @@ -105,14 +105,14 @@ export default { label: '设置限速', handler: this.setSpeed, cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED, - isDisabled: (section, work) => section.speedUpLimit !== -1, + isDisabled: (section, work) => section.speedUpLimit > 0, isShow: (section, work) => section.type === '02' }, { label: '取消限速', handler: this.cancelSpeed, cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED, - isDisabled: (section, work) => section.speedUpLimit === -1, + isDisabled: (section, work) => section.speedUpLimit <= 0, isShow: (section, work) => section.type === '02' } ], diff --git a/src/jmapNew/theme/race_01/menus/menuSection.vue b/src/jmapNew/theme/race_01/menus/menuSection.vue index 5d0c83f35..7584678c2 100644 --- a/src/jmapNew/theme/race_01/menus/menuSection.vue +++ b/src/jmapNew/theme/race_01/menus/menuSection.vue @@ -105,14 +105,14 @@ export default { label: '设置临时限速', handler: this.setSpeed, cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED, - isDisabled: (section, work) => section.speedUpLimit !== -1, + isDisabled: (section, work) => section.speedUpLimit > 0, isShow: (section, work) => ['01', '02', '03'].includes(section.type) && work == 'dispatchWork' }, { label: '取消临时限速', handler: this.cancelSpeed, cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED, - isDisabled: (section, work) => section.speedUpLimit === -1, + isDisabled: (section, work) => section.speedUpLimit <= 0, isShow: (section, work) => ['01', '02', '03'].includes(section.type) && work == 'dispatchWork' } ],