From eca2457c22c1df27df55f7da3f5a918e98128e1c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 2 Jul 2024 15:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/index.vue | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 632aa0442..44b6e5f7a 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -90,9 +90,10 @@ - - - + + + + @@ -105,6 +106,7 @@ import { CommonStatusEnum } from '@/utils/constants' import * as UserApi from '@/api/system/user' import UserForm from './UserForm.vue' import UserImportForm from './UserImportForm.vue' +import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import UserAssignRoleForm from './UserAssignRoleForm.vue' import DeptTree from './DeptTree.vue' @@ -168,7 +170,11 @@ const importFormRef = ref() const handleImport = () => { importFormRef.value.open() } - +// 导入附件弹窗所需的参数 +const importTemplateData = reactive({ + templateUrl: '', + templateTitle: '用户导入模版.xlsx' +}) /** 修改用户状态 */ const handleStatusChange = async (row: UserApi.UserVO) => { try { @@ -252,9 +258,14 @@ const assignRoleFormRef = ref() const handleRole = (row: UserApi.UserVO) => { assignRoleFormRef.value.open(row) } +// 导入成功之后 +const importSuccess = () => { + getList() +} /** 初始化 */ -onMounted(() => { +onMounted(async() => { getList() + importTemplateData.templateUrl = await UserApi.importUserTemplate() })