diff --git a/src/views/admin/menu/index.vue b/src/views/admin/menu/index.vue
index a087df40..0e1e7629 100644
--- a/src/views/admin/menu/index.vue
+++ b/src/views/admin/menu/index.vue
@@ -6,11 +6,12 @@
-
-
- {{ $t('common.queryBtn') }}
-
-
+
+
+ {{ $t('common.queryBtn') }}
+
+ {{ $t('common.resetBtn') }}
+
@@ -102,6 +103,7 @@ const { t } = useI18n();
// 定义变量内容
const tableRef = ref();
const menuDialogRef = ref();
+const queryRef = ref();
const showSearch = ref(true);
const isExpand = ref(false);
const state: BasicTableProps = reactive({
@@ -144,6 +146,19 @@ const toggleExpand = (children: any[], unfold = true) => {
}
};
+// 搜索事件
+const query = () => {
+ state.dataList = [];
+ getDataList();
+};
+
+// 清空搜索条件
+const resetQuery = () => {
+ queryRef.value.resetFields();
+ state.dataList = [];
+ getDataList();
+};
+
// 删除操作
const handleDelete = async (row: any) => {
try {