|
@@ -1,24 +1,16 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div v-loading="loading">
|
3
|
|
- <!-- <div class="screenBox flex">
|
4
|
|
- <div />
|
5
|
|
- <el-button type="primary" size="mini" @click="init(1, 'export')">导出Excel</el-button>
|
6
|
|
- </div> -->
|
7
|
|
- <div class="screenBox flex">
|
8
|
|
- <div class="flex">
|
9
|
|
- <date-picker :reset="reset" title="自定义" :quickFlag='true' :afferent_time="default_time" :clearFlag='false'
|
10
|
|
- @changeTime="changeTime"></date-picker>
|
11
|
|
- <!-- 收益截止日期 -->
|
12
|
|
- <div style="margin-left: 30px;" class="common-screen-item">
|
13
|
|
- <label class="common-screen-label">收益截止日期</label>
|
14
|
|
- <el-date-picker v-model="closing_date" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" size="small" style="width:150px" @change="onChangeClosingDate" />
|
15
|
|
- </div>
|
16
|
|
- <!-- 花生mp账号 -->
|
17
|
|
- <selfChannel :reset="reset" title="账号" type="mpAccountHS" labelWidth @channelDefine="onChangeAccountHS" />
|
18
|
|
- </div>
|
19
|
|
- </div>
|
20
|
|
- <!-- S 新增区间筛选项 -->
|
21
|
3
|
<div class="screenBox filter-wrap">
|
|
4
|
+ <date-picker :reset="reset" title="自定义" :quickFlag='true' :afferent_time="default_time" :clearFlag='false' @changeTime="changeTime"></date-picker>
|
|
5
|
+ <!-- 推广类型 -->
|
|
6
|
+ <selfChannel :reset="reset" title="推广类型" type="promotionType" @channelDefine="onChangePlatOrderType" style="margin-left: -30px; margin-right: 0;" />
|
|
7
|
+ <!-- 收益截止日期 -->
|
|
8
|
+ <div class="common-screen-item">
|
|
9
|
+ <label class="common-screen-label">收益截止日期</label>
|
|
10
|
+ <el-date-picker v-model="closing_date" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" size="small" style="width:150px" @change="onChangeClosingDate" />
|
|
11
|
+ </div>
|
|
12
|
+ <!-- 花生mp账号 -->
|
|
13
|
+ <selfChannel :reset="reset" title="账号" type="mpAccountHS" @channelDefine="onChangeAccountHS" style="margin-left: -60px;" />
|
22
|
14
|
<input-range v-model="firstDayRoi" label="首日ROI" />
|
23
|
15
|
<input-range v-model="firstOrderCost " label="下单成本" />
|
24
|
16
|
<input-range v-model="perFollowCost" label="企微成本" />
|
|
@@ -30,7 +22,6 @@
|
30
|
22
|
<el-button type="primary" size="mini" @click="init(1, 'export')">导出Excel</el-button>
|
31
|
23
|
</div>
|
32
|
24
|
</div>
|
33
|
|
- <!-- S 新增区间筛选项 -->
|
34
|
25
|
<!-- S 数据更新时间 -->
|
35
|
26
|
<div class="update-time"><i class="el-icon-warning-outline" />数据更新时间:{{ updateTime || '-' }}</div>
|
36
|
27
|
<!-- E 数据更新时间 -->
|
|
@@ -109,6 +100,7 @@ export default {
|
109
|
100
|
totalRoi: ['', ''], // 回本率(范围)
|
110
|
101
|
paid: ['', ''], // 消耗(范围)
|
111
|
102
|
reset: false,
|
|
103
|
+ plat_order_type: '', // 推广类型
|
112
|
104
|
closing_date: '', // 收益截止日期
|
113
|
105
|
app_id: '', // 花生mp账号
|
114
|
106
|
sort_field: 'date', // 排序字段 默认 时间 & 降序
|
|
@@ -126,6 +118,7 @@ export default {
|
126
|
118
|
// 重置
|
127
|
119
|
handleReset() {
|
128
|
120
|
this.reset = !this.reset
|
|
121
|
+ this.plat_order_type = ''
|
129
|
122
|
this.closing_date = ''
|
130
|
123
|
this.app_id = ''
|
131
|
124
|
this.time = this.default_time
|
|
@@ -200,6 +193,7 @@ export default {
|
200
|
193
|
total_roi_max: this.totalRoi[1],
|
201
|
194
|
first_day_roi_min: this.firstDayRoi[0],
|
202
|
195
|
first_day_roi_max: this.firstDayRoi[1],
|
|
196
|
+ plat_order_type: this.plat_order_type,
|
203
|
197
|
closing_date: this.closing_date,
|
204
|
198
|
app_id: this.app_id,
|
205
|
199
|
paid_min: this.paid[0],
|
|
@@ -272,6 +266,12 @@ export default {
|
272
|
266
|
this.init(1)
|
273
|
267
|
this.handleGetUpdateTime()
|
274
|
268
|
},
|
|
269
|
+ // 监听“推广类型”筛选变化
|
|
270
|
+ onChangePlatOrderType(val) {
|
|
271
|
+ this.plat_order_type = val
|
|
272
|
+ this.init(1)
|
|
273
|
+ this.handleGetUpdateTime()
|
|
274
|
+ },
|
275
|
275
|
// 监听“收益截止日期”筛选变化
|
276
|
276
|
onChangeClosingDate(val) {
|
277
|
277
|
this.closing_date = val || ''
|