From 0f5185702bfa053b0386e29ebb0c422602161a45 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 3 Jun 2020 15:28:57 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../competitionManage/competition/index.vue | 2 +-
src/views/competitionManage/generatePaper.vue | 19 ++++++++---
.../competitionManage/operateQuestion.vue | 34 +++++++++----------
3 files changed, 32 insertions(+), 23 deletions(-)
diff --git a/src/views/competitionManage/competition/index.vue b/src/views/competitionManage/competition/index.vue
index eb02095ac..9054b4414 100644
--- a/src/views/competitionManage/competition/index.vue
+++ b/src/views/competitionManage/competition/index.vue
@@ -174,7 +174,7 @@ export default {
});
},
generatePaper(index, row) {
- this.$router.push({ path: `/design/race/generate`, query: {raceId:row.id} });
+ this.$router.push({ path: `/design/race/generate`, query: {raceId:row.id, mapId: row.mapId} });
}
}
};
diff --git a/src/views/competitionManage/generatePaper.vue b/src/views/competitionManage/generatePaper.vue
index f8abc9cb3..451dce225 100644
--- a/src/views/competitionManage/generatePaper.vue
+++ b/src/views/competitionManage/generatePaper.vue
@@ -56,8 +56,16 @@
:summary-method="getSummaries"
:show-summary="showSummary"
>
-
-
+
+
+ {{ scope.row.question.name }}
+
+
+
+
+ {{ scope.row.question.description }}
+
+
{{ scope.row.score }}
@@ -127,12 +135,13 @@ export default {
}
},
addOperateQuestionList(row) {
- if (this.operateQuestionList.length) {
+ const length = this.operateQuestionList.length;
+ if (length) {
this.operateIndexList.push(row.id);
- this.operateQuestionList.push(row);
+ this.operateQuestionList.push({id:length + 1, score:0, question: row});
} else {
this.operateIndexList = [row.id];
- this.operateQuestionList = [row];
+ this.operateQuestionList = [{id:1, score:0, question: row}];
}
},
addTheoryQuestion() {
diff --git a/src/views/competitionManage/operateQuestion.vue b/src/views/competitionManage/operateQuestion.vue
index 9c1f017b9..59954af9f 100644
--- a/src/views/competitionManage/operateQuestion.vue
+++ b/src/views/competitionManage/operateQuestion.vue
@@ -6,6 +6,7 @@