|
@@ -43,7 +43,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="listNum">
|
|
|
- <p>已选{{columns.length}}列</p>
|
|
|
+ <p>已选{{listNum.length}}列</p>
|
|
|
<a-button id="btn" type="link" @click="clearAllList">清空全部</a-button>
|
|
|
<ul class="selectlist">
|
|
|
<li v-for="(item,index) in listNum" :key="index">
|
|
@@ -120,7 +120,8 @@
|
|
|
<span slot="convertRate" slot-scope="convertRate">{{ convertRate | toPercentage }}</span>
|
|
|
<span slot="nextDayOpenRate" slot-scope="nextDayOpenRate">{{ nextDayOpenRate | toPercentage }}</span>
|
|
|
<span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
|
|
|
- <span slot="cpm" slot-scope="cpm">{{ cpm | toPercentage }}</span>
|
|
|
+ <span slot="cpc" slot-scope="cpm">{{ cpm | tofixed }}</span>
|
|
|
+ <span slot="cpm" slot-scope="cpm">{{ cpm | tofixed }}</span>
|
|
|
<span slot="activeRate" slot-scope="activeRate">{{ activeRate | toPercentage }}</span>
|
|
|
<span slot="installFinishRate" slot-scope="installFinishRate">{{ installFinishRate | toPercentage }}</span>
|
|
|
<span slot="validPlayRate" slot-scope="validPlayRate">{{ validPlayRate | tofixed }}</span>
|
|
@@ -132,6 +133,7 @@
|
|
|
<span slot="downloadFinishCost" slot-scope="downloadFinishCost">{{ downloadFinishCost | tofixed }}</span>
|
|
|
<span slot="downloadStartCost" slot-scope="downloadStartCost">{{ downloadStartCost | tofixed }}</span>
|
|
|
<span slot="installFinishCost" slot-scope="installFinishCost">{{ installFinishCost | tofixed }}</span>
|
|
|
+ <span slot="convertCost" slot-scope="convertCost">{{ convertCost | tofixed }}</span>
|
|
|
</a-table>
|
|
|
<!-- 明细表 -->
|
|
|
|
|
@@ -535,8 +537,8 @@ export default {
|
|
|
tableHandle(){
|
|
|
// this.listNum = [...this.columns]
|
|
|
console.log(this.listNum.length,this.columns)
|
|
|
-
|
|
|
- if(this.listNum.length > 12|| this.columns.length>12){
|
|
|
+ this.scrollX=0;
|
|
|
+ if(this.listNum.length >= 9|| this.columns.length>=9){
|
|
|
this.tableWidth=120;
|
|
|
this.scrollX=this.columns.length*140
|
|
|
console.log(this.scrollX)
|
|
@@ -670,31 +672,31 @@ export default {
|
|
|
this.statDate = moment().subtract(1, 'day')
|
|
|
moment().format('YYYY-MM-DD_HH:mm')
|
|
|
|
|
|
- // postAction('/toutiao/videoReportDaily/getColumnJson', {
|
|
|
- // columnType:4,
|
|
|
- // }).then((res)=>{
|
|
|
- // // console.log(res)
|
|
|
- // if(res.success){
|
|
|
- // // console.log(JSON.parse(res.result))
|
|
|
- // let columns=JSON.parse(res.result)
|
|
|
- // if(columns.length){
|
|
|
- // if(columns.length>=columnsFixd.length){
|
|
|
- // columns.map((item,index)=>{
|
|
|
- // if(index>columnsFixd.length-1){
|
|
|
- // item.sorter=function(a,b){ return a[item.dataIndex]-b[item.dataIndex]}
|
|
|
- // }})
|
|
|
- // columns=columns.slice(columnsFixd.length);
|
|
|
- // this.columns=[...columnsFixd,...columns]
|
|
|
+ postAction('/toutiao/videoReportDaily/getColumnJson', {
|
|
|
+ columnType:4,
|
|
|
+ }).then((res)=>{
|
|
|
+ // console.log(res)
|
|
|
+ if(res.success){
|
|
|
+ // console.log(JSON.parse(res.result))
|
|
|
+ let columns=JSON.parse(res.result)
|
|
|
+ if(columns.length){
|
|
|
+ if(columns.length>=columnsFixd.length){
|
|
|
+ columns.map((item,index)=>{
|
|
|
+ if(index>columnsFixd.length-1){
|
|
|
+ item.sorter=function(a,b){ return a[item.dataIndex]-b[item.dataIndex]}
|
|
|
+ }})
|
|
|
+ columns=columns.slice(columnsFixd.length);
|
|
|
+ this.columns=[...columnsFixd,...columns]
|
|
|
this.tableHandle()
|
|
|
- // }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
- // // console.log(this.columns)
|
|
|
- // }
|
|
|
+ // console.log(this.columns)
|
|
|
+ }
|
|
|
|
|
|
- // }
|
|
|
+ }
|
|
|
|
|
|
- // })
|
|
|
+ })
|
|
|
},
|
|
|
deactivated() {
|
|
|
let arr = JSON.stringify(this.columns)
|