diff --git a/src/views/property-marketing/put-account/investment-guidelines/index.vue b/src/views/property-marketing/put-account/investment-guidelines/index.vue
index 9b9eb51..1bb9d3b 100644
--- a/src/views/property-marketing/put-account/investment-guidelines/index.vue
+++ b/src/views/property-marketing/put-account/investment-guidelines/index.vue
@@ -19,7 +19,7 @@
class="ignore-export"
@onReset="handleReset"
v-model:query="query"
- @onSearch="onSearch"
+ @onSearch="handleSearch"
:disabled="loading"
>
@@ -29,6 +29,7 @@
@onSearch="onSearch"
@updateQuery="handleUpdateQuery"
/>
+
+
-
-
+
@@ -132,12 +136,9 @@ const onSearch = async () => {
let result;
if (tabData.value === 'placement_guide') {
result = await getPlacementGuide(query);
+ console.log(1);
+
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 || [];
@@ -145,6 +146,16 @@ const onSearch = async () => {
listData.total = result.data.total;
isGetAi.value = true;
};
+
+const handleSearch = async () => {
+ await onSearch();
+ if (placementGuideList.value.length > 0 && isGetAi.value) {
+ loading.value = true;
+ syncGetAiResult();
+ startTask();
+ }
+};
+
const aiResult = reactive({
optimization: [], // 投放建议优化
action_guide: [], // 新投放建议生成