|
@@ -260,11 +260,12 @@ export class AttachmentComponent implements OnInit {
|
|
|
console.log(e);
|
|
|
let file = e[0];
|
|
|
if (type == 'copyrightImgUrl' || type == 'CIPImgUrl') {
|
|
|
- this[type] = file
|
|
|
+ this[type] = file?.url
|
|
|
} else if (type == 'selfResults' || type == 'expertOpinion' ||
|
|
|
type == 'evidence' || type == 'unitMaterial') {
|
|
|
- this[type].url = file
|
|
|
- this[type].name = this.getFileName(file)
|
|
|
+ this[type].url = file?.url
|
|
|
+ // this[type].name = this.getFileName(file)
|
|
|
+ this[type].name = file?.name
|
|
|
} else if (type == 'moreMaterial') {
|
|
|
let newList = e.map((item: any) => {
|
|
|
return { name: this.getFileName(item), url: item }
|