|
|
@@ -222,7 +222,7 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
- <PreviewOperation @showAnswerAnalysis="showAnswerAnalysis" @retry="retry" />
|
|
|
+ <PreviewOperation @showAnswerAnalysis="showAnswerAnalysis" @retry="retry" v-if="isHasInput" />
|
|
|
<AnswerCorrect
|
|
|
:answer-correct="data?.answer_correct"
|
|
|
:visible.sync="visibleAnswerCorrect"
|
|
|
@@ -505,6 +505,7 @@ export default {
|
|
|
selectedWordList: [], // 用于存储选中的词汇
|
|
|
writeVisible: false,
|
|
|
writeMark: '',
|
|
|
+ isHasInput: false,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -556,6 +557,7 @@ export default {
|
|
|
methods: {
|
|
|
handleData() {
|
|
|
this.table_width = 0;
|
|
|
+ this.isHasInput = false;
|
|
|
this.data.col_width.forEach((item) => {
|
|
|
this.table_width += Number(item.value);
|
|
|
});
|
|
|
@@ -576,6 +578,15 @@ export default {
|
|
|
if (!this.isJudgingRightWrong) {
|
|
|
this.answer.answer_list = this.data.answer_lists;
|
|
|
}
|
|
|
+ this.data.option_list.forEach((item) => {
|
|
|
+ item.forEach((items) => {
|
|
|
+ items.model_essay.forEach((li) => {
|
|
|
+ if (li.type === 'input') {
|
|
|
+ this.isHasInput = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
computedAnswerText(item, i, j) {
|
|
|
if (!this.isShowRightAnswer) return '';
|