natasha 3 rokov pred
rodič
commit
0d580115b3

+ 2 - 2
src/components/Adult/Preview.vue

@@ -226,13 +226,13 @@
                     v-if="refresh"
                   />
                 </template>
-                <template v-if="itemss.type == 'sentence_segword_chs'">
+                <!-- <template v-if="itemss.type == 'sentence_segword_chs'">
                   <SentenceSegWordViewChs
                     :cur-que="itemss.data"
                     :theme-color="themeColor"
                     v-if="refresh"
                   />
-                </template>
+                </template> -->
                 <template v-if="itemss.type == 'dialogue_article_chs'">
                   <DialogueArticleViewChs
                     :cur-que="itemss.data"

+ 5 - 1
src/components/Adult/common/SentenceModule.vue

@@ -25,7 +25,7 @@
       <SentenceSegwordChs :curQue="curQueItem.detail" />
       <div class="adult-book-input-item">
         <span class="adult-book-lable"></span>
-        <span v-if="curQue.wordTime.length > 0" class="lrc">
+        <span v-if="curQue.wordTime&&curQue.wordTime.length > 0" class="lrc">
           <el-input v-model="curQue.wordTime[index].bg" size="small" />
           <span> ~ </span>
           <el-input v-model="curQue.wordTime[index].ed" size="small" />
@@ -51,6 +51,7 @@
         placeholder="请输入内容"
         v-model="curQueItem.con"
         @blur="onBlur(curQueItem, 'con')"
+        @change="forceUpdate"
       ></el-input>
     </div>
     <div class="adult-book-input-item" v-if="type == 'recordHZ_inputPY_chs'">
