From 18b57804153d6234fe1c930f49bd2cec5efc6778 Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 26 May 2023 15:56:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E9=A2=84=E8=A7=88=E4=B8=8D?= =?UTF-8?q?=E5=9C=A8=E5=89=8D=E7=AB=AF=E5=88=87=E6=8D=A2=E6=88=90=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../display/trainingDesign/draftTrainingList.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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});