Browse Source

修改 搜索接口

master
邓宏 2 years ago
parent
commit
5e7c96c004
  1. 10
      pages/massif/collectList.vue

10
pages/massif/collectList.vue

@ -73,6 +73,9 @@ export default {
data(){ data(){
return{ return{
searchVal:{ searchVal:{
baseId: this.$store.state.plantBaseInfoId,
userId: this.$store.getters['userInfo'].id,
enterpriseId: this.$store.getters['userInfo'].companyId,
pageNo:1, pageNo:1,
pageSize:6, pageSize:6,
search:"", search:"",
@ -93,11 +96,12 @@ export default {
this.searchVal.pageNo=1 this.searchVal.pageNo=1
}, },
async search(){ async search(){
var res=await request("/api/plantFarming/listAgrMaterials",{ var res=await request("/api/OutInManageApi/queryCollectingList",{
params: this.searchVal method:"post",
body: this.searchVal
}) })
if(res.statu){ if(res.statu){
this.list=this.list.concat(res.data.list) this.list=this.list.concat(res.data.records)
this.total=res.data.total this.total=res.data.total
this.searchVal.pageNo++ this.searchVal.pageNo++
if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"}) if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"})

Loading…
Cancel
Save