|
@@ -72,6 +72,12 @@
|
|
|
:colorBox="colorBox"
|
|
|
/>
|
|
|
</template>
|
|
|
+ <template v-if="itemss.type == 'dialogue_answer_chs'">
|
|
|
+ <DialogueAnswerViewChs
|
|
|
+ :cur-que="itemss.data"
|
|
|
+ :colorBox="colorBox"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
<template v-if="itemss.type == 'input_record_chs'">
|
|
|
<InputHasRecord :cur-que="itemss.data" />
|
|
|
</template>
|
|
@@ -179,7 +185,8 @@ import SentenceSort from "./preview/SentenceSort.vue"; // 句子拖拽排序
|
|
|
import Checkbox from "./preview/CheckBoxModule.vue"; // 问卷调查-多选题
|
|
|
import VoiceMatrix from "./preview/VoiceMatrix.vue"; // 语音矩阵
|
|
|
import RecordModule from "./preview/RecordModule.vue"; // 录音组件
|
|
|
-import UploadControlView from "./preview/UploadControlView.vue";//预览控件
|
|
|
+import UploadControlView from "./preview/UploadControlView.vue"; //预览控件
|
|
|
+import DialogueAnswerViewChs from "./preview/DialogueArticleViewChs/DialogueAnswerViewChs.vue"; // 文章模板
|
|
|
|
|
|
export default {
|
|
|
name: "Preview",
|
|
@@ -209,6 +216,7 @@ export default {
|
|
|
VoiceMatrix,
|
|
|
RecordModule,
|
|
|
UploadControlView,
|
|
|
+ DialogueAnswerViewChs,
|
|
|
},
|
|
|
props: [
|
|
|
"context",
|
|
@@ -296,7 +304,7 @@ export default {
|
|
|
// if (list && list.length > 0) {
|
|
|
// _this.queList = list;
|
|
|
// _this.cur = list[_this.queIndex];
|
|
|
- _this.queTotal = 1;
|
|
|
+ _this.queTotal = 1;
|
|
|
// _this.cur.cur_fn_data.forEach((item) => {
|
|
|
// item.table_list.forEach((items) => {
|
|
|
// items.forEach((itemss) => {
|
|
@@ -315,19 +323,19 @@ export default {
|
|
|
// }
|
|
|
_this.cur = _this.contextData;
|
|
|
_this.cur.cur_fn_data.forEach((item) => {
|
|
|
- item.table_list.forEach((items) => {
|
|
|
- items.forEach((itemss) => {
|
|
|
- if (itemss.data && itemss.data.type == "NewWord_chs") {
|
|
|
- _this.NNPENewWordList = _this.NNPENewWordList.concat(
|
|
|
- itemss.data.option
|
|
|
- );
|
|
|
- } else if (itemss.data && itemss.data.type == "notes_chs") {
|
|
|
- _this.NNPEAnnotationList = _this.NNPEAnnotationList.concat(
|
|
|
- itemss.data.option
|
|
|
- );
|
|
|
- }
|
|
|
- });
|
|
|
+ item.table_list.forEach((items) => {
|
|
|
+ items.forEach((itemss) => {
|
|
|
+ if (itemss.data && itemss.data.type == "NewWord_chs") {
|
|
|
+ _this.NNPENewWordList = _this.NNPENewWordList.concat(
|
|
|
+ itemss.data.option
|
|
|
+ );
|
|
|
+ } else if (itemss.data && itemss.data.type == "notes_chs") {
|
|
|
+ _this.NNPEAnnotationList = _this.NNPEAnnotationList.concat(
|
|
|
+ itemss.data.option
|
|
|
+ );
|
|
|
+ }
|
|
|
});
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
},
|