zhangjie hai 6 meses
pai
achega
53a8c49e96

+ 1 - 1
src/modules/exam/components/taskApply/TaskPaper.vue

@@ -642,7 +642,7 @@ export default {
     async selectMenu(tab) {
       if (!this.taskStatus.IS_APPLY) return;
 
-      const attachment = this.paperAttachments[0];
+      const attachment = this.paperAttachments[0].paperAttachmentIds[0];
       if (attachment.cardId || attachment.attachmentId) {
         const result = await this.$confirm(
           "更改类型会清空已设置数据,确定要更改类型?",

+ 2 - 5
src/modules/print/components/ModifyPlanPaper.vue

@@ -282,13 +282,10 @@ export default {
       const paper = this.papers.find(
         (item) => item.paperNumber === this.modalForm.paperNumber
       );
-      if (paper) this.paperTypes = paper.paperTypes;
+      if (paper) this.paperTypes = paper.paperTypes.map((item) => `${item}`);
     },
     visibleChange() {
       this.modalForm = this.$objAssign(initModalForm, this.instance);
-      this.modalForm.relatePaperType = this.instance.relatePaperType
-        ? this.instance.relatePaperType.split(",")
-        : [];
 
       this.getPapers();
       // this.getPaperTypes();
@@ -310,7 +307,7 @@ export default {
       const paper = this.papers.find(
         (item) => item.paperNumber === this.modalForm.paperNumber
       );
-      if (paper) this.paperTypes = paper.paperTypes;
+      if (paper) this.paperTypes = paper.paperTypes.map((item) => `${item}`);
     },
     async toViewAttachment(attachment) {
       if (!attachment.jpgAttachmentId) {