feat: 实现卡片可见性管理并优化多个组件功能
- 在UserDropdown组件中添加卡片名称映射 - 为sale.vue、seniorManager.vue、topone.vue和secondTop.vue添加卡片可见性控制 - 在CustomerDetail.vue中添加通话数据检查逻辑 - 将https.js中的API基础路径切换为生产环境
This commit is contained in:
@@ -271,11 +271,35 @@ watch(() => props.cardVisibility, (newVal) => {
|
||||
// 获取卡片显示名称
|
||||
const getCardDisplayName = (key) => {
|
||||
const nameMap = {
|
||||
// sale.vue 页面的卡片
|
||||
timeline: '销售时间线',
|
||||
rawData: '原始数据',
|
||||
customerDetail: '客户详情',
|
||||
analytics: '数据分析',
|
||||
weekAnalysis: '周期分析'
|
||||
weekAnalysis: '周期分析',
|
||||
// seniorManager.vue 页面的卡片
|
||||
centerOverview: '中心概览',
|
||||
teamAlerts: '团队预警',
|
||||
statisticalIndicators: '统计指标',
|
||||
groupRanking: '组别排名',
|
||||
problemRanking: '问题排名',
|
||||
groupComparison: '组别对比',
|
||||
teamDetail: '团队详情',
|
||||
// secondTop.vue 页面的卡片
|
||||
actionItems: '行动项目',
|
||||
customerType: '客户类型',
|
||||
goodMusic: '优秀录音',
|
||||
// topone.vue 页面的卡片
|
||||
kpiMetrics: '核心业绩指标',
|
||||
salesProgress: '销售实时进度',
|
||||
periodStage: '各中心营期阶段',
|
||||
funnelChart: '转化漏斗',
|
||||
personalSalesRanking: '销售个人业绩排行榜',
|
||||
qualityCalls: '优质通话',
|
||||
rankingList: '业绩排行榜',
|
||||
problemRanking: '客户迫切解决的问题排行榜',
|
||||
campManagement: '营期管理',
|
||||
detailedDataTable: '详细数据表格'
|
||||
}
|
||||
return nameMap[key] || key
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user