|
@@ -799,8 +799,8 @@ export default {
|
|
|
this.getCardList();
|
|
|
},
|
|
|
updateExamTaskDetail() {
|
|
|
- if (this.examTask.openAb) {
|
|
|
- this.paperAttachments.forEach((paperAttachment) => {
|
|
|
+ this.paperAttachments.forEach((paperAttachment) => {
|
|
|
+ if (this.examTask.openAb) {
|
|
|
const aAttachment = paperAttachment.paperAttachmentIds[0];
|
|
|
Object.assign(paperAttachment.paperAttachmentIds[1], {
|
|
|
cardId: aAttachment.cardId,
|
|
@@ -810,11 +810,12 @@ export default {
|
|
|
used: aAttachment.used,
|
|
|
createId: aAttachment.createId,
|
|
|
});
|
|
|
- paperAttachment.paperType = paperAttachment.paperAttachmentIds
|
|
|
- .map((item) => item.name)
|
|
|
- .join();
|
|
|
- });
|
|
|
- }
|
|
|
+ }
|
|
|
+ paperAttachment.paperType = paperAttachment.paperAttachmentIds
|
|
|
+ .map((item) => item.name)
|
|
|
+ .join();
|
|
|
+ });
|
|
|
+
|
|
|
this.examTaskDetail = this.paperAttachments.map((item) => {
|
|
|
return {
|
|
|
...item,
|