| | |
| | | userSignContractStatus: EnumTaskUserSignContractStatus.Pass, |
| | | }); |
| | | |
| | | const { infiniteLoadingProps } = useInfiniteLoading( |
| | | const { infiniteLoadingProps, invalidateQueries } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.GetEnterpriseEmployeesQuery = { |
| | | pageModel: { |
| | |
| | | async function handleUnsign(item: API.GetEnterpriseEmployeesQueryResultItem) { |
| | | try { |
| | | await Message.confirm({ message: '确定要解约吗?' }); |
| | | let params: API.StopElectronSignCommand = { |
| | | id: item.id, |
| | | }; |
| | | let res = await enterpriseEmployeeServices.stopElectronSign(params); |
| | | if (res) { |
| | | Message.success('解约成功'); |
| | | invalidateQueries(); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | function goFlexJobSign(item: API.GetEnterpriseEmployeesQueryResultItem) { |