|
|
@@ -56,6 +56,7 @@
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
@input="changeAnswer(item, index)"
|
|
|
+ ref="editDiv"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="items-flex">
|
|
|
@@ -101,6 +102,7 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ ref="editDiv"
|
|
|
@input="changeAnswer(item, index, indexs)"
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -181,6 +183,7 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ ref="editDiv"
|
|
|
@input="changeAnswer(items, index, indexs)"
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -201,6 +204,7 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ ref="editDiv"
|
|
|
@input="changeAnswer(item, index)"
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -208,7 +212,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <PreviewOperation @showAnswerAnalysis="showAnswerAnalysis" />
|
|
|
+ <PreviewOperation @showAnswerAnalysis="showAnswerAnalysis" @retry="retry" />
|
|
|
<AnswerCorrect
|
|
|
:answer-correct="data?.answer_correct"
|
|
|
:visible.sync="visibleAnswerCorrect"
|
|
|
@@ -540,6 +544,19 @@ export default {
|
|
|
|
|
|
return classname;
|
|
|
},
|
|
|
+ // 重做
|
|
|
+ retry() {
|
|
|
+ this.handleData();
|
|
|
+ if (this.$refs.editDiv) {
|
|
|
+ if (this.$refs.editDiv.length > 0) {
|
|
|
+ this.$refs.editDiv.forEach((item) => {
|
|
|
+ item.handleReset();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$refs.editDiv.handleReset();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|