🐛 修复 post 和 dept 在 IDEA 报错的问题

(cherry picked from commit a77173f2ae)
This commit is contained in:
YunaiV 2023-12-02 10:20:09 +08:00 committed by shizhong
parent e39918d794
commit 9a49a8ea40
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ export interface DeptPageReqVO {
// 查询部门(精简)列表 // 查询部门(精简)列表
export const listSimpleDeptApi = async () => { export const listSimpleDeptApi = async () => {
return await request.get({ url: '/system/dept/list-all-simple' }) return await request.get({ url: '/system/dept/simple-list' })
} }
// 查询部门列表 // 查询部门列表

View File

@ -29,7 +29,7 @@ export const getPostPageApi = async (params: PostPageReqVO) => {
// 获取岗位精简信息列表 // 获取岗位精简信息列表
export const listSimplePostsApi = async () => { export const listSimplePostsApi = async () => {
return await request.get({ url: '/system/post/list-all-simple' }) return await request.get({ url: '/system/post/simple-list' })
} }
// 查询岗位详情 // 查询岗位详情

View File

@ -247,9 +247,9 @@ export function formatPast2(ms) {
* @param cellValue * @param cellValue
*/ */
// @ts-ignore // @ts-ignore
export const dateFormatter = (row, column, cellValue) => { export const dateFormatter = (row, column, cellValue): string => {
if (!cellValue) { if (!cellValue) {
return return ''
} }
return formatDate(cellValue) return formatDate(cellValue)
} }