修改PSL菜单显示逻辑为非故障模式且角色为车站值班员
This commit is contained in:
parent
e30f81b93d
commit
3093a1bc1c
@ -458,7 +458,7 @@ export function getPslStatus(group, standCode) {
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
/** 按下IBP盘按钮
|
||||
/** 按下PSL盘按钮
|
||||
* @param {String} button
|
||||
* YXJZ-允许/禁止;
|
||||
* HSJC-互锁解除;
|
||||
|
@ -182,7 +182,7 @@ export default {
|
||||
};
|
||||
</script>
|
||||
|
||||
<style vars="{icons}" lang="scss" scoped>
|
||||
<style lang="scss" scoped>
|
||||
.psl-title {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
@ -176,15 +176,17 @@ export default {
|
||||
// 故障模式菜单列表
|
||||
if (this.operatemode === OperateMode.FAULT) {
|
||||
this.menu = this.menuForce;
|
||||
if (this.$store.state.training.prdType === '01') { //角色为车站值班员
|
||||
this.menu = [
|
||||
...this.menu,
|
||||
{
|
||||
label: 'PSL',
|
||||
handler: this.openPsl
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
// 非故障模式 且 角色为车站值班员时 增加PSL盘
|
||||
if (this.operatemode !== OperateMode.FAULT && this.$store.state.training.prdType === '01') {
|
||||
this.menu = [
|
||||
...this.menu,
|
||||
{
|
||||
label: 'PSL',
|
||||
handler: this.openPsl
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
},
|
||||
doShow(point) {
|
||||
|
Loading…
Reference in New Issue
Block a user