This commit is contained in:
2025-07-09 15:09:07 +08:00
parent 10d36c78b6
commit c4d815cef1
35 changed files with 342 additions and 161 deletions

View File

@@ -95,18 +95,19 @@
async _getMaterialList () {
let res = await getMaterialList( this.val1, this.pageNum + '', this.pageSize + '')
if (res.code === '200') {
this.totalCount = res.totalElements
if (res.totalElements > 0) {
const dataMap = res.content
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.content
// 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 () {