Browse Source

命题老师代办任务默认新建一套试卷

zhangjie 4 years ago
parent
commit
a9e7e2dadc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/exam-center/views/WaitTaskDetail.vue

+ 1 - 0
src/modules/exam-center/views/WaitTaskDetail.vue

@@ -239,6 +239,7 @@ export default {
       this.curPaperAttachments = this.paperAttachments.map(item => {
         return { ...item };
       });
+      if (!this.curPaperAttachments.length) this.addAtachment();
       this.paperConfirmAttachmentId = this.task.paperConfirmAttachmentId
         ? JSON.parse(this.task.paperConfirmAttachmentId)
         : { attachmentId: "", filename: "" };