feat(views): 添加双击跳转功能并优化样式

- 在DetailedDataTable.vue中添加双击人员跳转功能
- 优化表格和卡片头部样式
- 移除模拟数据并启用初始化API调用
- 修复performance显示格式问题
This commit is contained in:
2025-08-18 15:36:34 +08:00
parent 0a50d2fa37
commit 68ba83ca81
4 changed files with 75 additions and 238 deletions

View File

@@ -40,6 +40,7 @@
:format-number="formatNumber"
:get-rank-class="getRankClass"
@period-change="handleRankingPeriodChange"
@ranking-type-change="getCompanySalesRank"
/>
<!-- 优质通话 -->
<quality-calls
@@ -704,7 +705,7 @@ const formattedSalesRankingData = computed(() => {
id: index + 1,
name: item.name,
department: item.department,
performance: item.deal_count * 10000, // 假设每单10000元可根据实际情况调整
performance: item.deal_count, // 假设每单10000元可根据实际情况调整
deals: item.deal_count,
conversionRate: parseFloat(item.conversion_rate.replace('%', '')),
trend: rankType === 'red' ? 'up' : 'down', // 红榜为上升趋势,黑榜为下降趋势
@@ -1038,13 +1039,13 @@ const handleFilterChange = (filterParams) => {
onMounted(async() => {
// 页面初始化逻辑
// await getRealTimeProgress()
// await getTotalDeals()
// await getConversionComparison('month')
// await getCompanySalesRank('red')
// await getCenterSalesRank('periods')
// await getCustomerTypeRatio('child_education')
// await getCustomerUrgency()
await getRealTimeProgress()
await getTotalDeals()
await getConversionComparison('month')
await getCompanySalesRank('red')
await getCenterSalesRank('periods')
await getCustomerTypeRatio('child_education')
await getCustomerUrgency()
await CusotomGetLevelTree()
await getDetailData()
});