Commit fc705dcd authored by 刘斌's avatar 刘斌

fix: 修复离职详情

parent 630bf5d4
......@@ -14,6 +14,7 @@ import {
} from 'ant-design-vue';
import { apiInfoDetail } from '#/api/hr/employeeInfo';
import { apiInfoDetail as resignInfoDetail } from '#/api/hr/resignEmployee';
const [BasicDrawer, drawerApi] = useVbenDrawer({
onOpenChange: handleOpenChange,
......@@ -38,7 +39,10 @@ async function handleOpenChange(open: boolean) {
return null;
}
isResign.value = !!resignFlag;
const data = await apiInfoDetail(id);
const data = await (isResign.value
? resignInfoDetail(id)
: apiInfoDetail(id));
// const data = await apiInfoDetail(id);
currentEmployee.value = data;
}
......
......@@ -29,7 +29,7 @@ export const querySchema: VbenFormSchema[] = [
},
{
component: 'Input',
fieldName: 'employeeId',
fieldName: 'employeeNo',
label: '工号',
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment