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 |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 9a6d82c..100b5a7 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -320,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[]>([]);
 /*** 鐢ㄦ埛瀵煎叆鍙傛暟 */
@@ -340,13 +340,13 @@
 })
 // 鍒楁樉闅愪俊鎭�
 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: [] }
 ])
 
 
@@ -561,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) => {
@@ -613,6 +613,9 @@
 onMounted(() => {
   getTreeSelect() // 鍒濆鍖栭儴闂ㄦ暟鎹�
   getList() // 鍒濆鍖栧垪琛ㄦ暟鎹�
+  proxy?.getConfigKey("sys.user.initPassword").then(response => {
+    initPassword.value = response.data;
+  });
 });
 </script>
 

--
Gitblit v1.9.3