|
@@ -196,7 +196,7 @@
|
|
|
</div>
|
|
|
<div class="report-card-line"></div>
|
|
|
<div class="report-card-radio">
|
|
|
- <span>素材使用率:{{ Number(accountIndexList.useCompare * 100).toFixed(2) }}%</span>
|
|
|
+ <span>素材使用率:{{ accountIndexList.useCompare?Number(accountIndexList.useCompare * 100).toFixed(2):'0.00' }}%</span>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
@@ -204,7 +204,7 @@
|
|
|
<a-card class="material-report-card">
|
|
|
<span slot="title">
|
|
|
有效视频
|
|
|
- <a-tooltip title="筛选时段内上线后双周消耗大于等于5w的视频总数" slot="action">
|
|
|
+ <a-tooltip title="筛选时段内上线后一周内消耗大于等于5000的视频总数" slot="action">
|
|
|
<a-icon type="info-circle-o" />
|
|
|
</a-tooltip>
|
|
|
</span>
|
|
@@ -229,7 +229,7 @@
|
|
|
</div>
|
|
|
<div class="report-card-line"></div>
|
|
|
<div class="report-card-radio">
|
|
|
- <span>素材有效率:{{ Number(accountIndexList.effectiveCompare * 100).toFixed(2) }}%</span>
|
|
|
+ <span>素材有效率:{{ accountIndexList.effectiveCompare?Number(accountIndexList.effectiveCompare * 100).toFixed(2):'0.00' }}%</span>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
</a-col>
|
|
@@ -284,7 +284,7 @@
|
|
|
</span>
|
|
|
<div class="report-card-result">
|
|
|
<div class="report-card-money">
|
|
|
- {{ materialGroupData.avgCost }}
|
|
|
+ {{ '¥' + decimalsHandle(materialGroupData.avgCost, 2) }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="report-card-line"></div>
|
|
@@ -325,7 +325,7 @@
|
|
|
</a-tooltip>
|
|
|
</span>
|
|
|
<div class="report-card-result">
|
|
|
- <div class="report-card-money">{{ materialGroupData.innovativeVideoCost }}</div>
|
|
|
+ <div class="report-card-money">{{ '¥' + decimalsHandle(materialGroupData.innovativeVideoCost, 2) }}</div>
|
|
|
</div>
|
|
|
<div class="report-card-line"></div>
|
|
|
</a-card>
|
|
@@ -337,7 +337,7 @@
|
|
|
</a-tooltip>
|
|
|
</span>
|
|
|
<div class="report-card-result">
|
|
|
- <div class="report-card-money">{{ materialGroupData.avgMaterialCost }}</div>
|
|
|
+ <div class="report-card-money">{{ '¥' + decimalsHandle(materialGroupData.avgMaterialCost, 2) }}</div>
|
|
|
</div>
|
|
|
<div class="report-card-line"></div>
|
|
|
</a-card>
|
|
@@ -1348,6 +1348,10 @@ export default {
|
|
|
} else {
|
|
|
this.columns = [...columnsTt]
|
|
|
}
|
|
|
+ this.videoType = 0
|
|
|
+ this.labelType = 0
|
|
|
+ this.designRankingValue = 1
|
|
|
+ this.ipagination.current = 1
|
|
|
this.getData()
|
|
|
},
|
|
|
resetSubmit() {
|
|
@@ -1356,6 +1360,10 @@ export default {
|
|
|
this.dataDimension = 'a'
|
|
|
this.mediaDimension = 'b'
|
|
|
this.dataDimensionValue = []
|
|
|
+ this.videoType = 0
|
|
|
+ this.labelType = 0
|
|
|
+ this.designRankingValue = 1
|
|
|
+ this.ipagination.current = 1
|
|
|
this.getData()
|
|
|
},
|
|
|
//获取echart的值
|
|
@@ -1493,13 +1501,20 @@ export default {
|
|
|
},
|
|
|
handlerAgeOption(data) {
|
|
|
const colorList = ['#58D5FF', '#73ACFF', '#FDD56A', '#FDB36A', '#FD866A', '#9E87FF']
|
|
|
+ let that = this
|
|
|
let option = {
|
|
|
color: colorList,
|
|
|
backgroundColor: '#fff',
|
|
|
tooltip: {
|
|
|
formatter: function(params) {
|
|
|
- return `${params.marker}${params.name}: ${params.value}<br/>
|
|
|
- ${params.marker}${params.name}占比: ${params.percent}%`
|
|
|
+ if(that.labelType == 0){
|
|
|
+ return `${params.marker}${params.name}素材数: ${params.value}<br/>
|
|
|
+ ${params.marker}${params.name}素材数占比: ${params.percent}%`
|
|
|
+ }else{
|
|
|
+ return `${params.marker}${params.name}消耗: ${that.decimalsHandle(params.value, 2)}<br/>
|
|
|
+ ${params.marker}${params.name}消耗占比: ${params.percent}%`
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
legend: {
|
|
@@ -1590,6 +1605,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
mediaDimensionChange(e) {
|
|
|
+ this.dataDimensionValue = undefined
|
|
|
if (e.target.value === 'b') {
|
|
|
this.materialRankValue = 0
|
|
|
} else {
|