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 fb2f2ec..fd39ac5 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -138,6 +138,7 @@ export const systemRoutes: RouteRecordRaw[] = [ }, ], }, + // // { // path: '/organization/hr/salary/insurance', // name: 'HRInsurance', @@ -174,9 +175,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', @@ -953,6 +955,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', @@ -1156,7 +1170,6 @@ export const systemRoutes: RouteRecordRaw[] = [ }, ], }, - { path: '/', redirect: '/project-management/project-template/project-aproval', @@ -1182,6 +1195,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 @@