实训平台代码调整
This commit is contained in:
parent
10c007e9cf
commit
a5dad072ca
@ -952,6 +952,7 @@ const map = {
|
|||||||
},
|
},
|
||||||
updateMapDevices: ({ commit, state }, models) => {
|
updateMapDevices: ({ commit, state }, models) => {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
|
// debugger;
|
||||||
if (!(models instanceof Array)) {
|
if (!(models instanceof Array)) {
|
||||||
models = [models];
|
models = [models];
|
||||||
}
|
}
|
||||||
@ -969,7 +970,7 @@ const map = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const list = Object.values(dict);
|
const list = Object.values(dict);
|
||||||
handleOperation(state, list);
|
if (window.location.href.includes('/design/usermap/map/draw')) { handleOperation(state, list); }
|
||||||
commit('mapRender', list);
|
commit('mapRender', list);
|
||||||
resolve(list);
|
resolve(list);
|
||||||
});
|
});
|
||||||
|
@ -163,6 +163,7 @@ export default {
|
|||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.destroy();
|
this.destroy();
|
||||||
this.clearSubscribe();
|
this.clearSubscribe();
|
||||||
|
this.$store.dispatch('runPlan/setPlanData', []);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async subscribe() {
|
async subscribe() {
|
||||||
|
@ -53,6 +53,10 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
this.$store.dispatch('runPlan/setPlanData', []);
|
||||||
|
this.$store.dispatch('runPlan/setInitialPlanData', []);
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.menus = this.$theme.loadPlanComponent(this.$route.query.lineCode);
|
// this.menus = this.$theme.loadPlanComponent(this.$route.query.lineCode);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user