|
|
@@ -167,6 +167,14 @@
|
|
|
<template #platform="{ record }">
|
|
|
{{ getPlatformNameById(record.platform) }}
|
|
|
</template>
|
|
|
+ <template #adId="{ record }">
|
|
|
+ <div v-if="record.adId">
|
|
|
+ 广告Id:<a-tag color="blue" bordered> {{ record.adId }} </a-tag>
|
|
|
+ </div>
|
|
|
+ <div v-if="record.adzoneId">
|
|
|
+ 策略Id:<a-tag color="blue" bordered> {{ record.adzoneId }} </a-tag>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template #status="{ record }">
|
|
|
<div>
|
|
|
<a-tag :color="getStatusColor(record.status)" bordered>
|
|
|
@@ -381,6 +389,16 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="广告Id">
|
|
|
+ <a-input v-model="editForm.adId" placeholder="请输入广告Id" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="分流id/策略id">
|
|
|
+ <a-input v-model="editForm.adzoneId" placeholder="请输入分流id/策略id" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
</a-row>
|
|
|
</a-form>
|
|
|
</a-modal>
|
|
|
@@ -672,6 +690,11 @@ const columns = computed<TableColumnData[]>(() => [
|
|
|
slotName: 'type',
|
|
|
width: 150,
|
|
|
},
|
|
|
+ {
|
|
|
+ title: 'adId/adzoneId',
|
|
|
+ slotName: 'adId',
|
|
|
+ width: 150,
|
|
|
+ },
|
|
|
{
|
|
|
title: '平台',
|
|
|
slotName: 'platform',
|
|
|
@@ -762,8 +785,11 @@ const fetchData = async (
|
|
|
if (tryPreviousDay && data.list.length === 0 && !params.type && params.report_date === dayjs().format('YYYY-MM-DD')) {
|
|
|
const prevDay = dayjs().subtract(1, 'day').format('YYYY-MM-DD');
|
|
|
formModel.value.report_date = prevDay;
|
|
|
+ // 重置分页到第一页
|
|
|
+ pagination.current = 1;
|
|
|
fetchData({
|
|
|
...params,
|
|
|
+ current: 1,
|
|
|
report_date: prevDay
|
|
|
}, false);
|
|
|
Message.info(`当天无数据,已自动加载 ${prevDay} 的数据`);
|
|
|
@@ -796,14 +822,14 @@ const onPageChange = (current: number) => {
|
|
|
|
|
|
fetchData({
|
|
|
...basePagination,
|
|
|
+ ...formModel.value,
|
|
|
current,
|
|
|
type: formModel.value.type ? Number(formModel.value.type) : undefined,
|
|
|
platform: formModel.value.platform ? Number(formModel.value.platform) : undefined,
|
|
|
status: statusNumber,
|
|
|
is_settlement: isSettlementValue,
|
|
|
- report_date: formModel.value.report_date,
|
|
|
getTotal: true,
|
|
|
- });
|
|
|
+ } as PushDataReportParams);
|
|
|
};
|
|
|
|
|
|
const visible = ref(false);
|
|
|
@@ -829,6 +855,8 @@ const editForm = ref<Partial<PushDataReportRecord>>({
|
|
|
gmv: 0,
|
|
|
income: 0,
|
|
|
request_id: '',
|
|
|
+ adId: '',
|
|
|
+ adzoneId: '',
|
|
|
});
|
|
|
|
|
|
const onEdit = (current: PushDataReportRecord) => {
|
|
|
@@ -871,6 +899,8 @@ const onEdit = (current: PushDataReportRecord) => {
|
|
|
request_id: current.request_id || '',
|
|
|
status: ensureNumber(current.status),
|
|
|
last_push_time: current.last_push_time,
|
|
|
+ adId: current.adId,
|
|
|
+ adzoneId: current.adzoneId,
|
|
|
};
|
|
|
|
|
|
// 确保子场景与投放场景匹配
|
|
|
@@ -922,6 +952,8 @@ const onAdd = () => {
|
|
|
gmv: 0,
|
|
|
income: 0,
|
|
|
request_id: '',
|
|
|
+ adId: '',
|
|
|
+ adzoneId: '',
|
|
|
};
|
|
|
visible.value = true;
|
|
|
};
|