翻页
This commit is contained in:
@@ -68,6 +68,8 @@ export default {
|
||||
userList: [],
|
||||
diffNum: '',
|
||||
today: '',
|
||||
size: 10,
|
||||
current: 1,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -104,11 +106,19 @@ export default {
|
||||
},
|
||||
|
||||
getRecord() {
|
||||
this.$http.post(`/app/appepidemichealthreport/list?memberId=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||
}
|
||||
})
|
||||
this.$http
|
||||
.post(`/app/appepidemichealthreport/list`, null, {
|
||||
params: {
|
||||
memberId: this.id,
|
||||
size: this.size,
|
||||
current: this.current,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
callPhone(phone) {
|
||||
@@ -127,6 +137,10 @@ export default {
|
||||
})
|
||||
},
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current++
|
||||
this.getRecord()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user