guanchunjie il y a 3 ans
Parent
commit
77004ac5d1

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

@@ -1,798 +1,798 @@
 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: "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: "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: "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: "article_chs",
+  name: "课文",
+}, {
+  type: "dialogue_article_chs",
+  name: "对话课文",
+},
+{
+  type: "sentence_segword_chs",
+  name: "句子分词",
+},
+{
+  type: "NewWord_chs",
+  name: "生词",
+},
+{
+  type: "notes_chs",
+  name: "注释",
 
-            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: "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: "句子填空+录音",
+  }
+  ],
 
-            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: "纯图片",
-            },
-        ],
-        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,
+}, {
+  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: "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: ''
-            }, ],
-        }
-    },
-    {
-        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: "上传控件预览查看",
+    correct: [{
+      single: [],
+      checkBox: [],
+      judge: [],
+      input: [],
+      spell: []
+    }],
+    fn_list: [{
+      type: 'def',
+      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',
+      name: '跟读',
+      isFn: false,
+      isDisable: false,
     },
     {
-        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: 'spell',
+      name: '拼写',
+      isFn: false,
+      isDisable: false,
     },
     {
-        type: "pure_input",
-        name: "纯输入",
-        data_structure: {
-            type: 'pure_input',
-            name: "纯输入",
-            option: [{
-                answer: "",
-            }, ],
-            answer: "",
-            record: false, //需要录音
-            mp3_list: [],
-        }
+      type: 'input',
+      name: '输入',
+      isFn: false,
+      isDisable: false,
     },
     {
-        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: 'copy',
+      name: '摹写',
+      isFn: false,
+      isDisable: false,
     },
     {
-        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_input',
+    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: "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",
+  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: "text_input_RecoedItem",
-        name: "文字+录入+录音条",
-        data_structure: {
-            type: "text_input_RecoedItem",
-            name: "文字+录入+录音条",
-            title: "",
-            option: [{
-                number: "",
-                con: "",
-                answer: "",
-            }, ]
-        },
+    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: ["", ""],
-            }]
+      type: "matrixChekbox",
+      name: "矩阵多选",
+      data_structure: {
+        type: 'matrixChekbox',
+        name: "矩阵多选",
+        con: [{
+          con: "",
+          AnswerList: [],
         },
-    },
-    {
-        type: "ligature_chs",
-        name: "连线",
-    },
-    {
-        type: "record",
-        name: "录音题",
-        data_structure: {
-            type: "record",
-            name: "录音题",
-            title: "",
-            option: [{
-                mp3_list: [],
-                con: "",
-                value: "",
-            }, ]
+        {
+          con: "",
+          AnswerList: [],
+        },
+        ],
+        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: "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: "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: "数独",
+},
+{
+  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: "排序"
+},
 ]
 
 

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

@@ -29,13 +29,14 @@
         <span class="editDialogue" @click="editDialogue(index)"
           >编辑此对话</span
         >
+        <span class="editDialogue" @click="addOption(index)">添加选项</span>
       </div>
 
       <el-button type="primary" @click="addDialogue">添加对话</el-button>
     </div>
     <div class="dialogWindow" title="提示" v-show="dialogVisible">
       <div class="inner">
-        <DialogueTem :curQue="curQue.list[listIndex]" />
+        <DialogueTem :curQue="curQue.list[listIndex]" :listIndex="listIndex" />
         <span slot="footer" class="dialog-footer">
           <el-button @click="dialogVisible = false">取 消</el-button>
           <el-button type="primary" @click="dialogVisible = false"
@@ -44,6 +45,20 @@
         </span>
       </div>
     </div>
+    <div class="dialogWindow" title="添加选项" v-show="optionVisible">
+      <div class="inner">
+        <DialogueTem
+          :curQue="curQue.option[listIndex]"
+          :listIndex="'option' + listIndex"
+        />
+        <span slot="footer" class="dialog-footer">
+          <el-button @click="optionVisible = false">取 消</el-button>
+          <el-button type="primary" @click="optionVisible = false"
+            >确 定</el-button
+          >
+        </span>
+      </div>
+    </div>
   </div>
 </template>
 
@@ -57,6 +72,7 @@ export default {
   data() {
     return {
       dialogVisible: false,
+      optionVisible: false,
       listIndex: 0,
       data_structure: {
         title: "",
@@ -75,6 +91,20 @@ export default {
             detail: [],
             wordTime: [],
             taskId: "",
+            answer: "",
+          },
+        ],
+        option: [
+          {
+            number: "",
+            notice: "", //文章提示信息
+            mp3_list: [],
+            img_list: [],
+            article: "",
+            roleList: [],
+            detail: [],
+            wordTime: [],
+            taskId: "",
           },
         ],
       },
@@ -91,6 +121,10 @@ export default {
       this.listIndex = index;
       this.dialogVisible = true;
     },
+    addOption(index) {
+      this.listIndex = index;
+      this.optionVisible = true;
+    },
     addDialogue() {
       let obj = JSON.parse(JSON.stringify(this.data_structure.list[0]));
       this.curQue.list.push(obj);

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

@@ -40,6 +40,7 @@
       :visible.sync="proofVisible"
       width="60%"
       :close-on-click-modal="false"
+      :modal="false"
       top="10px"
     >
       <span class="dialog-top-btn">

+ 28 - 12
src/components/Adult/inputModules/DialogueTem/index.vue

@@ -137,6 +137,20 @@
     <div class="NPC-Book-Word" v-if="isByWord">
       <Segbyword :curQue="curQue" :paraIndex="paraIndex" :segList="segList" />
     </div>
+    <!---答案-->
+
+    <div class="adult-book-input-item">
+      <span class="adult-book-lable">答案:</span>
+      <el-input
+        class="adult-book-input"
+        type="textarea"
+        :autosize="{ minRows: 2 }"
+        placeholder="请输入答案"
+        v-model="curQue.answer"
+        @blur="onBlur(curQue, 'answer')"
+      ></el-input>
+    </div>
+
     <el-dialog title="段落分句字幕打点" :visible.sync="cTVisible" width="30%">
       <Createtimelist ref="createtimelist" :curQue="curQue" />
       <span slot="footer" class="dialog-footer">
@@ -197,7 +211,7 @@ export default {
     Createtimelist,
     RoleChs,
   },
-  props: ["curQue", "changeCurQue", "tmIndex"],
+  props: ["curQue", "changeCurQue", "listIndex"],
   filters: {
     handlePinyin(wordsList) {
       let str = "";
@@ -245,18 +259,20 @@ export default {
   },
   computed: {},
   watch: {
-    curQue: {
+    listIndex: {
       handler: function (newVal, oldVal) {
-        this.isPara = false;
-        this.isClause = false;
-        this.isByWord = false;
-        this.paraIndex = 0; //段落索引
-        this.roleStatus = 1; //1添加;2是编辑
-        this.curRole = null;
-        this.loading = false;
-        this.segList = null;
-        this.isWordTime = false;
-        this.initData();
+        if (newVal !== oldVal) {
+          this.isPara = false;
+          this.isClause = false;
+          this.isByWord = false;
+          this.paraIndex = 0; //段落索引
+          this.roleStatus = 1; //1添加;2是编辑
+          this.curRole = null;
+          this.loading = false;
+          this.segList = null;
+          this.isWordTime = false;
+          this.initData();
+        }
       },
       deep: true,
     },

+ 36 - 0
src/components/Adult/preview/DialogueArticleViewChs/AnswerModel.vue

@@ -0,0 +1,36 @@
+<!--  -->
+<template>
+  <div class="">
+    <RoleChs />
+  </div>
+</template>
+
+<script>
+import RoleChs from "./RoleChs.vue";
+export default {
+  components: {
+    RoleChs,
+  },
+  data() {
+    return {};
+  },
+  computed: {},
+  watch: {},
+  //方法集合
+  methods: {},
+  //生命周期 - 创建完成(可以访问当前this实例)
+  created() {},
+  //生命周期 - 挂载完成(可以访问DOM元素)
+  mounted() {},
+  beforeCreate() {}, //生命周期 - 创建之前
+  beforeMount() {}, //生命周期 - 挂载之前
+  beforeUpdate() {}, //生命周期 - 更新之前
+  updated() {}, //生命周期 - 更新之后
+  beforeDestroy() {}, //生命周期 - 销毁之前
+  destroyed() {}, //生命周期 - 销毁完成
+  activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
+};
+</script>
+<style lang='scss' scoped>
+//@import url(); 引入公共css类
+</style>

+ 68 - 0
src/components/Adult/preview/DialogueArticleViewChs/DialogueAnswerViewChs.vue

@@ -0,0 +1,68 @@
+<!--  -->
+<template>
+  <div class="dialogue-answer-view">
+    <!-- 标题 -->
+    <div class="dialogue-answer-title">{{ curQue.title }}</div>
+    <div class="dialogue-answer-content">
+      <div
+        class="dialogue-answer-inner"
+        v-for="(item, index) in curQue.list"
+        :key="'list' + index"
+      >
+        <span class="number">{{ item.number }}</span>
+        <template>
+          <img src="" alt="" srcset="" />
+        </template>
+        <template>
+          <AnswerModel />
+        </template>
+        <template>
+          <OptionModel />
+        </template>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import { timeStrToSen } from "@/utils/index";
+import AudioLine from "../AudioLine.vue";
+import RoleChs from "./RoleChs.vue";
+import RemarkChs from "./RemarkChs.vue";
+import Soundrecord from "../Soundrecord.vue";
+import AnswerModel from "./AnswerModel.vue";
+import OptionModel from "./OptionModel.vue";
+export default {
+  name: "DialogueAnswerViewChs",
+  components: {
+    AudioLine,
+    RoleChs,
+    RemarkChs,
+    Soundrecord,
+    AnswerModel,
+    OptionModel,
+  },
+  props: ["curQue"],
+  data() {
+    return {};
+  },
+  computed: {},
+  watch: {},
+  //方法集合
+  methods: {},
+  //生命周期 - 创建完成(可以访问当前this实例)
+  created() {},
+  //生命周期 - 挂载完成(可以访问DOM元素)
+  mounted() {},
+  beforeCreate() {}, //生命周期 - 创建之前
+  beforeMount() {}, //生命周期 - 挂载之前
+  beforeUpdate() {}, //生命周期 - 更新之前
+  updated() {}, //生命周期 - 更新之后
+  beforeDestroy() {}, //生命周期 - 销毁之前
+  destroyed() {}, //生命周期 - 销毁完成
+  activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
+};
+</script>
+<style lang='scss' scoped>
+//@import url(); 引入公共css类
+</style>

+ 31 - 0
src/components/Adult/preview/DialogueArticleViewChs/OptionModel.vue

@@ -0,0 +1,31 @@
+<!--  -->
+<template>
+  <div class=""></div>
+</template>
+
+<script>
+export default {
+  components: {},
+  data() {
+    return {};
+  },
+  computed: {},
+  watch: {},
+  //方法集合
+  methods: {},
+  //生命周期 - 创建完成(可以访问当前this实例)
+  created() {},
+  //生命周期 - 挂载完成(可以访问DOM元素)
+  mounted() {},
+  beforeCreate() {}, //生命周期 - 创建之前
+  beforeMount() {}, //生命周期 - 挂载之前
+  beforeUpdate() {}, //生命周期 - 更新之前
+  updated() {}, //生命周期 - 更新之后
+  beforeDestroy() {}, //生命周期 - 销毁之前
+  destroyed() {}, //生命周期 - 销毁完成
+  activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
+};
+</script>
+<style lang='scss' scoped>
+//@import url(); 引入公共css类
+</style>

+ 1 - 1
src/components/Header.vue

@@ -250,7 +250,7 @@ export default {
     QuitLogin() {
       window.location.href = "/";
       removeSession("SysList");
-      //removeToken();
+      removeToken();
       this.userShow = false;
       this.userMessage = null;
     },

+ 1 - 1
src/store/modules/user.js

@@ -70,7 +70,7 @@ const actions = {
   // remove token
   resetToken({ commit }) {
     return new Promise(resolve => {
-      // removeToken() // must remove  token  first
+      removeToken() // must remove  token  first
       commit('RESET_STATE')
       resolve()
     })

+ 6 - 6
src/utils/request.js

@@ -66,18 +66,18 @@ service.interceptors.response.use(
       Cookies.remove('user_code')
       Cookies.remove('user_real_name')
       Cookies.remove('user_type')
-      //removeToken();
+      removeToken();
       msg = Message({
         message: '登录会话失效,请重新登录',
         type: 'error',
         showClose: true,
         duration: 0
       })
-      // if (process.env.NODE_ENV === 'development') {
-      //   router.push(`/login`)
-      // } else {
-      //   window.location.href = '/';
-      // }
+      if (process.env.NODE_ENV === 'development') {
+        router.push(`/login`)
+      } else {
+        window.location.href = '/';
+      }
       return false
     } else {
       Message.closeAll()

+ 4 - 4
src/views/adultInput.vue

@@ -138,7 +138,7 @@
                     </template>
                     <template v-if="topicIitem.type == 'dialogue_answer_chs'">
                       <template v-if="topicIitem.is_edit">
-                        <DialogueAnswerChs
+                        <DialogueAnswerViewChs
                           :curQue="topicIitem.data"
                           :changeCurQue="changeCurQue"
                         />
@@ -369,7 +369,6 @@ import Sentence from "@/components/Adult/inputModules/Sentence.vue";
 import Sudoku from "@/components/Adult/inputModules/Sudoku.vue";
 import ToneSelect from "@/components/Adult/inputModules/ToneSelect.vue";
 import NumberCombination from "@/components/Adult/inputModules/NumberCombination.vue";
-import DialogueAnswerChs from "@/components/Adult/inputModules/DialogueAnswerChs";
 
 import Textdes from "@/components/Adult/inputModules/Textdes.vue";
 import Record from "@/components/Adult/inputModules/Record.vue";
@@ -389,6 +388,7 @@ import BgControlview from "@/components/Adult/preview/BgControl.vue";
 import NewordPhraseview from "@/components/Adult/preview/WordPhrase.vue";
 import UploadControlView from "@/components/Adult/preview/UploadControlView.vue";
 
+import DialogueAnswerViewChs from "@/components/Adult/preview/DialogueArticleViewChs/DialogueAnswerViewChs.vue";
 import Preview from "@/components/Adult/Preview.vue";
 import fn from "@/components/Adult/common/data.js";
 import { getContent, getStaticContent } from "@/api/ajax";
@@ -436,7 +436,7 @@ export default {
     Sudoku,
     NumberCombination,
     ToneSelect,
-    DialogueAnswerChs,
+    DialogueAnswerViewChs,
   },
   data() {
     return {
@@ -765,7 +765,7 @@ export default {
         content: JSON.stringify(this.question_list),
         new_word_list: result.new_word_list,
         sentence_list: result.sentence_list,
-        ui_type: 'NPC'
+        ui_type: "NPC",
       };
       getContent(MethodName, data)
         .then((res) => {