|
@@ -40,7 +40,7 @@
|
|
|
</span>
|
|
|
<div v-for="(li, k) in content_list" :key="k" class="item-content">
|
|
|
<span v-if="li.type === 'text'">{{ li.content }}</span>
|
|
|
- <template v-else-if="li.type === 'empty_input'">
|
|
|
+ <template v-else-if="li.type === 'input_any'">
|
|
|
<el-input
|
|
|
:key="k"
|
|
|
v-model="li.content"
|
|
@@ -126,7 +126,7 @@ export default {
|
|
|
let value_list = [];
|
|
|
let answerIndex = this.answer.answer_list.findIndex((item) => item.mark === mark);
|
|
|
content_list.forEach((li) => {
|
|
|
- if (['fill', 'input', 'empty_input'].includes(li.type) && li.content.length > 0) {
|
|
|
+ if (['fill', 'input', 'input_any'].includes(li.type) && li.content.length > 0) {
|
|
|
value_list.push({
|
|
|
mark: li.mark,
|
|
|
value: li.content,
|
|
@@ -158,7 +158,7 @@ export default {
|
|
|
.find((item) => item.find((li) => li.mark === mark))
|
|
|
.forEach((item) => {
|
|
|
item.content_list.forEach((li) => {
|
|
|
- if (['fill', 'input', 'empty_input'].includes(li.type)) {
|
|
|
+ if (['fill', 'input', 'input_any'].includes(li.type)) {
|
|
|
let answer = value_list.find((item) => item.mark === li.mark);
|
|
|
if (!answer) return;
|
|
|
li.content = answer.value;
|