From ed46bb20a6d76f51c25457e9ca167a7ca9e0594f Mon Sep 17 00:00:00 2001
From: joylink_cuiweidong <364937672@qq.com>
Date: Fri, 16 Oct 2020 17:28:06 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E5=AE=9E=E6=93=8D?=
=?UTF-8?q?=E7=BB=93=E6=9E=9C=E9=A1=B5=E9=9D=A2=E4=BB=A3=E7=A0=81=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../newMap/displayNew/dispatherContest/index.vue | 6 ++----
.../displayNew/dispatherContest/sceneList.vue | 8 +++-----
.../displayNew/dispatherContest/testResult.vue | 15 ++++++---------
3 files changed, 11 insertions(+), 18 deletions(-)
diff --git a/src/views/newMap/displayNew/dispatherContest/index.vue b/src/views/newMap/displayNew/dispatherContest/index.vue
index da24e692f..c156b3d0c 100644
--- a/src/views/newMap/displayNew/dispatherContest/index.vue
+++ b/src/views/newMap/displayNew/dispatherContest/index.vue
@@ -170,7 +170,6 @@ export default {
scriptMode: ScriptMode.TEACH,
mapLocation:{},
playerList:[],
- actionList:[],
currentPlayList:[],
// formatUsedTime:'',
formatScore:0,
@@ -454,12 +453,11 @@ export default {
// this.$refs.menuScript.initLoadPage();
// }
},
- selectScript({playerList, mapLocation, actionList}) {
+ selectScript({playerList, mapLocation}) {
this.changeScriptMode(this.scriptMode);
this.isScriptLoad = true;
this.playerList = playerList;
this.mapLocation = mapLocation;
- this.actionList = actionList;
this.userRole = 'AUDIENCE';
this.$store.dispatch('training/setRoles', 'AUDIENCE');
},
@@ -474,7 +472,7 @@ export default {
this.showResultData(data);
},
showResultData(data) {
- this.$refs.testResult.doShow({data:data, actionList:this.actionList});
+ this.$refs.testResult.doShow({data:data});
},
endTraining() {
competitionPracticalSceneFinish(this.group, {operationStatisticVO:{}}).then(res=>{
diff --git a/src/views/newMap/displayNew/dispatherContest/sceneList.vue b/src/views/newMap/displayNew/dispatherContest/sceneList.vue
index cb195b5ca..ca01dc10f 100644
--- a/src/views/newMap/displayNew/dispatherContest/sceneList.vue
+++ b/src/views/newMap/displayNew/dispatherContest/sceneList.vue
@@ -120,7 +120,6 @@ export default {
const playerList = [];
EventBus.$emit('clearRunSeries');
EventBus.$emit('loadScene');
- const actionList = {};
if (res.data.memberList && res.data.memberList.length > 0) {
this.form.type = '';
res.data.memberList.sort((a, b) => {
@@ -129,7 +128,6 @@ export default {
this.$store.dispatch('training/setMemberList', {memberList:res.data.memberList, userId:this.$store.state.user.id});
const activeMemberList = [];
res.data.actionList.forEach((activeMember)=>{
- actionList[activeMember.id] = activeMember;
if (!(activeMemberList.length > 0 && activeMemberList.includes(activeMember.memberId))) {
activeMemberList.push(activeMember.memberId);
}
@@ -179,14 +177,14 @@ export default {
if (res.data.mapLocation) {
this.mapLocation = res.data.mapLocation;
}
- this.confirm(playerList, actionList);
+ this.confirm(playerList);
}
}
},
- confirm(playerList, actionList) {
+ confirm(playerList) {
// this.$store.dispatch('training/setScriptOperationType', this.operationType);
// operationType:ScriptMode[this.operationType]
- this.$emit('selectScript', {playerList:playerList, mapLocation:this.mapLocation, actionList:actionList});
+ this.$emit('selectScript', {playerList:playerList, mapLocation:this.mapLocation});
this.doClose();
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
diff --git a/src/views/newMap/displayNew/dispatherContest/testResult.vue b/src/views/newMap/displayNew/dispatherContest/testResult.vue
index 915ac66cf..de73f1d6e 100644
--- a/src/views/newMap/displayNew/dispatherContest/testResult.vue
+++ b/src/views/newMap/displayNew/dispatherContest/testResult.vue
@@ -20,7 +20,7 @@