|
@@ -7,7 +7,7 @@
|
|
|
<a-range-picker
|
|
|
:disabled-date="disabledDate"
|
|
|
format="YYYY-MM-DD"
|
|
|
- style="width: 200px;"
|
|
|
+ style="width: 250px;"
|
|
|
@change="dateChange"
|
|
|
v-model="dateRange"
|
|
|
/>
|
|
@@ -44,7 +44,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">
|
|
@@ -95,7 +95,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>
|
|
@@ -406,23 +407,24 @@ 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*120
|
|
|
console.log(this.scrollX)
|
|
|
}else{
|
|
|
this.scrollX = 0
|
|
|
+ console.log('scroll==0')
|
|
|
}
|
|
|
},
|
|
|
|
|
|
//弹出框确定
|
|
|
handleOk(e) {
|
|
|
this.loading = false
|
|
|
- // this.columns = [...this.listNum]
|
|
|
+
|
|
|
this.visible = false
|
|
|
-
|
|
|
- // console.log(this.columns)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
this.tableHandle()
|
|
|
|
|
@@ -438,15 +440,17 @@ export default {
|
|
|
|
|
|
if (this.listNum.length == 4) {
|
|
|
// console.log(this.listNum.length)
|
|
|
+ this.scrollX=0
|
|
|
this.columns.map((item, index) => {
|
|
|
item.width = 500
|
|
|
})
|
|
|
// console.log(1)
|
|
|
} else {
|
|
|
+
|
|
|
this.columns.map((item, index) => {
|
|
|
- if (index < 2) {
|
|
|
+ if (index == 2||index==0) {
|
|
|
item.width = 150
|
|
|
- } else if (index >=2 && index < 4) {
|
|
|
+ } else if (index ==1 || index ==3) {
|
|
|
item.width = 100
|
|
|
}
|
|
|
})
|