| | |
| | | import { useQuery, useQueryClient } from '@tanstack/vue-query'; |
| | | import * as taskServices from '@/services/api/task'; |
| | | import * as enterpriseWalletServices from '@/services/api/enterpriseWallet'; |
| | | |
| | | export function useTaskSelect() { |
| | | const queryClient = useQueryClient(); |
| | |
| | | |
| | | return { taskSelect }; |
| | | } |
| | | |
| | | export function useEnterpriseWalletAccessSelect() { |
| | | const queryClient = useQueryClient(); |
| | | |
| | | const { data } = useQuery({ |
| | | queryKey: ['enterpriseWalletServices/getEnterpriseWalletAccessSelect'], |
| | | queryFn: () => { |
| | | return enterpriseWalletServices.getEnterpriseWalletAccessSelect( |
| | | {}, |
| | | { |
| | | showLoading: false, |
| | | } |
| | | ); |
| | | }, |
| | | placeholderData: () => [] as API.SelectOptionGuidGetEnterpriseWalletAccessSelectQueryOption[], |
| | | }); |
| | | |
| | | const enterpriseWalletAccessSelect = computed(() => data.value?.map((x) => x.data)); |
| | | |
| | | return { enterpriseWalletAccessSelect }; |
| | | } |