fix: 修复全部阶段客户数量计算逻辑

当customersList为空时,使用props.data中的全部阶段数据作为后备值
This commit is contained in:
2025-09-01 17:32:11 +08:00
parent 7af2ee9e25
commit e7f9abcc19

View File

@@ -356,7 +356,7 @@ const emit = defineEmits(['stage-select', 'select-contact']);
const totalCustomers = computed(() => { const totalCustomers = computed(() => {
// 全部阶段的数量就是前6个阶段的数量 // 全部阶段的数量就是前6个阶段的数量
if (props.customersList?.length > 0) return props.customersList.length; if (props.customersList?.length > 0) return props.customersList.length;
// 如果没有实际数据使用props.data中的数据作为后备 // 如果没有实际数据使用props.data中的数据作为后备
if (props.data['全部']) return props.data['全部']; if (props.data['全部']) return props.data['全部'];