Browse Source

Merge branch 'master' into NPC-lhd

natasha 3 years ago
parent
commit
ac385c4cfa

+ 806 - 784
src/components/Adult/common/data.js

@@ -1,818 +1,840 @@
 let fnData = [{
-        type: "article_chs",
-        name: "课文",
-    }, {
-        type: "dialog_article_chs",
-        name: "对话课文",
-    },
-    {
-        type: "sentence_segword_chs",
-        name: "句子分词",
-    },
-    {
-        type: "NewWord_chs",
-        name: "生词",
-    },
-    {
-        type: "notes_chs",
-        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",
-        name: "单选题",
-        data_structure: {
-            type: 'single',
-            name: "单选题",
-            title: "",
-            option: [{
-                    con: '',
-                    pinyin: '',
-                    img_list: [],
-                    mp3_list: [],
-                    isAnswer: ""
-                },
-                {
-                    con: '',
-                    pinyin: '',
-                    img_list: [],
-                    mp3_list: [],
-                    isAnswer: ""
-                }
-            ],
-            correct: [],
-            numberList: {
-                type: "number",
-                name: "每行几个",
-                con: "2",
-                arr: [{
-                        id: 1,
-                        value: 1,
-                    }, {
-                        id: 2,
-                        value: 2,
+  type: "article_chs",
+  name: "课文",
+}, {
+  type: "dialogue_article_chs",
+  name: "对话课文",
+},
+{
+  type: "sentence_segword_chs",
+  name: "句子分词",
+},
+{
+  type: "NewWord_chs",
+  name: "生词",
+},
+{
+  type: "notes_chs",
+  name: "注释",
 
-                    }, {
-                        id: 3,
-                        value: 3,
-                    },
-                    {
-                        id: 4,
-                        value: 4,
-                    },
-                ]
-            }
-        }
-    },
-    {
-        type: "checkbox",
-        name: "多选题",
-        data_structure: {
-            type: 'checkbox',
-            name: "多选题",
-            title: "",
-            option: [{
-                    con: '',
-                    pinyin: '',
-                    img_list: [],
-                    mp3_list: [],
-                    isAnswer: ''
-                },
-                {
-                    con: '',
-                    pinyin: '',
-                    img_list: [],
-                    mp3_list: [],
-                    isAnswer: ''
-                }
-            ],
-            correct: [],
-            numberList: {
-                type: "number",
-                name: "每行几个",
-                con: "2",
-                arr: [{
-                        id: 1,
-                        value: 1,
-                    }, {
-                        id: 2,
-                        value: 2,
+}, {
+  type: "sentence",
+  name: "句子模板",
+  list: [{
+    type: "sentence_input",
+    name: "句子填空",
+  },
+  {
+    type: "sentence_judge",
+    name: "句子判断",
+  },
+  {
+    type: "sentence_record",
+    name: "句子录音",
+  },
+  {
+    type: "sentence_input_record",
+    name: "句子填空+录音",
+  }
+  ],
 
-                    }, {
-                        id: 3,
-                        value: 3,
-                    },
-                    {
-                        id: 4,
-                        value: 4,
-                    },
-                ]
-            }
-        }
-    },
-    {
-        type: "judge",
-        name: "判断题",
-        data_structure: {
-            type: 'judge',
-            name: "判断题",
-            title: "",
-            con: '',
-            pinyin: '',
-            img_list: [],
-            mp3_list: [],
-            judge: ''
-        }
-    },
+}, {
+  type: "image_question",
+  name: "看图模板",
+  list: [
     {
-        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_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",
+  name: "单选题",
+  data_structure: {
+    type: 'single',
+    name: "单选题",
+    title: "",
+    option: [{
+      con: '',
+      pinyin: '',
+      img_list: [],
+      mp3_list: [],
+      isAnswer: ""
+    },
+    {
+      con: '',
+      pinyin: '',
+      img_list: [],
+      mp3_list: [],
+      isAnswer: ""
+    }
+    ],
+    correct: [],
+    numberList: {
+      type: "number",
+      name: "每行几个",
+      con: "2",
+      arr: [{
+        id: 1,
+        value: 1,
+      }, {
+        id: 2,
+        value: 2,
 
-            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: ''
-            }],
+      }, {
+        id: 3,
+        value: 3,
+      },
+      {
+        id: 4,
+        value: 4,
+      },
+      ]
+    }
+  }
+},
+{
+  type: "checkbox",
+  name: "多选题",
+  data_structure: {
+    type: 'checkbox',
+    name: "多选题",
+    title: "",
+    option: [{
+      con: '',
+      pinyin: '',
+      img_list: [],
+      mp3_list: [],
+      isAnswer: ''
+    },
+    {
+      con: '',
+      pinyin: '',
+      img_list: [],
+      mp3_list: [],
+      isAnswer: ''
+    }
+    ],
+    correct: [],
+    numberList: {
+      type: "number",
+      name: "每行几个",
+      con: "2",
+      arr: [{
+        id: 1,
+        value: 1,
+      }, {
+        id: 2,
+        value: 2,
 
-            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_wordInput',
-                name: "单词+输入",
-            },
-            {
-                type: "imgage_image",
-                name: "纯图片",
-            },
-        ],
-        data_structure: {
-            type: 'image',
-            name: "图片控件",
-            title: "",
-            option: [{
-                hanzi: '',
-                pinyin: '',
-                mp3_list: [],
-                img_list: [],
-                isAnswer: '',
-                isChecked: '',
-                isJudge: '',
-                correctInput: '',
-            }],
-            correct: [{
-                single: [],
-                checkBox: [],
-                judge: [],
-                input: [],
-                spell: []
-            }],
-            fn_list: [{
-                    type: 'image_record',
-                    name: '跟读',
-                    isFn: false,
-                    isDisable: false,
-                },
-                {
-                    type: 'image_spell',
-                    name: '拼写',
-                    isFn: false,
-                    isDisable: false,
-                },
-                {
-                    type: 'image_input',
-                    name: '输入',
-                    isFn: false,
-                    isDisable: false,
-                },
-                {
-                    type: 'image_dobleinput',
-                    name: '双输入',
-                    isFn: false,
-                    isDisable: false,
-                },
-                {
-                    type: 'image_single',
-                    name: '单选',
-                    isFn: false,
-                    isDisable: false,
-                }, {
-                    type: 'image_checkBox',
-                    name: '多选',
-                    isFn: false,
-                    isDisable: false,
-                }, {
-                    type: 'image_judge',
-                    name: '判断',
-                    isFn: false,
-                    isDisable: false,
-                },
-            ],
-            numberList: {
-                type: "number",
-                name: "每行几个",
-                con: "2",
-                arr: [{
-                        id: 1,
-                        value: 1,
-                    }, {
-                        id: 2,
-                        value: 2,
+      }, {
+        id: 3,
+        value: 3,
+      },
+      {
+        id: 4,
+        value: 4,
+      },
+      ]
+    }
+  }
+},
+{
+  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: "",
 
-                    }, {
-                        id: 3,
-                        value: 3,
-                    },
-                    {
-                        id: 4,
-                        value: 4,
-                    },
-                ]
-            }
-        },
-    },
+    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: ''
+    }],
 
-    {
-        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: ''
-            }, ],
-        }
+    correct: [{
+      single: [],
+      checkBox: [],
+      judge: [],
+      input: [],
+      spell: []
+    }],
+    fn_list: [{
+      type: 'def',
+      name: '更多释义',
+      isFn: false,
+      isDisable: false,
     },
     {
-        type: "input_record_chs",
-        name: "输入+录音",
+      type: 'record',
+      name: '跟读',
+      isFn: false,
+      isDisable: false,
     },
     {
-        type: "recordHZ_inputPY_chs",
-        name: "读汉字写拼音",
+      type: 'spell',
+      name: '拼写',
+      isFn: false,
+      isDisable: false,
     },
     {
-        type: "inputItem_chs",
-        name: "输入选项",
+      type: 'input',
+      name: '输入',
+      isFn: false,
+      isDisable: false,
     },
     {
-        type: "upload_control_chs",
-        name: "上传控件",
+      type: 'copy',
+      name: '摹写',
+      isFn: false,
+      isDisable: false,
     },
-    // {
-    //     type: "inputItem_chs",
-    //     name: "输入选项",
-    // },
     {
-        type: "switch_control",
-        name: "开关控件",
-        data_structure: {
-            type: 'switch_control',
-            name: "开关控件",
-            con: "",
-            option: [{
-                con: "", //标题
-                answer: "", //答案
-                record: false, //需要录音
-                mp3_list: [],
-            }, ],
-        }
-    },
-    {
-        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: '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_wordInput',
+    name: "单词+输入",
+  },
+  {
+    type: "imgage_image",
+    name: "纯图片",
+  },
+  ],
+  data_structure: {
+    type: 'image',
+    name: "图片控件",
+    title: "",
+    option: [{
+      hanzi: '',
+      pinyin: '',
+      mp3_list: [],
+      img_list: [],
+      isAnswer: '',
+      isChecked: '',
+      isJudge: '',
+      correctInput: '',
+    }],
+    correct: [{
+      single: [],
+      checkBox: [],
+      judge: [],
+      input: [],
+      spell: []
+    }],
+    fn_list: [{
+      type: 'image_record',
+      name: '跟读',
+      isFn: false,
+      isDisable: false,
+    },
+    {
+      type: 'image_spell',
+      name: '拼写',
+      isFn: false,
+      isDisable: false,
+    },
+    {
+      type: 'image_input',
+      name: '输入',
+      isFn: false,
+      isDisable: false,
+    },
+    {
+      type: 'image_dobleinput',
+      name: '双输入',
+      isFn: false,
+      isDisable: false,
+    },
+    {
+      type: 'image_single',
+      name: '单选',
+      isFn: false,
+      isDisable: false,
+    }, {
+      type: 'image_checkBox',
+      name: '多选',
+      isFn: false,
+      isDisable: false,
+    }, {
+      type: 'image_judge',
+      name: '判断',
+      isFn: false,
+      isDisable: false,
+    },
+    ],
+    numberList: {
+      type: "number",
+      name: "每行几个",
+      con: "2",
+      arr: [{
+        id: 1,
+        value: 1,
+      }, {
+        id: 2,
+        value: 2,
 
-            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: [
-                            [],
-                            []
-                        ]
-                    }
-                },
+      }, {
+        id: 3,
+        value: 3,
+      },
+      {
+        id: 4,
+        value: 4,
+      },
+      ]
+    }
+  },
+},
 
