李志伟 vor 3 Jahren
Ursprung
Commit
f82fd6bfb5
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 1
    2
      src/components/Question/index.vue
  2. 2
    0
      src/views/questionnaire/edit.vue

+ 1
- 2
src/components/Question/index.vue Datei anzeigen

@@ -65,7 +65,7 @@ export default {
65 65
     }
66 66
   },
67 67
   watch: {
68
-    gameId: {
68
+    queId: {
69 69
       handler(val) {
70 70
         if (val) {
71 71
           this.onSearch()
@@ -84,7 +84,6 @@ export default {
84 84
       this.tableData.map((item, index) => {
85 85
         sortList.push({ sortNo: index, serialNo: item.questionId })
86 86
       })
87
-      // UpdateQuestionSort(sortList, this.gameId)
88 87
     },
89 88
     handleSizeChange(val) {
90 89
       this.pageSize = val

+ 2
- 0
src/views/questionnaire/edit.vue Datei anzeigen

@@ -16,6 +16,7 @@
16 16
         <el-row :gutter="20" style="padding-top: 20px">
17 17
           <el-col :span="12">
18 18
             <Question
19
+              v-if="queId"
19 20
               ref="Question"
20 21
               :que-id="queId"
21 22
               @handleAddQuestion="questionId = ''"
@@ -25,6 +26,7 @@
25 26
           </el-col>
26 27
           <el-col :span="12">
27 28
             <QuestionEdit
29
+              v-if="queId"
28 30
               :question-id="questionId"
29 31
               :que-id="queId"
30 32
               @handleRefreshQuestion="handleRefreshQuestion"