Browse Source

update upload

warrior 7 months ago
parent
commit
0d1484a0eb

+ 2 - 2
projects/textbook/src/modules/nav-author/components/textbook-pertain/textbook-pertain.component.html

@@ -171,12 +171,12 @@
             </td>
             <td nzRight>
               <!-- {{data.signature? getFileName(data.signature):'未上传'}} -->
-              <app-comp-upload [width]="320" (change)="upload($event, 'signature',index)"
+              <app-comp-upload (change)="upload($event, 'signature',index)"
                 [title]="getFileName(data.signature)"></app-comp-upload>
             </td>
             <td nzRight>
               <!-- {{data.examine?getFileName(data.examine):'未上传'}} -->
-              <app-comp-upload [width]="320" (change)="upload($event, 'examine',index)"
+              <app-comp-upload (change)="upload($event, 'examine',index)"
                 [title]="getFileName(data.examine)"></app-comp-upload>
             </td>
             <td nzRight>

+ 1 - 1
projects/textbook/src/modules/nav-author/components/textbook-pertain/textbook-pertain.component.ts

@@ -280,7 +280,7 @@ export class TextbookPertainComponent implements OnInit {
     console.log(e);
     let file = e[0];
     if (type == 'signature' || type == 'examine') {
-      this.authorList[index][type] = file
+      this.authorList[index][type] = file?.url
     }
   }
   //添加作者信息