@@ -112,6 +112,7 @@ export default {
},
data() {
return {
+ attachmentType: attachmentApi.type,
detailVisiable: false,
attachmentDrawerVisible: false,
uploadVisible: false,
@@ -126,6 +127,14 @@ export default {
attachmentUploadHandler: attachmentApi.upload
}
},
+ computed: {
+ formattedDatas() {
+ return this.attachments.map(attachment => {
+ attachment.typeProperty = this.attachmentType[attachment.type]
+ return attachment
+ })
+ }
+ },
created() {
this.loadSkeleton()
this.loadAttachments()