绘图高亮显影调整

This commit is contained in:
fan 2020-04-30 17:52:37 +08:00
parent 4b50306981
commit b6105f015d
2 changed files with 5 additions and 1 deletions

View File

@ -144,9 +144,10 @@ export default {
this.$emit('showMap'); this.$emit('showMap');
}, },
initLoad() { initLoad() {
if (this.enabledTab === 'route' || this.enabledTab == 'runLevel') { if (this.enabledTab === 'route') {
this.$refs[this.enabledTabMenu[this.enabledTab]].initLoad(); this.$refs[this.enabledTabMenu[this.enabledTab]].initLoad();
} }
this.tabBeforeLeave(this.enabledTab);
}, },
createRouteEvent() { // createRouteEvent() { //
this.$refs[this.enabledTabMenu[this.enabledTab]].createRouteEvent(); this.$refs[this.enabledTabMenu[this.enabledTab]].createRouteEvent();

View File

@ -197,6 +197,9 @@ export default {
}, },
selectViewDraft(data) { selectViewDraft(data) {
this.viewDraft = data; this.viewDraft = data;
if (data != 'draft') {
this.$refs.dataRelation.initLoad();
}
}, },
loadInitPage() { loadInitPage() {
this.$store.dispatch('training/changeMode', { mode: TrainingMode.MAP_EDIT }); this.$store.dispatch('training/changeMode', { mode: TrainingMode.MAP_EDIT });