diff --git a/src/router/routes/modules/propertyMarketing.ts b/src/router/routes/modules/propertyMarketing.ts
index 0a230ba..621ff25 100644
--- a/src/router/routes/modules/propertyMarketing.ts
+++ b/src/router/routes/modules/propertyMarketing.ts
@@ -147,6 +147,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requiresAuth: true,
hideInMenu: true,
roles: ['*'],
+ activeMenu: 'PutAccountInvestmentGuidelines',
},
component: () => import('@/views/property-marketing/put-account/investment-guidelines/detail'),
},
diff --git a/src/views/property-marketing/put-account/investment-guidelines/components/action-guide-distribution/index.vue b/src/views/property-marketing/put-account/investment-guidelines/components/action-guide-distribution/index.vue
index e2b3830..7f195c6 100644
--- a/src/views/property-marketing/put-account/investment-guidelines/components/action-guide-distribution/index.vue
+++ b/src/views/property-marketing/put-account/investment-guidelines/components/action-guide-distribution/index.vue
@@ -170,7 +170,6 @@ const getSubmoduleContent = (moduleName: string, submoduleName: string) => {
const content = [];
if (module) {
const content = Object.values(module.content);
- console.log(content, 'content');
return content;
}
return [];
diff --git a/src/views/property-marketing/put-account/investment-guidelines/components/month-data/index.vue b/src/views/property-marketing/put-account/investment-guidelines/components/month-data/index.vue
index 50df0f5..87135fb 100644
--- a/src/views/property-marketing/put-account/investment-guidelines/components/month-data/index.vue
+++ b/src/views/property-marketing/put-account/investment-guidelines/components/month-data/index.vue
@@ -5,7 +5,7 @@
- 本月摘要。
+ 本月摘要2。
diff --git a/src/views/property-marketing/put-account/investment-guidelines/components/table-data/guideListHistory.vue b/src/views/property-marketing/put-account/investment-guidelines/components/table-data/guideListHistory.vue
index 3b907d3..eac738f 100644
--- a/src/views/property-marketing/put-account/investment-guidelines/components/table-data/guideListHistory.vue
+++ b/src/views/property-marketing/put-account/investment-guidelines/components/table-data/guideListHistory.vue
@@ -104,7 +104,7 @@ const downloadDetailAsImage = (id) => {
};
const deleteData = async (id) => {
const { code, message } = await deleteHistorylog(id);
- if (code === 200) {
+ if (code == 200) {
Message.success(message);
emits('onSearch');
console.log('onsearch')
diff --git a/src/views/property-marketing/put-account/investment-guidelines/components/table-data/style.scss b/src/views/property-marketing/put-account/investment-guidelines/components/table-data/style.scss
new file mode 100644
index 0000000..927f071
--- /dev/null
+++ b/src/views/property-marketing/put-account/investment-guidelines/components/table-data/style.scss
@@ -0,0 +1,51 @@
+.container {
+ :deep(.arco-input-wrapper),
+ :deep(.arco-select-view-single),
+ :deep(.arco-select-view-multiple),
+ :deep(.arco-picker) {
+ border-radius: 4px;
+ border-color: #d7d7d9;
+ background-color: #fff;
+ &:focus-within,
+ &.arco-input-focus {
+ background-color: var(--color-bg-2);
+ border-color: rgb(var(--primary-6));
+ box-shadow: 0 0 0 0 var(--color-primary-light-2);
+ }
+ }
+
+ :deep(.search-btn) {
+ border-radius: 4px;
+ border: 1px solid var(--Brand-Brand-6, #6d4cfe);
+ color: #6d4cfe;
+ }
+
+ :deep(.reset-btn) {
+ border-radius: 4px;
+ border: 1px solid var(--BG-500, #b1b2b5);
+ background: var(--BG-white, #fff);
+ }
+
+ .filter-row {
+ .filter-row-item {
+ &:not(:last-child) {
+ margin-right: 24px;
+ }
+
+ .label {
+ margin-right: 8px;
+ color: #211f24;
+ font-family: 'PuHuiTi-Regular';
+ font-size: 14px;
+ font-style: normal;
+ font-weight: 400;
+ flex-shrink: 0;
+ line-height: 22px; /* 157.143% */
+ }
+
+ :deep(.arco-space-item) {
+ width: 100%;
+ }
+ }
+ }
+}
diff --git a/src/views/property-marketing/put-account/investment-guidelines/constants.ts b/src/views/property-marketing/put-account/investment-guidelines/constants.ts
index a4f7952..2a33f99 100644
--- a/src/views/property-marketing/put-account/investment-guidelines/constants.ts
+++ b/src/views/property-marketing/put-account/investment-guidelines/constants.ts
@@ -19,3 +19,11 @@ export function getStarIcon(score: number): string {
return top1; // 默认返回最高分图标
}
}
+
+// ai检测结果状态
+export enum AiResultStatus {
+ WAIT = 0, // 待执行
+ PENDING = 1, // 处理中
+ FAILED = 2, // 失败
+ SUCCESS = 3, // 成功
+}
diff --git a/src/views/property-marketing/put-account/investment-guidelines/detail.vue b/src/views/property-marketing/put-account/investment-guidelines/detail.vue
index e54623d..010355f 100644
--- a/src/views/property-marketing/put-account/investment-guidelines/detail.vue
+++ b/src/views/property-marketing/put-account/investment-guidelines/detail.vue
@@ -49,33 +49,13 @@
-
-
-
-
-
-
-
-
-
- 下载
-
-
-
-
-
- 保存
-
-
+
+
+
+
+
+
@@ -90,54 +70,31 @@ import { PLATFORM_LIST } from '@/views/property-marketing/put-account/common_con
import { getPlacementGuideDetail } from '@/api/all/propertyMarketing';
import { useRoute } from 'vue-router';
-const tabData = ref('placement_guide');
-
-const query = reactive({
- platform: '',
- date_time: '',
- sort_column: '',
- sort_order: '',
- page_size: 20,
- page: 1,
-});
-
-const handleUpdateQuery = (payload) => {
- payload.order = payload.order === 'ascend' ? 'asc' : 'desc';
- query.sort_column = payload.column;
- query.sort_order = payload.order;
-};
-
-const loading = ref(false);
-
-const saveForm = reactive({
- account: [],
- plan: [],
- platform: [],
+const aiResult = reactive({
+ optimization: [], // 投放建议优化
+ action_guide: [], // 新投放建议生成
+ overview: [], // 新投放建议生成
});
const detailData = reactive({
+ created_at: '',
+ account: '',
platform: [],
- ai_result: {},
});
-
const route = useRoute();
const id = route.params.id;
const getDetail = async () => {
const { code, data } = await getPlacementGuideDetail(id);
- console.log(data, 'data');
- console.log(code, 'code');
if (code === 200) {
+ Object.assign(aiResult, data.ai_result);
Object.assign(detailData, data);
+ console.log(aiResult, 'aiResult');
}
};
onMounted(() => {
getDetail();
});
-// 定时任务请求接口
-// const timer = setInterval(() => {
-// getSyncAiResult();
-// }, 5000);