|
@@ -37,7 +37,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class=" text-center margin-top" v-if="alarmUntreatedCount == 0">暂无数据...</view>
|
|
|
- <view v-show="isLoadMore&&alarmUntreatedCount!= 0">
|
|
|
+ <view v-show="isLoadMore&&alarmUntreatedCount!= 0&&this.currentPage>1">
|
|
|
<uni-load-more :status="loadStatus"></uni-load-more>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -345,26 +345,28 @@
|
|
|
|
|
|
// }
|
|
|
// console.log(this.porcessedList)
|
|
|
-
|
|
|
+ this.alarmUntreatedCount1 = parseInt(res.data.alarmUntreatedCount)
|
|
|
+ this.alarmUntreatedCount = parseInt(res.data.alarmUntreatedCount)
|
|
|
if (res.data.data.length) {
|
|
|
if (whichTab == 0) {
|
|
|
this.unporcessList = this.unporcessList.concat(res.data.data)
|
|
|
this.alarmUntreatedCount = parseInt(res.data.alarmUntreatedCount)
|
|
|
-
|
|
|
} else {
|
|
|
this.porcessedList = this.porcessedList.concat(res.data.data);
|
|
|
-
|
|
|
this.alarmUntreatedCount1 = parseInt(res.data.alarmUntreatedCount)
|
|
|
console.log(this.alarmUntreatedCount1)
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
if (res.data.data.length < this.size) { //判断接口返回数据量小于请求数据量,则表示此为最后一页
|
|
|
+
|
|
|
this.isLoadMore = true
|
|
|
this.loadStatus = 'nomore'
|
|
|
} else {
|
|
|
+
|
|
|
this.isLoadMore = false
|
|
|
+
|
|
|
}
|
|
|
} else {
|
|
|
+
|
|
|
this.isLoadMore = true
|
|
|
this.loadStatus = 'nomore'
|
|
|
}
|