fix(加班申请、工作报告、我的绩效): 重构页面样式、修复一系列bug、对不合理的地方进行调整。

This commit is contained in:
dk
2026-06-22 23:07:21 +08:00
parent b1d52b852f
commit 632c123112
30 changed files with 1574 additions and 451 deletions

View File

@@ -324,6 +324,18 @@ export function fetchGetDeptSimpleList() {
});
}
/** 获取部门自身及全部子部门 */
export async function fetchGetDeptSelfAndChildren(id: string) {
const result = await request<Api.SystemManage.DeptSelfAndChildrenList>({
...safeJsonRequestConfig,
url: `${DEPT_PREFIX}/list-self-and-children`,
method: 'get',
params: { id }
});
return mapServiceResult(result as ServiceRequestResult<Api.SystemManage.DeptSelfAndChildrenList>, data => data);
}
/** 创建部门 */
export function fetchCreateDept(data: Api.SystemManage.SaveDeptParams) {
return request<number>({
@@ -736,6 +748,18 @@ export async function fetchGetMySubordinateTree() {
);
}
/** 获取某用户当前生效的直属下级列表 */
export async function fetchGetDirectSubordinates(userId: string) {
const result = await request<UserSimpleResponse[]>({
...safeJsonRequestConfig,
url: `${USER_MANAGEMENT_RELATION_PREFIX}/direct-subordinates`,
method: 'get',
params: { userId }
});
return mapServiceResult(result as ServiceRequestResult<UserSimpleResponse[]>, data => data.map(normalizeUserSimple));
}
/**
* 获取用户管理链路详情
*