-                {
-                    con: '',
-                    pinyin: '',
-                    img_list: [],
-                    mp3_list: [],
-                    isAnswer: ''
-                }
-            ],
-            correct: [
-                [],
-                []
-            ]
-        }
-    },
-    {
-        type: "sentence",
-        name: "句子模板",
-        list: [{
-                type: "sentence_input",
-                name: "句子填空",
-            },
-            {
-                type: "sentence_judge",
-                name: "句子判断",
-            },
-            {
-                type: "sentence_Record",
-                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: "inputItem_chs",
+//     name: "输入选项",
+// },
+{
+  type: "switch_control",
+  name: "开关控件",
+  data_structure: {
+    type: 'switch_control',
+    name: "开关控件",
+    con: "",
+    option: [{
+      con: "", //标题
+      answer: "", //答案
+      record: false, //需要录音
+      mp3_list: [],
+    },],
+  }
+},
+{
+  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: "text_input_RecoedItem",
-        name: "文字+录入+录音条",
-        data_structure: {
-            type: "text_input_RecoedItem",
-            name: "文字+录入+录音条",
-            title: "",
-            option: [{
-                number: "",
-                con: "",
-                answer: "",
-            }, ]
+      type: "matrixChekbox",
+      name: "矩阵多选",
+      data_structure: {
+        type: 'matrixChekbox',
+        name: "矩阵多选",
+        con: [{
+          con: "",
+          AnswerList: [],
         },
-    },
-    {
-        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: ["", ""],
-            }]
+        {
+          con: "",
+          AnswerList: [],
         },
-    },
-    {
-        type: "ligature_chs",
-        name: "连线",
-    },
-    {
-        type: "record",
-        name: "录音题",
-        data_structure: {
-            type: "record",
-            name: "录音题",
-            title: "",
-            option: [{
-                mp3_list: [],
-                con: "",
-                value: "",
-            }, ]
+        ],
+        option: [{
+          con: '',
+          pinyin: '',
+          img_list: [],
+          mp3_list: [],
+          isAnswer: ''
+        },
+        {
+          con: '',
+          pinyin: '',
+          img_list: [],
+          mp3_list: [],
+          isAnswer: ''
         }
+        ],
+        correct: [
+          [],
+          []
+        ]
+      }
     },
-    {
-        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,
+      con: '',
+      pinyin: '',
+      img_list: [],
+      mp3_list: [],
+      isAnswer: ''
+    }
+    ],
+    correct: [
+      [],
+      []
+    ]
+  }
+},
 
-                    }, {
-                        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: "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,
+
+      }, {
+        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: "数独",
+},
 ]
 
 

+ 27 - 9
src/components/Adult/inputModules/DialogueArticleChs/components/ArticleChs.vue

