|
@@ -332,19 +332,21 @@ export default {
|
|
]),
|
|
]),
|
|
...mapActions("exam", ["addPreviewLog"]),
|
|
...mapActions("exam", ["addPreviewLog"]),
|
|
async initData() {
|
|
async initData() {
|
|
- const paperAttachments = this.curTaskApply.paperAttachmentIds
|
|
|
|
- ? JSON.parse(this.curTaskApply.paperAttachmentIds)
|
|
|
|
- : [];
|
|
|
|
-
|
|
|
|
const auditLogCache = { paper: {}, card: {} };
|
|
const auditLogCache = { paper: {}, card: {} };
|
|
- paperAttachments.forEach((paper) => {
|
|
|
|
- if (
|
|
|
|
- paper.attachmentId &&
|
|
|
|
- this.curTaskApply.auditContent.includes("PAPER")
|
|
|
|
- )
|
|
|
|
- auditLogCache.paper[paper.attachmentId] = false;
|
|
|
|
- if (paper.cardId && this.curTaskApply.auditContent.includes("CARD"))
|
|
|
|
- auditLogCache.card[paper.cardId] = false;
|
|
|
|
|
|
+ (this.curTaskApply.examTaskDetailList || []).map((item) => {
|
|
|
|
+ const paperAttachmentIds = item.paperAttachmentIds
|
|
|
|
+ ? JSON.parse(item.paperAttachmentIds)
|
|
|
|
+ : [];
|
|
|
|
+ paperAttachmentIds.forEach((aitem) => {
|
|
|
|
+ aitem.serialNumber = item.serialNumber;
|
|
|
|
+ if (
|
|
|
|
+ aitem.attachmentId &&
|
|
|
|
+ this.curTaskApply.auditContent.includes("PAPER")
|
|
|
|
+ )
|
|
|
|
+ auditLogCache.paper[aitem.attachmentId] = false;
|
|
|
|
+ if (aitem.cardId && this.curTaskApply.auditContent.includes("CARD"))
|
|
|
|
+ auditLogCache.card[aitem.cardId] = false;
|
|
|
|
+ });
|
|
});
|
|
});
|
|
this.setAuditLogCache(auditLogCache);
|
|
this.setAuditLogCache(auditLogCache);
|
|
|
|
|