浙大网新操作调整(控制权操作)

This commit is contained in:
fan 2023-12-04 17:55:20 +08:00
parent 3cb71dce37
commit 241dbcd36f
2 changed files with 18 additions and 7 deletions

View File

@ -705,7 +705,7 @@ class SkinCode extends defaultStyle {
trainNameFormat: 'serviceNumber:targetCode', // 列车显示格式
trainBodyFaultFlashColor:'#f00' // 列车故障闪烁颜色
},
directionArrow: {
directionArrow: {
},
hsda: {
lrPaddingHSDA: 3, // HSDA两边间隔

View File

@ -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;
}
}
]