From a41172471aad1333fa41c88d1f4bdb4dc14d1a38 Mon Sep 17 00:00:00 2001 From: RenCheng Date: Fri, 9 May 2025 21:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/fileManage/fullSearch.vue | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/views/fileManage/fullSearch.vue b/src/views/fileManage/fullSearch.vue index 9c19938..6ad72da 100644 --- a/src/views/fileManage/fullSearch.vue +++ b/src/views/fileManage/fullSearch.vue @@ -20,8 +20,18 @@
- > 下载  预览 @@ -124,6 +134,16 @@ export default { }, methods: { + handleTableChange(pagination, filters, sorter) { + //分页、排序、筛选变化时触发 + //TODO 筛选 + if (Object.keys(sorter).length > 0) { + this.isorter.column = sorter.field; + this.isorter.order = "ascend" == sorter.order ? "asc" : "desc" + } + this.ipagination = pagination; + this.getFileList(); + }, download(item){ let apiBaseUrl = window._CONFIG['domianURL'] || "/jeecg-boot"; window.open(apiBaseUrl+"/file/downloadFile?fileId="+item.id); @@ -154,6 +174,10 @@ export default { fullTextSearching(this.searchFile).then((res) => { if (res.success) { this.dataSource = res.result + if(res.result.total) + { + this.ipagination.total = res.result.total; + } } else { this.$message.warning(res.message); }