From 9a49a8ea40c3f179e215c89c56f5f0ed0a922f30 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 2 Dec 2023 10:20:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20post=20?= =?UTF-8?q?=E5=92=8C=20dept=20=E5=9C=A8=20IDEA=20=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit a77173f2ae7b613a3a20b076ecce7473357a46b5) --- src/api/system/dept/index.ts | 2 +- src/api/system/post/index.ts | 2 +- src/utils/formatTime.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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) }