|
@ -35,6 +35,8 @@ Component({ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
data: { |
|
|
data: { |
|
|
|
|
|
nodata: false, |
|
|
|
|
|
loading:false, |
|
|
orderBy:"", |
|
|
orderBy:"", |
|
|
sortList:[ |
|
|
sortList:[ |
|
|
{ |
|
|
{ |
|
@ -200,7 +202,8 @@ Component({ |
|
|
this.getEventList(false) |
|
|
this.getEventList(false) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
getEventList(deptFlag) { |
|
|
async getEventList(deptFlag) { |
|
|
|
|
|
|
|
|
console.log(this.data.day,this.data.day2,"这里的值"); |
|
|
console.log(this.data.day,this.data.day2,"这里的值"); |
|
|
let parm = { |
|
|
let parm = { |
|
|
orderBy: this.data.orderBy, |
|
|
orderBy: this.data.orderBy, |
|
@ -213,15 +216,25 @@ Component({ |
|
|
if(this.data.curVal == '1'){ |
|
|
if(this.data.curVal == '1'){ |
|
|
parm.recountFlag=1 |
|
|
parm.recountFlag=1 |
|
|
} |
|
|
} |
|
|
event12345Rates(parm).then(res => { |
|
|
this.setData({ |
|
|
|
|
|
loading:true |
|
|
|
|
|
}) |
|
|
|
|
|
await event12345Rates(parm).then(res => { |
|
|
console.log(res.data) |
|
|
console.log(res.data) |
|
|
// res.data.list.forEach(item => {
|
|
|
// res.data.list.forEach(item => {
|
|
|
// item.reportTime = this.formatTime(item.reportTime)
|
|
|
// item.reportTime = this.formatTime(item.reportTime)
|
|
|
// })
|
|
|
// })
|
|
|
wx.hideToast() |
|
|
wx.hideToast() |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
list: res.data |
|
|
list: res.data, |
|
|
|
|
|
loading:false |
|
|
}) |
|
|
}) |
|
|
|
|
|
if (!res.data) { |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
nodata:true |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
formatTime(date) { |
|
|
formatTime(date) { |
|
|