crm:code review 客户画像

This commit is contained in:
YunaiV
2024-04-05 14:43:55 +08:00
parent 8926dd1173
commit 6772568a58
5 changed files with 22 additions and 18 deletions

View File

@ -48,7 +48,7 @@ const props = defineProps<{ queryParams: any }>() // 搜索参数
const loading = ref(false) // 加载中
const list = ref<CrmStatisticCustomerIndustryRespVO[]>([]) // 列表的数据
/** 饼图配置 */
/** 饼图配置(全部客户) */
const echartsOption = reactive<EChartsOption>({
title: {
text: '全部客户',
@ -95,7 +95,8 @@ const echartsOption = reactive<EChartsOption>({
}
]
}) as EChartsOption
/** 饼图配置 */
/** 饼图配置(成交客户) */
const echartsOption2 = reactive<EChartsOption>({
title: {
text: '成交客户',
@ -172,9 +173,8 @@ const loadData = async () => {
loading.value = false
}
defineExpose({ loadData })
/**
* 计算比例
*/
/** 计算比例 */
const calculateProportion = (sourceList: CrmStatisticCustomerIndustryRespVO[]) => {
if (isEmpty(sourceList)) {
return