@@ -210,6 +211,9 @@ export default {
   watch: {},
   //方法集合
   methods: {
+    forceUpdate(){
+        this.$forceUpdate()
+    },
     onBlur(item, field) {
       item[field] = item[field] ? item[field].trim() : "";
     },

+ 720 - 724
src/components/Adult/common/data.js

@@ -1,738 +1,734 @@
 let fnData = [{
-  type: "article_chs",
-  name: "课文",
-}, {
-  type: "dialogue_article_chs",
-  name: "对话课文",
-},
-{
-  type: "sentence_segword_chs",
-  name: "句子分词",
-},
-{
-  type: "NewWord_chs",
-  name: "生词",
-},
-{
-  type: "notes_chs",
-  name: "注释",
+        type: "article_chs",
+        name: "课文",
+    }, {
+        type: "dialogue_article_chs",
+        name: "对话课文",
+    },
+    // {
+    //     type: "sentence_segword_chs",
+    //     name: "句子分词",
+    // },
+    {
+        type: "NewWord_chs",
+        name: "生词",
+    },
+    {
+        type: "notes_chs",
+        name: "注释",
 
-}, {
-  type: "dialogue_answer_chs",
-  name: "对话题模板"
-}, {
-  type: "sentence_chs",
-  name: "句子模板",
-  list: [{
-    type: "sentence_input_chs",
-    name: "句子填空",
-  },
-  {
-    type: "sentence_judge_chs",
-    name: "句子判断",
-  },
-  {
-    type: "sentence_record_chs",
-    name: "句子录音",
-  },
-  {
-    type: "sentence_input_record_chs",
-    name: "句子填空+录音",
-  },
-  {
-    type: "sentence_listen_read_chs",
-    name: "句子听+朗读",
-  },
-  ],
+    }, {
+        type: "dialogue_answer_chs",
+        name: "对话题模板"
+    }, {
+        type: "sentence_chs",
+        name: "句子模板",
+        list: [{
+                type: "sentence_input_chs",
+                name: "句子填空",
+            },
+            {
+                type: "sentence_judge_chs",
+                name: "句子判断",
+            },
+            {
+                type: "sentence_record_chs",
+                name: "句子录音",
+            },
+            {
+                type: "sentence_input_record_chs",
+                name: "句子填空+录音",
+            },
+            {
+                type: "sentence_listen_read_chs",
+                name: "句子听+朗读",
+            },
+        ],
 
-},
-// {
-//     type: "image_question",
-//     name: "看图模板",
-//     list: [{
-//         type: "image_question_input",
-//         name: "看图填空",
-//     }, {
-//         type: "image_question_record",
-//         name: "看图录入",
-//     }, {
-//         type: "image_question_input_record",
-//         name: "看图填空+录入",
-//     }]
-// }, 
-{
-  type: "voice_matrix",
-  name: "语音矩阵",
-},
-//  {
-//     type: "divider",
-//     name: "分割线",
-//     data_structure: {
-//         type: 'divider',
-//         name: "分割线",
-//     }
-// },
-// {
-//     type: "text",
-//     name: "文本描述",
-//     data_structure: {
-//         type: 'text',
-//         name: "文本描述",
-//         con: '',
-//         pinyin: '',
-//         english: '',
-//         img_list: [],
-//         mp3_list: []
-//     }
-// },
-{
-  type: "single_chs",
-  name: "单选题",
-},
-// {
-//     type: "listen_record_single_chs",
-//     name: "听录音选答案",
-// },
-// {
-//     type: "checkbox_chs",
-//     name: "多选题",
-// },
-{
-  type: "checkbox_self_assessment_chs",
-  name: "自我评估"
-},
-// {
-//     type: "judge",
-//     name: "判断题",
-//     data_structure: {
-//         type: 'judge',
-//         name: "判断题",
-//         title: "",
-//         con: '',
-//         pinyin: '',
-//         img_list: [],
-//         mp3_list: [],
-//         judge: ''
-//     }
-// },
-// {
-//     type: "multiRowInput",
-//     name: "多行文本题",
-//     data_structure: {
-//         type: 'multiRowInput',
-//         name: "多行文本题",
-//         title: "",
-//         con: [{
-//             con: '',
-//             annotation: "", //注释
-//         }],
-//         pinyin: '',
-//         img_list: [],
-//         mp3_list: [],
-//         fn_list: [{
-//             type: 'astrictNumber',
-//             name: '限制字数',
-//             isFn: false,
-//         }, ],
-//     }
-// },
-// {
-//     type: "singleRowInput",
-//     name: "单行文本题",
-//     data_structure: {
-//         type: 'singleRowInput',
-//         name: "单行文本题",
-//         title: "",
+    },
+    // {
+    //     type: "image_question",
+    //     name: "看图模板",
+    //     list: [{
+    //         type: "image_question_input",
+    //         name: "看图填空",
+    //     }, {
+    //         type: "image_question_record",
+    //         name: "看图录入",
+    //     }, {
+    //         type: "image_question_input_record",
+    //         name: "看图填空+录入",
+    //     }]
+    // }, 
+    {
+        type: "voice_matrix",
+        name: "语音矩阵",
+    },
+    //  {
+    //     type: "divider",
+    //     name: "分割线",
+    //     data_structure: {
+    //         type: 'divider',
+    //         name: "分割线",
+    //     }
+    // },
+    // {
+    //     type: "text",
+    //     name: "文本描述",
+    //     data_structure: {
+    //         type: 'text',
+    //         name: "文本描述",
+    //         con: '',
+    //         pinyin: '',
+    //         english: '',
+    //         img_list: [],
+    //         mp3_list: []
+    //     }
+    // },
+    {
+        type: "single_chs",
+        name: "单选题",
+    },
+    // {
+    //     type: "listen_record_single_chs",
+    //     name: "听录音选答案",
+    // },
+    // {
+    //     type: "checkbox_chs",
+    //     name: "多选题",
+    // },
+    {
+        type: "checkbox_self_assessment_chs",
+        name: "自我评估"
+    },
+    // {
+    //     type: "judge",
+    //     name: "判断题",
+    //     data_structure: {
+    //         type: 'judge',
+    //         name: "判断题",
+    //         title: "",
+    //         con: '',
+    //         pinyin: '',
+    //         img_list: [],
+    //         mp3_list: [],
+    //         judge: ''
+    //     }
+    // },
+    // {
+    //     type: "multiRowInput",
+    //     name: "多行文本题",
+    //     data_structure: {
+    //         type: 'multiRowInput',
+    //         name: "多行文本题",
+    //         title: "",
+    //         con: [{
+    //             con: '',
+    //             annotation: "", //注释
+    //         }],
+    //         pinyin: '',
+    //         img_list: [],
+    //         mp3_list: [],
+    //         fn_list: [{
+    //             type: 'astrictNumber',
+    //             name: '限制字数',
+    //             isFn: false,
+    //         }, ],
+    //     }
+    // },
+    // {
+    //     type: "singleRowInput",
+    //     name: "单行文本题",
+    //     data_structure: {
+    //         type: 'singleRowInput',
+    //         name: "单行文本题",
+    //         title: "",
 
-//         con: [{
-//             con: '',
-//             annotation: "", //注释
-//         }],
-//         pinyin: '',
-//         img_list: [],
-//         mp3_list: [],
-//         fn_list: [{
-//             type: 'astrictNumber',
-//             name: '限制字数',
-//             isFn: false,
-//         }, ],
-//     }
-// },
-// {
-//     type: "hanzi",
-//     name: "汉字模版",
-//     data_structure: {
-//         type: 'hanzi',
-//         name: "汉字模版",
-//         title: "",
-//         option: [{
-//             hanzi: '',
-//             pinyin: '',
-//             mp3_list: [],
-//             img_list: [],
-//             definition_list: [''],
-//             isAnswer: '',
-//             isChecked: '',
-//             isJudge: '',
-//             correctInput: ''
-//         }],
+    //         con: [{
+    //             con: '',
+    //             annotation: "", //注释
+    //         }],
+    //         pinyin: '',
+    //         img_list: [],
+    //         mp3_list: [],
+    //         fn_list: [{
+    //             type: 'astrictNumber',
+    //             name: '限制字数',
+    //             isFn: false,
+    //         }, ],
+    //     }
+    // },
+    // {
+    //     type: "hanzi",
+    //     name: "汉字模版",
+    //     data_structure: {
+    //         type: 'hanzi',
+    //         name: "汉字模版",
+    //         title: "",
+    //         option: [{
+    //             hanzi: '',
+    //             pinyin: '',
+    //             mp3_list: [],
+    //             img_list: [],
+    //             definition_list: [''],
+    //             isAnswer: '',
+    //             isChecked: '',
+    //             isJudge: '',
+    //             correctInput: ''
+    //         }],
 
-//         correct: [{
-//             single: [],
-//             checkBox: [],
-//             judge: [],
-//             input: [],
-//             spell: []
-//         }],
-//         fn_list: [{
-//                 type: 'def',
-//                 name: '更多释义',
-//                 isFn: false,
-//                 isDisable: false,
-//             },
-//             {
-//                 type: 'record',
-//                 name: '跟读',
-//                 isFn: false,
-//                 isDisable: false,
-//             },
-//             {
-//                 type: 'spell',
-//                 name: '拼写',
-//                 isFn: false,
-//                 isDisable: false,
-//             },
-//             {
-//                 type: 'input',
-//                 name: '输入',
-//                 isFn: false,
-//                 isDisable: false,
-//             },
-//             {
-//                 type: 'copy',
-//                 name: '摹写',
-//                 isFn: false,
-//                 isDisable: false,
-//             },
-//             {
-//                 type: 'single',
-//                 name: '单选',
-//                 isFn: false,
-//                 isDisable: false,
-//             }, {
-//                 type: 'checkBox',
-//                 name: '多选',
-//                 isFn: false,
-//                 isDisable: false,
-//             }, {
-//                 type: 'judge',
-//                 name: '判断',
-//                 isFn: false,
-//                 isDisable: false,
-//             },
-//         ]
-//     },
-// },
-{
-  type: "image",
-  name: "图片控件",
-  list: [{
-    type: 'image_checkBox',
-    name: "图片多选",
-  },
-  {
-    type: 'image_judge',
-    name: "图片判断",
-  },
-  {
-    type: 'image_single',
-    name: "图片单选",
-  },
-  {
-    type: 'image_dobleinput',
-    name: "双输入",
-  },
-  {
-    type: 'image_gdcy',
-    name: "固定词语",
-  },
-  {
-    type: 'image_input',
-    name: "单行输入",
-  },
-  {
-    type: "imgage_image",
-    name: "纯图片",
-  },
-  ],
-},
+    //         correct: [{
+    //             single: [],
+    //             checkBox: [],
+    //             judge: [],
+    //             input: [],
+    //             spell: []
+    //         }],
+    //         fn_list: [{
+    //                 type: 'def',
+    //                 name: '更多释义',
+    //                 isFn: false,
+    //                 isDisable: false,
+    //             },
+    //             {
+    //                 type: 'record',
+    //                 name: '跟读',
+    //                 isFn: false,
+    //                 isDisable: false,
+    //             },
+    //             {
+    //                 type: 'spell',
+    //                 name: '拼写',
+    //                 isFn: false,
+    //                 isDisable: false,
+    //             },
+    //             {
+    //                 type: 'input',
+    //                 name: '输入',
+    //                 isFn: false,
+    //                 isDisable: false,
+    //             },
+    //             {
+    //                 type: 'copy',
+    //                 name: '摹写',
+    //                 isFn: false,
+    //                 isDisable: false,
+    //             },
+    //             {
+    //                 type: 'single',
+    //                 name: '单选',
+    //                 isFn: false,
+    //                 isDisable: false,
+    //             }, {
+    //                 type: 'checkBox',
+    //                 name: '多选',
+    //                 isFn: false,
+    //                 isDisable: false,
+    //             }, {
+    //                 type: 'judge',
+    //                 name: '判断',
+    //                 isFn: false,
+    //                 isDisable: false,
+    //             },
+    //         ]
+    //     },
+    // },
+    {
+        type: "image",
+        name: "图片控件",
+        list: [{
+                type: 'image_checkBox',
+                name: "图片多选",
+            },
+            {
+                type: 'image_judge',
+                name: "图片判断",
+            },
+            {
+                type: 'image_single',
+                name: "图片单选",
+            },
+            {
+                type: 'image_dobleinput',
+                name: "双输入",
+            },
+            {
+                type: 'image_gdcy',
+                name: "固定词语",
+            },
+            {
+                type: 'image_input',
+                name: "单行输入",
+            },
+            {
+                type: "imgage_image",
+                name: "纯图片",
+            },
+        ],
+    },
 
-// {
-//     type: "audio_control",
-//     name: "音频控制条",
-//     data_structure: {
-//         type: 'audio_control',
-//         name: "音频控制条",
-//         option: [{
-//             xuhao: '',
-//             yinbiao: '',
-//             img_list: [],
-//             mp3_list: [],
-//             isAnswer: ''
-//         }, ],
-//     }
-// },
-// {
-//     type: "audio_control_easy",
-//     name: "音频控制条-简易",
-//     data_structure: {
-//         type: 'audio_control_easy',
-//         name: "音频控制条-简易",
-//         option: [{
-//             xuhao: '',
-//             yinbiao: '',
-//             img_list: [],
-//             mp3_list: [],
-//             isAnswer: ''
-//         }, ],
-//     }
-// },
-{
-  type: "input_record_chs",
-  name: "输入+录音",
-},
-{
-  type: "recordHZ_inputPY_chs",
-  name: "读汉字写拼音",
-},
-{
-  type: "inputItem_chs",
-  name: "输入选项",
-},
-{
-  type: "upload_control_chs",
-  name: "上传控件",
-},
-{
-  type: "upload_control_preview_chs",
-  name: "上传控件预览查看",
-},
-{
-  type: "inputItem_chs",
-  name: "输入选项",
-},
-// {
-//     type: "switch_control_chs",
-//     name: "开关控件",
-// },
-{
-  type: "record_control",
-  name: "录音控件",
-  list: [{
-    type: 'record_control_mini',
-    name: "录音控件-mini",
-  },
-  {
-    type: 'record_control_normal',
-    name: "录音控件-normal",
-  },
-  {
-    type: 'record_control_pro',
-    name: "录音控件-pro",
-  },
-  {
-    type: 'record_control_promax',
-    name: "录音控件-promax",
-  },
-  ],
-  data_structure: {
-    type: 'record_control',
-    name: "录音控件",
-    option: [{
-      hanzi: '',
-      pinyin: '',
-      mp3_list: [],
-      img_list: [],
-      isAnswer: '',
-      isChecked: '',
-      isJudge: '',
-      correctInput: '',
-    }],
-  },
-},
-// {
-//     type: "pure_input",
-//     name: "纯输入",
-//     data_structure: {
-//         type: 'pure_input',
-//         name: "纯输入",
-//         option: [{
-//             answer: "",
-//         }, ],
-//         answer: "",
-//         record: false, //需要录音
-//         mp3_list: [],
-//     }
-// },
-// {
-//     type: "matrixSingle",
-//     name: "矩阵单选",
-//     data_structure: {
-//         type: 'matrixSingle',
-//         name: "矩阵单选",
-//         title: "",
-//         con: [{
-//                 con: "",
-//                 Answer: "",
-//             },
-//             {
-//                 con: "",
-//                 Answer: "",
-//             },
-//         ],
-//         option: [{
-//                 con: '',
-//                 pinyin: '',
-//                 img_list: [],
-//                 mp3_list: [],
-//                 isAnswer: ''
-//             },
-//             {
-//                 con: '',
-//                 pinyin: '',
-//                 img_list: [],
-//                 mp3_list: [],
-//                 isAnswer: ''
-//             }
-//         ],
-//         correct: ["", ""]
-//     }
-// },
-// {
-//     type: "matrixChckbox",
-//     name: "矩阵多选",
-//     data_structure: {
-//         type: 'matrixChckbox',
-//         name: "矩阵多选",
-//         title: "",
+    // {
+    //     type: "audio_control",
+    //     name: "音频控制条",
+    //     data_structure: {
+    //         type: 'audio_control',
+    //         name: "音频控制条",
+    //         option: [{
+    //             xuhao: '',
+    //             yinbiao: '',
+    //             img_list: [],
+    //             mp3_list: [],
+    //             isAnswer: ''
+    //         }, ],
+    //     }
+    // },
+    // {
+    //     type: "audio_control_easy",
+    //     name: "音频控制条-简易",
+    //     data_structure: {
+    //         type: 'audio_control_easy',
+    //         name: "音频控制条-简易",
+    //         option: [{
+    //             xuhao: '',
+    //             yinbiao: '',
+    //             img_list: [],
+    //             mp3_list: [],
+    //             isAnswer: ''
+    //         }, ],
+    //     }
+    // },
+    {
+        type: "input_record_chs",
+        name: "输入+录音",
+    },
+    {
+        type: "recordHZ_inputPY_chs",
+        name: "读汉字写拼音",
+    },
+    {
+        type: "inputItem_chs",
+        name: "输入选项",
+    },
+    {
+        type: "upload_control_chs",
+        name: "上传控件",
+    },
+    {
+        type: "upload_control_preview_chs",
+        name: "上传控件预览查看",
+    },
+    // {
+    //     type: "switch_control_chs",
+    //     name: "开关控件",
+    // },
+    {
+        type: "record_control",
+        name: "录音控件",
+        list: [{
+                type: 'record_control_mini',
+                name: "录音控件-mini",
+            },
+            {
+                type: 'record_control_normal',
+                name: "录音控件-normal",
+            },
+            {
+                type: 'record_control_pro',
+                name: "录音控件-pro",
+            },
+            {
+                type: 'record_control_promax',
+                name: "录音控件-promax",
+            },
+        ],
+        data_structure: {
+            type: 'record_control',
+            name: "录音控件",
+            option: [{
+                hanzi: '',
+                pinyin: '',
+                mp3_list: [],
+                img_list: [],
+                isAnswer: '',
+                isChecked: '',
+                isJudge: '',
+                correctInput: '',
+            }],
+        },
+    },
+    // {
+    //     type: "pure_input",
+    //     name: "纯输入",
+    //     data_structure: {
+    //         type: 'pure_input',
+    //         name: "纯输入",
+    //         option: [{
+    //             answer: "",
+    //         }, ],
+    //         answer: "",
+    //         record: false, //需要录音
+    //         mp3_list: [],
+    //     }
+    // },
+    // {
+    //     type: "matrixSingle",
+    //     name: "矩阵单选",
+    //     data_structure: {
+    //         type: 'matrixSingle',
+    //         name: "矩阵单选",
+    //         title: "",
+    //         con: [{
+    //                 con: "",
+    //                 Answer: "",
+    //             },
+    //             {
+    //                 con: "",
+    //                 Answer: "",
+    //             },
+    //         ],
+    //         option: [{
+    //                 con: '',
+    //                 pinyin: '',
+    //                 img_list: [],
+    //                 mp3_list: [],
+    //                 isAnswer: ''
+    //             },
+    //             {
+    //                 con: '',
+    //                 pinyin: '',
+    //                 img_list: [],
+    //                 mp3_list: [],
+    //                 isAnswer: ''
+    //             }
+    //         ],
+    //         correct: ["", ""]
+    //     }
+    // },
+    // {
+    //     type: "matrixChckbox",
+    //     name: "矩阵多选",
+    //     data_structure: {
+    //         type: 'matrixChckbox',
+    //         name: "矩阵多选",
+    //         title: "",
 
-//         con: [{
-//                 con: "",
-//                 AnswerList: [],
-//             },
-//             {
-//                 type: "matrixChekbox",
-//                 name: "矩阵多选",
-//                 data_structure: {
-//                     type: 'matrixChekbox',
-//                     name: "矩阵多选",
-//                     con: [{
-//                             con: "",
-//                             AnswerList: [],
-//                         },
-//                         {
-//                             con: "",
-//                             AnswerList: [],
-//                         },
-//                     ],
-//                     option: [{
-//                             con: '',
-//                             pinyin: '',
-//                             img_list: [],
-//                             mp3_list: [],
-//                             isAnswer: ''
-//                         },
-//                         {
-//                             con: '',
-//                             pinyin: '',
-//                             img_list: [],
-//                             mp3_list: [],
-//                             isAnswer: ''
-//                         }
-//                     ],
-//                     correct: [
-//                         [],
-//                         []
-//                     ]
-//                 }
-//             },
+    //         con: [{
+    //                 con: "",
+    //                 AnswerList: [],
+    //             },
+    //             {
+    //                 type: "matrixChekbox",
+    //                 name: "矩阵多选",
+    //                 data_structure: {
+    //                     type: 'matrixChekbox',
+    //                     name: "矩阵多选",
+    //                     con: [{
+    //                             con: "",
+    //                             AnswerList: [],
+    //                         },
+    //                         {
+    //                             con: "",
+    //                             AnswerList: [],
+    //                         },
+    //                     ],
+    //                     option: [{
+    //                             con: '',
+    //                             pinyin: '',
+    //                             img_list: [],
+    //                             mp3_list: [],
+    //                             isAnswer: ''
+    //                         },
+    //                         {
+    //                             con: '',
+    //                             pinyin: '',
+    //                             img_list: [],
+    //                             mp3_list: [],
+    //                             isAnswer: ''
+    //                         }
+    //                     ],
+    //                     correct: [
+    //                         [],
+    //                         []
+    //                     ]
+    //                 }
+    //             },
 
-//             {
-//                 con: '',
-//                 pinyin: '',
-//                 img_list: [],
-//                 mp3_list: [],
-//                 isAnswer: ''
-//             }
-//         ],
-//         correct: [
-//             [],
-//             []
-//         ]
-//     }
-// },
+    //             {
+    //                 con: '',
+    //                 pinyin: '',
+    //                 img_list: [],
+    //                 mp3_list: [],
+    //                 isAnswer: ''
+    //             }
+    //         ],
+    //         correct: [
+    //             [],
+    //             []
+    //         ]
+    //     }
+    // },
 
-// {
-//     type: "text_input_RecoedItem",
-//     name: "文字+录入+录音条",
-//     data_structure: {
-//         type: "text_input_RecoedItem",
-//         name: "文字+录入+录音条",
-//         title: "",
-//         option: [{
-//             number: "",
-//             con: "",
-//             answer: "",
-//         }, ]
-//     },
-// },
-// {
-//     type: "dialogue",
-//     name: "对话题",
-//     data_structure: {
-//         type: 'dialogue',
-//         name: "对话题",
-//         title: "",
-//         option: [{
-//                 roleName: "",
-//                 site: "left",
-//                 con: '',
-//                 number: "",
-//                 isRecord: "", //是否需要录音
-//                 mp3_list: [],
-//                 img_list: [],
-//                 definition_list: [],
-//                 AnswerList: [""],
-//                 isAnswer: '',
-//                 isChecked: '',
-//                 judge: '',
-//                 correctInput: ''
-//             },
-//             {
-//                 roleName: "",
-//                 site: "left",
-//                 con: '',
-//                 number: "",
-//                 isRecord: "", //是否需要录音
-//                 mp3_list: [],
-//                 img_list: [],
-//                 definition_list: [],
-//                 AnswerList: [""],
-//                 isAnswer: '',
-//                 isChecked: '',
-//                 judge: '',
-//                 correctInput: ''
-//             },
-//         ],
-//         fn_list: [
-//             // {
-//             //       type: 'def',
-//             //       name: '更多释义',
-//             //       isFn: false,
-//             //   },
-//             {
-//                 type: 'record',
-//                 name: '跟读',
-//                 isFn: false,
-//             },
-//             // {
-//             //     type: 'spell',
-//             //     name: '拼写',
-//             //     isFn: false,
-//             // },
-//             {
-//                 type: 'input',
-//                 name: '输入',
-//                 isFn: false,
-//             },
-//             // {
-//             //     type: 'copy',
-//             //     name: '摹写',
-//             //     isFn: false,
-//             // },
-//             // {
-//             //     type: 'single',
-//             //     name: '单选',
-//             //     isFn: false,
-//             // }, {
-//             //     type: 'checkout',
-//             //     name: '多选',
-//             //     isFn: false,
-//             // }, {
-//             //     type: 'judge',
-//             //     name: '判断',
-//             //     isFn: false,
-//             // },
-//         ],
-//         correct: [{
-//             input: ["", ""],
-//         }]
-//     },
-// },
-{
-  type: "ligature_chs",
-  name: "连线",
-},
-// {
-//     type: "record",
-//     name: "录音题",
-//     data_structure: {
-//         type: "record",
-//         name: "录音题",
-//         title: "",
-//         option: [{
-//             mp3_list: [],
-//             con: "",
-//             value: "",
-//         }, ]
-//     }
-// },
-// {
-//     type: "hearRecord",
-//     name: "听录音题",
-//     data_structure: {
-//         type: "hearRecord",
-//         name: "听录音题",
+    // {
+    //     type: "text_input_RecoedItem",
+    //     name: "文字+录入+录音条",
+    //     data_structure: {
+    //         type: "text_input_RecoedItem",
+    //         name: "文字+录入+录音条",
+    //         title: "",
+    //         option: [{
+    //             number: "",
+    //             con: "",
+    //             answer: "",
+    //         }, ]
+    //     },
+    // },
+    // {
+    //     type: "dialogue",
+    //     name: "对话题",
+    //     data_structure: {
+    //         type: 'dialogue',
+    //         name: "对话题",
+    //         title: "",
+    //         option: [{
+    //                 roleName: "",
+    //                 site: "left",
+    //                 con: '',
+    //                 number: "",
+    //                 isRecord: "", //是否需要录音
+    //                 mp3_list: [],
+    //                 img_list: [],
+    //                 definition_list: [],
+    //                 AnswerList: [""],
+    //                 isAnswer: '',
+    //                 isChecked: '',
+    //                 judge: '',
+    //                 correctInput: ''
+    //             },
+    //             {
+    //                 roleName: "",
+    //                 site: "left",
+    //                 con: '',
+    //                 number: "",
+    //                 isRecord: "", //是否需要录音
+    //                 mp3_list: [],
+    //                 img_list: [],
+    //                 definition_list: [],
+    //                 AnswerList: [""],
+    //                 isAnswer: '',
+    //                 isChecked: '',
+    //                 judge: '',
+    //                 correctInput: ''
+    //             },
+    //         ],
+    //         fn_list: [
+    //             // {
+    //             //       type: 'def',
+    //             //       name: '更多释义',
+    //             //       isFn: false,
+    //             //   },
+    //             {
+    //                 type: 'record',
+    //                 name: '跟读',
+    //                 isFn: false,
+    //             },
+    //             // {
+    //             //     type: 'spell',
+    //             //     name: '拼写',
+    //             //     isFn: false,
+    //             // },
+    //             {
+    //                 type: 'input',
+    //                 name: '输入',
+    //                 isFn: false,
+    //             },
+    //             // {
+    //             //     type: 'copy',
+    //             //     name: '摹写',
+    //             //     isFn: false,
+    //             // },
+    //             // {
+    //             //     type: 'single',
+    //             //     name: '单选',
+    //             //     isFn: false,
+    //             // }, {
+    //             //     type: 'checkout',
+    //             //     name: '多选',
+    //             //     isFn: false,
+    //             // }, {
+    //             //     type: 'judge',
+    //             //     name: '判断',
+    //             //     isFn: false,
+    //             // },
+    //         ],
+    //         correct: [{
+    //             input: ["", ""],
+    //         }]
+    //     },
+    // },
+    {
+        type: "ligature_chs",
+        name: "连线",
+    },
+    // {
+    //     type: "record",
+    //     name: "录音题",
+    //     data_structure: {
+    //         type: "record",
+    //         name: "录音题",
+    //         title: "",
+    //         option: [{
+    //             mp3_list: [],
+    //             con: "",
+    //             value: "",
+    //         }, ]
+    //     }
+    // },
+    // {
+    //     type: "hearRecord",
+    //     name: "听录音题",
+    //     data_structure: {
+    //         type: "hearRecord",
+    //         name: "听录音题",
 
-//         title: "",
-//         option: [{
-//             mp3_list: [],
-//             con: "",
-//             value: "",
-//         }, ]
-//     }
-// },
-// {
-//     type: "sort",
-//     name: "排序题",
-// },
-// {
-//     type: "blank",
-//     name: "填空题",
-// },
-// {
-//     type: "annex",
-//     name: "附件题",
-// },
-// {
-//     type: "dropdown",
-//     name: "下拉题",
-// },
-// {
-//     type: "drawing",
-//     name: "画图题",
-// },
-// {
-//     type: "text_item",
-//     name: "文本条",
-//     data_structure: {
-//         type: "text_item",
-//         name: "文本条",
-//         title: "",
-//         option: [{
-//             number: "",
-//             con: "",
-//         }],
-//         numberList: {
-//             type: "number",
-//             name: "每行几个",
-//             con: "2",
-//             arr: [{
-//                     id: 1,
-//                     value: 1,
-//                 }, {
-//                     id: 2,
-//                     value: 2,
+    //         title: "",
+    //         option: [{
+    //             mp3_list: [],
+    //             con: "",
+    //             value: "",
+    //         }, ]
+    //     }
+    // },
+    // {
+    //     type: "sort",
+    //     name: "排序题",
+    // },
+    // {
+    //     type: "blank",
+    //     name: "填空题",
+    // },
+    // {
+    //     type: "annex",
+    //     name: "附件题",
+    // },
+    // {
+    //     type: "dropdown",
+    //     name: "下拉题",
+    // },
+    // {
+    //     type: "drawing",
+    //     name: "画图题",
+    // },
+    // {
+    //     type: "text_item",
+    //     name: "文本条",
+    //     data_structure: {
+    //         type: "text_item",
+    //         name: "文本条",
+    //         title: "",
+    //         option: [{
+    //             number: "",
+    //             con: "",
+    //         }],
+    //         numberList: {
+    //             type: "number",
+    //             name: "每行几个",
+    //             con: "2",
+    //             arr: [{
+    //                     id: 1,
+    //                     value: 1,
+    //                 }, {
+    //                     id: 2,
+    //                     value: 2,
 
-//                 }, {
-//                     id: 3,
-//                     value: 3,
-//                 },
-//                 {
-//                     id: 4,
-//                     value: 4,
-//                 },
-//             ]
-//         }
-//     }
-// },
-// {
-//     type: "bg_control",
-//     name: "背景图控件",
-//     data_structure: {
-//         type: 'bg_control',
-//         name: "背景图控件",
-//         img_list: [],
-//     }
-// },
-{
-  type: "NumberCombination_chs",
-  name: "数字组合",
-},
-{
-  type: "toneSelect_chs",
-  name: "音调选择",
-},
-{
-  type: "sudoku_chs",
-  name: "数独",
-},
-{
-  type: "text_problem_chs",
-  name: "课文上方的问题",
-},
-{
-  type: "newWord_preview_chs",
-  name: "生字展示",
-},
-{
-  type: "listen_record_single_syllable_chs",
-  name: "听录音选音节",
-},
-// {
-//     type: "zi_transverse_line_chs",
-//     name: "字+横线",
-// },
-{
-  type: "select_input_chs",
-  name: "选择填空控件",
-},
-{
-  type: "play_input_record_chs",
-  name: "播放+输入+录音",
-},
-{
-  type: "drag_chs",
-  name: "拖拽",
-},
-{
-  type: "sort_chs",
-  name: "排序"
-},
-{
-  type: "CourseStart_chs",
-  name: "封面",
-},
-{
-  type: "tinydemo_chs",
-  name: "富文本"
-},
-{
-  type: "video_chs",
-  name: "视频控件"
-},
-{
-  type: "table_chs",
-  name: "表格",
-},
-{
-  type: "play_record_chs",
-  name: "播放音频控件",
-},
-{
-  type: "upload_pdf_chs",
-  name: "上传pdf",
-},
+    //                 }, {
+    //                     id: 3,
+    //                     value: 3,
+    //                 },
+    //                 {
+    //                     id: 4,
+    //                     value: 4,
+    //                 },
+    //             ]
+    //         }
+    //     }
+    // },
+    // {
+    //     type: "bg_control",
+    //     name: "背景图控件",
+    //     data_structure: {
+    //         type: 'bg_control',
+    //         name: "背景图控件",
+    //         img_list: [],
+    //     }
+    // },
+    {
+        type: "NumberCombination_chs",
+        name: "数字组合",
+    },
+    {
+        type: "toneSelect_chs",
+        name: "音调选择",
+    },
+    {
+        type: "sudoku_chs",
+        name: "数独",
+    },
+    {
+        type: "text_problem_chs",
+        name: "课文上方的问题",
+    },
+    {
+        type: "newWord_preview_chs",
+        name: "生字展示",
+    },
+    {
+        type: "listen_record_single_syllable_chs",
+        name: "听录音选音节",
+    },
+    // {
+    //     type: "zi_transverse_line_chs",
+    //     name: "字+横线",
+    // },
+    // {
+    //     type: "select_input_chs",
+    //     name: "选择填空控件",
+    // },
+    // {
+    //     type: "play_input_record_chs",
+    //     name: "播放+输入+录音",
+    // },
+    {
+        type: "drag_chs",
+        name: "拖拽",
+    },
+    {
+        type: "sort_chs",
+        name: "排序"
+    },
+    {
+        type: "CourseStart_chs",
+        name: "封面",
+    },
+    {
+        type: "tinydemo_chs",
+        name: "富文本"
+    },
+    {
+        type: "video_chs",
+        name: "视频控件"
+    },
+    {
+        type: "table_chs",
+        name: "表格",
+    },
+    {
+        type: "play_record_chs",
+        name: "播放音频控件",
+    },
+    {
+        type: "upload_pdf_chs",
+        name: "上传pdf",
+    },
 ]
 
 

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

@@ -19,6 +19,7 @@ export default {
   data() {
     return {
       reg: /_{2,}/g,
+      wordsList:null,
     };
   },
   computed: {},
@@ -26,14 +27,14 @@ export default {
   //方法集合
   methods: {
     handleCurQue() {
-      let wordList = JSON.parse(JSON.stringify(this.curQue.wordList));
+      let wordList = JSON.parse(JSON.stringify(this.curQue.wordsList));
       wordList.map((item) => {
         if (this.reg.test(item.chs)) {
           item.value = "";
         }
         return item;
       });
-      this.wordList = wordList;
+      this.wordsList = wordList;
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 15 - 9
src/views/courseList.vue

@@ -31,7 +31,7 @@
               label="名称"
               style="margin-right: 30px"
             >
-              <el-input v-model="form.name" maxlength="200" />
+              <el-input v-model="form.name" maxlength="100" />
             </el-form-item>
             <!-- <el-form-item class="label-input" label="作者">
                             <el-input v-model="form.author"></el-input>
@@ -159,7 +159,7 @@
           label-width="90px"
           prop="name"
         >
-          <el-input v-model="formDialog.name" autocomplete="off" name="name" maxlength="200" />
+          <el-input v-model="formDialog.name" autocomplete="off" name="name" maxlength="100" show-word-limit/>
         </el-form-item>
         <el-form-item
           class="label-input"
@@ -171,7 +171,8 @@
             v-model="formDialog.name_english"
             autocomplete="off"
             name="name_english"
-            maxlength="200"
+            maxlength="100"
+            show-word-limit
           />
         </el-form-item>
         <el-form-item label="教材类型" label-width="90px" prop="type_id">
@@ -200,7 +201,8 @@
             v-model="formDialog.author"
             autocomplete="off"
             name="author"
-            maxlength="200"
+            maxlength="20"
+            show-word-limit
           />
         </el-form-item>
         <el-form-item
@@ -213,7 +215,8 @@
             v-model="formDialog.edition"
             autocomplete="off"
             name="edition"
-            maxlength="200"
+            maxlength="20"
+            show-word-limit
           />
         </el-form-item>
         <el-form-item
@@ -226,7 +229,8 @@
             v-model="formDialog.publisher"
             autocomplete="off"
             name="publisher"
-            maxlength="200"
+            maxlength="20"
+            show-word-limit
           />
         </el-form-item>
         <el-form-item
@@ -239,7 +243,8 @@
             v-model="formDialog.publish_number"
             autocomplete="off"
             name="publish_number"
-            maxlength="200"
+            maxlength="30"
+            show-word-limit
           />
         </el-form-item>
         <el-form-item
@@ -252,7 +257,8 @@
             autocomplete="off"
             name="series_code"
             v-model="formDialog.series_code"
-            maxlength="200"
+            maxlength="26"
+            show-word-limit
           ></el-input>
         </el-form-item>
         <el-form-item
@@ -288,7 +294,7 @@
           </el-select>
         </el-form-item>
         <el-form-item label="教材描述" label-width="90px" prop="description">
-          <el-input v-model="formDialog.description" type="textarea" maxlength="3000" />
+          <el-input v-model="formDialog.description" type="textarea" maxlength="100" show-word-limit />
         </el-form-item>
         <!-- <el-form-item label="发布状态" label-width="90px">
                     <el-radio label="0" v-model="formDialog.publish_status">下架</el-radio>