wupengfei
2 天以前 6c4510ab6dfd1f0962e77268fa6e49e17861a00a
src/views/EnterpriseManage/EnterpriseManageList.vue
@@ -1,5 +1,5 @@
<template>
  <LoadingLayout :loading="isInitialLoading">
  <LoadingLayout :loading="state.loading">
    <AppContainer>
      <ProTableQueryFilterBar @on-reset="reset">
        <template #query>
@@ -58,6 +58,7 @@
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',
@@ -84,8 +85,16 @@
});
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({
@@ -133,4 +142,9 @@
function handleDetail(row: API.GetEnterprisesQueryResultItem) {
  router.push({ name: 'EnterpriseDetail', params: { id: row?.id ?? '' } });
}
onMounted(() => {
  state.loading = true;
  getList();
  state.loading = false;
});
</script>