|
@@ -29,11 +29,11 @@
|
29
|
29
|
<label class="common-screen-label">收益截止日期</label>
|
30
|
30
|
<el-date-picker v-model="filter.closing_date" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" size="small" style="width:150px" @change="onChangeClosingDate" />
|
31
|
31
|
</div>
|
32
|
|
- <!-- 推广类型 -->
|
33
|
|
- <selfChannel style="margin-right: 30px;margin-left: -30px;" :reset="reset" title="推广类型" type="promotionType" labelWidth @channelDefine="onChangePromotionType" />
|
34
|
32
|
<div class="flex">
|
|
33
|
+ <!-- 推广类型 -->
|
|
34
|
+ <selfChannel style="margin-right: 30px;margin-left: -30px;" :reset="reset" title="推广类型" type="promotionType" labelWidth @channelDefine="onChangePromotionType" />
|
35
|
35
|
<!-- 回本率(范围) -->
|
36
|
|
- <inputRange style="margin-right: 10px;" v-model="filter.costCover" label="回本率" />
|
|
36
|
+ <!-- <inputRange style="margin-right: 10px;" v-model="filter.costCover" label="回本率" /> -->
|
37
|
37
|
<el-button size="mini" type="primary" plain @click="onClickSearch">确定</el-button>
|
38
|
38
|
<el-button size="mini" plain @click="onClickReset">重置</el-button>
|
39
|
39
|
</div>
|
|
@@ -321,19 +321,27 @@ export default {
|
321
|
321
|
playlet_id: this.filter.playlet_id,
|
322
|
322
|
closing_date: this.filter.closing_date,
|
323
|
323
|
plat_order_type: this.filter.plat_order_type,
|
324
|
|
- cost_cover_min: this.filter.costCover[0],
|
325
|
|
- cost_cover_max: this.filter.costCover[1],
|
|
324
|
+ // cost_cover_min: this.filter.costCover[0],
|
|
325
|
+ // cost_cover_max: this.filter.costCover[1],
|
326
|
326
|
}
|
327
|
327
|
let url = ''
|
328
|
328
|
let tableName = ''
|
329
|
329
|
|
330
|
330
|
if (this.isADQ) { // adq 参数 & api
|
|
331
|
+ // 2023.01.10 接口更换 新增ad_type参数 区分adq||mp
|
|
332
|
+ // params.account_id = this.filter.account_id_adq
|
|
333
|
+ // url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccountSummary}`
|
331
|
334
|
params.account_id = this.filter.account_id_adq
|
332
|
|
- url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccountSummary}`
|
|
335
|
+ params.ad_type = 1
|
|
336
|
+ url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_accountSummary}`
|
333
|
337
|
tableName = 'isADQ'
|
334
|
338
|
} else if (this.isMP) { // mp 参数 & api
|
335
|
|
- params.app_id = this.filter.account_id
|
336
|
|
- url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccountSummary}`
|
|
339
|
+ // 2023.01.10 接口更换 新增ad_type参数 区分adq||mp
|
|
340
|
+ // params.app_id = this.filter.account_id
|
|
341
|
+ // url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccountSummary}`
|
|
342
|
+ params.account_id = this.filter.account_id
|
|
343
|
+ params.ad_type = 2
|
|
344
|
+ url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_accountSummary}`
|
337
|
345
|
tableName = 'isMP'
|
338
|
346
|
}
|
339
|
347
|
|
|
@@ -376,8 +384,8 @@ export default {
|
376
|
384
|
playlet_id: this.filter.playlet_id,
|
377
|
385
|
closing_date: this.filter.closing_date,
|
378
|
386
|
plat_order_type: this.filter.plat_order_type,
|
379
|
|
- cost_cover_min: this.filter.costCover[0],
|
380
|
|
- cost_cover_max: this.filter.costCover[1],
|
|
387
|
+ // cost_cover_min: this.filter.costCover[0],
|
|
388
|
+ // cost_cover_max: this.filter.costCover[1],
|
381
|
389
|
sort_field: this.filter.sort_field,
|
382
|
390
|
sort_type: this.filter.sort_type,
|
383
|
391
|
}
|
|
@@ -385,12 +393,20 @@ export default {
|
385
|
393
|
let tableName = ''
|
386
|
394
|
|
387
|
395
|
if (this.isADQ) { // adq 参数 & api
|
|
396
|
+ // 2023.01.10 接口更换 新增ad_type参数 区分adq||mp
|
|
397
|
+ // params.account_id = this.filter.account_id_adq
|
|
398
|
+ // url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccount}`
|
388
|
399
|
params.account_id = this.filter.account_id_adq
|
389
|
|
- url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccount}`
|
|
400
|
+ params.ad_type = 1
|
|
401
|
+ url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_account}`
|
390
|
402
|
tableName = 'isADQ'
|
391
|
403
|
} else if (this.isMP) { // mp 参数 & api
|
392
|
|
- params.app_id = this.filter.account_id
|
393
|
|
- url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccount}`
|
|
404
|
+ // 2023.01.10 接口更换 新增ad_type参数 区分adq||mp
|
|
405
|
+ // params.app_id = this.filter.account_id
|
|
406
|
+ // url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccount}`
|
|
407
|
+ params.account_id = this.filter.account_id
|
|
408
|
+ params.ad_type = 2
|
|
409
|
+ url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_account}`
|
394
|
410
|
tableName = 'isMP'
|
395
|
411
|
}
|
396
|
412
|
|
|
@@ -450,17 +466,25 @@ export default {
|
450
|
466
|
playlet_id: this.filter.playlet_id,
|
451
|
467
|
closing_date: this.filter.closing_date,
|
452
|
468
|
plat_order_type: this.filter.plat_order_type,
|
453
|
|
- cost_cover_min: this.filter.costCover[0],
|
454
|
|
- cost_cover_max: this.filter.costCover[1],
|
|
469
|
+ // cost_cover_min: this.filter.costCover[0],
|
|
470
|
+ // cost_cover_max: this.filter.costCover[1],
|
455
|
471
|
}
|
456
|
472
|
let url = ''
|
457
|
473
|
|
458
|
474
|
if (this.isADQ) { // adq 参数 & api
|
|
475
|
+ // 2023.01.10 接口更换 新增ad_type参数 区分adq||mp
|
|
476
|
+ // params.account_id = this.filter.account_id_adq
|
|
477
|
+ // url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccountCurve}`
|
459
|
478
|
params.account_id = this.filter.account_id_adq
|
460
|
|
- url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccountCurve}`
|
|
479
|
+ params.ad_type = 1
|
|
480
|
+ url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_accountCurve}`
|
461
|
481
|
} else if (this.isMP) { // mp 参数 & api
|
462
|
|
- params.app_id = this.filter.account_id
|
463
|
|
- url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccountCurve}`
|
|
482
|
+ // 2023.01.10 接口更换 新增ad_type参数 区分adq||mp
|
|
483
|
+ // params.app_id = this.filter.account_id
|
|
484
|
+ // url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccountCurve}`
|
|
485
|
+ params.account_id = this.filter.account_id
|
|
486
|
+ params.ad_type = 2
|
|
487
|
+ url = `${this.URL.BASEURL}${this.URL.dataBoard_fans_accountCurve}`
|
464
|
488
|
}
|
465
|
489
|
|
466
|
490
|
const { data: res = {} } = await this.$axios.post(url, params)
|
|
@@ -776,18 +800,28 @@ export default {
|
776
|
800
|
playlet_id: this.filter.playlet_id,
|
777
|
801
|
closing_date: this.filter.closing_date,
|
778
|
802
|
plat_order_type: this.filter.plat_order_type,
|
779
|
|
- cost_cover_min: this.filter.costCover[0],
|
780
|
|
- cost_cover_max: this.filter.costCover[1],
|
|
803
|
+ // cost_cover_min: this.filter.costCover[0],
|
|
804
|
+ // cost_cover_max: this.filter.costCover[1],
|
781
|
805
|
}
|
782
|
806
|
|
783
|
807
|
if (this.isADQ) { // adq 参数 & api
|
|
808
|
+ // 2023.01.10 接口更换 新增ad_type参数 区分adq||mp
|
|
809
|
+ // params.account_id = this.filter.account_id_adq
|
|
810
|
+ // url.summary = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccountSummary}`
|
|
811
|
+ // url.detail = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccount}`
|
784
|
812
|
params.account_id = this.filter.account_id_adq
|
785
|
|
- url.summary = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccountSummary}`
|
786
|
|
- url.detail = `${this.URL.BASEURL}${this.URL.dataBoard_fans_adqAccount}`
|
|
813
|
+ params.ad_type = 1
|
|
814
|
+ url.summary = `${this.URL.BASEURL}${this.URL.dataBoard_fans_accountSummary}`
|
|
815
|
+ url.detail = `${this.URL.BASEURL}${this.URL.dataBoard_fans_account}`
|
787
|
816
|
} else if (this.isMP) { // mp 参数 & api
|
788
|
|
- params.app_id = this.filter.account_id
|
789
|
|
- url.summary = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccountSummary}`
|
790
|
|
- url.detail = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccount}`
|
|
817
|
+ // 2023.01.10 接口更换 新增ad_type参数 区分adq||mp
|
|
818
|
+ // params.app_id = this.filter.account_id
|
|
819
|
+ // url.summary = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccountSummary}`
|
|
820
|
+ // url.detail = `${this.URL.BASEURL}${this.URL.dataBoard_fans_mpAccount}`
|
|
821
|
+ params.account_id = this.filter.account_id
|
|
822
|
+ params.ad_type = 2
|
|
823
|
+ url.summary = `${this.URL.BASEURL}${this.URL.dataBoard_fans_accountSummary}`
|
|
824
|
+ url.detail = `${this.URL.BASEURL}${this.URL.dataBoard_fans_account}`
|
791
|
825
|
}
|
792
|
826
|
|
793
|
827
|
const [{ data: summaryRes = {} }, { data: detailRes = {} }] = await Promise.all([
|