| | |
| | | <template> |
| | | <LoadingLayout :loading="isInitialLoading"> |
| | | <LoadingLayout :loading="state.loading"> |
| | | <AppContainer> |
| | | <ProTableQueryFilterBar @on-reset="reset"> |
| | | <template #query> |
| | |
| | | import { Message } from '@bole-core/core'; |
| | | import * as enterpriseServices from '@/services/api/enterprise'; |
| | | import WechatWalletOpen from './components/WechatWalletOpen.vue'; |
| | | import { stat } from 'fs'; |
| | | |
| | | defineOptions({ |
| | | name: 'EnterpriseManageList', |
| | |
| | | }); |
| | | |
| | | const router = useRouter(); |
| | | const { getList, proTableProps, paginationState, extraParamState, reset, isInitialLoading } = |
| | | useGetEnterprises(); |
| | | |
| | | const BaseState = { |
| | | loading: true, |
| | | }; |
| | | |
| | | const state = reactive({ ...BaseState }); |
| | | |
| | | const { getList, proTableProps, paginationState, extraParamState, reset } = useGetEnterprises({ |
| | | type: EnumEnterpriseType.Supplier, |
| | | }); |
| | | |
| | | function openDialog(row?: API.GetEnterprisesQueryResultItem) { |
| | | handleEdit({ |
| | |
| | | function handleDetail(row: API.GetEnterprisesQueryResultItem) { |
| | | router.push({ name: 'EnterpriseDetail', params: { id: row?.id ?? '' } }); |
| | | } |
| | | onMounted(() => { |
| | | state.loading = true; |
| | | getList(); |
| | | state.loading = false; |
| | | }); |
| | | </script> |