瀏覽代碼

问卷调查

李志伟 3 年之前
父節點
當前提交
f82fd6bfb5
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. 1
    2
      src/components/Question/index.vue
  2. 2
    0
      src/views/questionnaire/edit.vue

+ 1
- 2
src/components/Question/index.vue 查看文件

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

+ 2
- 0
src/views/questionnaire/edit.vue 查看文件

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