guanchunjie 3 年之前
父節點
當前提交
31a573d518
共有 54 個文件被更改,包括 255 次插入276 次删除
  1. 0 1
      src/components/Adult/common/AudioControlModule.vue
  2. 0 2
      src/components/Adult/common/DialogueModule.vue
  3. 0 2
      src/components/Adult/common/HzModule.vue
  4. 0 1
      src/components/Adult/common/ImageQuestionModule.vue
  5. 0 3
      src/components/Adult/common/Inputmodule.vue
  6. 0 2
      src/components/Adult/common/JudgeModule.vue
  7. 0 1
      src/components/Adult/common/LigatureModule.vue
  8. 0 2
      src/components/Adult/common/RecordModule.vue
  9. 0 2
      src/components/Adult/common/SentenceModule.vue
  10. 1 4
      src/components/Adult/common/SentenceSegwordChs/components/ClauseresultChs.vue
  11. 0 2
      src/components/Adult/common/SentenceSegwordChs/index.vue
  12. 9 4
      src/components/Adult/common/SingleModule.vue
  13. 0 1
      src/components/Adult/common/Upload.vue
  14. 0 1
      src/components/Adult/common/UploadVideo.vue
  15. 1 2
      src/components/Adult/common/UploadView.vue
  16. 1 1
      src/components/Adult/inputModules/ Engineaudio.vue
  17. 0 1
      src/components/Adult/inputModules/BgControl.vue
  18. 0 2
      src/components/Adult/inputModules/Catelog.vue
  19. 0 2
      src/components/Adult/inputModules/DialogueArticleChs/components/ClauseresultChs.vue
  20. 0 2
      src/components/Adult/inputModules/DialogueArticleChs/components/CreatetimelistChs.vue
  21. 0 4
      src/components/Adult/inputModules/DialogueArticleChs/components/ParagraphChs.vue
  22. 0 2
      src/components/Adult/inputModules/DialogueArticleChs/components/SegbywordChs.vue
  23. 0 2
      src/components/Adult/inputModules/DialogueTem/components/ClauseresultChs.vue
  24. 0 2
      src/components/Adult/inputModules/DialogueTem/components/CreatetimelistChs.vue
  25. 0 6
      src/components/Adult/inputModules/DialogueTem/components/ParagraphChs.vue
  26. 0 2
      src/components/Adult/inputModules/DialogueTem/components/SegbywordChs.vue
  27. 0 9
      src/components/Adult/inputModules/DialogueTem/index.vue
  28. 1 4
      src/components/Adult/inputModules/SentenceSegwordChs/components/ClauseresultChs.vue
  29. 0 2
      src/components/Adult/inputModules/SentenceSegwordChs/components/SegbywordChs.vue
  30. 0 5
      src/components/Adult/inputModules/SentenceSegwordChs/index.vue
  31. 0 3
      src/components/Adult/inputModules/Single.vue
  32. 7 4
      src/components/Adult/inputModules/Tinydemo.vue
  33. 0 1
      src/components/Adult/inputModules/ToneSelect.vue
  34. 0 2
      src/components/Adult/preview/ArticleViewChs/NormalModelChs.vue
  35. 24 25
      src/components/Adult/preview/ArticleViewChs/PhraseModelChs.vue
  36. 0 3
      src/components/Adult/preview/ArticleViewChs/Practicechs.vue
  37. 0 3
      src/components/Adult/preview/ArticleViewChs/WordModelChs.vue
  38. 1 1
      src/components/Adult/preview/ArticleViewChs/index.vue
  39. 4 0
      src/components/Adult/preview/AudioLine.vue
  40. 16 3
      src/components/Adult/preview/DialogueArticleViewChs/NormalModelChs.vue
  41. 27 24
      src/components/Adult/preview/DialogueArticleViewChs/PhraseModelChs.vue
  42. 1 0
      src/components/Adult/preview/DialogueArticleViewChs/Practicechs.vue
  43. 1 0
      src/components/Adult/preview/DialogueArticleViewChs/WordModelChs.vue
  44. 1 0
      src/components/Adult/preview/DialogueArticleViewChs/index.vue
  45. 0 2
      src/components/Adult/preview/SentenceSegWordViewChs.vue
  46. 0 2
      src/components/Adult/preview/TextInputRecord.vue
  47. 1 3
      src/components/Adult/preview/components/Adultstrockplay.vue
  48. 34 7
      src/components/Adult/preview/components/Intp.vue
  49. 1 1
      src/components/Adult/preview/components/Notecard.vue
  50. 2 3
      src/components/Adult/preview/components/Wordcard.vue
  51. 0 1
      src/components/Header.vue
  52. 0 1
      src/components/TreeView.vue
  53. 7 0
      src/components/common/Audio.vue
  54. 115 111
      src/components/common/AudioRed.vue

+ 0 - 1
src/components/Adult/common/AudioControlModule.vue

