处理车辆段调度无法排列进路,按钮钮封无反应问题
This commit is contained in:
parent
88c85f4e49
commit
126b37c205
@ -193,6 +193,9 @@ export default {
|
||||
...mapGetters('map', ['routeList']),
|
||||
group() {
|
||||
return this.$route.query.group;
|
||||
},
|
||||
roles() {
|
||||
return this.$store.state.training.roles;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@ -203,8 +206,9 @@ export default {
|
||||
this.doClose();
|
||||
}
|
||||
},
|
||||
'$store.state.menuOperation.selectedCount': function (val) {
|
||||
if (this.$store.state.menuOperation.selected._type == 'Signal' && this.$store.state.training.prdType == '09') {
|
||||
// '$store.state.menuOperation.selectedCount': function (val) {
|
||||
'$store.state.menuOperation.leftClickCount': function (val) {
|
||||
if (this.$store.state.menuOperation.selected._type == 'Signal' && this.work == 'localWork' && this.roles == 'DEPOT_DISPATCHER') { // 车辆段调度角色
|
||||
if (this.buttonOperation) {
|
||||
this.operationHandler(this.buttonOperation, this.$store.state.menuOperation.selected);
|
||||
this.$parent.$refs.menuDeplotButton.clearCountDown();
|
||||
@ -278,7 +282,7 @@ export default {
|
||||
initMenu() {
|
||||
this.menu = [];
|
||||
this.menuNormal.forEach(menuItem => {
|
||||
menuItem.disabled = !judgeStationControl(this.selected.belongStationCode, this.selected.stationCode, this.work) || menuItem.isDisabled(this.selected, this.work);
|
||||
menuItem.disabled = (!judgeStationControl(this.selected.belongStationCode, this.selected.stationCode, this.work) && this.roles !== 'DEPOT_DISPATCHER') || menuItem.isDisabled(this.selected, this.work);
|
||||
menuItem.show = menuItem.isShow(this.selected, this.work);
|
||||
this.menu.push(menuItem);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user