|
@@ -267,7 +267,7 @@ export default {
|
|
//是否显示共选几天的提示
|
|
//是否显示共选几天的提示
|
|
daysFlag: false,
|
|
daysFlag: false,
|
|
//日期选择器显示的日期范围
|
|
//日期选择器显示的日期范围
|
|
- dateRange: '',
|
|
|
|
|
|
+ dateRange: null,
|
|
dataElse: [],
|
|
dataElse: [],
|
|
loading: false,
|
|
loading: false,
|
|
visible: false,
|
|
visible: false,
|
|
@@ -471,28 +471,28 @@ export default {
|
|
console.log('activated')
|
|
console.log('activated')
|
|
// this.getParticipateList()
|
|
// this.getParticipateList()
|
|
this.statDate = moment().subtract(1, 'day')
|
|
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() {
|
|
deactivated() {
|
|
let arr = JSON.stringify(this.columns)
|
|
let arr = JSON.stringify(this.columns)
|