修改PSL菜单显示逻辑为非故障模式且角色为车站值班员

This commit is contained in:
yuan 2021-06-08 10:08:48 +08:00
parent e30f81b93d
commit 3093a1bc1c
3 changed files with 13 additions and 11 deletions

View File

@ -458,7 +458,7 @@ export function getPslStatus(group, standCode) {
method: 'get'
});
}
/** IBP
/** PSL
* @param {String} button
* YXJZ-允许/禁止;
* HSJC-互锁解除;

View File

@ -182,7 +182,7 @@ export default {
};
</script>
<style vars="{icons}" lang="scss" scoped>
<style lang="scss" scoped>
.psl-title {
display: flex;
justify-content: center;

View File

@ -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) {