|
@@ -365,7 +365,10 @@ export class AttachmentComponent implements OnInit {
|
|
|
return isComplete;
|
|
|
}
|
|
|
upload(e: any, type: string, index?: any) {
|
|
|
+ console.log('上传材料发生改变')
|
|
|
let file = e[(e?.length - 1) || 0];
|
|
|
+ console.log(e)
|
|
|
+ console.log(this.moreMaterial)
|
|
|
if (type == 'copyrightImgUrl' || type == 'CIPImgUrl') {
|
|
|
this[type] = file?.url
|
|
|
} else if (type == 'selfResults' || type == 'expertOpinion' ||
|
|
@@ -373,7 +376,8 @@ export class AttachmentComponent implements OnInit {
|
|
|
this[type].url = file?.url
|
|
|
this[type].name = file?.name
|
|
|
} else if (type == 'moreMaterial' ) {
|
|
|
- this[type] = [...(this[type] || []), { name: file.name, url: file.url }]
|
|
|
+ // this[type] = [...(this[type] || []), { name: file?.name, url: file?.url }]
|
|
|
+ this[type] = e
|
|
|
}else if (type == 'signature' || type == 'examine') {
|
|
|
this.authorList[index][type] = file?.url
|
|
|
}else if(type == 'cipProveFile'){
|