From 873424e65ae6d9db394a71570e6b0ecc82aa12c0 Mon Sep 17 00:00:00 2001 From: xlsea Date: Sun, 11 May 2025 15:40:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/custom/dept-tree.vue | 13 ++++++++++-- src/components/custom/menu-tree.vue | 21 +++++++------------ src/typings/api/system.api.d.ts | 2 +- .../modules/tenant-package-operate-drawer.vue | 14 ++++++------- 4 files changed, 27 insertions(+), 23 deletions(-) diff --git a/src/components/custom/dept-tree.vue b/src/components/custom/dept-tree.vue index 279e01ff..25ef2e89 100644 --- a/src/components/custom/dept-tree.vue +++ b/src/components/custom/dept-tree.vue @@ -1,5 +1,5 @@ diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 835f885e..33465c0a 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -7,6 +7,7 @@ import { useAppStore } from '@/store/modules/app'; import { useTable, useTableOperate } from '@/hooks/common/table'; import { useDict } from '@/hooks/business/dict'; import { useAuth } from '@/hooks/business/auth'; +import { useDownload } from '@/hooks/business/download'; import ButtonIcon from '@/components/custom/button-icon.vue'; import { $t } from '@/locales'; import StatusSwitch from '@/components/custom/status-switch.vue'; @@ -22,6 +23,7 @@ useDict('sys_user_sex'); const { hasAuth } = useAuth(); const appStore = useAppStore(); +const { download } = useDownload(); const { bool: importVisible, setTrue: openImportModal } = useBoolean(); @@ -236,6 +238,10 @@ async function handleStatusChange( getData(); } } + +function handleExport() { + download('/system/user/export', searchParams, `用户列表_${new Date().getTime()}.xlsx`); +}