zhangjie %!s(int64=2) %!d(string=hai) anos
pai
achega
6afb38c105

+ 1 - 1
src/assets/styles/pages.scss

@@ -1011,7 +1011,7 @@
     justify-content: space-between;
     align-items: center;
     padding-right: 22px;
-    padding-left: 10px;
+    padding-left: 6px;
     background-color: $--color-background;
     border-radius: 4px;
 

+ 1 - 4
src/modules/paper/components/BuildPaperManual.vue

@@ -21,9 +21,6 @@
           <h3>
             {{ dindex + 1 }}、{{ detail.name }}(题目数量
             <span class="color-primary">{{ detail.questions.length }}</span
-            >,每题分数<span class="color-primary">{{
-              detail.scorePerQuestion
-            }}</span
             >)
           </h3>
           <div>
@@ -162,7 +159,7 @@ export default {
     toRemoveQuestion(question) {
       this.details.forEach((detail) => {
         const qindex = detail.questions.findIndex((q) => q.id === question.id);
-        if (qindex !== -1) detail.splice(qindex, 1);
+        if (qindex !== -1) detail.questions.splice(qindex, 1);
       });
     },
   },

+ 3 - 3
src/modules/paper/components/BuildPaperQuestionNested.vue

@@ -86,7 +86,7 @@ export default {
         this.quesBody = deepCopy(this.question.quesBody);
         this.quesBody.sections[0].blocks.unshift({
           type: "text",
-          value: this.questionSerialno,
+          value: this.questionSerialno + "、",
         });
       } else {
         this.quesBody = {
@@ -95,7 +95,7 @@ export default {
               blocks: [
                 {
                   type: "text",
-                  value: this.questionSerialno,
+                  value: this.questionSerialno + "、",
                 },
               ],
             },
@@ -107,7 +107,7 @@ export default {
   methods: {
     scoreChange() {
       // 这里通过引用关系直接修改了小题分值
-      this.question.subQuestion.forEach((subq) => {
+      this.question.subQuestions.forEach((subq) => {
         subq.score = this.score;
       });
     },

+ 36 - 0
src/modules/paper/datas/details.json

@@ -10,6 +10,7 @@
         "id": "000001",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_2",
@@ -106,6 +107,7 @@
         "id": "000002",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_2",
@@ -202,6 +204,7 @@
         "id": "000003",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_2",
@@ -307,6 +310,7 @@
         "id": "100001",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_4_5",
@@ -422,6 +426,7 @@
         "id": "100002",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_4_5",
@@ -537,6 +542,7 @@
         "id": "100003",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_4_5",
@@ -661,6 +667,7 @@
         "id": "200001",
         "courseId": 2,
         "difficulty": "中",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_2",
@@ -703,6 +710,7 @@
         "id": "200002",
         "courseId": 2,
         "difficulty": "中",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_2",
@@ -745,6 +753,7 @@
         "id": "200003",
         "courseId": 2,
         "difficulty": "中",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_2",
@@ -787,6 +796,7 @@
         "id": "200004",
         "courseId": 2,
         "difficulty": "中",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_2",
@@ -829,6 +839,7 @@
         "id": "200005",
         "courseId": 2,
         "difficulty": "中",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_2",
@@ -880,6 +891,7 @@
         "id": "400001",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_4_5",
@@ -940,6 +952,7 @@
         "id": "400002",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_4_5",
@@ -1009,6 +1022,7 @@
         "id": "500001",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_3",
@@ -1051,6 +1065,7 @@
         "id": "500002",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [
           {
             "key": "1_1_3",
@@ -1102,6 +1117,7 @@
         "id": "600001",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [],
         "questionType": "READING_COMPREHENSION",
         "quesBody": {
@@ -1150,6 +1166,7 @@
             "id": "60000101",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [
               {
                 "key": "1_1_2",
@@ -1258,6 +1275,7 @@
             "id": "60000102",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [
               {
                 "key": "1_1_3",
@@ -1358,6 +1376,7 @@
             "id": "60000103",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [
               {
                 "key": "1_4_5",
@@ -1388,6 +1407,7 @@
             "id": "60000104",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [
               {
                 "key": "1_1_2",
@@ -1428,6 +1448,7 @@
             "id": "60000105",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "TEXT_ANSWER_QUESTION",
             "quesBody": {
@@ -1461,6 +1482,7 @@
         "id": "700001",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [],
         "questionType": "CLOZE",
         "quesBody": {
@@ -1521,6 +1543,7 @@
             "id": "70000101",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [
               {
                 "key": "1_1_2",
@@ -1617,6 +1640,7 @@
             "id": "70000102",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": {
@@ -1714,6 +1738,7 @@
             "id": "70000103",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": {
@@ -1813,6 +1838,7 @@
         "id": "800001",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [],
         "questionType": "PARAGRAPH_MATCHING",
         "quesBody": {
@@ -1843,6 +1869,7 @@
             "id": "80000101",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": {
@@ -1866,6 +1893,7 @@
             "id": "80000102",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": {
@@ -1898,6 +1926,7 @@
             "id": "80000103",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": {
@@ -1930,6 +1959,7 @@
             "id": "80000104",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": {
@@ -2095,6 +2125,7 @@
         "id": "900001",
         "courseId": 2,
         "difficulty": "易",
+        "score": 1,
         "quesProperties": [],
         "questionType": "BANKED_CLOZE",
         "quesBody": {
@@ -2175,6 +2206,7 @@
             "id": "90000101",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": null,
@@ -2186,6 +2218,7 @@
             "id": "90000102",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": null,
@@ -2197,6 +2230,7 @@
             "id": "90000103",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": null,
@@ -2208,6 +2242,7 @@
             "id": "90000104",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": null,
@@ -2219,6 +2254,7 @@
             "id": "90000105",
             "courseId": 2,
             "difficulty": "易",
+            "score": 1,
             "quesProperties": [],
             "questionType": "SINGLE_ANSWER_QUESTION",
             "quesBody": null,