From 241dbcd36f6a0a1cd142425f9b7e08a550033a3d Mon Sep 17 00:00:00 2001 From: fan Date: Mon, 4 Dec 2023 17:55:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=99=E5=A4=A7=E7=BD=91=E6=96=B0=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E8=B0=83=E6=95=B4=EF=BC=88=E6=8E=A7=E5=88=B6=E6=9D=83?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/config/skinCode/xian_02.js | 2 +- .../theme/xian_02/menus/menuStation.vue | 23 ++++++++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/jmapNew/config/skinCode/xian_02.js b/src/jmapNew/config/skinCode/xian_02.js index d659abf05..8037b3d0e 100644 --- a/src/jmapNew/config/skinCode/xian_02.js +++ b/src/jmapNew/config/skinCode/xian_02.js @@ -705,7 +705,7 @@ class SkinCode extends defaultStyle { trainNameFormat: 'serviceNumber:targetCode', // 列车显示格式 trainBodyFaultFlashColor:'#f00' // 列车故障闪烁颜色 }, - directionArrow: { + directionArrow: { }, hsda: { lrPaddingHSDA: 3, // HSDA两边间隔 diff --git a/src/jmapNew/theme/xian_02/menus/menuStation.vue b/src/jmapNew/theme/xian_02/menus/menuStation.vue index bd5c744d7..bb22e1223 100644 --- a/src/jmapNew/theme/xian_02/menus/menuStation.vue +++ b/src/jmapNew/theme/xian_02/menus/menuStation.vue @@ -64,8 +64,15 @@ export default { // 暂无功能,先disabled label: '授权', disabled: true, - handler: this.undeveloped, - isShow: (station, work) => false + handler: this.setStationControl, + isDisabled: (station, work) => { + if (work === 'localWork') { + return true; + } else { + return station.controlMode !== 'Center'; + } + }, + isShow: (station, work) => true }, { label: '取消', @@ -75,11 +82,11 @@ export default { if (work === 'localWork') { return station.controlMode === 'Center'; } else { - return station.controlMode !== 'Center'; + return true; } }, isShow: (station, work) => { - return work === 'localWork'; + return true; } }, // /** 紧急站控 */ @@ -89,10 +96,14 @@ export default { handler: this.setEmergencyControl, cmdType: CMD.ControlConvertMenu.CMD_CM_EMERGENCY_STATION_CONTROL, isDisabled: (station, work) => { - return station.controlMode === 'Emergency'; + if (work === 'localWork') { + return station.controlMode === 'Emergency'; + } else { + return true; + } }, isShow: (station, work) => { - return work === 'localWork'; + return true; } } ]