Browse Source

统一模板名称

natasha 2 years ago
parent
commit
810404c78b

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

@@ -167,7 +167,7 @@ export default {
         title: "",
         title: "",
         guide: "",
         guide: "",
         type: "dialogue_answer_chs",
         type: "dialogue_answer_chs",
-        name: "对话",
+        name: "对话练习",
         model: 1,
         model: 1,
         pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
         pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
         enPosition: "bottom",
         enPosition: "bottom",
@@ -300,6 +300,7 @@ export default {
       if (!this.curQue.hasOwnProperty("enPosition")) {
       if (!this.curQue.hasOwnProperty("enPosition")) {
         this.$set(this.curQue, "enPosition", 'bottom');
         this.$set(this.curQue, "enPosition", 'bottom');
       }
       }
+      this.curQue.name = "对话练习"
     } else {
     } else {
       this.initCurQueData();
       this.initCurQueData();
     }
     }

+ 2 - 4
src/components/Adult/inputModules/DialogueArticleChs/index.vue

@@ -343,7 +343,7 @@ export default {
 
 
       data_structure: {
       data_structure: {
         type: "dialogue_article_chs",
         type: "dialogue_article_chs",
-        name: "课文",
+        name: "对话课文",
         model: 1,
         model: 1,
         pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
         pyPosition: "top", //top 拼音在上面;bottom 拼音在下面
         enPosition: "bottom", 
         enPosition: "bottom", 
@@ -445,7 +445,6 @@ export default {
           console.log(res);
           console.log(res);
           this.compareloading = false;
           this.compareloading = false;
           this.curQue.wordTime = res.data.result;
           this.curQue.wordTime = res.data.result;
-          console.log(this.curQue.wordTime);
         }
         }
       );
       );
     },
     },
