From 139bed3da0f28c92760def650e6296ce6d682bd2 Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Wed, 3 Dec 2025 11:15:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/fileManager/components/rectificationList.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/fileManager/components/rectificationList.vue b/src/views/fileManager/components/rectificationList.vue index 73b88c1c..400a3d3a 100644 --- a/src/views/fileManager/components/rectificationList.vue +++ b/src/views/fileManager/components/rectificationList.vue @@ -16,6 +16,7 @@ :option="option" @on-load="onLoad" @refresh-change="onLoad" + @search-reset="handleResetSearch" @current-change="handleCurrentChange" @size-change="handleSizeChange" @search-change="handleSearch" @@ -166,6 +167,13 @@ const onLoad = async (pageParam = page) => { } }; +const handleResetSearch = (done) => { + searchParams.value = {}; // 清空搜索条件 + page.currentPage = 1; // 重置到第一页 + onLoad(); // 重新加载数据 + done && done(); // 通知 Avue 搜索已完成(可选) +}; + // 查询方法 const handleSearch = (params, done) => { // 保存搜索参数