gaoluyang
3 天以前 16c6f56f60a6cc7ae13b5e26e8001e9dfcc28500
src/views/crm/statistics/rank/index.vue
@@ -2,7 +2,7 @@
import type { EchartsUIType } from '@vben/plugins/echarts';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { CrmStatisticsCustomerApi } from '#/api/crm/statistics/customer';
import type { CrmStatisticsRankApi } from '#/api/crm/statistics/rank';
import { onMounted, ref } from 'vue';
@@ -13,7 +13,7 @@
import { useVbenForm } from '#/adapter/form';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getDatas } from '#/api/crm/statistics/customer';
import { getDatas } from '#/api/crm/statistics/rank';
import { $t } from '#/locales';
import { getChartOptions } from './chartOptions';
@@ -48,15 +48,6 @@
    pagerConfig: {
      enabled: false,
    },
    proxyConfig: {
      ajax: {
        query: async (_, formValues) => {
          const res = await getDatas(activeTabName.value, formValues);
          await renderEcharts(getChartOptions(activeTabName.value, res));
          return res;
        },
      },
    },
    rowConfig: {
      keyField: 'id',
      isHover: true,
@@ -64,7 +55,7 @@
    toolbarConfig: {
      enabled: false,
    },
  } as VxeTableGridOptions<CrmStatisticsCustomerApi.CustomerSummaryByUserRespVO>,
  } as VxeTableGridOptions<CrmStatisticsRankApi.RankRespVO>,
});
/** tab 切换 */