Browse Source

删除提示

natasha 2 years ago
parent
commit
19d15d0203
49 changed files with 1408 additions and 897 deletions
  1. 2 1
      src/common/font/font.css
  2. BIN
      src/common/font/pinyinRlc.ttf
  3. 12 5
      src/components/Adult/common/ImageQuestionModule.vue
  4. 27 7
      src/components/Adult/common/SentenceModule.vue
  5. 9 2
      src/components/Adult/common/Upload.vue
  6. 4 4
      src/components/Adult/common/UploadArt.vue
  7. 9 2
      src/components/Adult/common/UploadVideo.vue
  8. 34 1
      src/components/Adult/common/UploadView.vue
  9. 5 5
      src/components/Adult/common/data.js
  10. 8 1
      src/components/Adult/inputModules/ Engineaudio.vue
  11. 12 5
      src/components/Adult/inputModules/ArticleTemChs/components/ParagraphChs.vue
  12. 8 1
      src/components/Adult/inputModules/ArticleTemChs/index.vue
  13. 12 5
      src/components/Adult/inputModules/AudioControl.vue
  14. 24 10
      src/components/Adult/inputModules/ConfigurableTable/index.vue
  15. 13 6
      src/components/Adult/inputModules/Dialogue.vue
  16. 16 2
      src/components/Adult/inputModules/DialogueAnswerChs/Wordcard.vue
  17. 9 2
      src/components/Adult/inputModules/DialogueAnswerChs/index.vue
  18. 12 5
      src/components/Adult/inputModules/DialogueArticleChs/components/ParagraphChs.vue
  19. 8 1
      src/components/Adult/inputModules/DialogueArticleChs/index.vue
  20. 12 5
      src/components/Adult/inputModules/DialogueTem/components/ParagraphChs.vue
  21. 32 11
      src/components/Adult/inputModules/Drag.vue
  22. 8 1
      src/components/Adult/inputModules/FillDrag.vue
  23. 22 8
      src/components/Adult/inputModules/HeaderSeparate/index.vue
  24. 12 5
      src/components/Adult/inputModules/ImageQuestion.vue
  25. 12 5
      src/components/Adult/inputModules/InputRecord.vue
  26. 12 5
      src/components/Adult/inputModules/MultiRowInput.vue
  27. 20 6
      src/components/Adult/inputModules/Neword.vue
  28. 12 5
      src/components/Adult/inputModules/Notes.vue
  29. 12 5
      src/components/Adult/inputModules/NumberCombination.vue
  30. 14 7
      src/components/Adult/inputModules/OptionsList.vue
  31. 12 5
      src/components/Adult/inputModules/Picture.vue
  32. 12 5
      src/components/Adult/inputModules/PlayInputReacord.vue
  33. 20 13
      src/components/Adult/inputModules/PurePreview.vue
  34. 12 5
      src/components/Adult/inputModules/Record.vue
  35. 24 3
      src/components/Adult/inputModules/SelectDrag.vue
  36. 36 15
      src/components/Adult/inputModules/SelectInpue.vue
  37. 12 5
      src/components/Adult/inputModules/SelfAssessment.vue
  38. 12 5
      src/components/Adult/inputModules/Sentence.vue
  39. 52 17
      src/components/Adult/inputModules/SentenceModule.vue
  40. 24 10
      src/components/Adult/inputModules/Single.vue
  41. 12 6
      src/components/Adult/inputModules/Sort.vue
  42. 68 40
      src/components/Adult/inputModules/Table.vue
  43. 12 5
      src/components/Adult/inputModules/TextItem.vue
  44. 12 5
      src/components/Adult/inputModules/ToneSelect.vue
  45. 8 1
      src/components/Adult/inputModules/VoiceMatrix.vue
  46. 7 1
      src/components/Adult/preview/TextInputRecord.vue
  47. 1 1
      src/components/common/Upload.vue
  48. 645 627
      src/views/adultInput.vue
  49. 35 0
      src/views/courseList.vue

+ 2 - 1
src/common/font/font.css

@@ -7,8 +7,9 @@
 
 @font-face {
     font-family: 'GB-PINYINOK-B';
-    src: url('GB PINYINOK-B.TTF');
+    src: url('pinyinRlc.ttf');
 }
+
 @font-face {
     font-family: 'iconFont';
     src: url('iconfont.woff');

BIN
src/common/font/pinyinRlc.ttf


+ 12 - 5
src/components/Adult/common/ImageQuestionModule.vue

@@ -166,11 +166,18 @@ export default {
     },
     // 删除答案
     delAnswer(ansIndex) {
-      if (this.curQueItem.answer.length <= 1) {
-        this.$message.warning("至少要保留一个");
-        return;
-      }
-      this.curQueItem.answer.splice(ansIndex, 1);
+      this.$confirm("确定要删除此条答案吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+        if (this.curQueItem.answer.length <= 1) {
+            this.$message.warning("至少要保留一个");
+            return;
+        }
+        this.curQueItem.answer.splice(ansIndex, 1);
+      })
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 27 - 7
src/components/Adult/common/SentenceModule.vue

@@ -62,6 +62,19 @@
         show-word-limit
       ></el-input>
     </div>
