diff --git a/src/router/index.js b/src/router/index.js index 2c1bba90b..d6989cd18 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1940,7 +1940,7 @@ export const asyncRouter = [ { // 线路分组管理 path: 'userManage', - component: Temporary, + component: MapGroup, meta: { i18n: 'newRouter.linePacketManage' } diff --git a/src/scripts/cmdPlugin/Handler.js b/src/scripts/cmdPlugin/Handler.js index f1258e3b3..2b7a3d35a 100644 --- a/src/scripts/cmdPlugin/Handler.js +++ b/src/scripts/cmdPlugin/Handler.js @@ -188,12 +188,12 @@ class Handler { let trainingDetail = getLocalStorage('trainingDetail') || `{}`; trainingDetail = JSON.parse(trainingDetail); const stepList = JSON.parse(trainingDetail.stepJson || `[]`); - let stepOrder = getLocalStorage('stepOrder') || `1`; + let stepOrder = getLocalStorage('stepOrder') || `0`; stepOrder = JSON.parse(stepOrder); let operateOrder = getLocalStorage('operateOrder') || `1`; operateOrder = JSON.parse(operateOrder); // const step = stepList[stepOrder - 1]; - const index = stepOrder - 1 >= 0 ? stepOrder - 1 : 0; + const index = stepOrder >= 0 ? stepOrder : 0; const step = stepList[index]; const stepOperation = step.operations[operateOrder]; return stepOperation; diff --git a/src/store/modules/trainingNew.js b/src/store/modules/trainingNew.js index 63d1d1614..e30e7ac06 100644 --- a/src/store/modules/trainingNew.js +++ b/src/store/modules/trainingNew.js @@ -134,11 +134,11 @@ const training = { }, handleCheckNewTrainingResult:({commit, state}, valid) => { const stepList = JSON.parse(state.trainingDetail.stepJson); - const index = state.stepOrder > 0 ? state.stepOrder - 1 : 0; + const index = state.stepOrder > 0 ? state.stepOrder : 0; const step = stepList[index]; if (valid && step.operations.length === (state.operateOrder + 1 )) { // commit('stepOverCountChange'); - // commit('stepOrderIncrease'); + commit('stepOrderIncrease'); // debugger; state.operateOrder = 0; } else if (valid) { diff --git a/src/views/newMap/display/index.vue b/src/views/newMap/display/index.vue index 7534dfd6b..134fd8fdd 100644 --- a/src/views/newMap/display/index.vue +++ b/src/views/newMap/display/index.vue @@ -122,8 +122,7 @@ export default { this.$messageBox('此地图数据正在维护中,无法运行!'); } this.dataError = resp.data.dataError; - if (resp.data.paramVO) { - this.$store.dispatch('training/setItemMap', resp.data.paramVO.itemMap); + if (resp.data.paramVO && resp.data.paramVO.domConfig) { this.$store.dispatch('training/setDomConfig', resp.data.paramVO.domConfig); } } diff --git a/src/views/newMap/display/simulationMenu.vue b/src/views/newMap/display/simulationMenu.vue index a693f67d1..205b64643 100644 --- a/src/views/newMap/display/simulationMenu.vue +++ b/src/views/newMap/display/simulationMenu.vue @@ -57,14 +57,14 @@ - +