diff --git a/.gitignore b/.gitignore index defc142..56607bd 100644 --- a/.gitignore +++ b/.gitignore @@ -229,7 +229,6 @@ web/apps/web-ele/src/views/_core/database-manager/ web/apps/web-ele/src/views/_core/database-monitor/ web/apps/web-ele/src/views/_core/demo/ web/apps/web-ele/src/views/_core/mobile-signature/ -web/apps/web-ele/src/views/_core/post/ web/apps/web-ele/src/views/_core/redis-manager/ web/apps/web-ele/src/views/_core/redis-monitor/ web/apps/web-ele/src/views/_core/region-manager/ diff --git a/backend-fastapi/core/menu/service.py b/backend-fastapi/core/menu/service.py index 3f0bff1..abe575e 100644 --- a/backend-fastapi/core/menu/service.py +++ b/backend-fastapi/core/menu/service.py @@ -29,14 +29,23 @@ AI_AGENT_ADMIN_MENU_NAMES = { "Codex", "SystemConfigManager", "SystemManagement", + "SystemDept", + "SystemPost", "SystemPermission", "UserManagement", "SystemMenu", "SystemRole", + "UIConfigManager", + "SystemTools", + "系统工具", + "SystemDict", + "FileManager", "Message", + "MessageList", "AnnouncementList", "AnnouncementManage", "userCenter", + "OrgNode", "userSettings", "LoginLog", } diff --git a/web/apps/web-ele/src/api/core/post.ts b/web/apps/web-ele/src/api/core/post.ts index c30b4d3..5d5b14a 100644 --- a/web/apps/web-ele/src/api/core/post.ts +++ b/web/apps/web-ele/src/api/core/post.ts @@ -29,6 +29,7 @@ export interface PostCreateInput { status?: boolean; description?: string; dept_id?: string; + sort?: number; } export interface PostUpdateInput extends Partial {} @@ -120,7 +121,7 @@ export async function deletePostApi(postId: string) { */ export async function batchDeletePostApi(data: PostBatchDeleteInput) { return requestClient.post<{ count: number }>( - '/api/core/post/batch_delete', + '/api/core/post/batch/delete', data, ); } @@ -132,7 +133,7 @@ export async function batchUpdatePostStatusApi( data: PostBatchUpdateStatusInput, ) { return requestClient.post<{ count: number }>( - '/api/core/post/batch_update_status', + '/api/core/post/batch/status', data, ); } @@ -141,7 +142,7 @@ export async function batchUpdatePostStatusApi( * 根据部门ID获取岗位列表 */ export async function getPostsByDeptApi(deptId: string) { - return requestClient.get(`/api/core/post/by_dept/${deptId}`); + return requestClient.get(`/api/core/post/by/dept/${deptId}`); } /** @@ -194,7 +195,7 @@ export async function getPostStatsApi() { * 导出岗位数据 */ export async function exportPostApi(params?: PostListParams) { - return requestClient.get('/api/core/post/export', { + return requestClient.get('/api/core/post/export/excel', { params, responseType: 'blob', }); @@ -207,7 +208,7 @@ export async function importPostApi(file: File) { const formData = new FormData(); formData.append('file', file); return requestClient.post<{ error_count: number; success_count: number }>( - '/api/core/post/import', + '/api/core/post/import/excel', formData, { headers: { @@ -221,7 +222,7 @@ export async function importPostApi(file: File) { * 获取简单岗位列表(用于选择器) */ export async function getSimplePostListApi() { - return requestClient.get('/api/core/post/simple'); + return requestClient.get('/api/core/post/all'); } /** diff --git a/web/apps/web-ele/src/router/access.ts b/web/apps/web-ele/src/router/access.ts index 41c1ac8..265a9e5 100644 --- a/web/apps/web-ele/src/router/access.ts +++ b/web/apps/web-ele/src/router/access.ts @@ -24,10 +24,15 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) { '../views/_core/authentication/login.vue', '../views/_core/authentication/oauth-callback.vue', '../views/_core/control-center/index.vue', + '../views/_core/dept/index.vue', + '../views/_core/dict/index.vue', '../views/_core/fallback/**/*.vue', + '../views/_core/file-manager/index.vue', '../views/_core/login-log/index.vue', '../views/_core/menu/index.vue', '../views/_core/message/index.vue', + '../views/_core/org-chart/index.vue', + '../views/_core/post/index.vue', '../views/_core/permission/index.vue', '../views/_core/role/index.vue', '../views/_core/system-config/index.vue', diff --git a/web/apps/web-ele/src/router/routes/index.ts b/web/apps/web-ele/src/router/routes/index.ts index 1626afa..3885681 100644 --- a/web/apps/web-ele/src/router/routes/index.ts +++ b/web/apps/web-ele/src/router/routes/index.ts @@ -43,10 +43,15 @@ const componentKeys: string[] = Object.keys( '../../views/_core/authentication/login.vue', '../../views/_core/authentication/oauth-callback.vue', '../../views/_core/control-center/index.vue', + '../../views/_core/dept/index.vue', + '../../views/_core/dict/index.vue', '../../views/_core/fallback/**/*.vue', + '../../views/_core/file-manager/index.vue', '../../views/_core/login-log/index.vue', '../../views/_core/menu/index.vue', '../../views/_core/message/index.vue', + '../../views/_core/org-chart/index.vue', + '../../views/_core/post/index.vue', '../../views/_core/permission/index.vue', '../../views/_core/role/index.vue', '../../views/_core/system-config/index.vue', diff --git a/web/apps/web-ele/src/views/_core/post/index.vue b/web/apps/web-ele/src/views/_core/post/index.vue new file mode 100644 index 0000000..c9311da --- /dev/null +++ b/web/apps/web-ele/src/views/_core/post/index.vue @@ -0,0 +1,406 @@ + + + + +