+    <div
+      class="adult-book-input-item"
+      v-if="
+        type == 'sentence_listen_read_chs' || type == 'recordHZ_inputPY_chs'
+      "
+    >
+      <span class="adult-book-lable">内容字体:</span>
+      <el-radio-group v-model="curQueItem.font">
+        <el-radio label="cn">中文字体</el-radio>
+        <el-radio label="en">英文字体</el-radio>
+        <el-radio label="py">拼音字体</el-radio>
+      </el-radio-group>
+    </div>
     <div class="adult-book-input-item" v-if="type == 'recordHZ_inputPY_chs'">
       <span class="adult-book-lable"></span>
       <span v-if="curQue.wordTime.length > 0" class="lrc">
@@ -91,8 +104,8 @@
         type == 'sentence_listen_read_chs' || type == 'recordHZ_inputPY_chs'
       "
     >
-      <span class="adult-book-lable">字体:</span>
-      <el-radio-group v-model="curQueItem.font">
+      <span class="adult-book-lable">输入字体:</span>
+      <el-radio-group v-model="curQueItem.Inputfont">
         <el-radio label="cn">中文字体</el-radio>
         <el-radio label="en">英文字体</el-radio>
         <el-radio label="py">拼音字体</el-radio>
@@ -274,11 +287,18 @@ export default {
       this.curQueItem.answer.push("");
     },
     delAnswer(ansIndex) {
-      if (this.curQueItem.answer.length <= 1) {
-        this.$message.warning("至少要保留一个");
-        return;
-      }
-      this.curQueItem.answer.splice(ansIndex, 1);
+        this.$confirm("确定要删除此条答案吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            if (this.curQueItem.answer.length <= 1) {
+                this.$message.warning("至少要保留一个");
+                return;
+            }
+            this.curQueItem.answer.splice(ansIndex, 1);
+        })
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 9 - 2
src/components/Adult/common/Upload.vue

@@ -3,7 +3,7 @@
   <div class="upload">
     <el-upload
       :accept="accept"
-      style="width: 300px"
+      style="width: 500px"
       class="upload-demo"
       :action="url"
       :on-preview="handlePreview"
@@ -23,7 +23,7 @@
         style="display: inline; padding-left: 30px"
         class="el-upload__tip"
       >
-        {{ uploadName }}
+        {{ uploadTip }}
       </div>
     </el-upload>
     <!-- <div class="zhezhao" v-loading.fullscreen.lock="fullscreenLoading"></div> -->
@@ -51,6 +51,7 @@ export default {
       accept: "",
       fileTypeName: "",
       uploadName: "",
+      uploadTip:"",
       loading: false,
     };
   },
@@ -170,31 +171,37 @@ export default {
           this.accept = "image/*";
           this.fileTypeName = "图片";
           this.uploadName = name + "图片";
+          this.uploadTip = "只能上传.jpg, .jpeg, .png文件,大小不超过2MB"
           break;
         case "mp3":
           this.accept = "audio/*";
           this.fileTypeName = "音频";
           this.uploadName = name + "音频";
+          this.uploadTip = "只能上传音频文件,大小不超过20MB"
           break;
         case "mp4":
           this.accept = "video/*";
           this.fileTypeName = "视频";
           this.uploadName = name + "视频";
+          this.uploadTip = "只能上传视频文件,大小不超过500MB"
           break;
         case "pdf":
           this.accept = ".pdf";
           this.fileTypeName = "pdf";
           this.uploadName = name + "pdf";
+          this.uploadTip = "只能上传pdf文件,大小不超过20MB"
           break;
         case "xls":
           this.accept = ".xls,.xlsx";
           this.fileTypeName = "表格";
           this.uploadName = name + "表格";
+          this.uploadTip = "只能上传excel文件,大小不超过20MB"
           break;
         case "lrc":
           this.accept = ".lrc";
           this.fileTypeName = "lrc";
           this.uploadName = name + "lrc";
+          this.uploadTip = "只能上传lrc文件,大小不超过20MB"
           break;
 
         default:

+ 4 - 4
src/components/Adult/common/UploadArt.vue

@@ -4,7 +4,7 @@
     <el-upload
       ref="artUpload"
       :accept="accept"
-      style="width: 300px"
+      style="width: 500px"
       class="upload-demo"
       :action="url"
       :on-preview="handlePreview"
@@ -26,10 +26,10 @@
       >
         {{
           uploadType == "image"
-            ? "只能上传图片"
+            ? "只能上传.jpg, .jpeg, .png文件,大小不超过2MB"
             : uploadType == "mp3"
-            ? "只能上传音频"
-            : "只能上传pdf"
+            ? "只能上传音频文件,大小不超过20MB"
+            : "只能上传pdf文件,大小不超过20MB"
         }}
       </div>
     </el-upload>

+ 9 - 2
src/components/Adult/common/UploadVideo.vue

@@ -3,7 +3,7 @@
   <div class="upload">
     <el-upload
       :accept="accept"
-      style="width: 300px"
+      style="width: 500px"
       class="upload-demo"
       :action="url"
       :on-preview="handlePreview"
@@ -23,7 +23,7 @@
         style="display: inline; padding-left: 30px"
         class="el-upload__tip"
       >
-        {{ uploadName }}
+        {{ uploadTip }}
       </div>
     </el-upload>
     <!-- <div class="zhezhao" v-loading.fullscreen.lock="fullscreenLoading"></div> -->
@@ -50,6 +50,7 @@ export default {
       accept: "",
       fileTypeName: "",
       uploadName: "",
+      uploadTip:"",
       loading: false,
     };
   },
