From b47192516a7fe845e17aeb8d32bff45f6095c01f Mon Sep 17 00:00:00 2001 From: xuyuxiang Date: Mon, 13 Mar 2023 17:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E6=A8=A1=E5=9D=97=E5=89=8D=E7=AB=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/views/biz/user/index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/snowy-admin-web/src/views/biz/user/index.vue b/snowy-admin-web/src/views/biz/user/index.vue index 62a4270f..b44ffb32 100644 --- a/snowy-admin-web/src/views/biz/user/index.vue +++ b/snowy-admin-web/src/views/biz/user/index.vue @@ -129,7 +129,7 @@ {{ $t('user.grantRole') }} - + {{ $t('user.exportUserInfo') }} @@ -159,6 +159,7 @@ import roleSelectorPlus from '@/components/Selector/roleSelectorPlus.vue' import Form from './form.vue' import ImpExp from './impExp.vue' + import userApi from "@/api/sys/userApi"; const columns = [ { @@ -381,6 +382,15 @@ const resetPassword = (record) => { bizUserApi.userResetPassword(record).then(() => {}) } + // 导出用户信息 + const exportUserInfo = (record) => { + const params = { + id: record.id + } + bizUserApi.userExportUserInfo(params).then((res) => { + downloadUtil.resultDownload(res) + }) + }