刘洋 1 ano atrás
pai
commit
f780ee670d

+ 4 - 4
src/modules/question/components/GptQuestionDialog.vue

@@ -126,13 +126,13 @@
         </div> -->
 
         <div class="icon-btn-group">
+          <svg-btn name="jiarutiku" :disabled="loading" @click="toSaveQuestion"
+            >加入题库</svg-btn
+          >
           <svg-btn
-            name="jiarutiku"
+            name="shanchu"
             :disabled="loading"
             @click="toBatchDeleteQuestion"
-            >加入题库</svg-btn
-          >
-          <svg-btn name="shanchu" :disabled="loading" @click="toSaveQuestion"
             >删除</svg-btn
           >
         </div>

+ 1 - 0
src/modules/question/components/import-edit/TextAnswerQuestion.vue

@@ -169,6 +169,7 @@ export default {
     },
     getData() {
       let data = Object.assign({}, this.question, this.modalForm);
+      console.log("data", data);
       data.quesAnswer = JSON.stringify(data.quesAnswer);
       data.answerAnalysis =
         data.answerAnalysis && data.answerAnalysis?.length

+ 12 - 6
src/modules/question/views/QuestionTypeStatistics/index.vue

@@ -22,7 +22,7 @@
           </el-tab-pane>
           <el-tab-pane label="蓝图分布" name="blue">
             <div>
-              <el-form v-if="curType === 'blue'">
+              <!-- <el-form v-if="curType === 'blue'">
                 <el-form-item label="可选属性">
                   <el-select v-model="curProperty" @change="propertyChange">
                     <el-option
@@ -33,7 +33,7 @@
                     ></el-option>
                   </el-select>
                 </el-form-item>
-              </el-form>
+              </el-form> -->
               <el-table
                 v-if="curType === 'blue'"
                 key="blue"
@@ -111,15 +111,21 @@ export default {
     this.courseId = this.$route.query.courseId;
     this.courseName = this.$route.query.courseName;
     this.filter.courseId = this.$route.query.courseId;
+    this.getData();
+  },
+  watch: {
+    curType() {
+      this.getData();
+    },
   },
   methods: {
     goBack() {
       this.$router.back();
     },
-    toSwitch(item) {
-      this.curType = item.code;
-      this.getData();
-    },
+    // toSwitch(item) {
+    //   this.curType = item.code;
+    //   this.getData();
+    // },
     spanMethod({ row, columnIndex }) {
       if (columnIndex === 0) {
         return {