|
@@ -118,7 +118,13 @@ th div {
|
|
|
<a-row>
|
|
|
<a-col :span="24">
|
|
|
<a-card :bordered="false" class="search-box">
|
|
|
- <time-check @getAdd="getAdd" :startValue.sync="startValue" ref="timeCheck"></time-check>
|
|
|
+ <time-check
|
|
|
+ @getAdd="getAdd"
|
|
|
+ :startValue.sync="startValue"
|
|
|
+ :timeList="timeList"
|
|
|
+ ref="timeCheck"
|
|
|
+ :activeNow="2"
|
|
|
+ ></time-check>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -443,7 +449,7 @@ export default {
|
|
|
statHour: null,
|
|
|
keyValue: null,
|
|
|
keyValueData: [],
|
|
|
- active: 1,
|
|
|
+ active: 2,
|
|
|
startValue: [],
|
|
|
allValue: [],
|
|
|
discount: 1,
|
|
@@ -460,6 +466,16 @@ export default {
|
|
|
discountCost: 0,
|
|
|
discountCostProportion: 0
|
|
|
},
|
|
|
+ timeList: [
|
|
|
+ // { label: '今天', value: 1, show: true },
|
|
|
+ { label: '昨天', value: 2, show: true },
|
|
|
+ { label: '近一周', value: 3, show: true },
|
|
|
+ { label: '近十五天', value: 4, show: true },
|
|
|
+ { label: '近一月', value: 5, show: true },
|
|
|
+ { label: '近三月', value: 6, show: true },
|
|
|
+ { label: '近半年', value: 7, show: true },
|
|
|
+ { label: '所有', value: 8, show: true }
|
|
|
+ ],
|
|
|
dataDetail: [],
|
|
|
tabListNoTitle: [
|
|
|
{
|
|
@@ -752,7 +768,7 @@ export default {
|
|
|
? (res.result.ratioJson.photoClickRatio * 100).toFixed(2) + '%'
|
|
|
: 0 + '%',
|
|
|
cpm: res.result.ratioJson.cpm ? res.result.ratioJson.cpm.toFixed(2) : 0,
|
|
|
- cost: res.result.ratioJson.cost.toFixed(2),
|
|
|
+ cost: res.result.ratioJson.cost?res.result.ratioJson.cost.toFixed(2):0,
|
|
|
cvr: res.result.ratioJson.cvr ? (res.result.ratioJson.cvr * 100).toFixed(2) + '%' : 0 + '%',
|
|
|
costY: (res.result.ratioJson.cost / this.discount).toFixed(2),
|
|
|
accountId: '总计',
|