|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="page-wrap page-wrap-put-books">
|
|
|
<tool-bar
|
|
|
- :text="['campaign_id', 'account_id']"
|
|
|
+ :text="['campaign_id', 'advertiser_id']"
|
|
|
:label="['广告组名称/ID', '账户信息']"
|
|
|
:defaultVal="defaultToolvalue"
|
|
|
v-model:loading="inSearching"
|
|
@@ -177,20 +177,20 @@ const Adgroup = defineComponent({
|
|
|
});
|
|
|
if (route.query && route.query.advertiser_id) {
|
|
|
state.defaultToolvalue = {
|
|
|
- campaign_id: route.query.advertiser_id as string,
|
|
|
+ advertiser_id: route.query.advertiser_id as string,
|
|
|
};
|
|
|
console.log("TEST:", state.defaultToolvalue);
|
|
|
- state.fields = {
|
|
|
- campaign_id: route.query.advertiser_id as string,
|
|
|
- };
|
|
|
+ // state.fields = {
|
|
|
+ // advertiser_id: route.query.advertiser_id as string,
|
|
|
+ // };
|
|
|
}
|
|
|
|
|
|
const onSearch = (fields: Record<string, string>) => {
|
|
|
- const { account_id, campaign_id } = fields;
|
|
|
+ const { advertiser_id, campaign_id } = fields;
|
|
|
state.fields = fields;
|
|
|
getData({
|
|
|
current: 1,
|
|
|
- account_id,
|
|
|
+ advertiser_id,
|
|
|
campaign_id,
|
|
|
is_enable: state.is_enable,
|
|
|
});
|
|
@@ -198,7 +198,7 @@ const Adgroup = defineComponent({
|
|
|
|
|
|
const getData = async (query?: {
|
|
|
current: number;
|
|
|
- account_id?: any;
|
|
|
+ advertiser_id?: any;
|
|
|
campaign_id?: string;
|
|
|
is_enable?: any;
|
|
|
}) => {
|
|
@@ -216,7 +216,7 @@ const Adgroup = defineComponent({
|
|
|
{
|
|
|
begin_date,
|
|
|
end_date,
|
|
|
- account_id: query?.account_id,
|
|
|
+ advertiser_id: query?.advertiser_id,
|
|
|
campaign_id: query?.campaign_id,
|
|
|
is_enable: query?.is_enable,
|
|
|
page: query?.current ?? 1,
|
|
@@ -338,7 +338,7 @@ const Adgroup = defineComponent({
|
|
|
};
|
|
|
onMounted(() => {
|
|
|
getData({
|
|
|
- account_id: route.query?.account_id ?? "",
|
|
|
+ advertiser_id: route.query?.advertiser_id ?? "",
|
|
|
current: 1,
|
|
|
});
|
|
|
});
|