Browse Source

阶梯出价

xiuli.gao 1 year ago
parent
commit
87d8ce43e5

+ 1 - 1
src/components/businessMoudle/adTask/index.vue

@@ -43,7 +43,7 @@
43 43
               <span class="task-status--finish-font">{{ scope.row.status == 0 ? '待提交' : scope.row.status == 1 ? '提交中' :
44 44
                 scope.row.status == 2 ? '提交完成' : '' }} </span>
45 45
             </span>
46
-            <el-tooltip v-if="scope.row.fail_reason && scope.row.fail_reason != '' && scope.row.fail_num > 0" placement="top" effect="dark">
46
+            <el-tooltip :disabled="scope.row.fail_reason && scope.row.fail_reason != '' && scope.row.fail_num > 0 ? false : true" placement="top" effect="dark">
47 47
               <template #content><span v-html="JSON.parse(scope.row.fail_reason)"></span></template>
48 48
               <span class="opt-link" v-if="scope.row.status == 2"> 成功:{{ scope.row.success_num }} 失败:{{ scope.row.fail_num
49 49
             }} </span>

+ 4 - 4
src/components/businessMoudle/batchGdt/configArea/ts/adBasic.ts

@@ -44,7 +44,7 @@ export function basicInfoDeclare() {
44 44
         value: {},
45 45
         other: {}
46 46
       },
47
-      expandPopulation: {
47
+      expandPopulation: { //已下线
48 48
         enabled: false, //是否需要配置
49 49
         visible: false, //对应弹框显隐
50 50
         optional: true, //选填
@@ -137,9 +137,9 @@ export function handleAdBasic({
137 137
     for (let i in basicInfoData.outerConfig) {
138 138
       basicInfoData.outerConfig[i].enabled = false
139 139
     }
140
-    if (res?.expand_enabled == 1) { // 扩量种子人群
141
-      basicInfoData.outerConfig.expandPopulation.enabled = true;
142
-    }
140
+    // if (res?.expand_enabled == 1) { // 扩量种子人群
141
+    //   basicInfoData.outerConfig.expandPopulation.enabled = true;
142
+    // }
143 143
     if (res?.smart_targeting_switch == 1) { // 智能定向外层配置
144 144
       basicInfoData.outerConfig.targetingPartyData.enabled = true;
145 145
     }

+ 5 - 5
src/components/businessMoudle/batchGdt/configArea/ts/preview.ts

@@ -292,14 +292,14 @@ const getBidAmount = (ad_count, ad_total) => {
292 292
     return basicInfoData.fillBack.bid_amount
293 293
   }
294 294
   if (basicInfoData.fillBack.bid_way == 2 || basicInfoData.fillBack.bid_way == 3) {
295
-    let max = basicInfoData.fillBack.bid_range.split('-')[1]
296
-    let min = basicInfoData.fillBack.bid_range.split('-')[0]
295
+    let max = Number(basicInfoData.fillBack.bid_range.split('-')[1])
296
+    let min = Number(basicInfoData.fillBack.bid_range.split('-')[0])
297 297
     if (basicInfoData.fillBack.bid_way == 2) {//随机出价
298
-      return parseFloat((Math.random() * (max - min) + min).toFixed(2));
298
+      return parseFloat((Math.random() * (max - min) + min).toFixed(2))
299 299
     }
300 300
     if (basicInfoData.fillBack.bid_way == 3) { //阶梯出价
301
-      let step = (max - min) / (ad_total - 1);// 计算等差差值
302
-      return min + ad_count * step
301
+      let step = parseFloat(((max - min) / (ad_total - 1)).toFixed(2));// 计算等差差值
302
+      return parseFloat((min + ad_count * step).toFixed(2))
303 303
     }
304 304
   }
305 305
 }