|
@@ -458,7 +458,12 @@
|
|
|
:judgeAnswer="itemJ"
|
|
|
/>
|
|
|
</template>
|
|
|
- <template v-if="itemss.type === 'voice_matrix'">
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ itemss.type === 'voice_matrix' &&
|
|
|
+ itemJ != 'standardAnswer'
|
|
|
+ "
|
|
|
+ >
|
|
|
<voice-matrix
|
|
|
v-if="refresh"
|
|
|
:cur-que="itemss.data"
|
|
@@ -539,7 +544,12 @@
|
|
|
:judgeAnswer="itemJ"
|
|
|
/>
|
|
|
</template>
|
|
|
- <template v-if="itemss.type == 'newWord_preview_chs'">
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ itemss.type == 'newWord_preview_chs' &&
|
|
|
+ itemJ != 'standardAnswer'
|
|
|
+ "
|
|
|
+ >
|
|
|
<NewWordShow
|
|
|
v-if="refresh"
|
|
|
:cur-que="itemss.data"
|
|
@@ -591,10 +601,11 @@
|
|
|
</template>
|
|
|
<template
|
|
|
v-if="
|
|
|
- itemss.type == 'record_control_mini' ||
|
|
|
- itemss.type == 'record_control_normal' ||
|
|
|
- itemss.type == 'record_control_pro' ||
|
|
|
- itemss.type == 'record_control_promax'
|
|
|
+ (itemss.type == 'record_control_mini' ||
|
|
|
+ itemss.type == 'record_control_normal' ||
|
|
|
+ itemss.type == 'record_control_pro' ||
|
|
|
+ itemss.type == 'record_control_promax') &&
|
|
|
+ itemJ != 'standardAnswer'
|
|
|
"
|
|
|
>
|
|
|
<RecordModule
|
|
@@ -607,8 +618,9 @@
|
|
|
</template>
|
|
|
<template
|
|
|
v-if="
|
|
|
- itemss.type == 'upload_control_chs' ||
|
|
|
- itemss.type == 'upload_control_preview_chs'
|
|
|
+ (itemss.type == 'upload_control_chs' ||
|
|
|
+ itemss.type == 'upload_control_preview_chs') &&
|
|
|
+ itemJ != 'standardAnswer'
|
|
|
"
|
|
|
>
|
|
|
<UploadControlView
|
|
@@ -620,7 +632,12 @@
|
|
|
:judgeAnswer="itemJ"
|
|
|
/>
|
|
|
</template>
|
|
|
- <template v-if="itemss.type == 'CourseStart_chs'">
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ itemss.type == 'CourseStart_chs' &&
|
|
|
+ itemJ != 'standardAnswer'
|
|
|
+ "
|
|
|
+ >
|
|
|
<CourseStart
|
|
|
v-if="refresh"
|
|
|
:cur-que="itemss.data"
|
|
@@ -630,7 +647,12 @@
|
|
|
:judgeAnswer="itemJ"
|
|
|
/>
|
|
|
</template>
|
|
|
- <template v-if="itemss.type == 'tinydemo_chs'">
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ itemss.type == 'tinydemo_chs' &&
|
|
|
+ itemJ != 'standardAnswer'
|
|
|
+ "
|
|
|
+ >
|
|
|
<Tinydemo
|
|
|
v-if="refresh"
|
|
|
:cur-que="itemss.data"
|
|
@@ -639,7 +661,11 @@
|
|
|
:judgeAnswer="itemJ"
|
|
|
/>
|
|
|
</template>
|
|
|
- <template v-if="itemss.type == 'video_chs'">
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ itemss.type == 'video_chs' && itemJ != 'standardAnswer'
|
|
|
+ "
|
|
|
+ >
|
|
|
<VideoControl
|
|
|
v-if="refresh"
|
|
|
:cur-que="itemss.data"
|
|
@@ -678,7 +704,12 @@
|
|
|
:judgeAnswer="itemJ"
|
|
|
/>
|
|
|
</template>
|
|
|
- <template v-if="itemss.type == 'upload_pdf_chs'">
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ itemss.type == 'upload_pdf_chs' &&
|
|
|
+ itemJ != 'standardAnswer'
|
|
|
+ "
|
|
|
+ >
|
|
|
<PdfView
|
|
|
v-if="refresh"
|
|
|
:cur-que="itemss.data"
|
|
@@ -699,7 +730,12 @@
|
|
|
:judgeAnswer="itemJ"
|
|
|
/>
|
|
|
</template>
|
|
|
- <template v-if="itemss.type == 'options_list_chs'">
|
|
|
+ <template
|
|
|
+ v-if="
|
|
|
+ itemss.type == 'options_list_chs' &&
|
|
|
+ itemJ != 'standardAnswer'
|
|
|
+ "
|
|
|
+ >
|
|
|
<OptionsList
|
|
|
v-if="refresh"
|
|
|
:cur-que="itemss.data"
|
|
@@ -969,7 +1005,7 @@ export default {
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {
|
|
|
- console.log('2023-01-03')
|
|
|
+ console.log("2023-01-03");
|
|
|
},
|
|
|
// 生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
@@ -1127,15 +1163,15 @@ export default {
|
|
|
let answerData = JSON.parse(Bookanswer);
|
|
|
if (answerData && itemss.data) {
|
|
|
let BookanswerRes =
|
|
|
- answerData.length > 0 &&
|
|
|
- answerData[index].table_list &&
|
|
|
- answerData[index].table_list.length > 0 &&
|
|
|
- answerData[index].table_list[indexs].length > 0 &&
|
|
|
- answerData[index].table_list[indexs][indexss].data
|
|
|
- ? answerData[index].table_list[indexs][indexss].data
|
|
|
- .Bookanswer
|
|
|
- : [];
|
|
|
- _this.$set(itemss.data, "Bookanswer", BookanswerRes);
|
|
|
+ answerData.length > 0 &&
|
|
|
+ answerData[index].table_list &&
|
|
|
+ answerData[index].table_list.length > 0 &&
|
|
|
+ answerData[index].table_list[indexs].length > 0 &&
|
|
|
+ answerData[index].table_list[indexs][indexss].data
|
|
|
+ ? answerData[index].table_list[indexs][indexss].data
|
|
|
+ .Bookanswer
|
|
|
+ : [];
|
|
|
+ _this.$set(itemss.data, "Bookanswer", BookanswerRes);
|
|
|
}
|
|
|
} else {
|
|
|
_this.judgeAnswersList = [""];
|
|
@@ -1333,7 +1369,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.visiblePreviewDialog = true;
|
|
|
- this.submitUserAnswerNPC()
|
|
|
+ this.submitUserAnswerNPC();
|
|
|
},
|
|
|
}, // 如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
};
|