|
@@ -669,31 +669,31 @@ export default {
|
|
this.statDate = moment().subtract(1, 'day')
|
|
this.statDate = moment().subtract(1, 'day')
|
|
moment().format('YYYY-MM-DD_HH:mm')
|
|
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()
|
|
this.tableHandle()
|
|
- // }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
- // // console.log(this.columns)
|
|
|
|
- // }
|
|
|
|
|
|
+ // console.log(this.columns)
|
|
|
|
+ }
|
|
|
|
|
|
- // }
|
|
|
|
|
|
+ }
|
|
|
|
|
|
- // })
|
|
|
|
|
|
+ })
|
|
},
|
|
},
|
|
deactivated() {
|
|
deactivated() {
|
|
let arr = JSON.stringify(this.columns)
|
|
let arr = JSON.stringify(this.columns)
|