@@ -1,22 +1,28 @@
 <!--  -->
 <template>
-  <div class="NPC-Dialogue-article" v-if="curOption">
+  <div class="NPC-Dialogue-article" v-if="curQue">
+    <span class="Big-Book-left-text">文章:</span>
     <el-input
+      style="width: 85%"
       class="NPC-Dialogue-input"
       type="textarea"
       :autosize="{ minRows: 10 }"
-      placeholder="请输入内容"
-      v-model="curOption.article"
-      @blur="onBlur(curOption, 'article')"
+      placeholder="请输入文章"
+      v-model="curQue.article"
+      @blur="onBlur(curQue, 'article')"
     ></el-input>
-    <el-button @click="createPara">生成段落</el-button>
+    <div>
+      <el-button type="primary" size="small" @click="createPara"
+        >生成段落</el-button
+      >
+    </div>
   </div>
 </template>
 
 <script>
 export default {
   components: {},
-  props: ["curOption", "changeActive"],
+  props: ["curQue", "changeIsPara"],
   data() {
     return {
       detailItem: {
@@ -39,15 +45,27 @@ export default {
       item[field] = item[field] ? item[field].trim() : "";
     },
     createPara() {
-      let paraArr = this.curOption.article.split(/\n+/g);
+      let paraArr = this.curQue.article.split(/\n+/g);
 
+      this.$set(this.curQue, "detail", []);
       for (let i = 0; i < paraArr.length; i++) {
         let con = paraArr[i];
         let detailItem = JSON.parse(JSON.stringify(this.detailItem));
         detailItem.para = con;
-        this.curOption.detail.push(detailItem);
+        detailItem.paraIndex = i;
+        this.curQue.detail.push(detailItem);
+        // if (this.curQue.detail.length == 0) {
+        //   detailItem.para = con;
+        //   detailItem.paraIndex = i;
+        //   this.curQue.detail.push(detailItem);
+        // } else {
+        //   if (!(this.curQue.detail[i] && this.curQue.detail[i].para == con)) {
+        //     this.$set(this.curQue.detail[i], "para", con);
+        //   }
+        // }
       }
-      this.changeActive(2);
+      this.changeIsPara();
+      this.$message.success("生成成功");
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)

+ 10 - 9
src/components/Adult/inputModules/DialogueArticleChs/components/ClauseresultChs.vue

@@ -2,7 +2,7 @@
 <template>
   <div class="Big-Book-Maxwidth">
     <div class="Big-Book-con-top">
-      <span class="Big-Book-left-text">文章分句:</span>
+      <span class="Big-Book-left-text">分句结果:</span>
     </div>
     <div
       class="NPC-sentence-list"
@@ -11,6 +11,7 @@
     >
       <template v-if="item.para">
         <el-input
+          style="width: 85%;white-space:nowrap;"
           type="textarea"
           :autosize="{ minRows: 3 }"
           placeholder="请输入内容"
@@ -19,18 +20,17 @@
           @change="handleChange"
           @blur="onBlur(item, 'para')"
         ></el-input>
-        <el-button
-          v-if="!item.isReadonly"
-          type="primary"
-          size="small"
-          @click="sureClause(index)"
-          >确定</el-button
-        >
-        <el-button v-else type="danger" size="small" @click="editClause(item)"
+        <el-button type="danger" size="small" @click="editClause(item)"
           >编辑</el-button
         >
+        <el-button type="primary" size="small" @click="sureClause(index)"
+          >生词分词</el-button
+        >
       </template>
     </div>
+    <!-- <el-button type="primary" size="small" @click="oneClickResult"
+      >一键生成分词</el-button
+    > -->
   </div>
 </template>
 
@@ -93,6 +93,7 @@ export default {
     editClause(item) {
       item.isReadonly = false;
     },
+    oneClickResult() {},
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {},

+ 21 - 15
src/components/Adult/inputModules/DialogueArticleChs/components/ParagraphChs.vue

@@ -1,25 +1,27 @@
 <!--分句组件-->
 <template>
-  <div class="Big-Book-Maxwidth" v-if="curOption">
+  <div class="Big-Book-Maxwidth">
     <div class="Big-Book-content m">
       <div class="Big-Book-main">
         <div class="Big-Book-con">
           <div class="Big-Book-con-top">
-            <span class="Big-Book-left-text">段落:</span>
+            <span class="Big-Book-left-text">文章段落:</span>
             <el-button
               type="text"
               size="small"
               @click="editPara"
               v-if="readonly"
-              >编辑文章</el-button
+              >编辑段落</el-button
             >
           </div>
           <div
             class="NPC-para-list"
-            v-for="(item, index) in curOption.detail"
+            v-for="(item, index) in curQue.detail"
             :key="'para' + index"
           >
+            <span class="NPC-para-number">{{ index + 1 }}.</span>
             <el-input
+            style="width: 82%;"
               type="textarea"
               :autosize="{ minRows: 3 }"
               placeholder="请输入内容"
@@ -27,19 +29,18 @@
               @blur="onBlur(item, 'para')"
               :readonly="readonly"
             ></el-input>
-            <template v-if="index == 0 && !readonly">
+            <template v-if="index == 0">
               <el-checkbox v-model="item.isTitle">文章标题</el-checkbox>
             </template>
             <img
-              v-if="!readonly"
               @click="deleteOption(index)"
               class="close"
               src="../../../../../assets/adult/del-close.png"
               alt=""
+              v-if="!readonly"
             />
           </div>
-          <div class="NPC-footer-btn" v-if="!readonly">
-            <div class="sureSegbtn" @click="sureSegResult">确定分句</div>
+            <el-button type="primary" size="small" @click="sureSegResult">确定分句</el-button>
           </div>
         </div>
       </div>
@@ -52,7 +53,7 @@ import "@/utils/pinyin_dict_withtone";
 import "@/utils/pinyinUtil";
 export default {
   components: {},
-  props: ["curOption", "sureSeg", "isClause", "changeIsClause"],
+  props: ["curQue", "sureSeg", "isClause", "changeIsClause"],
   data() {
     return {
       imgNumber: 10,
@@ -76,8 +77,8 @@ export default {
       item[field] = item[field] ? item[field].trim() : "";
     },
     onBlurIndex(index, field) {
-      let res = this.curOption[field][index].trim();
-      this.$set(this.curOption[field], index, res);
+      let res = this.curQue[field][index].trim();
+      this.$set(this.curQue[field], index, res);
     },
     sureSegResult() {
       let _this = this;
@@ -107,11 +108,11 @@ export default {
         this.$message.warning("不能全部删除");
         return;
       }
-      this.curOption.detail.splice(index, 1);
+      this.curQue.detail.splice(index, 1);
     },
     addOption() {
-      let leg = this.curOption.detail.length;
-      let last = this.curOption.detail[leg - 1].para;
+      let leg = this.curQue.detail.length;
+      let last = this.curQue.detail[leg - 1].para;
       if (!last) {
         this.$message.warning("数据不能全是空");
         return;
@@ -125,7 +126,7 @@ export default {
         wordsList: [],
         timeList: [],
       };
-      this.curOption.detail.push(obj);
+      this.curQue.detail.push(obj);
     },
     editPara() {
       this.$confirm("此操作需要重新校对分句分词, 是否继续?", "提示", {
@@ -187,6 +188,11 @@ export default {
     justify-content: flex-start;
     align-items: flex-start;
     margin-bottom: 10px;
+    .NPC-para-number {
+      width: 28px;
+      margin-right: 5px;
+      text-align: right;
+    }
   }
   .close {
     width: 24px;

+ 1 - 1
src/components/Adult/inputModules/DialogueArticleChs/components/SegbywordChs.vue

@@ -298,7 +298,7 @@ export default {
     save() {
       let _this = this;
       let paraCon = JSON.parse(JSON.stringify(this.paraCon));
-      _this.$set(_this.curQue.detail, _this.paraIndex, paraCon);
+      _this.$set(_this.curQue.detail, _this.proofParaIndex, paraCon);
       _this.$message.success("保存成功");
     },
     //上一句

File diff suppressed because it is too large
+ 2843 - 93
src/components/Adult/inputModules/DialogueArticleChs/index.vue


+ 1 - 7
src/views/adultInput.vue

@@ -125,13 +125,7 @@
                         <ArticleView :curQue="topicIitem.data" />
                       </template>
                     </template>
-                    <template
-                      v-if="
-                        topicIitem.type == 'dialog_article_chs' ||
-                        (topicIitem.data &&
-                          topicIitem.data.type == 'dialog_article_chs')
-                      "
-                    >
+                    <template v-if="topicIitem.type == 'dialogue_article_chs'">
                       <template v-if="topicIitem.is_edit">
                         <DialogueArticleChs
                           :curQue="topicIitem.data"

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