diff --git a/src/views/newMap/display/trainingDesign/draftTrainingList.vue b/src/views/newMap/display/trainingDesign/draftTrainingList.vue index e7a44fd0f..234411d39 100644 --- a/src/views/newMap/display/trainingDesign/draftTrainingList.vue +++ b/src/views/newMap/display/trainingDesign/draftTrainingList.vue @@ -264,9 +264,9 @@ export default { this.$message.error('请先结束当前实训后再加载新的实训!'); return; } - const qObj = {...this.$route.query}; - delete qObj.record; - this.$router.replace({ query:{...qObj}}); + // const qObj = {...this.$route.query}; + // delete qObj.record; + // this.$router.replace({ query:{...qObj}}); this.$store.dispatch('training/changeOperateMode', { mode: OperateMode.NORMAL }); // 默认为正常模式 try { const detailResp = await getTrainingAll(data.id); @@ -275,14 +275,6 @@ export default { const mapLocation = JSON.parse(detailResp.data.mapLocationJson); this.$jlmap && this.$jlmap.updateTransform(mapLocation.scale, {x:mapLocation.x, y:mapLocation.y}); } - if (detailResp.data.playerIdJson) { - const playerId = JSON.parse(detailResp.data.playerIdJson)[0]; - if (playerId) { - const member = this.$store.state.training.memberData[playerId]; - this.$store.dispatch('training/setPrdType', this.prdTypeMap[member.type]); - this.$store.dispatch('training/setRoles', member.type); - } - } this.$emit('closeAllDialog'); this.$store.dispatch('trainingNew/setTrainingDetail', detailResp.data); await loadDraftTraining(this.group, data.id, {mode: this.teachMode});