diff --git a/src/api/system/dept/index.ts b/src/api/system/dept/index.ts index d66de3f1..61144662 100644 --- a/src/api/system/dept/index.ts +++ b/src/api/system/dept/index.ts @@ -19,7 +19,7 @@ export interface DeptPageReqVO { // 查询部门(精简)列表 export const listSimpleDeptApi = async () => { - return await request.get({ url: '/system/dept/list-all-simple' }) + return await request.get({ url: '/system/dept/simple-list' }) } // 查询部门列表 diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts index 9e2540f0..722194c6 100644 --- a/src/api/system/post/index.ts +++ b/src/api/system/post/index.ts @@ -29,7 +29,7 @@ export const getPostPageApi = async (params: PostPageReqVO) => { // 获取岗位精简信息列表 export const listSimplePostsApi = async () => { - return await request.get({ url: '/system/post/list-all-simple' }) + return await request.get({ url: '/system/post/simple-list' }) } // 查询岗位详情 diff --git a/src/utils/formatTime.ts b/src/utils/formatTime.ts index d71372ea..6c79deba 100644 --- a/src/utils/formatTime.ts +++ b/src/utils/formatTime.ts @@ -247,9 +247,9 @@ export function formatPast2(ms) { * @param cellValue 字段值 */ // @ts-ignore -export const dateFormatter = (row, column, cellValue) => { +export const dateFormatter = (row, column, cellValue): string => { if (!cellValue) { - return + return '' } return formatDate(cellValue) }