From cc9b67d4676dd51a6b2d88e92607aca2629ee54d Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 22 十二月 2023 13:26:26 +0800 Subject: [PATCH] !72 发布 vue 版本 5.1.2 与 cloud 版本 2.1.2 Merge pull request !72 from 疯狂的狮子Li/temp --- src/views/system/user/index.vue | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 3da644d..100b5a7 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -299,7 +299,6 @@ <script setup name="User" lang="ts"> import api from "@/api/system/user" import { UserForm, UserQuery, UserVO } from '@/api/system/user/types'; -import { getToken } from "@/utils/auth"; import { treeselect } from "@/api/system/dept"; import { DeptVO } from "@/api/system/dept/types"; import { RoleVO } from "@/api/system/role/types"; @@ -321,7 +320,7 @@ const dateRange = ref<[DateModelType, DateModelType]>(['', '']); const deptName = ref(''); const deptOptions = ref<DeptVO[]>([]); -const initPassword = ref('123456'); +const initPassword = ref<String>(''); const postOptions = ref<PostVO[]>([]); const roleOptions = ref<RoleVO[]>([]); /*** 鐢ㄦ埛瀵煎叆鍙傛暟 */ @@ -335,19 +334,19 @@ // 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹� updateSupport: 0, // 璁剧疆涓婁紶鐨勮姹傚ご閮� - headers: globalHeaders, + headers: globalHeaders(), // 涓婁紶鐨勫湴鍧� url: import.meta.env.VITE_APP_BASE_API + "/system/user/importData" }) // 鍒楁樉闅愪俊鎭� const columns = ref<FieldOption[]>([ - { key: 0, label: `鐢ㄦ埛缂栧彿`, visible: false }, - { key: 1, label: `鐢ㄦ埛鍚嶇О`, visible: true }, - { key: 2, label: `鐢ㄦ埛鏄电О`, visible: true }, - { key: 3, label: `閮ㄩ棬`, visible: true }, - { key: 4, label: `鎵嬫満鍙风爜`, visible: true }, - { key: 5, label: `鐘舵�乣, visible: true }, - { key: 6, label: `鍒涘缓鏃堕棿`, visible: true } + { key: 0, label: `鐢ㄦ埛缂栧彿`, visible: false,children: [] }, + { key: 1, label: `鐢ㄦ埛鍚嶇О`, visible: true,children: [] }, + { key: 2, label: `鐢ㄦ埛鏄电О`, visible: true,children: [] }, + { key: 3, label: `閮ㄩ棬`, visible: true,children: [] }, + { key: 4, label: `鎵嬫満鍙风爜`, visible: true,children: [] }, + { key: 5, label: `鐘舵�乣, visible: true,children: [] }, + { key: 6, label: `鍒涘缓鏃堕棿`, visible: true,children: [] } ]) @@ -562,7 +561,7 @@ await initTreeData(); postOptions.value = data.posts; roleOptions.value = data.roles; - form.value.password = initPassword.value; + form.value.password = initPassword.value.toString(); } /** 淇敼鎸夐挳鎿嶄綔 */ const handleUpdate = async (row?: UserForm) => { @@ -614,6 +613,9 @@ onMounted(() => { getTreeSelect() // 鍒濆鍖栭儴闂ㄦ暟鎹� getList() // 鍒濆鍖栧垪琛ㄦ暟鎹� + proxy?.getConfigKey("sys.user.initPassword").then(response => { + initPassword.value = response.data; + }); }); </script> -- Gitblit v1.9.3