This commit is contained in:
fan 2021-11-29 14:41:12 +08:00
commit 6811cbcb75

View File

@ -9,6 +9,7 @@
<notice-info ref="noticeInfo" pop-class="fuzhou-01__systerm" />
<stand-back-strategy ref="standBackStrategy" />
<set-fault ref="setFault" pop-class="fuzhou-01__systerm" />
<psl ref="psl" pop-class="xian-01__systerm" />
</div>
</template>
@ -22,6 +23,7 @@ import StandStopTime from './dialog/standStopTime';
import StandDetainTrainAll from './dialog/standDetainTrainAll';
import NoticeInfo from '@/jmapNew/theme/components/menus/childDialog/noticeInfo';
import SetFault from '@/jmapNew/theme/components/menus/dialog/setFault';
import Psl from '@/jmapNew/theme/components/menus/dialog/psl';
import { mapGetters } from 'vuex';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
@ -39,7 +41,8 @@ export default {
StandBackStrategy,
StandStopTime,
StandDetainTrainAll,
SetFault
SetFault,
Psl
},
props: {
selected: {
@ -198,6 +201,16 @@ export default {
if (this.operatemode === OperateMode.FAULT) {
this.menu = this.menuForce;
}
// PSL
if (this.operatemode !== OperateMode.FAULT && this.$store.state.training.prdType === '01') {
this.menu = [
...this.menu,
{
label: 'PSL',
handler: this.openPsl
}
];
}
// this.menu = MenuContextHandler.covert(this.menu);
},
@ -334,6 +347,10 @@ export default {
},
triggerFaultManagement() {
this.$store.dispatch('training/setTriggerFaultCount', this.selected);
},
// PSL
openPsl() {
this.$refs.psl.doShow(this.selected);
}
}
};