From bb696b300fb1307998db7e0914f7ad593e2f51ed Mon Sep 17 00:00:00 2001 From: ahao <liuhaoai545@gmail.com> Date: 星期五, 05 一月 2024 11:42:36 +0800 Subject: [PATCH] update 升级依赖 --- src/views/system/user/index.vue | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 79ae8f8..df8b192 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -298,17 +298,16 @@ <script setup name="User" lang="ts"> import api from '@/api/system/user'; import { UserForm, UserQuery, UserVO } from '@/api/system/user/types'; -import { treeselect } from '@/api/system/dept'; import { DeptVO } from '@/api/system/dept/types'; import { RoleVO } from '@/api/system/role/types'; import { PostVO } from '@/api/system/post/types'; -import { to } from 'await-to-js'; +import { treeselect } from '@/api/system/dept'; import { globalHeaders } from '@/utils/request'; +import { to } from 'await-to-js'; const router = useRouter(); const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { sys_normal_disable, sys_user_sex } = toRefs<any>(proxy?.useDict('sys_normal_disable', 'sys_user_sex')); - const userList = ref<UserVO[]>(); const loading = ref(true); const showSearch = ref(true); @@ -373,7 +372,8 @@ postIds: [], roleIds: [] }; -const data = reactive<PageData<UserForm, UserQuery>>({ + +const initData: PageData<UserForm, UserQuery> = { form: { ...initFormData }, queryParams: { pageNum: 1, @@ -381,7 +381,8 @@ userName: '', phonenumber: '', status: '', - deptId: '' + deptId: '', + roleId: '' }, rules: { userName: [ @@ -418,7 +419,8 @@ } ] } -}); +}; +const data = reactive<PageData<UserForm, UserQuery>>(initData); const { queryParams, form, rules } = toRefs<PageData<UserForm, UserQuery>>(data); @@ -512,7 +514,7 @@ inputErrorMessage: '鐢ㄦ埛瀵嗙爜闀垮害蹇呴』浠嬩簬 5 鍜� 20 涔嬮棿' }) ); - if (!err) { + if (!err && res) { await api.resetUserPwd(row.userId, res.value); proxy?.$modal.msgSuccess('淇敼鎴愬姛锛屾柊瀵嗙爜鏄細' + res.value); } -- Gitblit v1.9.3