feat(property-marketing): 重构AI分析结果处理逻辑并优化页面交互
refactor(property-marketing): 拆分投放指南和历史指南组件逻辑 feat(property-marketing): 添加AI检测结果状态枚举 perf(property-marketing): 优化定时任务处理逻辑和错误处理 style(property-marketing): 调整页面样式和布局结构
This commit is contained in:
@ -3,7 +3,6 @@
|
|||||||
* @Date: 2025-06-27 17:36:31
|
* @Date: 2025-06-27 17:36:31
|
||||||
*/
|
*/
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import lodash from 'lodash';
|
|
||||||
export function toFixed(num: number | string, n: number): number {
|
export function toFixed(num: number | string, n: number): number {
|
||||||
return parseFloat(parseFloat(num.toString()).toFixed(n));
|
return parseFloat(parseFloat(num.toString()).toFixed(n));
|
||||||
}
|
}
|
||||||
@ -106,12 +105,3 @@ export function downloadByUrl(url: string, filename?: string) {
|
|||||||
a.click();
|
a.click();
|
||||||
document.body.removeChild(a);
|
document.body.removeChild(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 检查数据是否为空
|
|
||||||
* @param data
|
|
||||||
*/
|
|
||||||
export function isEmpty(data: any): boolean {
|
|
||||||
// 使用 lodash 的 isEmpty 方法检查数据是否为空
|
|
||||||
return lodash.isEmpty(data);
|
|
||||||
}
|
|
||||||
|
|||||||
@ -146,7 +146,6 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { IconQuestionCircle } from '@arco-design/web-vue/es/icon';
|
import { IconQuestionCircle } from '@arco-design/web-vue/es/icon';
|
||||||
import { isEmpty } from '@/utils/tools';
|
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
action_guide: {
|
action_guide: {
|
||||||
|
|||||||
Reference in New Issue
Block a user