This commit is contained in:
2025-07-17 10:19:41 +08:00
parent 6d635da404
commit 314fd092ef
4 changed files with 346 additions and 16 deletions

View File

@@ -94,20 +94,18 @@
},
async _getMaterialList () {
let res = await getMaterialList( this.val1, this.pageNum + '', this.pageSize + '')
if (res.code === '200') {
// this.dataList = res.data
this.totalCount = res.totalElements
if (res.totalElements > 0) {
const dataMap = res.data
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
this.reload = false
} else {
this.dataList = []
}
if (this.totalCount == this.dataList.length) {
this.reload = false
this.status = 'noMore'
}
// this.dataList = res.data
this.totalCount = res.totalElements
if (res.totalElements > 0) {
const dataMap = res.data
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
this.reload = false
} else {
this.dataList = []
}
if (this.totalCount == this.dataList.length) {
this.reload = false
this.status = 'noMore'
}
},
onReachBottom () {