设置限速灰显判断调整
This commit is contained in:
parent
62e2c3978f
commit
88d09f2645
@ -79,14 +79,14 @@ export default {
|
|||||||
label: '设置临时限速',
|
label: '设置临时限速',
|
||||||
handler: this.setSpeed,
|
handler: this.setSpeed,
|
||||||
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
|
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
|
||||||
isDisabled: (section, work) => section.speedUpLimit !== -1,
|
isDisabled: (section, work) => section.speedUpLimit > 0,
|
||||||
isShow: (section, work) => work === 'dispatchWork' && section.type !== '04'
|
isShow: (section, work) => work === 'dispatchWork' && section.type !== '04'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '取消临时限速',
|
label: '取消临时限速',
|
||||||
handler: this.cancelSpeed,
|
handler: this.cancelSpeed,
|
||||||
cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED,
|
cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED,
|
||||||
isDisabled: (section, work) => section.speedUpLimit === -1,
|
isDisabled: (section, work) => section.speedUpLimit <= 0,
|
||||||
isShow: (section, work) => work === 'dispatchWork' && section.type !== '04'
|
isShow: (section, work) => work === 'dispatchWork' && section.type !== '04'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -105,14 +105,14 @@ export default {
|
|||||||
label: '设置限速',
|
label: '设置限速',
|
||||||
handler: this.setSpeed,
|
handler: this.setSpeed,
|
||||||
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
|
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
|
||||||
isDisabled: (section, work) => section.speedUpLimit !== -1,
|
isDisabled: (section, work) => section.speedUpLimit > 0,
|
||||||
isShow: (section, work) => section.type === '02'
|
isShow: (section, work) => section.type === '02'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '取消限速',
|
label: '取消限速',
|
||||||
handler: this.cancelSpeed,
|
handler: this.cancelSpeed,
|
||||||
cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED,
|
cmdType: CMD.Section.CMD_SECTION_CANCEL_LIMIT_SPEED,
|
||||||
isDisabled: (section, work) => section.speedUpLimit === -1,
|
isDisabled: (section, work) => section.speedUpLimit <= 0,
|
||||||
isShow: (section, work) => section.type === '02'
|
isShow: (section, work) => section.type === '02'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -105,14 +105,14 @@ export default {
|
|||||||
label: '设置临时限速',
|
label: '设置临时限速',
|
||||||
handler: this.setSpeed,
|
handler: this.setSpeed,
|
||||||
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
|
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
|
||||||
isDisabled: (section, work) => section.speedUpLimit !== -1,
|
isDisabled: (section, work) => section.speedUpLimit > 0,
|
||||||
isShow: (section, work) => ['01', '02', '03'].includes(section.type) && work == 'dispatchWork'
|
isShow: (section, work) => ['01', '02', '03'].includes(section.type) && work == 'dispatchWork'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '取消临时限速',
|
label: '取消临时限速',
|
||||||
handler: this.cancelSpeed,
|
handler: this.cancelSpeed,
|
||||||
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
|
cmdType: CMD.Section.CMD_SECTION_SET_LIMIT_SPEED,
|
||||||
isDisabled: (section, work) => section.speedUpLimit === -1,
|
isDisabled: (section, work) => section.speedUpLimit <= 0,
|
||||||
isShow: (section, work) => ['01', '02', '03'].includes(section.type) && work == 'dispatchWork'
|
isShow: (section, work) => ['01', '02', '03'].includes(section.type) && work == 'dispatchWork'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user