Просмотр исходного кода

feat(pptEasy): 添加投票工具类型78的处理逻辑

当工具类型为78时,初始化投票相关数据并调用addVote方法
lsc 2 дней назад
Родитель
Сommit
d895d3db25
1 измененных файлов с 18 добавлено и 0 удалено
  1. 18 0
      src/components/pages/pptEasy/addCourse3.vue

+ 18 - 0
src/components/pages/pptEasy/addCourse3.vue

@@ -2641,6 +2641,24 @@ export default {
          this.addTest()
         // this.dialogVisibleChoice = true;
         // this.$message.info("添加选择题");
+      }else if (tool == 78) {
+        this.testJsonName = "";
+        this.testJsonBrief = "";
+        this.testJson = {
+          testCount: 1,
+          testTitle: "",
+          testJson: [
+            {
+              teststitle: "",
+              testItem: 1,
+              checkList: [],
+              timuList: [],
+              answer: [],
+              type: "1"
+            }
+          ]
+        };
+         this.addVote()
       } else if (tool == 15) {
         this.answerQ = "";
         this.addAnswer();