From c97cd4c6008866f6e80e109d296a7922a7049b4f Mon Sep 17 00:00:00 2001 From: riverflow <3011499946@qq.com> Date: Thu, 14 Aug 2025 12:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=90=9C=E7=B4=A2=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E3=80=81=E9=87=8D=E7=BD=AE=E6=8C=89=E9=92=AE=E4=B8=8E?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E6=8E=A5=E5=8F=A3=E7=9A=84=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- order-system/src/compositions/user/useUserTable.ts | 10 +++++----- order-system/src/views/user/Index.vue | 4 +--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/order-system/src/compositions/user/useUserTable.ts b/order-system/src/compositions/user/useUserTable.ts index 9749714..84f8c34 100644 --- a/order-system/src/compositions/user/useUserTable.ts +++ b/order-system/src/compositions/user/useUserTable.ts @@ -31,17 +31,18 @@ export default function useUserTable() { } } - // 获取show方法 - const tableShowBtn = ref<{ show: (title: string) => void }>() // 搜索按钮 const searchBtn = () => { - + getList() } // 重置按钮 const resetBtn = () => { - tableShowBtn.value?.show("重置") + listParm.currentPage = 1; + listParm.name = '' + listParm.phone = '' + getList() } // 在组件挂载时加载数据 @@ -67,7 +68,6 @@ export default function useUserTable() { } // 将表格查询的方法返回出去 return { - tableShowBtn, listParm, getList, searchBtn, diff --git a/order-system/src/views/user/Index.vue b/order-system/src/views/user/Index.vue index dab69d9..4d0695a 100644 --- a/order-system/src/views/user/Index.vue +++ b/order-system/src/views/user/Index.vue @@ -52,7 +52,6 @@ -