diff --git a/pages/statistics/modules/HotlineRates/HotlineRates.js b/pages/statistics/modules/HotlineRates/HotlineRates.js
index 8b858ab..820e55f 100644
--- a/pages/statistics/modules/HotlineRates/HotlineRates.js
+++ b/pages/statistics/modules/HotlineRates/HotlineRates.js
@@ -35,6 +35,8 @@ Component({
}
},
data: {
+ nodata: false,
+ loading:false,
orderBy:"",
sortList:[
{
@@ -200,7 +202,8 @@ Component({
this.getEventList(false)
}
},
- getEventList(deptFlag) {
+ async getEventList(deptFlag) {
+
console.log(this.data.day,this.data.day2,"这里的值");
let parm = {
orderBy: this.data.orderBy,
@@ -213,15 +216,25 @@ Component({
if(this.data.curVal == '1'){
parm.recountFlag=1
}
- event12345Rates(parm).then(res => {
+ this.setData({
+ loading:true
+ })
+ await event12345Rates(parm).then(res => {
console.log(res.data)
// res.data.list.forEach(item => {
// item.reportTime = this.formatTime(item.reportTime)
// })
wx.hideToast()
this.setData({
- list: res.data
+ list: res.data,
+ loading:false
})
+ if (!res.data) {
+ this.setData({
+ nodata:true
+ })
+ }
+
})
},
formatTime(date) {
diff --git a/pages/statistics/modules/HotlineRates/HotlineRates.json b/pages/statistics/modules/HotlineRates/HotlineRates.json
index 875a20d..3e504f5 100644
--- a/pages/statistics/modules/HotlineRates/HotlineRates.json
+++ b/pages/statistics/modules/HotlineRates/HotlineRates.json
@@ -1,6 +1,7 @@
{
"component": true,
"usingComponents": {
+ "van-loading": "@vant/weapp/loading/index",
"no-data": "../../../../components/noData/nodata"
}
}
\ No newline at end of file
diff --git a/pages/statistics/modules/HotlineRates/HotlineRates.wxml b/pages/statistics/modules/HotlineRates/HotlineRates.wxml
index bf538d4..f7bdbdc 100644
--- a/pages/statistics/modules/HotlineRates/HotlineRates.wxml
+++ b/pages/statistics/modules/HotlineRates/HotlineRates.wxml
@@ -86,6 +86,8 @@
{{showitem==99999?"收起":"展开"}}
-
-
+
+ 加载中...
+
+
\ No newline at end of file