浏览代码

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek 1年前
父节点
当前提交
e90a41278c
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. +2
    -0
      src/app/api/staff/actions.ts
  2. +1
    -0
      src/components/CreateStaffForm/CreateStaffForm.tsx

+ 2
- 0
src/app/api/staff/actions.ts 查看文件

@@ -32,6 +32,8 @@ export interface CreateStaffInputs {
departDate?: string | null; departDate?: string | null;
departReason?: string | null; departReason?: string | null;
remark?: string | null; remark?: string | null;
staffId: string | null;
skillSetId?: number[] | number | null | undefined
} }
export interface records { export interface records {


+ 1
- 0
src/components/CreateStaffForm/CreateStaffForm.tsx 查看文件

@@ -67,6 +67,7 @@ const CreateStaffForm: React.FC<formProps> = ({ Title, fieldLists }) => {
} }
const postData = { const postData = {
...data, ...data,
skillSetId: typeof data.skillSetId === "number" ? [data.skillSetId] : data.skillSetId,
emergContactPhone: data.emergContactPhone.toString(), emergContactPhone: data.emergContactPhone.toString(),
phone1: data.phone1.toString(), phone1: data.phone1.toString(),
phone2: data.phone2.toString(), phone2: data.phone2.toString(),


正在加载...
取消
保存