| | |
| | | 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'; |
| | | |
| | |
| | | |
| | | 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'; |
| | |
| | | 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, |
| | |
| | | toolbarConfig: { |
| | | enabled: false, |
| | | }, |
| | | } as VxeTableGridOptions<CrmStatisticsCustomerApi.CustomerSummaryByUserRespVO>, |
| | | } as VxeTableGridOptions<CrmStatisticsRankApi.RankRespVO>, |
| | | }); |
| | | |
| | | /** tab 切换 */ |