From 10e27697fb309813366f7158ad7cc534896fe028 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Tue, 20 Aug 2024 15:16:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue | 6 ++++-- src/jmapNew/theme/xian_01/menus/menuSection.vue | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue index e49140b2d..3288a7664 100644 --- a/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue +++ b/src/jmapNew/theme/ningbo_01/menus/menuSwitch.vue @@ -67,7 +67,8 @@ export default { cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION, isDisabled: (station, work) => { return station.normalPosition === 1; - } + }, + isShow: (selected, work) => work !== 'atsWork' }, { label: '反操', @@ -75,7 +76,8 @@ export default { cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION, isDisabled: (station, work) => { return station.reversePosition === 1; - } + }, + isShow: (selected, work) => work !== 'atsWork' }, { label: '道岔单锁', diff --git a/src/jmapNew/theme/xian_01/menus/menuSection.vue b/src/jmapNew/theme/xian_01/menus/menuSection.vue index d6f60735d..c1bb68559 100644 --- a/src/jmapNew/theme/xian_01/menus/menuSection.vue +++ b/src/jmapNew/theme/xian_01/menus/menuSection.vue @@ -68,7 +68,7 @@ export default { return section.blockade === 1; } }, - isShow: (section, work) => ['01', '02'].includes(section.type) + isShow: (section, work) => ['01', '02'].includes(section.type) && work !== 'atsWork' }, { label: '区段解封', @@ -81,7 +81,7 @@ export default { return section.blockade !== 1; } }, - isShow: (section, work) => ['01', '02'].includes(section.type) + isShow: (section, work) => ['01', '02'].includes(section.type) && work !== 'atsWork' }, { label: '故障解锁', @@ -90,7 +90,7 @@ export default { isDisabled: (section, work) => { return false; }, - isShow: (section, work) => ['01', '02', '03'].includes(section.type) + isShow: (section, work) => ['01', '02', '03'].includes(section.type) && work !== 'atsWork' }, { label: '设置限速', @@ -99,7 +99,7 @@ export default { isDisabled: (section, work) => { return false; }, - isShow: (section, work) => section.type === '02' + isShow: (section, work) => section.type === '02' && work !== 'atsWork' }, { label: '取消限速', @@ -108,7 +108,7 @@ export default { isDisabled: (section, work) => { return false; }, - isShow: (section, work) => section.type === '02' + isShow: (section, work) => section.type === '02' && work !== 'atsWork' }, { label: '区段切除',