|
@@ -1,30 +1,31 @@
|
|
|
<script lang="ts" setup>
|
|
|
-import {onMounted, ref, Ref} from 'vue'
|
|
|
-import {useRoute} from 'vue-router'
|
|
|
-import AdGroups from './adGroups/index.vue'
|
|
|
-import Placement from './placement/index.vue'
|
|
|
-import Budget from './budget/index.vue'
|
|
|
-import Automation from './automation/index.vue'
|
|
|
-import {getEnumLabel} from '/@/views/adManage/utils/tools.js'
|
|
|
-import {dynBidStrategyEnum} from '/@/views/adManage/utils/enum.js'
|
|
|
-import {useShopInfo} from '/@/stores/shopInfo'
|
|
|
+import { onMounted, ref, Ref } from 'vue';
|
|
|
+import { useRoute } from 'vue-router';
|
|
|
+import AdGroups from './adGroups/index.vue';
|
|
|
+import Placement from './placement/index.vue';
|
|
|
+import Budget from './budget/index.vue';
|
|
|
+import Automation from './automation/index.vue';
|
|
|
+import { getEnumLabel } from '/@/views/adManage/utils/tools.js';
|
|
|
+import { dynBidStrategyEnum } from '/@/views/adManage/utils/enum.js';
|
|
|
+import { useShopInfo } from '/@/stores/shopInfo';
|
|
|
// import { usePublicData } from '/@/stores/publicData'
|
|
|
-import {storeToRefs} from 'pinia'
|
|
|
+import { storeToRefs } from 'pinia';
|
|
|
|
|
|
-import {GetObj} from './api'
|
|
|
+import { GetObj } from './api';
|
|
|
|
|
|
-const shopInfo = useShopInfo()
|
|
|
-const { profile } = storeToRefs(shopInfo)
|
|
|
-const route = useRoute()
|
|
|
-const campaignInfo: Ref<SpCampaign> = ref({})
|
|
|
-const tabActiveName = ref('adGroup')
|
|
|
|
|
|
-const campaignId = ref(route.query.campaignId)
|
|
|
+const shopInfo = useShopInfo();
|
|
|
+const { profile } = storeToRefs(shopInfo);
|
|
|
+const route = useRoute();
|
|
|
+const campaignInfo: Ref<SpCampaign> = ref({});
|
|
|
+const tabActiveName = ref('adGroup');
|
|
|
+
|
|
|
+const campaignId = ref(route.query.campaignId);
|
|
|
|
|
|
onMounted(async () => {
|
|
|
- const resp = await GetObj(route.query.campaignId)
|
|
|
- campaignInfo.value = resp.data
|
|
|
-})
|
|
|
+ const resp = await GetObj(route.query.campaignId);
|
|
|
+ campaignInfo.value = resp.data;
|
|
|
+});
|
|
|
|
|
|
|
|
|
</script>
|
|
@@ -62,22 +63,23 @@ onMounted(async () => {
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-tabs type="border-card" class="asj-detail-tabs" v-model="tabActiveName">
|
|
|
+ <el-tabs v-model="tabActiveName" class="asj-detail-tabs" type="border-card">
|
|
|
<el-tab-pane label="广告组" name="adGroup">
|
|
|
- <AdGroups :campaignId="campaignId" v-if="tabActiveName==='adGroup'"></AdGroups>
|
|
|
+ <AdGroups v-if="tabActiveName==='adGroup'" :campaignId="campaignId"></AdGroups>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="预算" name="budget">
|
|
|
- <Budget :campaignId="campaignId" v-if="tabActiveName==='budget'"></Budget>
|
|
|
+ <Budget v-if="tabActiveName==='budget'" :campaignId="campaignId"></Budget>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="自动化" name="automation">
|
|
|
- <Automation :campaignId="campaignId" :profileId="profile.profile_id" v-if="tabActiveName==='automation'"></Automation>
|
|
|
+ <Automation v-if="tabActiveName==='automation'" :campaignId="campaignId"
|
|
|
+ :profileId="profile.profile_id"></Automation>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="广告位" name="placement">
|
|
|
- <Placement :campaignId="campaignId" v-if="tabActiveName==='placement'"/>
|
|
|
- </el-tab-pane>
|
|
|
- <el-tab-pane label="否定投放" name="negative">
|
|
|
- 否定投放
|
|
|
+ <Placement v-if="tabActiveName==='placement'" :campaignId="campaignId" />
|
|
|
</el-tab-pane>
|
|
|
+ <!--<el-tab-pane label="否定投放" name="negative">-->
|
|
|
+ <!-- 否定投放-->
|
|
|
+ <!--</el-tab-pane>-->
|
|
|
<!-- <el-tab-pane label="操作日志" :lazy="true"></el-tab-pane> -->
|
|
|
</el-tabs>
|
|
|
</div>
|