| | |
| | | > |
| | | <ProTabPane :title="`已签约`" :pane-key="EnumTaskUserSignContractStatus.Pass"></ProTabPane> |
| | | <ProTabPane :title="`待签约`" :pane-key="EnumTaskUserSignContractStatus.Wait"></ProTabPane> |
| | | <ProTabPane :title="`已解约`" :pane-key="EnumTaskUserSignContractStatus.Refuse"></ProTabPane> |
| | | <ProTabPane :title="`已解约`" :pane-key="EnumTaskUserSignContractStatus.Stop"></ProTabPane> |
| | | </ProTabs> |
| | | <InfiniteLoading |
| | | scrollViewClassName="common-infinite-scroll-list home-list" |
| | |
| | | <nut-button |
| | | v-else-if=" |
| | | Number(queryState.userSignContractStatus) === EnumTaskUserSignContractStatus.Wait || |
| | | Number(queryState.userSignContractStatus) === EnumTaskUserSignContractStatus.Refuse |
| | | Number(queryState.userSignContractStatus) === EnumTaskUserSignContractStatus.Stop |
| | | " |
| | | type="primary" |
| | | @click.stop="goFlexJobSign(item)" |
| | |
| | | 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) { |