This commit is contained in:
2025-07-08 17:54:02 +08:00
parent 95f2fed261
commit 9e02823637
15 changed files with 487 additions and 181 deletions

View File

@@ -58,7 +58,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {groupMaterList} from '@/utils/getData2.js'
import {getMaterialList} from '@/utils/getData3.js'
export default {
components: {
NavBar,
@@ -90,10 +90,10 @@
searchList () {
this.dataList = []
this.pageNum = 1
this._groupMaterList()
this._getMaterialList()
},
async _groupMaterList () {
let res = await groupMaterList(this.pageNum + '', this.pageSize + '', this.val1)
async _getMaterialList () {
let res = await getMaterialList( this.val1, this.pageNum + '', this.pageSize + '')
if (res.code === '200') {
this.totalCount = res.totalElements
if (res.totalElements > 0) {
@@ -114,7 +114,7 @@
this.status = 'loading'
setTimeout(() => {
this.pageNum++
this._groupMaterList()
this._getMaterialList()
}, 1000)
} else { //停止加载
this.status = 'noMore'