@@ -155,32 +156,38 @@ export default {
           this.accept = "image/*";
           this.fileTypeName = "图片";
           this.uploadName = name + "图片";
+          this.uploadTip = "只能上传.jpg, .jpeg, .png文件,大小不超过2MB"
           break;
         case "mp3":
           this.accept = "audio/*";
           this.fileTypeName = "音频";
           this.uploadName = name + "音频";
+          this.uploadTip = "只能上传音频文件,大小不超过20MB"
           break;
         case "pdf":
           this.accept = ".pdf";
           this.fileTypeName = "pdf";
           this.uploadName = name + "pdf";
+          this.uploadTip = "只能上传pdf文件,大小不超过20MB"
           break;
         case "xls":
           this.accept = ".xls,.xlsx";
           this.fileTypeName = "表格";
           this.uploadName = name + "表格";
+          this.uploadTip = "只能上传excel文件,大小不超过20MB"
           break;
         case "lrc":
           this.accept = ".lrc";
           this.fileTypeName = "lrc";
           this.uploadName = name + "lrc";
+          this.uploadTip = "只能上传lrc文件,大小不超过20MB"
           break;
 
         default:
           this.accept = "*";
           this.fileTypeName = "文件";
           this.uploadName = "";
+          this.uploadTip = ""
           break;
       }
     },

+ 34 - 1
src/components/Adult/common/UploadView.vue

@@ -25,6 +25,13 @@
         />
         上传文件
       </div>
+      <div
+        slot="tip"
+        style="display: inline; padding-left: 30px"
+        class="el-upload__tip"
+      >
+        {{ uploadTip }}
+      </div>
     </el-upload>
     <!-- <div class="zhezhao" v-loading.fullscreen.lock="fullscreenLoading"></div> -->
   </div>
