diff --git a/src/components/core/dynamic-table/src/hooks/useTableMethods.ts b/src/components/core/dynamic-table/src/hooks/useTableMethods.ts index 4ea8017..a74673a 100644 --- a/src/components/core/dynamic-table/src/hooks/useTableMethods.ts +++ b/src/components/core/dynamic-table/src/hooks/useTableMethods.ts @@ -99,9 +99,15 @@ export const useTableMethods = ({ state, props, emit }: UseTableMethodsContext) ...queryFormRef.value.handleFormValues(values), ...queryParams, }; + for (const key in queryParams) { + if (queryParams[key] !== 0 && !queryParams[key]) { + delete queryParams[key]; + } + } } loadingRef.value = true; + const res = await dataRequest(queryParams); const isArrayResult = Array.isArray(res); diff --git a/src/layout/routerView/index.vue b/src/layout/routerView/index.vue index 5acaf80..b1e9eeb 100644 --- a/src/layout/routerView/index.vue +++ b/src/layout/routerView/index.vue @@ -2,14 +2,14 @@
diff --git a/src/layout/tabs/tabs-view.vue b/src/layout/tabs/tabs-view.vue index f71bdaf..db32452 100644 --- a/src/layout/tabs/tabs-view.vue +++ b/src/layout/tabs/tabs-view.vue @@ -91,6 +91,7 @@ :name="Object.is(route.meta?.transitionName, false) ? '' : 'fade-transform'" mode="out-in" appear + :duration="300" > diff --git a/src/views/system/user/columns.tsx b/src/views/system/user/columns.tsx index 9cbd73f..1beb145 100644 --- a/src/views/system/user/columns.tsx +++ b/src/views/system/user/columns.tsx @@ -58,6 +58,12 @@ export const baseColumns: TableColumnItem[] = [ width: 120, dataIndex: 'email', }, + { + title: 'QQ', + width: 120, + hideInSearch: true, + dataIndex: 'qq', + }, { title: '手机', width: 120,