From db047b4e60c17c1f0490de029ca3de3b950e18bf Mon Sep 17 00:00:00 2001 From: Maple <869445424@qq.com> Date: Tue, 29 Jul 2025 17:53:31 +0800 Subject: [PATCH] =?UTF-8?q?init:=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=B2=97?= =?UTF-8?q?=E4=BD=8D=E7=AE=A1=E7=90=86=E4=B8=AD=E7=9A=84=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=8C=89=E9=92=AE=EF=BC=8C=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=9F=A5=E7=9C=8B=E5=B2=97=E4=BD=8D=E8=AF=A6?= =?UTF-8?q?=E6=83=85=20fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=8F=AF=E4=BB=A5=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E8=A7=92=E8=89=B2=E6=A3=80=E7=B4=A2=E8=AF=A5=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E7=9A=84=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/system/role.ts | 5 +- src/router/route.ts | 24 +- src/views/system/dept/index.vue | 51 +++- src/views/system/post/PostAddModal.vue | 4 +- src/views/system/post/PostDetailDrawer.vue | 269 ++++++++++++++++-- src/views/system/post/index.vue | 7 +- src/views/system/role/RoleAssignModal.vue | 17 +- src/views/system/role/components/RoleUser.vue | 18 +- src/views/system/role/index.vue | 1 + src/views/system/user/UserUpdateRoleModal.vue | 2 +- .../system/user/components/UserRoleModal.vue | 2 +- src/views/system/user/index.vue | 14 +- 12 files changed, 337 insertions(+), 77 deletions(-) diff --git a/src/apis/system/role.ts b/src/apis/system/role.ts index 454a107..05369a8 100644 --- a/src/apis/system/role.ts +++ b/src/apis/system/role.ts @@ -4,6 +4,7 @@ import http from '@/utils/http' export type * from './type' const BASE_URL = '/system/role' +const BASE_URL_NEW = '/role' /** @desc 查询角色列表(已废弃) */ export function listRole(query: T.RoleQuery) { @@ -72,7 +73,7 @@ export function updateRolePermission(id: string, data: any) { /** @desc 查询角色关联用户 */ export function listRoleUser(id: string, query: T.RoleUserPageQuery) { - return http.get>(`${BASE_URL}/${id}/user`, query) + return http.get>(`${BASE_URL_NEW}/${id}/user`, query) } /** @desc 分配角色给用户 */ @@ -87,5 +88,5 @@ export function unassignFromUsers(userRoleIds: Array) { /** @desc 查询角色关联用户 ID */ export function listRoleUserId(id: string) { - return http.get(`${BASE_URL}/${id}/user/id`) + return http.get(`${BASE_URL_NEW}/${id}/user`) } diff --git a/src/router/route.ts b/src/router/route.ts index a022484..dc9958b 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -117,6 +117,7 @@ export const systemRoutes: RouteRecordRaw[] = [ }, ], }, + // // { // path: '/organization/hr/salary/insurance', // name: 'HRInsurance', @@ -153,9 +154,10 @@ export const systemRoutes: RouteRecordRaw[] = [ // name: 'HRPersonalInfo', // component: () => import('@/views/hr/salary/insurance/personal-info/index.vue'), // meta: { title: '个人信息', icon: 'user', hidden: false }, - // } - // ] + // }, + // ], // }, + // { path: '/organization/hr/salary/system-insurance/health-management', name: 'HRSystemHealthManagement', @@ -932,6 +934,18 @@ export const systemRoutes: RouteRecordRaw[] = [ // } ], }, + { + path: '/user/profile', + name: 'UserProfile', + component: () => import('@/views/user/profile/index.vue'), + meta: { + title: '个人中心', + icon: 'user', + hidden: false, + sort: 100, + }, + children: [], + }, { path: '/enterprise-settings', name: 'EnterpriseSettings', @@ -1135,7 +1149,6 @@ export const systemRoutes: RouteRecordRaw[] = [ }, ], }, - { path: '/', redirect: '/project-management/project-template/project-aproval', @@ -1161,6 +1174,11 @@ export const constantRoutes: RouteRecordRaw[] = [ }, ], }, + // { + // path: '/user/profile', + // component: () => import('@/views/user/profile/index.vue'), + // meta: { hidden: true }, + // }, { path: '/:pathMatch(.*)*', component: () => import('@/views/default/error/404.vue'), diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 905266d..88051d5 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -1,4 +1,5 @@