| | |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { useInfiniteLoading, useTaskList } from '@12333/hooks'; |
| | | import { useInfiniteLoading } from '@12333/hooks'; |
| | | import Taro from '@tarojs/taro'; |
| | | import * as enterpriseServices from '@12333/services/apiV2/enterprise'; |
| | | import { Message } from '@12333/utils'; |
| | |
| | | goAddress(item.id); |
| | | }; |
| | | |
| | | const { infiniteLoadingProps, invalidateQueries } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.GetEnterpriseAddressesQuery = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | | }, |
| | | }; |
| | | |
| | | return enterpriseServices.getEnterpriseAddresses(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['enterpriseServices/getEnterpriseAddresses'], |
| | | } |
| | | ); |
| | | const { infiniteLoadingProps, invalidateQueries } = useEnterpriseAddresses(); |
| | | |
| | | function goAddress(id?: string) { |
| | | Taro.navigateTo({ |