mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-12-31 20:58:38 +08:00
新增:部门管理对接用户信息(新增所属部门),并完善查看部门详情(增加上级部门显示)
This commit is contained in:
@@ -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: '低调星人',
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user