代码调整
This commit is contained in:
parent
a4b77f0e86
commit
801d2186cc
@ -186,7 +186,9 @@ export default {
|
||||
isDisabled: (signal, work) => {
|
||||
return false;
|
||||
},
|
||||
isShow: (signal, work) => work === 'dispatchWork'
|
||||
isShow: (signal, work, lineCode) => {
|
||||
return work === 'dispatchWork' || lineCode == '11';
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '进路交ATS自动控',
|
||||
@ -195,7 +197,9 @@ export default {
|
||||
isDisabled: (signal, work) => {
|
||||
return false;
|
||||
},
|
||||
isShow: (signal, work) => work === 'dispatchWork'
|
||||
isShow: (signal, work, lineCode) => {
|
||||
return work === 'dispatchWork' || lineCode == '11';
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '查询进路状态',
|
||||
@ -236,6 +240,9 @@ export default {
|
||||
]),
|
||||
group() {
|
||||
return this.$route.query.group;
|
||||
},
|
||||
lineCode() {
|
||||
return this.$route.query.lineCode;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -269,7 +276,7 @@ export default {
|
||||
this.menuNormal.forEach(menuItem => {
|
||||
const status = judgeStationControl(this.selected.belongStationCode, this.selected.stationCode, this.work);
|
||||
menuItem.disabled = menuItem.isDisabled ? menuItem.isDisabled(this.selected, this.work) || !status : false;
|
||||
menuItem.show = menuItem.isShow ? menuItem.isShow(this.selected, this.work) : true;
|
||||
menuItem.show = menuItem.isShow ? menuItem.isShow(this.selected, this.work, this.lineCode) : true;
|
||||
this.menu.push(menuItem);
|
||||
});
|
||||
// 故障模式菜单列表
|
||||
|
Loading…
Reference in New Issue
Block a user