Răsfoiți Sursa

🐞 fix: 广告管理SD: 商品投放和受众的广告结构请求参数传递遗漏(tactic)

WanGxC 1 an în urmă
părinte
comite
ac056ac206

+ 2 - 0
src/views/adManage/sb/campaigns/CreateCampaigns/component/AdFormat.vue

@@ -9,6 +9,7 @@
         <el-radio-group v-model="adFormatRadio" style="display: flex; justify-content: space-between">
           <el-radio class="ad-format-radio" label="productSet" border>
             <div style="text-align: center; color: #333333">商品集</div>
+            <!-- TODO: 待添加图片 -->
             <!-- <img src="src/views/adManage/sb/campaigns/CreateCampaigns/img/img_1.jpg" class="img-style"> -->
             <div style="background-color: #1e2128; width: 200px; height: 200px; margin: 0 auto"></div>
             <div style="padding: 5px 0 10px 0; color: #333333; font-weight: 400">使用图片将流量引导至商品详情页面, 以推广多件商品</div>
@@ -251,6 +252,7 @@ const emit = defineEmits([
 function handleUpdateAddedData(data) {
   emit('update:addedTableData', data)
 }
+
 // 监听 adFormatRadio 的变化并触发事件
 watch(
   adFormatRadio,

+ 0 - 1
src/views/adManage/sb/campaigns/CreateCampaigns/component/KeywordTarget.vue

@@ -195,7 +195,6 @@ function delAllKeyWords() {
   addedKeyWordsTableData.value = []
 }
 
-// TODO: 必须要创建了商品之后才能创建关键词定向
 async function keyWordsSave() {
   keywordsLoading.value = true
   successCount.value = ''

+ 9 - 4
src/views/adManage/sd/audiences/chartComponents/adStruct.vue

@@ -24,13 +24,13 @@
 </template>
 
 <script setup>
-import { onMounted, ref, inject, computed, watch } from 'vue'
 import * as echarts from 'echarts'
+import { computed, inject, onMounted, ref, watch } from 'vue'
+import { createDisabledOptions } from '../../../utils/dropdowndisable'
 import TextSelector from '/@/components/TextSelector/index.vue'
+import { useShopInfo } from '/@/stores/shopInfo'
 import { getAdStructureData } from '/@/views/adManage/sd/targets/api'
-import { createDisabledOptions } from '../../../utils/dropdowndisable'
 import { barOptions1, barOptions2, barOptionsMap } from '/@/views/adManage/utils/enum'
-import { useShopInfo } from '/@/stores/shopInfo'
 
 const shopInfo = useShopInfo()
 let barChart = ref()
@@ -60,7 +60,12 @@ onMounted(async () => {
 let allData = null
 
 async function setAdStructureData() {
-  allData = await getAdStructureData({ startDate: dateRange.value[0], endDate: dateRange.value[1], profileId: shopInfo.profile.profile_id })
+  allData = await getAdStructureData({
+    profileId: shopInfo.profile.profile_id,
+    startDate: dateRange.value[0],
+    endDate: dateRange.value[1], 
+    tactic: 'T00030',
+  })
   return allData.data
 }
 

+ 10 - 14
src/views/adManage/sd/targets/chartComponents/adStruct.vue

@@ -5,16 +5,7 @@
         <div style="margin-left: 45%">
           <span style="background: #3a83f7; width: 18px; height: 10px; margin-top: 8px; display: inline-block; border-radius: 3px"></span>
           <TextSelector v-model="barModelValue1" :options="computedBarOptions1" @change="changeBarOne" style="margin-top: 5px; margin-left: 8px" />
-          <span
-            style="
-              background: #f19a37;
-              width: 18px;
-              height: 10px;
-              margin-top: 8px;
-              margin-left: 20px;
-              display: inline-block;
-              border-radius: 3px;
-            "></span>
+          <span style="background: #f19a37; width: 18px; height: 10px; margin-top: 8px; margin-left: 20px; display: inline-block; border-radius: 3px"></span>
           <TextSelector v-model="barModelValue2" :options="computedBarOptions2" @change="changeBarTwo" style="margin-top: 5px; margin-left: 8px" />
         </div>
         <div ref="bar" style="height: 400px"></div>
@@ -24,13 +15,13 @@
 </template>
 
 <script setup>
-import { onMounted, ref, inject, computed, watch } from 'vue'
 import * as echarts from 'echarts'
+import { computed, inject, onMounted, ref, watch } from 'vue'
+import { createDisabledOptions } from '../../../utils/dropdowndisable'
 import TextSelector from '/@/components/TextSelector/index.vue'
+import { useShopInfo } from '/@/stores/shopInfo'
 import { getAdStructureData } from '/@/views/adManage/sd/targets/api'
-import { createDisabledOptions } from '../../../utils/dropdowndisable'
 import { barOptions1, barOptions2, barOptionsMap } from '/@/views/adManage/utils/enum'
-import { useShopInfo } from '/@/stores/shopInfo'
 
 const shopInfo = useShopInfo()
 let barChart = ref()
@@ -60,7 +51,12 @@ onMounted(async () => {
 let allData = null
 
 async function setAdStructureData() {
-  allData = await getAdStructureData({ startDate: dateRange.value[0], endDate: dateRange.value[1], profileId: shopInfo.profile.profile_id })
+  allData = await getAdStructureData({
+    profileId: shopInfo.profile.profile_id,
+    startDate: dateRange.value[0],
+    endDate: dateRange.value[1],
+    tactic: 'T00020',
+  })
   return allData.data
 }