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 @@
-