refactor(secondTop): 移除未使用的结束营期功能并重命名缓存键
移除未使用的finishCamp函数和相关变量padding111 将getGoodRecord缓存键重命名为CentergetGoodRecord以保持命名一致性
This commit is contained in:
@@ -324,29 +324,6 @@ const centerData = ref({
|
|||||||
alert('保存失败,请重试');
|
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)
|
// console.log('currentStage', userStore.userInfo)
|
||||||
|
|
||||||
// 获取,修改当前营期
|
// 获取,修改当前营期
|
||||||
@@ -839,7 +816,7 @@ const excellentRecord = ref({});
|
|||||||
console.log(188811111,requestParams)
|
console.log(188811111,requestParams)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await withCache('getGoodRecord',
|
const res = await withCache('CentergetGoodRecord',
|
||||||
() => getExcellentRecordFile(requestParams),
|
() => getExcellentRecordFile(requestParams),
|
||||||
requestParams
|
requestParams
|
||||||
)
|
)
|
||||||
@@ -952,7 +929,7 @@ const excellentRecord = ref({});
|
|||||||
await CenterConversionRateVsAverage()
|
await CenterConversionRateVsAverage()
|
||||||
await CenterSeniorManagerList()
|
await CenterSeniorManagerList()
|
||||||
// 获取优秀录音
|
// 获取优秀录音
|
||||||
await getGoodRecord()
|
await CentergetGoodRecord()
|
||||||
await CenterGroupList('all') // 初始化加载全部高级经理数据
|
await CenterGroupList('all') // 初始化加载全部高级经理数据
|
||||||
|
|
||||||
// 输出缓存信息
|
// 输出缓存信息
|
||||||
|
|||||||
Reference in New Issue
Block a user