@@ -78,7 +78,6 @@ export default {
       });
     },
     changeMp3(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 2
src/components/Adult/common/DialogueModule.vue

@@ -174,7 +174,6 @@ export default {
       this.curQueItem.AnswerList.push("");
     },
     changeMp3(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {
@@ -192,7 +191,6 @@ export default {
       this.curQueItem.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
     },
     changeImage(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 2
src/components/Adult/common/HzModule.vue

@@ -224,7 +224,6 @@ export default {
         type: "warning",
       }).then(() => {
         // this.deleteOptionOne(this.index);
-        console.log(this.deleteOptionOne());
       });
     },
     //   修改正确答案
@@ -265,7 +264,6 @@ export default {
       this.curQueItem.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
     },
     changeImage(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 1
src/components/Adult/common/ImageQuestionModule.vue

@@ -137,7 +137,6 @@ export default {
       });
     },
     changeImage(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 3
src/components/Adult/common/Inputmodule.vue

@@ -78,7 +78,6 @@ export default {
   methods: {
     // 点击生成拼音
     getPinyin(item) {
-      console.log(12356);
       let bool = false;
       let value = "";
       if (item.con == "") {
@@ -94,7 +93,6 @@ export default {
       item.pinyin = result;
     },
     changeMp3(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {
@@ -112,7 +110,6 @@ export default {
       this.curQue.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
     },
     changeImage(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 2
src/components/Adult/common/JudgeModule.vue

@@ -147,7 +147,6 @@ export default {
       item.pinyin = result;
     },
     changeMp3(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {
@@ -166,7 +165,6 @@ export default {
       this.curQueItem.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
     },
     changeImage(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 1
src/components/Adult/common/LigatureModule.vue

@@ -181,7 +181,6 @@ export default {
       });
     },
     changeImage(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 2
src/components/Adult/common/RecordModule.vue

@@ -81,7 +81,6 @@ export default {
         type: "warning",
       }).then(() => {
         // this.deleteOptionOne(this.index);
-        console.log(this.deleteOptionOne());
       });
     },
     changeMp3(fileList) {
@@ -106,7 +105,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log(this.curQueItem);
     if (this.curQueItem) {
       this.fileCon.img_list = this.curQueItem.img_list;
       this.fileCon.mp3_list = this.curQueItem.mp3_list;

+ 0 - 2
src/components/Adult/common/SentenceModule.vue

@@ -216,7 +216,6 @@ export default {
         type: "warning",
       }).then(() => {
         // this.deleteOptionOne(this.index);
-        console.log(this.deleteOptionOne());
       });
     },
     changeMp3(fileList) {
@@ -258,7 +257,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log(this.curQueItem);
     if (this.curQueItem) {
       this.fileCon.img_list = this.curQueItem.img_list;
       this.fileCon.mp3_list = this.curQueItem.mp3_list;

+ 1 - 4
src/components/Adult/common/SentenceSegwordChs/components/ClauseresultChs.vue

@@ -51,10 +51,7 @@ export default {
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
-  mounted() {
-    console.log("====句子==分句====");
-    console.log(this.curQue);
-  },
+  mounted() {},
   beforeCreate() {}, //生命周期 - 创建之前
   beforeMount() {}, //生命周期 - 挂载之前
   beforeUpdate() {}, //生命周期 - 更新之前

+ 0 - 2
src/components/Adult/common/SentenceSegwordChs/index.vue

@@ -59,7 +59,6 @@ export default {
     },
     //生成分词
     segByWord(sentence) {
-      console.log(sentence);
       this.loading = true;
       let textList = [];
       let str = Base64.encode(sentence);
@@ -72,7 +71,6 @@ export default {
         this.loading = false;
         let list = res.data.result.list[0];
         this.$set(this.curQue, "segList", list);
-        console.log(this.curQue);
         this.segList = list;
         this.isByWord = true;
       });

+ 9 - 4
src/components/Adult/common/SingleModule.vue

@@ -91,7 +91,14 @@ export default {
   components: {
     Upload,
   },
-  props: ["curQueItem", "index", "toIndex","changAnswer", "deleteOptionOne", "type"],
+  props: [
+    "curQueItem",
+    "index",
+    "toIndex",
+    "changAnswer",
+    "deleteOptionOne",
+    "type",
+  ],
   data() {
     return {
       imgNumber: 10,
@@ -115,7 +122,7 @@ export default {
         cancelButtonText: "取消",
         type: "warning",
       }).then(() => {
-        this.deleteOptionOne(this.index,this.toIndex);
+        this.deleteOptionOne(this.index, this.toIndex);
       });
     },
     //   修改正确答案
@@ -139,7 +146,6 @@ export default {
       item.pinyin = result;
     },
     changeMp3(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {
@@ -157,7 +163,6 @@ export default {
       this.curQueItem.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
     },
     changeImage(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

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

@@ -131,7 +131,6 @@ export default {
       });
     },
     handleRemove(file, fileList) {
-      console.log(fileList);
       this.changeFillId(fileList, "", this.index);
       this.$message.success("移除成功");
     },

+ 0 - 1
src/components/Adult/common/UploadVideo.vue

@@ -131,7 +131,6 @@ export default {
       });
     },
     handleRemove(file, fileList) {
-      console.log(fileList);
       this.changeFillId(fileList);
       this.$message.success("移除成功");
     },

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

@@ -96,7 +96,7 @@ export default {
     // this.showList = this.fileList ? true : false;
     if (this.type == "upload_control_preview_chs") {
       this.showList = true;
-    }else{
+    } else {
       this.showList = false;
     }
   },
@@ -137,7 +137,6 @@ export default {
       });
     },
     handleRemove(file, fileList) {
-      console.log(fileList);
       this.changeFillId(fileList);
       this.$message.success("移除成功");
     },

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

@@ -61,7 +61,7 @@ export default {
         res.data.fileInfo.id = "[FID##" + res.data.fileInfo.file_id + "##FID]";
         res.data.fileInfo.name = res.data.fileInfo.file_name;
         let fileList = [res.data.fileInfo];
-        console.log(fileList);
+
         _this.$set(_this.curQue, "mp3_list", fileList);
         _this.CreadMp3loading = false;
         _this.$message.success("生成成功");

+ 0 - 1
src/components/Adult/inputModules/BgControl.vue

@@ -37,7 +37,6 @@ export default {
   //方法集合
   methods: {
     changeImage(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 2
src/components/Adult/inputModules/Catelog.vue

@@ -492,7 +492,6 @@ export default {
       }
     },
     handleNodeClick(data) {
-      console.log(data);
       this.activeIndex = data.id;
       this.changeId(data.id, data.name, data.fatherName);
     },
@@ -574,7 +573,6 @@ export default {
         .catch(() => {
           this.loading = false;
         });
-      console.log(data);
     },
     BookenterKey(event) {
       const code = event.keyCode

+ 0 - 2
src/components/Adult/inputModules/DialogueArticleChs/components/ClauseresultChs.vue

@@ -114,8 +114,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log("====分句====");
-    console.log(this.curQue);
     let detail = JSON.parse(JSON.stringify(this.curQue.detail));
     this.handleSentence(detail);
   },

+ 0 - 2
src/components/Adult/inputModules/DialogueArticleChs/components/CreatetimelistChs.vue

@@ -62,8 +62,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log("====分句lrc文件====");
-    console.log(this.curQue);
     let detail = JSON.parse(JSON.stringify(this.curQue.detail));
     this.handleSentence(detail);
   },

+ 0 - 4
src/components/Adult/inputModules/DialogueArticleChs/components/ParagraphChs.vue

@@ -149,11 +149,9 @@ export default {
         return item;
       });
       this.roleList = roleList;
-      console.log(this.roleList);
     },
     // 点击生成拼音
     getPinyin(item) {
-      console.log(12356);
       let bool = false;
       let value = "";
       if (item.con == "") {
@@ -215,7 +213,6 @@ export default {
         };
       }
       this.remark = JSON.parse(JSON.stringify(item.remark));
-      console.log(this.remark);
       this.remarkVisible = true;
     },
     saveRemark() {
@@ -224,7 +221,6 @@ export default {
         JSON.stringify(this.remark)
       );
       this.remarkVisible = false;
-      console.log(_this.curQue.detail);
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 0 - 2
src/components/Adult/inputModules/DialogueArticleChs/components/SegbywordChs.vue

@@ -334,8 +334,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log("====分词结果====");
-    console.log(this.curQue.detail);
     this.getParaSegWordsResult();
   },
   beforeCreate() {}, //生命周期 - 创建之前

+ 0 - 2
src/components/Adult/inputModules/DialogueTem/components/ClauseresultChs.vue

@@ -114,8 +114,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log("====分句====");
-    console.log(this.curQue);
     let detail = JSON.parse(JSON.stringify(this.curQue.detail));
     this.handleSentence(detail);
   },

+ 0 - 2
src/components/Adult/inputModules/DialogueTem/components/CreatetimelistChs.vue

@@ -62,8 +62,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log("====分句lrc文件====");
-    console.log(this.curQue);
     let detail = JSON.parse(JSON.stringify(this.curQue.detail));
     this.handleSentence(detail);
   },

+ 0 - 6
src/components/Adult/inputModules/DialogueTem/components/ParagraphChs.vue

@@ -157,11 +157,9 @@ export default {
         return item;
       });
       this.roleList = roleList;
-      console.log(this.roleList);
     },
     // 点击生成拼音
     getPinyin(item) {
-      console.log(12356);
       let bool = false;
       let value = "";
       if (item.con == "") {
@@ -223,7 +221,6 @@ export default {
         };
       }
       this.remark = JSON.parse(JSON.stringify(item.remark));
-      console.log(this.remark);
       this.remarkVisible = true;
     },
     saveRemark() {
@@ -232,7 +229,6 @@ export default {
         JSON.stringify(this.remark)
       );
       this.remarkVisible = false;
-      console.log(_this.curQue.detail);
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)
@@ -240,8 +236,6 @@ export default {
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
     this.readonly = this.isClause;
-    console.log("段落");
-    console.log(this.curQue);
     if (this.curQue) {
       this.initRoleList();
     }

+ 0 - 2
src/components/Adult/inputModules/DialogueTem/components/SegbywordChs.vue

@@ -335,8 +335,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log("====分词结果====");
-    console.log(this.curQue.detail);
     this.getParaSegWordsResult();
   },
   beforeCreate() {}, //生命周期 - 创建之前

+ 0 - 9
src/components/Adult/inputModules/DialogueTem/index.vue

@@ -324,7 +324,6 @@ export default {
       this.curQue.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
     },
     changeImage(fileList) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {
@@ -340,7 +339,6 @@ export default {
       this.curQue.img_list = JSON.parse(JSON.stringify(articleImgRes));
     },
     changeImage2(file) {
-      console.log(file);
       if (file.response) {
         const obj = {
           name: file.name,
@@ -361,7 +359,6 @@ export default {
     //添加角色
     addRole() {
       this.roleVisible = true;
-      console.log(this.roleVisible);
       this.roleStatus = 1;
       let id = Math.random().toString(36).substr(2);
       let roleCon = {
@@ -380,7 +377,6 @@ export default {
     saveRoleList() {
       this.roleVisible = false;
       this.$message.success("保存成功!");
-      console.log(this.curQue);
     },
     //删除角色
     delRole(index) {
@@ -436,7 +432,6 @@ export default {
     },
     //生成分词
     segByWord(sentences, paraIndex) {
-      console.log(sentences);
       this.loading = true;
       let textList = [];
       sentences.forEach((item) => {
@@ -450,7 +445,6 @@ export default {
         this.loading = false;
         let list = res.data.result.list;
         this.$set(this.curQue.detail[paraIndex], "segList", list);
-        console.log(this.curQue);
         this.segList = list;
         this.isByWord = true;
         this.paraIndex = paraIndex;
@@ -526,7 +520,6 @@ export default {
         return item;
       });
       this.curQue.detail = JSON.parse(JSON.stringify(detailRes));
-      console.log(this.curQue.detail);
     },
 
     handleTimeReg(list) {
@@ -543,8 +536,6 @@ export default {
       this.cTVisible = true;
     },
     initData() {
-      console.log("对话答题保存");
-      console.log(this.curQue);
       if (this.curQue) {
         if (!this.curQue.number) {
           this.curQue.number = "";

+ 1 - 4
src/components/Adult/inputModules/SentenceSegwordChs/components/ClauseresultChs.vue

@@ -50,10 +50,7 @@ export default {
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
-  mounted() {
-    console.log("====句子==分句====");
-    console.log(this.curQue);
-  },
+  mounted() {},
   beforeCreate() {}, //生命周期 - 创建之前
   beforeMount() {}, //生命周期 - 挂载之前
   beforeUpdate() {}, //生命周期 - 更新之前

+ 0 - 2
src/components/Adult/inputModules/SentenceSegwordChs/components/SegbywordChs.vue

@@ -232,8 +232,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log("====分词结果====");
-    console.log(this.curQue.detail);
     this.getParaSegWordsResult();
   },
   beforeCreate() {}, //生命周期 - 创建之前

+ 0 - 5
src/components/Adult/inputModules/SentenceSegwordChs/index.vue

@@ -130,7 +130,6 @@ export default {
     },
 
     changeImage(file) {
-      console.log(file);
       if (file.response) {
         const obj = {
           name: file.name,
@@ -157,7 +156,6 @@ export default {
     },
     //生成分词
     segByWord(sentence) {
-      console.log(sentence);
       this.loading = true;
       let textList = [];
       let str = Base64.encode(sentence);
@@ -170,7 +168,6 @@ export default {
         this.loading = false;
         let list = res.data.result.list[0];
         this.$set(this.curQue, "segList", list);
-        console.log(this.curQue);
         this.segList = list;
         this.isByWord = true;
       });
@@ -184,8 +181,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log("文章保存");
-    console.log(this.curQue);
     if (this.curQue) {
       if (this.curQue.wordsList.length > 0) {
         this.isByWord = true;

+ 0 - 3
src/components/Adult/inputModules/Single.vue

@@ -99,7 +99,6 @@
           :curQueItem="item"
           :index="index"
           :toIndex="toIndex"
-
           :changAnswer="changAnswer"
           :deleteOptionOne="deleteOptionOne"
           :type="type"
@@ -381,7 +380,6 @@ export default {
       this.curQue[index].option.push(obj);
     },
     timuchangeMp3(fileList, item, index) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {
@@ -400,7 +398,6 @@ export default {
       );
     },
     timuchangeImage(fileList, item, index) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 7 - 4
src/components/Adult/inputModules/Tinydemo.vue

@@ -18,7 +18,11 @@
     </div>
     <div class="adult-book-input-item">
       <span class="adult-book-lable">图片:</span>
-      <Upload :changeFillId="changeImage" :uploadType="'image'" :filleNumber="999" />
+      <Upload
+        :changeFillId="changeImage"
+        :uploadType="'image'"
+        :filleNumber="999"
+      />
     </div>
     <ul v-if="curQue.img_list.length > 0" class="uploadArt_list">
       <li
@@ -33,7 +37,7 @@
       </li>
     </ul>
     <div class="main">
-      <Editor :id="'tinydemo'+number" v-model="curQue.con" :init="init" />
+      <Editor :id="'tinydemo' + number" v-model="curQue.con" :init="init" />
     </div>
   </div>
 </template>
@@ -67,7 +71,7 @@ import { CopyToClipboard } from "@/utils/auth";
 
 export default {
   components: { Editor, Upload },
-  props: ["curQue", "fn_data", "changeCurQue","number"],
+  props: ["curQue", "fn_data", "changeCurQue", "number"],
   data() {
     return {
       init: {
@@ -97,7 +101,6 @@ export default {
       CopyToClipboard(id, this);
     },
     changeImage(fileList, item, index) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 1
src/components/Adult/inputModules/ToneSelect.vue

@@ -183,7 +183,6 @@ export default {
       item[field] = item[field] ? item[field].trim() : "";
     },
     changeMp3(fileList, item, index) {
-      console.log(fileList);
       const articleImgList = JSON.parse(JSON.stringify(fileList));
       const articleImgRes = [];
       articleImgList.forEach((item) => {

+ 0 - 2
src/components/Adult/preview/ArticleViewChs/NormalModelChs.vue

@@ -345,8 +345,6 @@ export default {
         resArr.push(paraObj);
       });
       this.resArr = resArr;
-      console.log("Normal");
-      console.log(this.resArr);
 
       // 循环文章图片
       if (curQue.img_list) {

+ 24 - 25
src/components/Adult/preview/ArticleViewChs/PhraseModelChs.vue

@@ -197,6 +197,7 @@ export default {
       isShow: false,
       screenHeight: 0,
       cardHeight: 0,
+      contentWidth: 732,
     };
   },
   computed: {},
@@ -278,7 +279,6 @@ export default {
         resArr.push(paraObj);
       });
       this.resArr = resArr;
-      console.log(this.resArr);
 
       // 循环文章图片
       if (curQue.img_list) {
@@ -346,7 +346,6 @@ export default {
       let NewWordList = [];
       this.NNPENewWordList.forEach((item) => {
         item.forEach((wItem) => {
-          console.log(wItem.new_word);
           NewWordList.push(wItem.new_word);
         });
       });
@@ -355,26 +354,28 @@ export default {
 
     showWordDetail(e, word) {
       let _this = this;
-      if (_this.oldHz != word) {
-        this.isShow = false;
-        setTimeout(() => {
-          _this.hz = word;
-        }, 50);
-      }
-      _this.clientY = e.clientY;
-      let left = e.clientX;
-      let width = 0;
-      if (word.length == 1 || word.length == 2) {
-        width = 304;
-      } else if (word.length == 3 || word.length == 4) {
-        width = 432;
-      } else if (word.length > 3) {
-        width = 560;
-      }
-      if (left - this.bodyLeft > this.contentWidth / 2) {
-        _this.left = left - width + 10;
-      } else {
-        _this.left = left;
+      if (this.newWordList.indexOf(word) > -1) {
+        if (_this.oldHz != word) {
+          this.isShow = false;
+          setTimeout(() => {
+            _this.hz = word;
+          }, 50);
+        }
+        _this.clientY = e.clientY;
+        let left = e.clientX;
+        let width = 0;
+        if (word.length == 1 || word.length == 2) {
+          width = 304;
+        } else if (word.length == 3 || word.length == 4) {
+          width = 432;
+        } else if (word.length > 3) {
+          width = 560;
+        }
+        if (left - this.bodyLeft > this.contentWidth / 2) {
+          _this.left = left - width + 10;
+        } else {
+          _this.left = left;
+        }
       }
     },
     hideWordDetail() {
@@ -410,12 +411,10 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log(this.curQue);
     if (this.curQue) {
       this.handleData();
     }
-    console.log("生词");
-    console.log(this.NNPENewWordList);
+
     if (this.NNPENewWordList && this.NNPENewWordList.length > 0) {
       this.handleNewword();
     }

+ 0 - 3
src/components/Adult/preview/ArticleViewChs/Practicechs.vue

@@ -301,7 +301,6 @@ export default {
       let _this = this;
       if (_this.isRepeat) {
         let time = curTime * 1000;
-        console.log(time, _this.currSent.ed);
         if (time > _this.currSent.ed || time < _this.currSent.bg) {
           _this.curTime = _this.currSent.bg;
           this.$refs.audioLine.onTimeupdateTime(_this.currSent.bg / 1000);
@@ -377,7 +376,6 @@ export default {
         });
       });
       this.resObj = { sentList: resArr, timeList: timeList };
-      console.log(this.resObj);
     },
     mergeWordTime(resArr, wordTimeList) {
       resArr.forEach((item, index) => {
@@ -475,7 +473,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log(this.curQue);
     if (this.curQue) {
       this.handleData();
     }

+ 0 - 3
src/components/Adult/preview/ArticleViewChs/WordModelChs.vue

@@ -214,7 +214,6 @@ export default {
   //方法集合
   methods: {
     getCurTime(curTime) {
-      console.log(curTime);
       this.curTime = curTime * 1000;
     },
     handleData() {
@@ -267,8 +266,6 @@ export default {
         resArr.push(paraObj);
       });
       this.resArr = resArr;
-      console.log("取词模式");
-      console.log(this.resArr);
       // 循环文章图片
       if (curQue.img_list) {
         curQue.img_list.forEach((item) => {

+ 1 - 1
src/components/Adult/preview/ArticleViewChs/index.vue

@@ -68,6 +68,7 @@
         :themeColor="themeColor"
         :noFont="noFont"
         :currentTreeID="currentTreeID"
+        :bodyLeft="bodyLeft"
         v-if="showPhrases"
       />
       <Practice
@@ -175,7 +176,6 @@ export default {
     this.$nextTick(() => {
       this.bodyLeft = this.$refs.ArticleViewbody.getBoundingClientRect().left;
     });
-    console.log(this.NNPENewWordList);
   },
   beforeCreate() {}, //生命周期 - 创建之前
   beforeMount() {}, //生命周期 - 挂载之前

+ 4 - 0
src/components/Adult/preview/AudioLine.vue

@@ -172,6 +172,10 @@ export default {
           item.pause();
         }
       });
+      let video = document.getElementsByTagName("video");
+      video.forEach((item) => {
+        item.pause();
+      });
 
       if (this.audio.playing) {
         this.$refs[audioId].pause();

+ 16 - 3
src/components/Adult/preview/DialogueArticleViewChs/NormalModelChs.vue

@@ -236,7 +236,15 @@
               <img :src="articleImg[index + 1]" v-if="articleImg[index + 1]" />
             </div>
           </div>
-          <div class="remarkBox remark-top" v-if="item.remarkDetail">
+          <div
+            :class="[
+              'remarkBox',
+              item.roleDetail.detail.wordsList.length > 0
+                ? 'remark-top'
+                : 'remark-top-8',
+            ]"
+            v-if="item.remarkDetail"
+          >
             <RemarkChs :remarkDetail="item.remarkDetail" />
           </div>
         </div>
@@ -350,6 +358,7 @@ export default {
       left: 0,
       curNoteCon: null,
       screenHeight: 0,
+      contentWidth: 732,
     };
   },
   computed: {
@@ -576,12 +585,12 @@ export default {
       }
       _this.clientY = e.clientY;
       let left = e.clientX;
-      let width = 442;
+      let width = 642;
 
       if (left - this.bodyLeft > this.contentWidth / 2) {
         _this.left = left - width + 10;
       } else {
-        _this.left = left;
+        _this.left = left - 200;
       }
     },
     // 处理分词数据
@@ -792,6 +801,7 @@ export default {
       font-size: 14px;
       line-height: 22px;
       color: rgba(0, 0, 0, 0.85);
+      padding-left: 3px;
     }
     &.NNPE-detail-title {
       .wordsList-box {
@@ -862,6 +872,9 @@ export default {
     &.remark-top {
       padding-top: 44px;
     }
+    &.remark-top-8 {
+      padding-top: 8px;
+    }
   }
   .NNPE-noteDetail {
     position: fixed;

+ 27 - 24
src/components/Adult/preview/DialogueArticleViewChs/PhraseModelChs.vue

@@ -321,6 +321,7 @@ export default {
       noteNum: "",
       oldNoteNum: "",
       curNoteCon: null,
+      contentWidth: 732,
     };
   },
   computed: {},
@@ -499,7 +500,6 @@ export default {
       let NewWordList = [];
       this.NNPENewWordList.forEach((item) => {
         item.forEach((wItem) => {
-          console.log(wItem.new_word);
           NewWordList.push(wItem.new_word);
         });
       });
@@ -508,28 +508,30 @@ export default {
 
     showWordDetail(e, word) {
       let _this = this;
-      if (_this.oldHz != word) {
-        this.isShow = false;
-        setTimeout(() => {
-          _this.hz = word;
-        }, 50);
-      }
-      _this.clientY = e.clientY;
-      let left = e.clientX;
-      let width = 0;
+      if (this.newWordList.indexOf(word) > -1) {
+        if (_this.oldHz != word) {
+          this.isShow = false;
+          setTimeout(() => {
+            _this.hz = word;
+          }, 50);
+        }
+        _this.clientY = e.clientY;
+        let left = e.clientX;
+        let width = 0;
 
-      if (word.length == 1 || word.length == 2) {
-        width = 304;
-      } else if (word.length == 3 || word.length == 4) {
-        width = 432;
-      } else if (word.length > 3) {
-        width = 560;
-      }
+        if (word.length == 1 || word.length == 2) {
+          width = 304;
+        } else if (word.length == 3 || word.length == 4) {
+          width = 432;
+        } else if (word.length > 3) {
+          width = 560;
+        }
 
-      if (left - this.bodyLeft > this.contentWidth / 2) {
-        _this.left = left - width + 10;
-      } else {
-        _this.left = left;
+        if (left - this.bodyLeft > this.contentWidth / 2) {
+          _this.left = left - width + 10;
+        } else {
+          _this.left = left;
+        }
       }
     },
     hideWordDetail() {
@@ -581,12 +583,12 @@ export default {
       }
       _this.clientY = e.clientY;
       let left = e.clientX;
-      let width = 442;
-
+      let width = 642;
+      debugger;
       if (left - this.bodyLeft > this.contentWidth / 2) {
         _this.left = left - width + 10;
       } else {
-        _this.left = left;
+        _this.left = left - 200;
       }
     },
     // 处理注释数据
@@ -712,6 +714,7 @@ export default {
       font-size: 14px;
       line-height: 22px;
       color: rgba(0, 0, 0, 0.85);
+      padding-left: 3px;
     }
     .NNPE-words {
       float: left;

+ 1 - 0
src/components/Adult/preview/DialogueArticleViewChs/Practicechs.vue

@@ -675,6 +675,7 @@ export default {
     font-size: 14px;
     line-height: 22px;
     color: rgba(0, 0, 0, 0.45);
+    padding-left: 3px;
     &.wordBlank {
       color: rgba(0, 0, 0, 0.85);
     }

+ 1 - 0
src/components/Adult/preview/DialogueArticleViewChs/WordModelChs.vue

@@ -711,6 +711,7 @@ export default {
       font-size: 14px;
       line-height: 22px;
       color: rgba(0, 0, 0, 0.85);
+      padding-left: 3px;
     }
 
     .NNPE-words {

+ 1 - 0
src/components/Adult/preview/DialogueArticleViewChs/index.vue

@@ -71,6 +71,7 @@
         :themeColor="themeColor"
         :noFont="noFont"
         :currentTreeID="currentTreeID"
+        :bodyLeft="bodyLeft"
         v-if="showPhrases"
       />
       <Practice

+ 0 - 2
src/components/Adult/preview/SentenceSegWordViewChs.vue

@@ -40,8 +40,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log("句子分词浏览!");
-    console.log(this.curQue);
     if (this.curQue) {
       this.handleCurQue();
     }

+ 0 - 2
src/components/Adult/preview/TextInputRecord.vue

@@ -103,7 +103,6 @@ export default {
               }
             });
           });
-          console.log(str);
         }, 1000);
       }
     },
@@ -137,7 +136,6 @@ export default {
       } else {
         this.resArr.push(numList);
       }
-      console.log(this.resArr);
     },
     addTone(number, con) {
       let _this = this;

+ 1 - 3
src/components/Adult/preview/components/Adultstrockplay.vue

@@ -27,9 +27,7 @@ export default {
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
-  mounted() {
-    console.log(this.index);
-  },
+  mounted() {},
   beforeCreate() {}, //生命周期 - 创建之前
   beforeMount() {}, //生命周期 - 挂载之前
   beforeUpdate() {}, //生命周期 - 更新之前

+ 34 - 7
src/components/Adult/preview/components/Intp.vue

@@ -1,15 +1,26 @@
 <!--  -->
 <template>
-  <div class="wordIntp" v-if="word">
+  <div class="wordIntp" v-if="flag">
     <el-menu
       :default-active="activeIndex"
       class="el-menu-demo"
       mode="horizontal"
       @select="handleSelect"
     >
-      <el-menu-item index="1">释义</el-menu-item>
-      <el-menu-item index="2">近/反义词</el-menu-item>
-      <el-menu-item index="3">组词</el-menu-item>
+      <el-menu-item index="1" v-if="paraphrase && paraphrase.length > 0"
+        >释义</el-menu-item
+      >
+      <el-menu-item
+        index="2"
+        v-if="
+          (synonymList && synonymList.length > 0) ||
+          (antonymList && antonymList.length > 0)
+        "
+        >近/反义词</el-menu-item
+      >
+      <el-menu-item index="3" v-if="termsList && termsList.length > 0"
+        >组词</el-menu-item
+      >
     </el-menu>
     <template v-if="activeIndex == '1'">
       <div class="bwc-intp">
@@ -316,7 +327,24 @@ export default {
       ],
     };
   },
-  computed: {},
+  computed: {
+    flag() {
+      let _this = this;
+      let flag = false;
+      if (_this.word) {
+        if (_this.paraphrase && _this.paraphrase.length > 0) {
+          flag = true;
+        } else if (_this.synonymList && _this.synonymList.length > 0) {
+          flag = true;
+        } else if (_this.antonymList && _this.antonymList.length > 0) {
+          flag = true;
+        } else if (_this.termsList && _this.termsList.length > 0) {
+          flag = true;
+        }
+      }
+      return flag;
+    },
+  },
   watch: {
     word: {
       handler: function (val, oldVal) {
@@ -341,7 +369,6 @@ export default {
       let _this = this;
       let data = {
         query: this.word.new_word,
-        //  query: "开心",
       };
       getHZChineseInfo(data).then((res) => {
         _this.dataDetail = res.data.result;
@@ -371,7 +398,7 @@ export default {
                 // 反义词
                 _this.antonymList = itemss.objects;
               } else if (itemss.key == "terms") {
-                // 反义
+                // 
                 _this.termsList = itemss.objects;
               }
             });

+ 1 - 1
src/components/Adult/preview/components/Notecard.vue

@@ -55,7 +55,7 @@ export default {
 <style lang='scss' scoped>
 //@import url(); 引入公共css类
 .NoteCard {
-  width: 442px;
+  width: 642px;
   max-height: 261px;
   overflow-y: auto;
   background: #ffffff;

+ 2 - 3
src/components/Adult/preview/components/Wordcard.vue

@@ -75,7 +75,7 @@
     >
       <span v-html="defStr"> </span>
     </div>
-    <div class="bwc-more-intp" @click="viewIntp">更多释义</div>
+    <div class="bwc-more-intp" @click="viewIntp">词典释义</div>
     <div class="bwc-footer">
       <button class="bwc-btn">
         <img
@@ -193,7 +193,6 @@ export default {
       this.isPraShow = false;
     },
     viewIntp() {
-      debugger;
       this.isIntpShow = false;
       this.word.detail.list1 = [];
       this.word.detail.list2 = [];
@@ -312,7 +311,7 @@ export default {
   .practiceBox {
     position: fixed;
     left: 0;
-    top: 0;
+    top: 0px;
     z-index: 999;
     width: 100%;
     height: 100vh;

+ 0 - 1
src/components/Header.vue

@@ -269,7 +269,6 @@ export default {
       });
     },
     async changeLang(command) {
-      console.log(command);
       this.lang = command.language_name;
       let lang_type = command.language_type;
       await setI18nLang(lang_type);

+ 0 - 1
src/components/TreeView.vue

@@ -197,7 +197,6 @@ export default {
   },
   created() {
     this.getList();
-    console.log(this.bookId);
     //this.$refs.tree.foldAllAfterMounted = true;
   },
 };

+ 7 - 0
src/components/common/Audio.vue

@@ -31,6 +31,13 @@ export default {
   methods: {
     handlePlayVoice() {
       let _this = this;
+      let audio = document.getElementsByTagName("audio");
+      audio.forEach((item) => {
+        if (item.src != _this.mp3) {
+          item.pause();
+        }
+      });
+
       if (!_this.mp3) {
         return;
       }

+ 115 - 111
src/components/common/AudioRed.vue

@@ -1,133 +1,137 @@
 <!--  -->
 <template>
-    <div @click="handlePlayVoice" class="content-voices" v-if="mp3">
-        <img :src="voiceSrc">
-    </div>
+  <div @click="handlePlayVoice" class="content-voices" v-if="mp3">
+    <img :src="voiceSrc" />
+  </div>
 </template>
 
 <script>
 export default {
-    components: {},
-    props: ["seconds", "mp3", "wav"],
-    data () {
-        return {
-            audio: new Audio(),
-            voiceSrc: "",
-            voicePauseSrc: require("../../assets/common/icon-voice-red.png"),
-            voicePlaySrc: require("../../assets/common/icon-voice-red-play.png"),
-        };
-    },
-    computed: {},
-    watch: {},
-    //方法集合
-    methods: {
-        handlePlayVoice () {
-            if (!this.audio.paused) {
-                this.audio.pause();
-            } else {
-                let _this = this;
-                _this.audio.pause();
-                _this.audio.load();
-                _this.audio.src = _this.mp3;
-                _this.audio.loop = false;
-                _this.audio.play();
-            }
-
-        },
-        stopAudio () {
-            if (this.audio) {
-                this.audio.pause();
-            }
-        },
-    },
-    //生命周期 - 创建完成(可以访问当前this实例)
-    created () {
-        var that = this;
-        window.stopAudioVoice = function () {
-            if (that.audio) {
-                that.audio.pause();
-            }
-        };
+  components: {},
+  props: ["seconds", "mp3", "wav"],
+  data() {
+    return {
+      audio: new Audio(),
+      voiceSrc: "",
+      voicePauseSrc: require("../../assets/common/icon-voice-red.png"),
+      voicePlaySrc: require("../../assets/common/icon-voice-red-play.png"),
+    };
+  },
+  computed: {},
+  watch: {},
+  //方法集合
+  methods: {
+    handlePlayVoice() {
+      let _this = this;
+      let audio = document.getElementsByTagName("audio");
+      audio.forEach((item) => {
+        if (item.src != _this.mp3) {
+          item.pause();
+        }
+      });
+      if (!_this.audio.paused) {
+        _this.audio.pause();
+      } else {
+        let _this = _this;
+        _this.audio.pause();
+        _this.audio.load();
+        _this.audio.src = _this.mp3;
+        _this.audio.loop = false;
+        _this.audio.play();
+      }
     },
-    //生命周期 - 挂载完成(可以访问DOM元素)
-    mounted () {
-        let _this = this;
-        _this.voiceSrc = _this.voicePauseSrc;
-        _this.audio.addEventListener("play", function () {
-            console.log("播放");
-            _this.voiceSrc = _this.voicePlaySrc;
-        });
-        _this.audio.addEventListener("pause", function () {
-            _this.voiceSrc = _this.voicePauseSrc;
-        });
-        _this.audio.addEventListener("ended", function () {
-            console.log("停止");
-            _this.voiceSrc = _this.voicePauseSrc;
-        });
+    stopAudio() {
+      if (this.audio) {
+        this.audio.pause();
+      }
     },
-    beforeCreate () { }, //生命周期 - 创建之前
-    beforeMount () { }, //生命周期 - 挂载之前
-    beforeUpdate () { }, //生命周期 - 更新之前
-    updated () { }, //生命周期 - 更新之后
-    beforeDestroy () {
-    }, //生命周期 - 销毁之前
-    destroyed () {
-    }, //生命周期 - 销毁完成
-    activated () { }, //如果页面有keep-alive缓存功能,这个函数会触发
+  },
+  //生命周期 - 创建完成(可以访问当前this实例)
+  created() {
+    var that = this;
+    window.stopAudioVoice = function () {
+      if (that.audio) {
+        that.audio.pause();
+      }
+    };
+  },
+  //生命周期 - 挂载完成(可以访问DOM元素)
+  mounted() {
+    let _this = this;
+    _this.voiceSrc = _this.voicePauseSrc;
+    _this.audio.addEventListener("play", function () {
+      console.log("播放");
+      _this.voiceSrc = _this.voicePlaySrc;
+    });
+    _this.audio.addEventListener("pause", function () {
+      _this.voiceSrc = _this.voicePauseSrc;
+    });
+    _this.audio.addEventListener("ended", function () {
+      console.log("停止");
+      _this.voiceSrc = _this.voicePauseSrc;
+    });
+  },
+  beforeCreate() {}, //生命周期 - 创建之前
+  beforeMount() {}, //生命周期 - 挂载之前
+  beforeUpdate() {}, //生命周期 - 更新之前
+  updated() {}, //生命周期 - 更新之后
+  beforeDestroy() {}, //生命周期 - 销毁之前
+  destroyed() {}, //生命周期 - 销毁完成
+  activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
 };
 </script>
 <style lang='scss' scoped>
 //@import url(); 引入公共css类
 .content-voices {
-    display: flex;
-    align-items: center;
-    justify-content: center;
-    width: 100%;
-    font-size: 0;
-    cursor: pointer;
-    span {
-        color: #2c2c2c;
-        font-size: 24px;
-        line-height: 30px;
-        float: left;
-        font-family: sourceR;
-        &.noMp3 {
-            margin-left: 0px;
-        }
-    }
-    img {
-        height: 24px;
-        float: left;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  width: 100%;
+  font-size: 0;
+  cursor: pointer;
+  span {
+    color: #2c2c2c;
+    font-size: 24px;
+    line-height: 30px;
+    float: left;
+    font-family: sourceR;
+    &.noMp3 {
+      margin-left: 0px;
     }
+  }
+  img {
+    height: 24px;
+    float: left;
+  }
 }
 .questionMiddle {
-    .content-voices {
-        span {
-            font-size: 16px;
-            line-height: 20px;
-            &.noMp3 {
-                margin-left: 0px;
-            }
-        }
-        img {
-            height: 16px;
-            float: left;
-        }
+  .content-voices {
+    span {
+      font-size: 16px;
+      line-height: 20px;
+      &.noMp3 {
+        margin-left: 0px;
+      }
     }
+    img {
+      height: 16px;
+      float: left;
+    }
+  }
 }
 .questionSmall {
-    .content-voices {
-        span {
-            font-size: 12px;
-            line-height: 15px;
-            &.noMp3 {
-                margin-left: 0px;
-            }
-        }
-        img {
-            height: 12px;
-            float: left;
-        }
+  .content-voices {
+    span {
+      font-size: 12px;
+      line-height: 15px;
+      &.noMp3 {
+        margin-left: 0px;
+      }
+    }
+    img {
+      height: 12px;
+      float: left;
     }
+  }
 }
 </style>