From a2f13185e18c274d80cadade406e2b47253b038a Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 09 十月 2023 11:57:22 +0800 Subject: [PATCH] fix 修复 HeaderSearch组件跳转query参数丢失问题 --- src/views/system/user/index.vue | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 9d2fcdd..3dbb083 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[]>([]); /*** 鐢ㄦ埛瀵煎叆鍙傛暟 */ @@ -341,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: [] } ]) @@ -614,6 +613,9 @@ onMounted(() => { getTreeSelect() // 鍒濆鍖栭儴闂ㄦ暟鎹� getList() // 鍒濆鍖栧垪琛ㄦ暟鎹� + proxy?.getConfigKey("sys.user.initPassword").then(response => { + initPassword.value = response.data; + }); }); </script> -- Gitblit v1.9.3