|
|
@@ -63,6 +63,7 @@
|
|
|
</div>
|
|
|
<div class="answer">
|
|
|
<!-- :disabled="TaskModel == 'ANSWER' ? true : items.is_example ? true : false" -->
|
|
|
+
|
|
|
<draggable
|
|
|
v-model="data.Bookanswer[row].answerList"
|
|
|
animation="300"
|
|
|
@@ -193,7 +194,7 @@ export default {
|
|
|
if (`${formIndex}` != 'NaN') {
|
|
|
if (this.data.Bookanswer[formIndex].answerList.length > 1) {
|
|
|
let arr = [];
|
|
|
- this.data.option.forEach((item) => {
|
|
|
+ this.data.option_list.forEach((item) => {
|
|
|
if (item.id == this.currentId) {
|
|
|
arr.push(item);
|
|
|
}
|
|
|
@@ -204,7 +205,6 @@ export default {
|
|
|
this.SortArr = JSON.parse(JSON.stringify(this.dragData));
|
|
|
},
|
|
|
handleData() {
|
|
|
- console.log(this.data);
|
|
|
this.data.structure_select_list.forEach((item) => {
|
|
|
let items = this.data.file_list.find((p) => p.file_id === item.file_id);
|
|
|
if (items) {
|
|
|
@@ -216,6 +216,12 @@ export default {
|
|
|
let obj = {
|
|
|
id: items.answer,
|
|
|
img_list: [],
|
|
|
+ img_url:
|
|
|
+ items.answer.length.length > 3
|
|
|
+ ? this.data.structure_select_list.find((p) => p.file_id === items.answer)
|
|
|
+ ? this.data.structure_select_list.find((p) => p.file_id === items.answer).value
|
|
|
+ : ''
|
|
|
+ : require('@/assets/structure/structure-' + items.answer + '.png'),
|
|
|
userAnswerJudge: 'example',
|
|
|
};
|
|
|
this.single.push({
|