feat(property-marketing): 重构仪表盘图表组件,新增计划选择组件并优化数据展示逻辑

This commit is contained in:
林志军
2025-07-10 14:12:39 +08:00
parent 7b21aa3060
commit 9698500884
5 changed files with 276 additions and 129 deletions

View File

@ -142,16 +142,16 @@ const onSearch = async () => {
if (tabData.value === 'placement_guide') {
result = await getPlacementGuide(query);
placementGuideList.value = result?.data?.data || [];
if (placementGuideList.value.length > 0 && isGetAi.value) {
loading.value = true;
syncGetAiResult();
startTask();
}
} else {
result = await getPlacementGuideHistory(query);
guideHistoryList.value = result?.data?.data || [];
}
listData.total = result.data.total;
if (placementGuideList.value.length > 0 && isGetAi.value) {
loading.value = true;
syncGetAiResult();
startTask();
}
isGetAi.value = true;
};
const aiResult = reactive({