大铁菜单调整
This commit is contained in:
parent
d162b96472
commit
527298f2cf
@ -62,40 +62,40 @@ export default {
|
||||
label: '办理 通过进路',
|
||||
handler: this.arrangementRoute,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE,
|
||||
isDisabled: (signal, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (signal, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '列车 办理进路',
|
||||
handler: this.arrangementRoute,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_SET_ROUTE,
|
||||
isDisabled: (signal, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (signal, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '取消进路',
|
||||
handler: this.cancelTrainRoute,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_ROUTE,
|
||||
isDisabled: (signal, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (signal, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '信号重开',
|
||||
handler: this.reopenSignal,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_REOPEN_SIGNAL,
|
||||
isDisabled: (signal, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (signal, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '封锁/解封',
|
||||
handler: this.lockOrUnlock,
|
||||
cmdType: '',
|
||||
isDisabled: (signal, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (signal, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
// cmdType: CMD.Signal.CMD_SIGNAL_BLOCK
|
||||
|
||||
},
|
||||
@ -103,26 +103,26 @@ export default {
|
||||
label: '总人解',
|
||||
handler: this.humanTrainRoute,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_HUMAN_RELEASE_ROUTE,
|
||||
isDisabled: (signal, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (signal, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '引导',
|
||||
handler: this.guide,
|
||||
cmdType: CMD.Signal.CMD_SIGNAL_ROUTE_GUIDE,
|
||||
isDisabled: (signal, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (signal, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '坡道解锁',
|
||||
handler: '',
|
||||
cmdType: '',
|
||||
isDisabled: (signal, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (signal, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
}
|
||||
],
|
||||
menuForce: [
|
||||
|
@ -63,86 +63,96 @@ export default {
|
||||
label: '定操',
|
||||
handler: this.locate,
|
||||
cmdType: CMD.Switch.CMD_SWITCH_NORMAL_POSITION,
|
||||
isDisabled: (section, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '反操',
|
||||
handler: this.reverse,
|
||||
cmdType: CMD.Switch.CMD_SWITCH_REVERSE_POSITION,
|
||||
isDisabled: (section, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '单锁',
|
||||
handler: this.lock,
|
||||
cmdType: CMD.Switch.CMD_SWITCH_SINGLE_LOCK,
|
||||
isDisabled: (section, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '单解',
|
||||
handler: this.unlock,
|
||||
cmdType: CMD.Switch.CMD_SWITCH_SINGLE_UNLOCK,
|
||||
isDisabled: (section, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '道岔钩锁',
|
||||
handler: this.hookLock,
|
||||
cmdType: CMD.Switch.CMD_SWITCH_HOOK_LOCK,
|
||||
isDisabled: (section, station, work) => station.controlMode === 'Interlock' && work === 'ctcWork',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '封锁/解封',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '区故解',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '岔前 分路不良',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '定位 分路不良',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '反位 分路不良',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '接触网定位无电',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '接触网反位无电',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '添加调机号',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '删除调机号',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
},
|
||||
{
|
||||
label: '修改调机号',
|
||||
handle: '',
|
||||
isShow: (section, work) => work === 'dispatchWork'
|
||||
isDisabled: (section, station, work) => station.controlMode !== 'Local',
|
||||
isShow: (section, work) => work === 'ctcWork'
|
||||
}
|
||||
],
|
||||
menuForce: [
|
||||
|
Loading…
Reference in New Issue
Block a user