|
|
|
|
@ -90,6 +90,11 @@ |
|
|
|
|
reportPhase:'', |
|
|
|
|
timeArray:[], |
|
|
|
|
timeName:'', |
|
|
|
|
query:{ |
|
|
|
|
reportDatetimeStart:"", |
|
|
|
|
reportDatetimeEnd:"", |
|
|
|
|
statPeriod:"" |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onShow(){ |
|
|
|
|
@ -100,6 +105,7 @@ |
|
|
|
|
this.loadMore() |
|
|
|
|
}, |
|
|
|
|
onPullDownRefresh() { |
|
|
|
|
console.log('下拉===>',this.timeArray) |
|
|
|
|
this.page = 0; |
|
|
|
|
this.hasMore = true; |
|
|
|
|
this.synthData = []; |
|
|
|
|
@ -116,10 +122,11 @@ |
|
|
|
|
page:this.page, |
|
|
|
|
pageSize:this.pageSize, |
|
|
|
|
_t:Date.parse(new Date()), |
|
|
|
|
reportDatetimeStart:this.timeRange.length != 0 ? this.timeRange[0] : '', |
|
|
|
|
reportDatetimeEnd:this.timeRange.length != 0 ? this.timeRange[1] : '', |
|
|
|
|
// reportDatetimeStart:this.timeRange.length != 0 ? this.timeRange[0] : '', |
|
|
|
|
// reportDatetimeEnd:this.timeRange.length != 0 ? this.timeRange[1] : '', |
|
|
|
|
departmentId:this.unit ? this.unit : '', |
|
|
|
|
statPeriod:this.reportPhase |
|
|
|
|
// statPeriod:this.reportPhase |
|
|
|
|
...this.query |
|
|
|
|
} |
|
|
|
|
this.$request(getApp().globalData.baseUrl + '/api/biz/roadtransport/operation/list',params,"GET").then(res =>{ |
|
|
|
|
console.log(res) |
|
|
|
|
@ -175,6 +182,14 @@ |
|
|
|
|
this.hasMore = true; |
|
|
|
|
this.page = 0; |
|
|
|
|
this.synthData = []; |
|
|
|
|
uni.pageScrollTo({ |
|
|
|
|
scrollTop: 0 |
|
|
|
|
}) |
|
|
|
|
this.query = { |
|
|
|
|
reportDatetimeStart:this.timeRange.length != 0 ? this.timeRange[0] : '', |
|
|
|
|
reportDatetimeEnd:this.timeRange.length != 0 ? this.timeRange[1] : '', |
|
|
|
|
statPeriod: this.reportPhase |
|
|
|
|
} |
|
|
|
|
this.$refs.popup.close() |
|
|
|
|
this.loadMore() |
|
|
|
|
}, |
|
|
|
|
@ -192,11 +207,11 @@ |
|
|
|
|
this.timeRange = []; |
|
|
|
|
this.timeName = ''; |
|
|
|
|
this.reportPhase = '' |
|
|
|
|
this.hasMore = true; |
|
|
|
|
this.synthData = []; |
|
|
|
|
this.page = 0; |
|
|
|
|
this.$refs.popup.close() |
|
|
|
|
this.loadMore(); |
|
|
|
|
// this.hasMore = true; |
|
|
|
|
// this.synthData = []; |
|
|
|
|
// this.page = 0; |
|
|
|
|
// this.$refs.popup.close() |
|
|
|
|
// this.loadMore(); |
|
|
|
|
}, |
|
|
|
|
// 点击删除按钮 |
|
|
|
|
deleteItem(row){ |
|
|
|
|
|