接口
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user