refactor(secondTop): 移除未使用的结束营期功能并重命名缓存键

移除未使用的finishCamp函数和相关变量padding111
将getGoodRecord缓存键重命名为CentergetGoodRecord以保持命名一致性
This commit is contained in:
2025-08-27 17:31:29 +08:00
parent 41eeb55815
commit f79fa1dd3d

View File

@@ -324,29 +324,6 @@ const centerData = ref({
alert('保存失败,请重试');
}
};
const padding111 = ref('11')
// 结束营期
const finishCamp = async () => {
try {
const params = {
...getRequestParams(),
is_camp_finish: padding111.value.toString()
};
const res = await getCampPeriodAdmin(params);
if (res.code === 200) {
console.log('营期结束成功:', res.data);
alert('营期已成功结束!');
// 可以在这里添加页面跳转或其他后续操作
} else {
alert('结束营期失败,请重试');
}
} catch (error) {
console.error('结束营期失败:', error);
alert('结束营期失败,请重试!');
}
};
// console.log('currentStage', userStore.userInfo)
// 获取,修改当前营期
@@ -839,7 +816,7 @@ const excellentRecord = ref({});
console.log(188811111,requestParams)
try {
const res = await withCache('getGoodRecord',
const res = await withCache('CentergetGoodRecord',
() => getExcellentRecordFile(requestParams),
requestParams
)
@@ -952,7 +929,7 @@ const excellentRecord = ref({});
await CenterConversionRateVsAverage()
await CenterSeniorManagerList()
// 获取优秀录音
await getGoodRecord()
await CentergetGoodRecord()
await CenterGroupList('all') // 初始化加载全部高级经理数据
// 输出缓存信息