新增:部门管理对接用户信息(新增所属部门),并完善查看部门详情(增加上级部门显示)

This commit is contained in:
2023-02-07 22:04:22 +08:00
parent 908af28235
commit c44503b7ea
17 changed files with 77 additions and 19 deletions

View File

@@ -13,7 +13,7 @@ import useAppStore from '../app';
const useLoginStore = defineStore('user', {
state: (): UserState => ({
userId: '',
userId: 0,
username: '',
nickname: '',
gender: 0,
@@ -23,11 +23,11 @@ const useLoginStore = defineStore('user', {
description: undefined,
pwdResetTime: undefined,
registrationDate: undefined,
deptId: 0,
deptName: '',
job: 'backend',
jobName: '后端艺术家',
organization: 'Backend',
organizationName: '后端',
location: 'beijing',
locationName: '北京',
introduction: '低调星人',

View File

@@ -1,6 +1,6 @@
export type RoleType = '' | '*' | 'admin' | 'user';
export interface UserState {
userId: string;
userId: number;
username: string;
nickname: string;
gender: number;
@@ -10,11 +10,11 @@ export interface UserState {
description?: string;
pwdResetTime?: string;
registrationDate?: string;
deptId?: number;
deptName?: string;
job?: string;
jobName?: string;
organization?: string;
organizationName?: string;
location?: string;
locationName?: string;
introduction?: string;