From 7f580897f792909a70173939a283fda1c9268a2f Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 24 May 2024 17:10:48 +0800 Subject: [PATCH 1/2] =?UTF-8?q?perf:=20=E5=88=86=E4=BA=AB=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=98=BE=E7=A4=BA=E6=96=87=E4=BB=B6=E5=A4=B9=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/public/share/shareList.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/public/share/shareList.vue b/src/views/public/share/shareList.vue index 52e3821..0220083 100644 --- a/src/views/public/share/shareList.vue +++ b/src/views/public/share/shareList.vue @@ -607,7 +607,8 @@ export default { share: this.shareId, fileId: fileId, pageIndex: this.pagination.pageIndex, - pageSize: this.pagination.pageSize + pageSize: this.pagination.pageSize, + showFolderSize: true }).then(res => { this.isLoading = false this.fileList = res.data @@ -628,7 +629,8 @@ export default { api.accessShare({ share: this.shareId, pageIndex: this.pagination.pageIndex, - pageSize: this.pagination.pageSize + pageSize: this.pagination.pageSize, + showFolderSize: true }).then(res => { this.isLoading = false if (Object.getPrototypeOf(res.data) === String.prototype) { From d8d26485929406beadbd486dc338930d8d742a12 Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 25 May 2024 16:46:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?perf:=20=E5=88=86=E4=BA=AB=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/file-api.js | 4 +- src/components/ShareDialog/index.vue | 173 ++++++++++++++++++--------- src/components/ShowFile/ShowFile.vue | 13 +- src/views/share/index.vue | 23 +++- 4 files changed, 153 insertions(+), 60 deletions(-) diff --git a/src/api/file-api.js b/src/api/file-api.js index 60be654..1126801 100644 --- a/src/api/file-api.js +++ b/src/api/file-api.js @@ -241,9 +241,9 @@ export default { }) }, // 获取分享信息 - getShare: function(params) { + getShareByFileId: function(params) { return request({ - url: '/get/share', + url: '/get/share/by/fileId', method: 'get', params }) diff --git a/src/components/ShareDialog/index.vue b/src/components/ShareDialog/index.vue index 679267f..04e7ea0 100644 --- a/src/components/ShareDialog/index.vue +++ b/src/components/ShareDialog/index.vue @@ -28,23 +28,32 @@ 到期时间   + + + 分享形式 + + + + + + + +