| | |
| | | } from '@/constants'; |
| | | import DialogAuthorizeV2 from './components/dialogAuthorizeV2.vue'; |
| | | import * as roleServices from '@/services/api/role'; |
| | | import { useQueryClient } from '@tanstack/vue-query'; |
| | | |
| | | defineOptions({ |
| | | name: 'RoleManage', |
| | |
| | | enterpriseType: '' as any as EnumEnterpriseType, |
| | | }, |
| | | }); |
| | | |
| | | const queryClient = useQueryClient(); |
| | | async function handleAddOrEdit() { |
| | | try { |
| | | const isEdit = editForm.id; |
| | |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | getList(isEdit ? paginationState.pageIndex : 1); |
| | | queryClient.invalidateQueries(['userServices/getUserInfoRoles']); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | getList(paginationState.pageIndex); |
| | | queryClient.invalidateQueries(['userServices/getUserInfoRoles']); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | |
| | | if (res) { |
| | | Message.successMessage('操作成功'); |
| | | getList(paginationState.pageIndex); |
| | | queryClient.invalidateQueries(['userServices/getUserInfoRoles']); |
| | | return !!res; |
| | | } |
| | | } catch (error) {} |