南京二号线调整

This commit is contained in:
fan 2021-08-09 09:59:41 +08:00
parent 38f7a7b83e
commit e81585b706
3 changed files with 15 additions and 6 deletions

View File

@ -839,9 +839,7 @@ export default {
}); });
if (this.selectRouteList.length) { if (this.selectRouteList.length) {
if (this.selectRouteList.length === 1) {
this.route = this.selectRouteList[0]; this.route = this.selectRouteList[0];
}
this.handleRouteMenu(); this.handleRouteMenu();
this.deviceHighLight(this.selectedObj, true); this.deviceHighLight(this.selectedObj, true);
this.oldDevice = this.selectedObj; this.oldDevice = this.selectedObj;

View File

@ -2,6 +2,7 @@
<div> <div>
<pop-menu ref="popMenu" :menu="menu" pop-menu-class="haerbin-01__systerm" /> <pop-menu ref="popMenu" :menu="menu" pop-menu-class="haerbin-01__systerm" />
<set-fault ref="setFault" pop-class="haerbin-01__systerm" /> <set-fault ref="setFault" pop-class="haerbin-01__systerm" />
<psl ref="psl" pop-class="xian-01__systerm" />
</div> </div>
</template> </template>
@ -13,12 +14,14 @@ import MenuContextHandler from '@/scripts/cmdPlugin/MenuContextHandler';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { DeviceMenu, OperateMode } from '@/scripts/ConstDic'; import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import { menuOperate, commitOperate } from '@/jmapNew/theme/components/utils/menuOperate'; import { menuOperate, commitOperate } from '@/jmapNew/theme/components/utils/menuOperate';
import Psl from '@/jmapNew/theme/components/menus/dialog/psl';
export default { export default {
name: 'StationStandMenu', name: 'StationStandMenu',
components: { components: {
PopMenu, PopMenu,
SetFault SetFault,
Psl
}, },
props: { props: {
selected: { selected: {
@ -88,8 +91,13 @@ export default {
// //
if (this.operatemode === OperateMode.FAULT) { if (this.operatemode === OperateMode.FAULT) {
this.menu = this.menuForce; this.menu = this.menuForce;
if (this.$store.state.training.prdType === '01') {
this.menu.push({
label: 'PSL',
handler: this.openPsl
});
}
} }
}, },
doShow(point) { doShow(point) {
this.clickEvent(); this.clickEvent();
@ -121,6 +129,10 @@ export default {
}, },
triggerFaultManagement() { triggerFaultManagement() {
this.$store.dispatch('training/setTriggerFaultCount', this.selected); this.$store.dispatch('training/setTriggerFaultCount', this.selected);
},
// PSL
openPsl() {
this.$refs.psl.doShow(this.selected);
} }
} }
}; };

View File

@ -191,7 +191,6 @@ export default {
handler: this.openPsl handler: this.openPsl
} }
]; ];
} }
}, },
doShow(point) { doShow(point) {