| | |
| | | } |
| | | ); |
| | | |
| | | const { dialogProps, handleEdit, handleAdd, editForm } = useFormDialog({ |
| | | const { dialogProps, handleEdit, handleAdd, editForm, dialogState } = useFormDialog({ |
| | | onConfirm: handleAddOrEdit, |
| | | defaultFormParams: { |
| | | id: '', |
| | |
| | | templateEditData: '', |
| | | enterpriseId: '', |
| | | }, |
| | | closeAfterConfirm: false, |
| | | }); |
| | | |
| | | async function openDialog(row?: API.GetEnterpriseContractTemplatesQueryResultItem) { |
| | |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | getList(); |
| | | dialogState.dialogVisible = false; |
| | | } |
| | | } catch (error) {} |
| | | } catch (error) { |
| | | dialogState.dialogVisible = true; |
| | | } |
| | | } |
| | | |
| | | function handleDownload(row: API.GetEnterpriseContractTemplatesQueryResultItem) { |