代码调整

This commit is contained in:
joylink_fanyuhong 2024-08-20 15:16:56 +08:00
parent acf3109c0b
commit 10e27697fb
2 changed files with 9 additions and 7 deletions

View File

@ -67,7 +67,8 @@ export default {
cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION, cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION,
isDisabled: (station, work) => { isDisabled: (station, work) => {
return station.normalPosition === 1; return station.normalPosition === 1;
} },
isShow: (selected, work) => work !== 'atsWork'
}, },
{ {
label: '反操', label: '反操',
@ -75,7 +76,8 @@ export default {
cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION, cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION,
isDisabled: (station, work) => { isDisabled: (station, work) => {
return station.reversePosition === 1; return station.reversePosition === 1;
} },
isShow: (selected, work) => work !== 'atsWork'
}, },
{ {
label: '道岔单锁', label: '道岔单锁',

View File

@ -68,7 +68,7 @@ export default {
return section.blockade === 1; return section.blockade === 1;
} }
}, },
isShow: (section, work) => ['01', '02'].includes(section.type) isShow: (section, work) => ['01', '02'].includes(section.type) && work !== 'atsWork'
}, },
{ {
label: '区段解封', label: '区段解封',
@ -81,7 +81,7 @@ export default {
return section.blockade !== 1; return section.blockade !== 1;
} }
}, },
isShow: (section, work) => ['01', '02'].includes(section.type) isShow: (section, work) => ['01', '02'].includes(section.type) && work !== 'atsWork'
}, },
{ {
label: '故障解锁', label: '故障解锁',
@ -90,7 +90,7 @@ export default {
isDisabled: (section, work) => { isDisabled: (section, work) => {
return false; return false;
}, },
isShow: (section, work) => ['01', '02', '03'].includes(section.type) isShow: (section, work) => ['01', '02', '03'].includes(section.type) && work !== 'atsWork'
}, },
{ {
label: '设置限速', label: '设置限速',
@ -99,7 +99,7 @@ export default {
isDisabled: (section, work) => { isDisabled: (section, work) => {
return false; return false;
}, },
isShow: (section, work) => section.type === '02' isShow: (section, work) => section.type === '02' && work !== 'atsWork'
}, },
{ {
label: '取消限速', label: '取消限速',
@ -108,7 +108,7 @@ export default {
isDisabled: (section, work) => { isDisabled: (section, work) => {
return false; return false;
}, },
isShow: (section, work) => section.type === '02' isShow: (section, work) => section.type === '02' && work !== 'atsWork'
}, },
{ {
label: '区段切除', label: '区段切除',