@@ -765,8 +764,6 @@ export default {
   created() {},
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
   mounted() {
-    console.log("文章保存");
-    console.log(this.curQue);
     if (this.curQue) {
     if (this.curQue) {
       if (!this.curQue.taskId) {
       if (!this.curQue.taskId) {
         this.curQue.taskId = "";
         this.curQue.taskId = "";
@@ -803,6 +800,7 @@ export default {
       if (!this.curQue.hasOwnProperty("enPosition")) {
       if (!this.curQue.hasOwnProperty("enPosition")) {
         this.$set(this.curQue, "enPosition", 'bottom');
         this.$set(this.curQue, "enPosition", 'bottom');
       }
       }
+      this.curQue.name = "对话课文"
     } else {
     } else {
       this.initCurQueData();
       this.initCurQueData();
     }
     }

+ 3 - 1
src/components/Adult/inputModules/InputRecord.vue

@@ -55,7 +55,7 @@ export default {
     return {
     return {
       data_structure: {
       data_structure: {
         type: "input_record_chs",
         type: "input_record_chs",
-        name: "输入+录音",
+        name: "问答题",
         title: "",
         title: "",
         guide: "",
         guide: "",
         option: [
         option: [
@@ -113,6 +113,8 @@ export default {
   created() {
   created() {
     if (!this.curQue) {
     if (!this.curQue) {
       this.initcurQue();
       this.initcurQue();
+    }else{
+      this.curQue.name = "问答题"
     }
     }
   },
   },
   //生命周期 - 挂载完成(可以访问DOM元素)
   //生命周期 - 挂载完成(可以访问DOM元素)

+ 3 - 1
src/components/Adult/inputModules/Ligature.vue

@@ -120,7 +120,7 @@ export default {
       },
       },
       data_structure: {
       data_structure: {
         type: "ligature_chs",
         type: "ligature_chs",
-        name: "连线",
+        name: "连线",
         title: "",
         title: "",
         conTitle: "",
         conTitle: "",
         optionTitle: "",
         optionTitle: "",
@@ -251,6 +251,8 @@ export default {
     if (!this.curQue) {
     if (!this.curQue) {
       let res_data = JSON.parse(JSON.stringify(this.data_structure));
       let res_data = JSON.parse(JSON.stringify(this.data_structure));
       this.changeCurQue(res_data);
       this.changeCurQue(res_data);
+    }else{
+        this.curQue.name = "连线题"
     }
     }
   },
   },
   //生命周期 - 挂载完成(可以访问DOM元素)
   //生命周期 - 挂载完成(可以访问DOM元素)

+ 31 - 0
src/components/Adult/inputModules/Picture.vue

@@ -330,7 +330,38 @@ export default {
       }
       }
     });
     });
     if (!this.curQue) {
     if (!this.curQue) {
+      if(this.type=='image_checkBox'){
+        this.data_structure.name = "图片控件-图片多选"
+      }else if(this.type=='image_judge'){
+        this.data_structure.name = "图片控件-图片判断"
+      }else if(this.type=='image_single'){
+        this.data_structure.name = "图片控件-图片单选"
+      }else if(this.type=='image_dobleinput'){
+        this.data_structure.name = "图片控件-双输入"
+      }else if(this.type=='image_gdcy'){
+        this.data_structure.name = "图片控件-固定词语"
+      }else if(this.type=='image_input'){
+        this.data_structure.name = "图片控件-单行输入"
+      }else if(this.type=='imgage_image'){
+        this.data_structure.name = "图片控件-纯图片"
+      }
       this.changeCurQue(this.data_structure);
       this.changeCurQue(this.data_structure);
+    }else{
+      if(this.type=='image_checkBox'){
+        this.curQue.name = "图片控件-图片多选"
+      }else if(this.type=='image_judge'){
+        this.curQue.name = "图片控件-图片判断"
+      }else if(this.type=='image_single'){
+        this.curQue.name = "图片控件-图片单选"
+      }else if(this.type=='image_dobleinput'){
+        this.curQue.name = "图片控件-双输入"
+      }else if(this.type=='image_gdcy'){
+        this.curQue.name = "图片控件-固定词语"
+      }else if(this.type=='image_input'){
+        this.curQue.name = "图片控件-单行输入"
+      }else if(this.type=='imgage_image'){
+        this.curQue.name = "图片控件-纯图片"
+      }
     }
     }
     let checkList = [];
     let checkList = [];
     this.data_structure.fn_list.map((item) => {
     this.data_structure.fn_list.map((item) => {

+ 3 - 1
src/components/Adult/inputModules/PlayRecord.vue

@@ -23,7 +23,7 @@ export default {
       mp3Number: 1,
       mp3Number: 1,
       data_structure: {
       data_structure: {
         type: "play_record_chs",
         type: "play_record_chs",
-        name: "播放音频控件",
+        name: "音频控件",
         mp3_list: [],
         mp3_list: [],
       },
       },
     };
     };
@@ -54,6 +54,8 @@ export default {
   created() {
   created() {
     if (!this.curQue) {
     if (!this.curQue) {
       this.changeCurQue(this.data_structure);
       this.changeCurQue(this.data_structure);
+    }else{
+      this.curQue.name = "音频控件"
     }
     }
   },
   },
   //生命周期 - 挂载完成(可以访问DOM元素)
   //生命周期 - 挂载完成(可以访问DOM元素)

+ 3 - 1
src/components/Adult/inputModules/SelfAssessment.vue

@@ -65,7 +65,7 @@ export default {
       mp3Number: 1,
       mp3Number: 1,
       data_structure: {
       data_structure: {
         type: "checkbox_self_assessment_chs",
         type: "checkbox_self_assessment_chs",
-        name: "自我评估",
+        name: "多选题",
         title: "",
         title: "",
         option: [
         option: [
           {
           {
@@ -121,6 +121,8 @@ export default {
   created() {
   created() {
     if (!this.curQue) {
     if (!this.curQue) {
       this.changeCurQue(this.data_structure);
       this.changeCurQue(this.data_structure);
+    }else{
+        this.curQue.name = "多选题"
     }
     }
   },
   },
   //生命周期 - 挂载完成(可以访问DOM元素)
   //生命周期 - 挂载完成(可以访问DOM元素)

+ 24 - 2
src/components/Adult/inputModules/Sentence.vue

@@ -498,7 +498,19 @@ export default {
       } else if (this.type.indexOf("sentence_") > -1) {
       } else if (this.type.indexOf("sentence_") > -1) {
         data = this.handleStructure(this.type);
         data = this.handleStructure(this.type);
       }
       }
-      console.log(data);
+      if (this.type == "recordHZ_inputPY_chs") {
+        data.name = "读汉字写拼音"
+      }else if(this.type=='sentence_input_chs'){
+        data.name = "句子模板-句子填空"
+      }else if(this.type=='sentence_judge_chs'){
+        data.name = "句子模板-句子判断"
+      }else if(this.type=='sentence_record_chs'){
+        data.name = "句子模板-句子录音"
+      }else if(this.type=='sentence_input_record_chs'){
+        data.name = "句子模板-句子填空+录音"
+      }else if(this.type=='sentence_listen_read_chs'){
+        data.name = "句子模板-句子听+朗读"
+      }
       this.changeCurQue(data);
       this.changeCurQue(data);
     },
     },
     changeMp3(fileList) {
     changeMp3(fileList) {
@@ -521,7 +533,6 @@ export default {
   },
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {
   created() {
-    console.log("句子控件的录入");
     if (!this.curQue) {
     if (!this.curQue) {
       this.initcurQue();
       this.initcurQue();
     } else {
     } else {
@@ -534,6 +545,17 @@ export default {
         if (!this.curQue.sentenceType) {
         if (!this.curQue.sentenceType) {
           this.curQue.sentenceType = "chinese";
           this.curQue.sentenceType = "chinese";
         }
         }
+        this.curQue.name = "读汉字写拼音"
+      }else if(this.type=='sentence_input_chs'){
+        this.curQue.name = "句子模板-句子填空"
+      }else if(this.type=='sentence_judge_chs'){
+        this.curQue.name = "句子模板-句子判断"
+      }else if(this.type=='sentence_record_chs'){
+        this.curQue.name = "句子模板-句子录音"
+      }else if(this.type=='sentence_input_record_chs'){
+        this.curQue.name = "句子模板-句子填空+录音"
+      }else if(this.type=='sentence_listen_read_chs'){
+        this.curQue.name = "句子模板-句子听+朗读"
       }
       }
     }
     }
   },
   },

+ 2 - 1
src/components/Adult/inputModules/SentenceModule.vue

@@ -709,7 +709,7 @@ export default {
 
 
       data_structure: {
       data_structure: {
         type: "sentence_set_chs",
         type: "sentence_set_chs",
-        name: "句子总配置",
+        name: "句子拆分组件",
         title: "",
         title: "",
         mp3_list: [],
         mp3_list: [],
         lrc_list: [],
         lrc_list: [],
@@ -1209,6 +1209,7 @@ export default {
             }
             }
         })
         })
       })
       })
+      this.curQue.name = "句子拆分组件"
     }
     }
   },
   },
   beforeCreate() {}, //生命周期 - 创建之前
   beforeCreate() {}, //生命周期 - 创建之前

+ 2 - 3
src/views/adultInput.vue

@@ -808,9 +808,8 @@
                       remoeModule(toindex, rowIndex, lineIndex, topicIitem)
                       remoeModule(toindex, rowIndex, lineIndex, topicIitem)
                     "
                     "
                   >
                   >
-                    删除模板 <br />{{
-                      topicIitem.data.name + "( " + topicIitem.type + " )"
-                    }}
+                    删除模板 <br />{{ topicIitem.data.name }}
+                       <!-- + {{topicIitem.type}} -->
                   </div>
                   </div>
                   <div
                   <div
                     v-else-if="
                     v-else-if="