fix: 修复导出功能并优化页面标题

- 将“销售驾驶舱”改为“分析师驾驶舱”以更准确反映功能
- 修复导出功能中移除自动导出和优化错误提示
- 清理不再使用的优秀录音获取代码
This commit is contained in:
2025-09-24 20:54:28 +08:00
parent 4885674f23
commit 6f0d10b881
3 changed files with 27 additions and 32 deletions

View File

@@ -842,29 +842,29 @@ const conversionRateVsAverage = ref({})
// 获取优秀录音
const excellentRecord = ref({});
// 获取优秀录音文件
async function CentergetGoodRecord() {
const params = getRequestParams()
const params1 = {
user_level:userStore.userInfo.user_level.toString(),
user_name:userStore.userInfo.username
}
const hasParams = params.user_name
const requestParams = hasParams ? {
...params,
} : params1
console.log(188811111,requestParams)
// async function CentergetGoodRecord() {
// const params = getRequestParams()
// const params1 = {
// user_level:userStore.userInfo.user_level.toString(),
// user_name:userStore.userInfo.username
// }
// const hasParams = params.user_name
// const requestParams = hasParams ? {
// ...params,
// } : params1
// console.log(188811111,requestParams)
try {
const res = await withCache('CentergetGoodRecord',
() => getExcellentRecordFile(requestParams),
requestParams
)
excellentRecord.value = res.data.excellent_record_list
console.log(111111,res.data.excellent_record_list)
} catch (error) {
console.error("获取优秀录音失败:", error);
}
}
// try {
// const res = await withCache('CentergetGoodRecord',
// () => getExcellentRecordFile(requestParams),
// requestParams
// )
// excellentRecord.value = res.data.excellent_record_list
// console.log(111111,res.data.excellent_record_list)
// } catch (error) {
// console.error("获取优秀录音失败:", error);
// }
// }
// 缓存管理功能
// 清除所有缓存
@@ -932,7 +932,6 @@ const excellentRecord = ref({});
await CenterUrgentNeedToAddress()
await CenterConversionRateVsAverage()
await CenterSeniorManagerList()
// await CentergetGoodRecord()
await CenterGroupList('all')
console.log('[强制刷新] 所有数据已重新加载')
@@ -967,8 +966,6 @@ const excellentRecord = ref({});
await CenterUrgentNeedToAddress()
await CenterConversionRateVsAverage()
await CenterSeniorManagerList()
// 获取优秀录音
await CentergetGoodRecord()
await CenterGroupList('all') // 初始化加载全部高级经理数据
// 输出缓存信息