| | |
| | | operationBtnMap, |
| | | }); |
| | | |
| | | const { updateDictionaryCategorySelect } = useGetDictionaryCategorySelect(); |
| | | const BaseState = { |
| | | loading: true, |
| | | }; |
| | |
| | | } |
| | | } |
| | | |
| | | const { dialogProps, handleAdd, handleEdit, editForm } = useFormDialog({ |
| | | const { dialogProps, handleAdd, handleEdit, editForm, dialogState } = useFormDialog({ |
| | | onConfirm: handleAddOrEdit, |
| | | defaultFormParams: { |
| | | id: '', |
| | |
| | | let res = await dictionaryServices.saveDictionaryCategory(params); |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | updateDictionaryCategorySelect(); |
| | | getList(paginationState.pageIndex); |
| | | dialogState.dialogVisible = false; |
| | | } |
| | | } catch (error) {} |
| | | } |