From 7170619e6a50d750cb50f566692ce8fb170da7fa Mon Sep 17 00:00:00 2001 From: ruibaby Date: Mon, 22 Apr 2019 00:23:42 +0800 Subject: [PATCH] Support attachment query by type. --- src/views/attachment/AttachmentList.vue | 20 ++++--- src/views/interface/MenuList.vue | 75 +++++++++---------------- src/views/system/OptionForm.vue | 4 +- 3 files changed, 39 insertions(+), 60 deletions(-) diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 4e0847db..41314a2b 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -12,17 +12,19 @@ - - - 2019-01 - 2019-02 - 2019-03 + + + 本地 + SM.MS + 又拍云 + 七牛云 + 阿里云 - - + + {{ item }} @@ -116,7 +118,8 @@ export default { size: 18, sort: null, keyword: null, - mediaType: null + mediaType: null, + attachmentType: null }, uploadHandler: attachmentApi.upload, drawerVisiable: false @@ -172,6 +175,7 @@ export default { resetParam() { this.queryParam.keyword = null this.queryParam.mediaType = null + this.queryParam.attachmentType = null this.loadAttachments() }, handleDelete(attachment) { diff --git a/src/views/interface/MenuList.vue b/src/views/interface/MenuList.vue index eeaa1cd0..a11504a9 100644 --- a/src/views/interface/MenuList.vue +++ b/src/views/interface/MenuList.vue @@ -7,21 +7,14 @@ :md="10" :sm="24" :xs="24" - :style="{ 'padding-bottom': '12px' }" - > + :style="{ 'padding-bottom': '12px' }"> - - + + - - + + @@ -33,31 +26,23 @@ - + - - + + - - + + 当前窗口 新窗口 - 保存 + 保存 + + 更多选项 + + @@ -68,8 +53,7 @@ :md="14" :sm="24" :xs="24" - :style="{ 'padding-bottom': '12px' }" - > + :style="{ 'padding-bottom': '12px' }"> - - {{ text }} - - - 编辑 - + {{ text }} + + 编辑 + 本地 SM.MS - 又拍云 + 又拍云 七牛云 阿里云 @@ -407,7 +407,7 @@ export default { this.qnyunFormHidden = false this.aliyunFormHidden = false break - case 'ypyun': + case 'upyun': this.upyunFormHidden = true this.qnyunFormHidden = false this.aliyunFormHidden = false