代码调整
This commit is contained in:
parent
acf3109c0b
commit
10e27697fb
@ -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: '道岔单锁',
|
||||
|
@ -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: '区段切除',
|
||||
|
Loading…
Reference in New Issue
Block a user