diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index b3396747..6d5977f3 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -1,10 +1,6 @@ @@ -53,6 +57,7 @@ export default { }, data() { return { + uploadVisible: false, attachments: [], pagination: { page: 1, @@ -72,6 +77,20 @@ export default { this.attachments = response.data.data.content this.pagination.total = response.data.data.total }) + }, + showUploadModal() { + this.uploadVisible = true + }, + handleChange(info) { + const status = info.file.status + if (status !== 'uploading') { + console.log(info.file, info.fileList) + } + if (status === 'done') { + this.$message.success(`${info.file.name} file uploaded successfully.`) + } else if (status === 'error') { + this.$message.error(`${info.file.name} file upload failed.`) + } } } } @@ -81,4 +100,10 @@ export default { .attachment-item { padding-bottom: 12px; } + +.upload-button { + position: fixed; + bottom: 80px; + right: 20px; +} diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index 454c13b8..51190510 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -1,10 +1,6 @@ @@ -175,6 +147,7 @@ export default { data() { return { optionLoading: true, + uploadVisible: false, wrapperCol: { xl: { span: 12 }, lg: { span: 12 }, @@ -245,6 +218,20 @@ export default { this.optionLoading = false this.themeConfiguration = null this.themeProperty = null + }, + showUploadModal() { + this.uploadVisible = true + }, + handleChange(info) { + const status = info.file.status + if (status !== 'uploading') { + console.log(info.file, info.fileList) + } + if (status === 'done') { + this.$message.success(`${info.file.name} file uploaded successfully.`) + } else if (status === 'error') { + this.$message.error(`${info.file.name} file upload failed.`) + } } } } @@ -266,4 +253,10 @@ export default { .theme-item .theme-control .theme-button { float: right; } + +.upload-button { + position: fixed; + bottom: 80px; + right: 20px; +}