Browse Source

'2020-5-19-wzj'

魏志佳 5 năm trước cách đây
mục cha
commit
675215bb18

+ 2 - 2
src/views/modules/Statistics/videoStatics/selectComponent.vue

@@ -331,8 +331,8 @@ const customFields = [
         dataIndex: 'nextDayOpen',
         tip: '在次留行为发生或回传后,将次留数匹配到相应的激活时间上,用来查看当天在第二天的次留数。当天数据不产出',
         align: 'center',
-        scopedSlots: { customRender: 'playOverRate' },
-        sorter: (a, b) => a.playOverRate - b.playOverRate
+        scopedSlots: { customRender: 'nextDayOpen' },
+        sorter: (a, b) => a.nextDayOpen - b.nextDayOpen
       },
       {
         title: '次留成本',

+ 6 - 4
src/views/modules/Statistics/videoStatics/vDay.vue

@@ -41,7 +41,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">
@@ -112,7 +112,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>
@@ -124,6 +125,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>
     <a-modal v-model="Videovisible" title="视频详情" @ok="videoOk" :footer="null" width='50%'>
         <video
@@ -383,8 +385,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 >= 12|| this.columns.length>=12){
           this.tableWidth=120;
           this.scrollX=this.columns.length*120
           console.log(this.scrollX)

+ 7 - 5
src/views/modules/Statistics/videoStatics/vMonth.vue

@@ -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"
         />
@@ -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>
     <!-- 明细表 -->
 
@@ -534,8 +536,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*120
           console.log(this.scrollX)

+ 14 - 10
src/views/modules/Statistics/videoStatics/vSummary.vue

@@ -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
           }
         })

+ 8 - 6
src/views/modules/Statistics/videoStatics/vWeek.vue

@@ -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"
         />
@@ -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">
@@ -117,10 +117,11 @@
       <span slot="nextDayOpenRate" slot-scope="nextDayOpenRate">{{ nextDayOpenRate | toPercentage }}</span>
        <span slot="statDatetime" slot-scope="">{{ timedata[0]+'~'+timedata[1]}}</span>
 
-       <span slot="convertRate" slot-scope="convertRate">{{ convertRate | toPercentage }}</span>
+      <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>
     <!-- 明细表 -->
 
@@ -526,8 +528,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 >= 12|| this.columns.length>=12){
           this.tableWidth=120;
           this.scrollX=this.columns.length*120
           console.log(this.scrollX)