|
@@ -680,6 +680,7 @@ export default {
|
|
|
if (this.examTask.openAb) {
|
|
|
this.paperAttachments.forEach((paperAttachment) => {
|
|
|
const attachment = paperAttachment.paperAttachmentIds[0];
|
|
|
+ attachment.name = "A";
|
|
|
paperAttachment.paperAttachmentIds.push(
|
|
|
Object.assign(deepCopy(attachment), {
|
|
|
name: "B",
|
|
@@ -692,9 +693,11 @@ export default {
|
|
|
);
|
|
|
});
|
|
|
} else {
|
|
|
- this.paperAttachments.forEach((paperAttachment) => {
|
|
|
+ this.paperAttachments.forEach((paperAttachment, index) => {
|
|
|
paperAttachment.paperAttachmentIds =
|
|
|
paperAttachment.paperAttachmentIds.slice(0, 1);
|
|
|
+
|
|
|
+ paperAttachment.paperAttachmentIds[0].name = this.abc[index];
|
|
|
});
|
|
|
}
|
|
|
},
|
|
@@ -1201,6 +1204,8 @@ export default {
|
|
|
paperAttachment.paperAttachmentIds.push(
|
|
|
Object.assign(deepCopy(newAttachment), { name: "B" })
|
|
|
);
|
|
|
+ } else {
|
|
|
+ newAttachment.name = this.abc[serialNumber - 1];
|
|
|
}
|
|
|
this.paperAttachments.push(paperAttachment);
|
|
|
},
|