@@ -52,6 +59,7 @@ export default {
       fileTypeName: "",
       loading: false,
       showList: false,
+      uploadTip:"上传图片大小不超过2MB,上传音频文件、pdf文件、excel文件大小不超过20MB,上传音频文件大小不超过20MB",
     };
   },
   computed: {
@@ -176,7 +184,32 @@ export default {
         } 个文件`
       );
     },
-    initUpload() {},
+    initUpload() {
+      switch (this.accept) {
+        case ".jpg, .jpeg, .png":
+          this.uploadTip = "只能上传.jpg, .jpeg, .png文件,大小不超过2MB"
+          break;
+        case "audio/*":
+          this.uploadTip = "只能上传音频文件,大小不超过20MB"
+          break;
+        case "video/*":
+          this.uploadTip = "只能上传视频文件,大小不超过500MB"
+          break;
+        case ".pdf":
+          this.uploadTip = "只能上传pdf文件,大小不超过20MB"
+          break;
+        case ".xls, .xlsx":
+          this.uploadTip = "只能上传excel文件,大小不超过20MB"
+          break;
+        case ".lrc":
+          this.uploadTip = "只能上传lrc文件,大小不超过20MB"
+          break;
+
+        default:
+          this.uploadName = "";
+          break;
+      }
+    },
   }, // 如果页面有keep-alive缓存功能,这个函数会触发
 };
 </script>

+ 5 - 5
src/components/Adult/common/data.js

@@ -20,7 +20,7 @@ let fnData = [{
     },
     {
         type: "dialogue_answer_chs",
-        name: "对话题模板"
+        name: "对话练习"
     },
     {
         type: "sentence_chs",
@@ -117,7 +117,7 @@ let fnData = [{
     // },
     {
         type: "checkbox_self_assessment_chs",
-        name: "自我评估"
+        name: "多选题"
     },
     // {
     //     type: "judge",
@@ -317,7 +317,7 @@ let fnData = [{
     // },
     {
         type: "input_record_chs",
-        name: "输入+录音"
+        name: "问答题"
     },
     {
         type: "recordHZ_inputPY_chs",
@@ -585,7 +585,7 @@ let fnData = [{
     // },
     {
         type: "ligature_chs",
-        name: "连线"
+        name: "连线"
     },
     // {
     //     type: "record",
@@ -741,7 +741,7 @@ let fnData = [{
     },
     {
         type: "play_record_chs",
-        name: "播放音频控件"
+        name: "音频控件"
     },
     {
         type: "upload_pdf_chs",

+ 8 - 1
src/components/Adult/inputModules/ Engineaudio.vue

@@ -67,7 +67,14 @@ export default {
     },
     //删除生成的mp3
     delMp3() {
-      this.curQue.mp3_list.splice(0, 1);
+      this.$confirm("确定要删除吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            this.curQue.mp3_list.splice(0, 1);
+        })
     },
     // 得到文件流
     getfillLiu() {

+ 12 - 5
src/components/Adult/inputModules/ArticleTemChs/components/ParagraphChs.vue

@@ -97,11 +97,18 @@ export default {
     },
 
     deleteOption(index) {
-      if (index == 0) {
-        this.$message.warning("不能全部删除");
-        return;
-      }
-      this.curQue.detail.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (index == 0) {
+                this.$message.warning("不能全部删除");
+                return;
+            }
+            this.curQue.detail.splice(index, 1);
+        })
     },
     addOption() {
       let leg = this.curQue.detail.length;

+ 8 - 1
src/components/Adult/inputModules/ArticleTemChs/index.vue

@@ -308,7 +308,14 @@ export default {
     },
     //删除生成的mp3
     delMp3() {
-      this.curQue.mp3_list.splice(0, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.mp3_list.splice(0, 1);
+        })
     },
     // 保存校对
     saveCompare() {

+ 12 - 5
src/components/Adult/inputModules/AudioControl.vue

@@ -50,11 +50,18 @@ export default {
       this.curQue.option.push(obj);
     },
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留一个");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+      this.$confirm("确定要删除吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留一个");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 24 - 10
src/components/Adult/inputModules/ConfigurableTable/index.vue

@@ -233,14 +233,21 @@ export default {
       this.curQue.tableData.colsConfig.width.push({ val: 100 });
     },
     deleteCol(k) {
-      if (this.cols <= 1) return this.$message.warning("必须留一列");
-      this.curQue.tableData.body.forEach(({ content }) => {
-        content.splice(k, 1);
-      });
-      this.curQue.tableData.headers.forEach(({ content }) => {
-        content.splice(k, 1);
-      });
-      this.curQue.tableData.colsConfig.width.splice(k, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.cols <= 1) return this.$message.warning("必须留一列");
+            this.curQue.tableData.body.forEach(({ content }) => {
+                content.splice(k, 1);
+            });
+            this.curQue.tableData.headers.forEach(({ content }) => {
+                content.splice(k, 1);
+            });
+            this.curQue.tableData.colsConfig.width.splice(k, 1);
+        })
     },
 
     addRow() {
@@ -266,8 +273,15 @@ export default {
       });
     },
     deleteRow(i) {
-      if (this.rows <= 1) return this.$message.warning("必须留一行");
-      this.curQue.tableData.body.splice(i, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.rows <= 1) return this.$message.warning("必须留一行");
+            this.curQue.tableData.body.splice(i, 1);
+        })
     }
   }
 };

+ 13 - 6
src/components/Adult/inputModules/Dialogue.vue

@@ -105,12 +105,19 @@ export default {
     },
     // 删除其中一个选项
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 2) {
-        this.$message.warning("至少要保留两个角色");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
-      this.curQue.correct[0].input.splice(index, 1);
+      this.$confirm("确定要删除吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            if (this.curQue.option.length <= 2) {
+                this.$message.warning("至少要保留两个角色");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+            this.curQue.correct[0].input.splice(index, 1);
+        })
     },
     // 新增选项
     addOption() {

+ 16 - 2
src/components/Adult/inputModules/DialogueAnswerChs/Wordcard.vue

@@ -105,10 +105,24 @@ export default {
       item.push(JSON.parse(JSON.stringify(con)));
     },
     delsItem(index) {
-      this.curQue.wordcardList.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.wordcardList.splice(index, 1);
+        })
     },
     delword(sItem, sIndex) {
-      sItem.splice(sIndex, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            sItem.splice(sIndex, 1);
+        })
     },
     // 点击生成拼音
     getPinyin(item) {

+ 9 - 2
src/components/Adult/inputModules/DialogueAnswerChs/index.vue

@@ -244,8 +244,15 @@ export default {
       this.curQue.option.push(objOption);
     },
     delDialogue(index) {
-      this.curQue.list.splice(index, 1);
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.list.splice(index, 1);
+            this.curQue.option.splice(index, 1);
+        })
     },
     initCurQueData() {
       let res_data = JSON.parse(JSON.stringify(this.data_structure));

+ 12 - 5
src/components/Adult/inputModules/DialogueArticleChs/components/ParagraphChs.vue

@@ -174,11 +174,18 @@ export default {
     },
 
     deleteOption(index) {
-      if (index == 0) {
-        this.$message.warning("不能全部删除");
-        return;
-      }
-      this.curQue.detail.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            if (index == 0) {
+                this.$message.warning("不能全部删除");
+                return;
+            }
+            this.curQue.detail.splice(index, 1);
+        })
     },
     addOption() {
       let leg = this.curQue.detail.length;

+ 8 - 1
src/components/Adult/inputModules/DialogueArticleChs/index.vue

@@ -410,7 +410,14 @@ export default {
     },
     //删除生成的mp3
     delMp3() {
-      this.curQue.mp3_list.splice(0, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            this.curQue.mp3_list.splice(0, 1);
+        })
     },
     // 保存校对
     saveCompare() {

+ 12 - 5
src/components/Adult/inputModules/DialogueTem/components/ParagraphChs.vue

@@ -187,11 +187,18 @@ export default {
     },
 
     deleteOption(index) {
-      if (index == 0) {
-        this.$message.warning("不能全部删除");
-        return;
-      }
-      this.curQue.detail.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            if (index == 0) {
+                this.$message.warning("不能全部删除");
+                return;
+            }
+            this.curQue.detail.splice(index, 1);
+        })
     },
     addOption() {
       let leg = this.curQue.detail.length;

+ 32 - 11
src/components/Adult/inputModules/Drag.vue

@@ -182,11 +182,18 @@ export default {
     },
     //   删除选项
     deleteOption(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少保留一个选项");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少保留一个选项");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     // 添加选项
     addOption() {
@@ -200,15 +207,29 @@ export default {
     },
     // 删除问题
     deleteCon(index) {
-      if (this.curQue.con.length <= 1) {
-        this.$message.warning("至少保留一个问题");
-        return;
-      }
-      this.curQue.con.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.con.length <= 1) {
+                this.$message.warning("至少保留一个问题");
+                return;
+            }
+            this.curQue.con.splice(index, 1);
+        })
     },
     // 删除conlist中的一个
     deleteconList(index, listIndex) {
-      this.curQue.con[index].list.splice(listIndex);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.con[index].list.splice(listIndex);
+        })
     },
     // 增加分词
     addFc(index) {

+ 8 - 1
src/components/Adult/inputModules/FillDrag.vue

@@ -78,7 +78,14 @@ export default {
     },
 
     deleteOption(i) {
-      this.curQue.options.splice(i, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.options.splice(i, 1);
+        })
     },
 
     // 填空

+ 22 - 8
src/components/Adult/inputModules/HeaderSeparate/index.vue

@@ -227,12 +227,19 @@ export default {
       this.curQue.tableData.colsConfig.width.push({ val: 100 });
     },
     deleteCol(i) {
-      if (this.cols <= 3) return this.$message.warning("必须留三列");
-      this.curQue.tableData.body.forEach(({ content }) => {
-        content.splice(i, 1);
-      });
-      this.curQue.tableData.headers.splice(i, 1);
-      this.curQue.tableData.colsConfig.width.splice(i, 1);
+        this.$confirm("确定要删除此列吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            if (this.cols <= 3) return this.$message.warning("必须留三列");
+            this.curQue.tableData.body.forEach(({ content }) => {
+                content.splice(i, 1);
+            });
+            this.curQue.tableData.headers.splice(i, 1);
+            this.curQue.tableData.colsConfig.width.splice(i, 1);
+        })
     },
 
     addRow() {
@@ -257,8 +264,15 @@ export default {
       });
     },
     deleteRow(i) {
-      if (this.rows <= 1) return this.$message.warning("必须留一行");
-      this.curQue.tableData.body.splice(i, 1);
+        this.$confirm("确定要删除此行吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            if (this.rows <= 1) return this.$message.warning("必须留一行");
+            this.curQue.tableData.body.splice(i, 1);
+        })
     },
 
     edit(i, j) {

+ 12 - 5
src/components/Adult/inputModules/ImageQuestion.vue

@@ -126,11 +126,18 @@ export default {
     },
     // 删除其中一个选项
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留1个选项");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留1个选项");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     // 新增选项
     addOption() {

+ 12 - 5
src/components/Adult/inputModules/InputRecord.vue

@@ -91,11 +91,18 @@ export default {
       this.curQue.option.push(obj);
     },
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留一个");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留一个");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     initcurQue() {
       let data = JSON.parse(JSON.stringify(this.data_structure));

+ 12 - 5
src/components/Adult/inputModules/MultiRowInput.vue

@@ -76,11 +76,18 @@ export default {
     },
     // 删除其中一个选项
     deleteOptionOne(index) {
-      if (this.curQue.con.length <= 1) {
-        this.$message.warning("至少要保留1个选项");
-        return;
-      }
-      this.curQue.con.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.con.length <= 1) {
+                this.$message.warning("至少要保留1个选项");
+                return;
+            }
+            this.curQue.con.splice(index, 1);
+        })
     },
     // 新增选项
     addOption() {

+ 20 - 6
src/components/Adult/inputModules/Neword.vue

@@ -169,11 +169,18 @@ export default {
       obj.index = this.curQue.option.push(obj);
     },
     deleteGroup(index, sIndex) {
-      if (this.curQue.option[0].length == 1) {
-        this.$message.warning("至少剩余1个,不能全部删除");
-        return;
-      }
-      this.curQue.option[index].splice(sIndex, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option[0].length == 1) {
+                this.$message.warning("至少剩余1个,不能全部删除");
+                return;
+            }
+            this.curQue.option[index].splice(sIndex, 1);
+        })
     },
     saddoption(item) {
       let con = {
@@ -187,7 +194,14 @@ export default {
       item.push(con);
     },
     delsItem(index) {
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.option.splice(index, 1);
+        })
     },
     changeMp3(fileList) {
       const articleImgList = JSON.parse(JSON.stringify(fileList));

+ 12 - 5
src/components/Adult/inputModules/Notes.vue

@@ -132,11 +132,18 @@ export default {
       this.curQue.option.push(obj);
     },
     deleteGroup(index) {
-      if (this.curQue.option.length == 1) {
-        this.$message.warning("至少剩余1个,不能全部删除");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length == 1) {
+                this.$message.warning("至少剩余1个,不能全部删除");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
 
     changeImage(fileList, duration, index) {

+ 12 - 5
src/components/Adult/inputModules/NumberCombination.vue

@@ -88,11 +88,18 @@ export default {
       this.curQue.option.push(obj);
     },
     deleteGroup(index) {
-      if (this.curQue.option.length == 1) {
-        this.$message.warning("至少剩余1个,不能全部删除");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length == 1) {
+                this.$message.warning("至少剩余1个,不能全部删除");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 14 - 7
src/components/Adult/inputModules/OptionsList.vue

@@ -96,13 +96,20 @@ export default {
     },
     // 删除行或者列
     deleteColRow(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning(
-          `至少保留1个选项`
-        );
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning(
+                `至少保留1个选项`
+                );
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     // 新增题
     addWOption(col) {

+ 12 - 5
src/components/Adult/inputModules/Picture.vue

@@ -238,11 +238,18 @@ export default {
       });
     },
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要一个图片模板");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要一个图片模板");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     clearOption(type) {
       let option = JSON.parse(JSON.stringify(this.curQue.option));

+ 12 - 5
src/components/Adult/inputModules/PlayInputReacord.vue

@@ -155,11 +155,18 @@ export default {
     },
     // 删除其中一个选项
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留1个选项");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留1个选项");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     // 新增选项
     addOption() {

+ 20 - 13
src/components/Adult/inputModules/PurePreview.vue

@@ -560,19 +560,26 @@ export default {
     },
     // 删除其中一个选项
     deleteOptionOne(index) {
-      if (this.type == "listen_record_single_syllable_chs") {
-        if (this.curQue.option.length <= 1) {
-          this.$message.warning("至少要保留1个选项");
-          return;
-        }
-        this.curQue.option.splice(index, 1);
-        return;
-      }
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留1个选项");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+      this.$confirm("确定要删除此项吗?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+            if (this.type == "listen_record_single_syllable_chs") {
+                if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留1个选项");
+                return;
+                }
+                this.curQue.option.splice(index, 1);
+                return;
+            }
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留1个选项");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     // 新增选项
     addOption() {

+ 12 - 5
src/components/Adult/inputModules/Record.vue

@@ -56,11 +56,18 @@ export default {
       this.curQue.option.push(obj);
     },
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留一个");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留一个");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 24 - 3
src/components/Adult/inputModules/SelectDrag.vue

@@ -107,7 +107,14 @@ export default {
     },
 
     deleteOption(i) {
-      this.curQue.options.splice(i, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.options.splice(i, 1);
+        })
     },
 
     addSentence() {
@@ -138,11 +145,25 @@ export default {
     },
 
     deleteSentenceSeg(i) {
-      this.curQue.sentences.splice(i, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.sentences.splice(i, 1);
+        })
     },
 
     deleteSegmentation(i, j) {
-      this.curQue.sentences[i].splice(j, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.sentences[i].splice(j, 1);
+        })
     }
   }
 };

+ 36 - 15
src/components/Adult/inputModules/SelectInpue.vue

@@ -147,11 +147,18 @@ export default {
       item[field] = item[field] ? item[field].trim() : "";
     },
     deleteCon(index) {
-      if (this.curQue.con.length <= 1) {
-        this.$message.warning("至少要保留1个内容");
-        return;
-      }
-      this.curQue.con.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.con.length <= 1) {
+                this.$message.warning("至少要保留1个内容");
+                return;
+            }
+            this.curQue.con.splice(index, 1);
+        })
     },
     addCon() {
       let obj = JSON.parse(JSON.stringify(this.data_structure.con[0]));
@@ -159,11 +166,18 @@ export default {
     },
     // 删除其中一个选项
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留1个选项");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留1个选项");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     // 新增选项
     addOption() {
@@ -177,11 +191,18 @@ export default {
     },
     // 删除其中一个答案
     deleteAnswer(index) {
-      if (this.curQue.answer.length <= 1) {
-        this.$message.warning("至少要保留1个答案");
-        return;
-      }
-      this.curQue.answer.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.answer.length <= 1) {
+                this.$message.warning("至少要保留1个答案");
+                return;
+            }
+            this.curQue.answer.splice(index, 1);
+        })
     },
     initcurQue() {
       let data = JSON.parse(JSON.stringify(this.data_structure));

+ 12 - 5
src/components/Adult/inputModules/SelfAssessment.vue

@@ -98,11 +98,18 @@ export default {
     },
     // 删除其中一个选项
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 2) {
-        this.$message.warning("至少要保留两个选项");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 2) {
+                this.$message.warning("至少要保留两个选项");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     //添加一个选项
     addOption(index) {

+ 12 - 5
src/components/Adult/inputModules/Sentence.vue

@@ -409,11 +409,18 @@ export default {
     },
     // 删除其中一个选项
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留1个选项");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留1个选项");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     // 新增选项
     addOption() {

+ 52 - 17
src/components/Adult/inputModules/SentenceModule.vue

@@ -876,14 +876,21 @@ export default {
     },
     // 删除行或者列
     deleteColRow(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning(
-          `至少保留1${this.curQue.sortType == "col" ? "行" : "列"}`
-        );
-        return;
-      }
-      this.curQue.option.splice(index, 1);
-      this.curQue.option = this.changeoptionIndex(this.curQue.option);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning(
+                `至少保留1${this.curQue.sortType == "col" ? "行" : "列"}`
+                );
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+            this.curQue.option = this.changeoptionIndex(this.curQue.option);
+        })
     },
     // 新增题
     addWOption(col) {
@@ -896,12 +903,19 @@ export default {
     },
     // 删除题
     deleteWOptionOne(col, row) {
-      if (this.curQue.option[col].length <= 1) {
-        this.$message.warning("至少要保留1题");
-        return;
-      }
-      this.curQue.option[col].splice(row, 1);
-      this.curQue.option = this.changeoptionIndex(this.curQue.option);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option[col].length <= 1) {
+                this.$message.warning("至少要保留1题");
+                return;
+            }
+            this.curQue.option[col].splice(row, 1);
+            this.curQue.option = this.changeoptionIndex(this.curQue.option);
+        })
     },
     // 给二维的数组每个添加索引
     changeoptionIndex(data) {
@@ -1051,7 +1065,14 @@ export default {
       }
     },
     deleteSelectOption(arr, index) {
-      arr.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            arr.splice(index, 1);
+        })
     },
     //多输入的添加
     plusCD(arr) {
@@ -1063,7 +1084,14 @@ export default {
     },
     //多输入的删除
     deleteCD(arr, index) {
-      arr.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            arr.splice(index, 1);
+        })
     },
     //添加句子
     setOptionDetail(col, row, type, dItem, dIndex) {
@@ -1103,7 +1131,14 @@ export default {
     },
     //删除句子
     deleteOptionDetail(detail, dIndex) {
-      detail.splice(dIndex, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            detail.splice(dIndex, 1);
+        })
     },
     //保存句子
     saveOptionDetail() {

+ 24 - 10
src/components/Adult/inputModules/Single.vue

@@ -347,19 +347,33 @@ export default {
     },
     // 删除其中一道题
     deletetopic(index) {
-      if (this.curQue.length <= 1) {
-        this.$message.warning("至少要保留1个题");
-        return;
-      }
-      this.curQue.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.length <= 1) {
+                this.$message.warning("至少要保留1个题");
+                return;
+            }
+            this.curQue.splice(index, 1);
+        })
     },
     // 删除其中一个选项
     deleteOptionOne(index, toIndex) {
-      if (this.curQue[toIndex].option.length <= 2) {
-        this.$message.warning("至少要保留两个选项");
-        return;
-      }
-      this.curQue[toIndex].option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue[toIndex].option.length <= 2) {
+                this.$message.warning("至少要保留两个选项");
+                return;
+            }
+            this.curQue[toIndex].option.splice(index, 1);
+        })
     },
     // 添加一个题
     addtopic() {

+ 12 - 6
src/components/Adult/inputModules/Sort.vue

@@ -152,12 +152,18 @@ export default {
     },
     // 删除其中一个选项
     deleteOption(index) {
-      console.log(this.curQue.option);
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留1个问题");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+      this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留1个问题");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     //添加一个选项
     addOption(index) {

+ 68 - 40
src/components/Adult/inputModules/Table.vue

@@ -373,11 +373,18 @@ export default {
     },
     // 删除提示选项
     deleteHint(index) {
-      if (this.curQue.hintOtion.length <= 1) {
-        this.$message.warning("至少要保留一个选项");
-        return;
-      }
-      this.curQue.hintOtion.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.hintOtion.length <= 1) {
+                this.$message.warning("至少要保留一个选项");
+                return;
+            }
+            this.curQue.hintOtion.splice(index, 1);
+        })
     },
     // 增加提示选项
     addHint() {
@@ -463,35 +470,49 @@ export default {
     },
     //   删除行
     removeRow(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留一行");
-        return;
-      }
-      this.curQue.option.forEach((item, i) => {
-        if (i == index) {
-          this.curQue.option.splice(i, 1);
-        }
-      });
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留一行");
+                return;
+            }
+            this.curQue.option.forEach((item, i) => {
+                if (i == index) {
+                this.curQue.option.splice(i, 1);
+                }
+            });
+        })
     },
     // 删除列
     removeCol(index) {
-      if (this.curQue.option[0].length <= 1) {
-        this.$message.warning("至少要保留一列");
-        return;
-      }
-      this.curQue.option.forEach((item) => {
-        item.forEach((it, i) => {
-          if (i == index) {
-            item.splice(i, 1);
-          }
-        });
-      });
-      this.curQue.headerList.forEach((item, i) => {
-        if (i == index) {
-          this.curQue.headerList.splice(i, 1);
-        }
-      });
-      this.curQue.colWidthList.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option[0].length <= 1) {
+                this.$message.warning("至少要保留一列");
+                return;
+            }
+            this.curQue.option.forEach((item) => {
+                item.forEach((it, i) => {
+                if (i == index) {
+                    item.splice(i, 1);
+                }
+                });
+            });
+            this.curQue.headerList.forEach((item, i) => {
+                if (i == index) {
+                this.curQue.headerList.splice(i, 1);
+                }
+            });
+            this.curQue.colWidthList.splice(index, 1);
+        })
     },
     //   删除td
     removeTd(rowi, coli) {
@@ -539,15 +560,22 @@ export default {
     },
     // 删除其中一个表头
     deleteHeader(index) {
-      if (this.curQue.headerList.length <= 1) {
-        this.$message.warning("至少要保留一个表头");
-        return;
-      }
-      this.curQue.headerList.splice(index, 1);
-      this.curQue.option.forEach((item) => {
-        item.splice(index, 1);
-      });
-      this.curQue.colWidthList.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.headerList.length <= 1) {
+                this.$message.warning("至少要保留一个表头");
+                return;
+            }
+            this.curQue.headerList.splice(index, 1);
+            this.curQue.option.forEach((item) => {
+                item.splice(index, 1);
+            });
+            this.curQue.colWidthList.splice(index, 1);
+        })
     },
     //添加一个表头
     addHeader() {

+ 12 - 5
src/components/Adult/inputModules/TextItem.vue

@@ -56,11 +56,18 @@ export default {
       this.curQue.option.push(obj);
     },
     deleteOptionOne(index) {
-      if (this.curQue.option.length <= 1) {
-        this.$message.warning("至少要保留一个");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length <= 1) {
+                this.$message.warning("至少要保留一个");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 12 - 5
src/components/Adult/inputModules/ToneSelect.vue

@@ -367,11 +367,18 @@ export default {
       });
     },
     deleteGroup(index) {
-      if (this.curQue.option.length == 1) {
-        this.$message.warning("至少剩余1个,不能全部删除");
-        return;
-      }
-      this.curQue.option.splice(index, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            if (this.curQue.option.length == 1) {
+                this.$message.warning("至少剩余1个,不能全部删除");
+                return;
+            }
+            this.curQue.option.splice(index, 1);
+        })
     },
     // 上传音频文件
     handleChange(file, fileList) {

+ 8 - 1
src/components/Adult/inputModules/VoiceMatrix.vue

@@ -466,7 +466,14 @@ export default {
 
     // 删除生成的mp3
     delMp3() {
-      this.curQue.mp3_list.splice(0, 1);
+        this.$confirm("确定要删除吗?", "提示", {
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning",
+        })
+        .then(() => {
+            this.curQue.mp3_list.splice(0, 1);
+        })
     },
 
     changeMp3(fileList) {

+ 7 - 1
src/components/Adult/preview/TextInputRecord.vue

@@ -53,7 +53,7 @@
         >
         <input
           @blur="handleInput"
-          :class="['item-input']"
+          :class="['item-input',items.Inputfont]"
           v-model="curQue.Bookanswer[indexs].answer"
           @keyup.enter="handleReplaceTone($event, indexs)"
           placeholder="输入"
@@ -345,6 +345,12 @@ export default {
         color: #000000;
         font-size: 16px;
         line-height: 150%;
+        &.py {
+          font-family: "GB-PINYINOK-B";
+        }
+        &.en {
+          font-family: "robot";
+        }
       }
       .luyin-box {
         // border: 1px solid rgba(0, 0, 0, 0.1);

+ 1 - 1
src/components/common/Upload.vue

@@ -20,7 +20,7 @@
         slot="tip"
         class="el-upload__tip"
       >
-        只能上传excel文件
+        只能上传excel文件,大小不超过20MB
       </div>
     </el-upload>
   </div>

File diff suppressed because it is too large
+ 645 - 627
src/views/adultInput.vue


+ 35 - 0
src/views/courseList.vue

@@ -361,6 +361,13 @@
                 style="width: 500px"
               >
                 <el-button size="mini" type="success">上传封面</el-button>
+                <div
+                    style="display: inline; padding-left: 30px"
+                    slot="tip"
+                    class="el-upload__tip"
+                >
+                    只能上传.jpg, .jpeg, .png文件,大小不超过2MB
+                </div>
               </el-upload>
             </el-form-item>
           </el-tab-pane>
@@ -387,6 +394,13 @@
                 <el-button size="mini" type="success" :loading="uploadingVideo"
                   >上传视频</el-button
                 >
+                <div
+                    style="display: inline; padding-left: 30px"
+                    slot="tip"
+                    class="el-upload__tip"
+                >
+                    只能上传视频文件,大小不超过500MB
+                </div>
               </el-upload>
             </el-form-item>
             <el-form-item
@@ -411,6 +425,13 @@
                 <el-button size="mini" type="success" :loading="uploadingAudio"
                   >上传音频</el-button
                 >
+                <div
+                    style="display: inline; padding-left: 30px"
+                    slot="tip"
+                    class="el-upload__tip"
+                >
+                    只能上传音频文件,大小不超过20MB
+                </div>
               </el-upload>
             </el-form-item>
             <el-form-item
@@ -438,6 +459,13 @@
                   :loading="uploadingOtherAudio"
                   >上传音频</el-button
                 >
+                <div
+                    style="display: inline; padding-left: 30px"
+                    slot="tip"
+                    class="el-upload__tip"
+                >
+                    只能上传音频文件,大小不超过20MB
+                </div>
               </el-upload>
             </el-form-item>
             <el-form-item label="试读PDF" label-width="90px" prop="fileListDoc">
@@ -458,6 +486,13 @@
                 <el-button size="mini" type="success" :loading="uploadingDoc"
                   >上传PDF</el-button
                 >
+                <div
+                    style="display: inline; padding-left: 30px"
+                    slot="tip"
+                    class="el-upload__tip"
+                >
+                    只能上传pdf文件,大小不超过20MB
+                </div>
               </el-upload>
             </el-form-item>
           </el-tab-pane>

Some files were not shown because too many files changed in this diff