feat(property-marketing): 新增投放指南详情页功能

refactor(property-marketing): 优化评分图标映射逻辑
feat(property-marketing): 实现投放指南历史记录操作功能
perf(property-marketing): 优化图表数据更新逻辑
feat(property-marketing): 添加时间筛选功能 实现保存投放指南功能
- 优化页面样式和布局
This commit is contained in:
林志军
2025-07-07 20:59:54 +08:00
parent 1dae78f770
commit de9a5abcd5
17 changed files with 759 additions and 406 deletions

View File

@ -3,7 +3,7 @@
* @Date: 2025-06-27 17:36:31
*/
import dayjs from 'dayjs';
import lodash from 'lodash';
export function toFixed(num: number | string, n: number): number {
return parseFloat(parseFloat(num.toString()).toFixed(n));
}
@ -106,3 +106,12 @@ export function downloadByUrl(url: string, filename?: string) {
a.click();
document.body.removeChild(a);
}
/**
* 检查数据是否为空
* @param data
*/
export function isEmpty(data: any): boolean {
// 使用 lodash 的 isEmpty 方法检查数据是否为空
return lodash.isEmpty(data);
}