zhuxinbo il y a 5 ans
Parent
commit
8f63c8aa6a

+ 21 - 21
src/views/modules/Statistics/videoStatics/vDay.vue

@@ -267,7 +267,7 @@ export default {
       //是否显示共选几天的提示
       daysFlag: false,
       //日期选择器显示的日期范围
-      dateRange: '',
+      dateRange: null,
       dataElse: [],
       loading: false,
       visible: false,
@@ -471,28 +471,28 @@ export default {
     console.log('activated')
     // this.getParticipateList()
     this.statDate = moment().subtract(1, 'day')
-    moment().format('YYYY-MM-DD_HH:mm')
-
-    postAction('/toutiao/videoReportDaily/getColumnJson', {
-      columnType:2,
-    }).then((res)=>{
-      // console.log(res)
-      if(res.success){
-      // console.log(JSON.parse(res.result))
-      let columns=JSON.parse(res.result)
-      if(columns.length){
-           columns.map((item,index)=>{
-             if(index>columnsFixd.length-1){
-                 item.sorter=function(a,b){  return a[item.dataIndex]-b[item.dataIndex]}
-             }
+    // moment().format('YYYY-MM-DD_HH:mm')
+
+    // postAction('/toutiao/videoReportDaily/getColumnJson', {
+    //   columnType:2,
+    // }).then((res)=>{
+    //   // console.log(res)
+    //   if(res.success){
+    //   // console.log(JSON.parse(res.result))
+    //   let columns=JSON.parse(res.result)
+    //   if(columns.length){
+    //        columns.map((item,index)=>{
+    //          if(index>columnsFixd.length-1){
+    //              item.sorter=function(a,b){  return a[item.dataIndex]-b[item.dataIndex]}
+    //          }
          
-        })
-        this.columns=columns
-        // console.log(this.columns)
-      }
-      }
+    //     })
+    //     this.columns=columns
+    //     // console.log(this.columns)
+    //   }
+    //   }
 
-    })
+    // })
   },
   deactivated() {
       let arr = JSON.stringify(this.columns)

+ 1 - 3
src/views/modules/Statistics/videoStatics/vWeek.vue

@@ -402,13 +402,11 @@ export default {
       let lastStart = 
         moment()
           .subtract(7, 'days')
-          .format('YYYY-MM-DD')
       let lastEnd =   moment()
           .subtract(1, 'days')
-          .format('YYYY-MM-DD')
       
 
-      this.dateRange=[moment(lastStart),moment(lastEnd)]
+      this.dateRange=[lastStart,lastEnd]
       console.log(this.dateRange);
       this.timedata=this.dateRange
       this.timedata=this.dateRange