Browse Source

联调交易记录接口

master
邓宏 2 years ago
parent
commit
3341593090
  1. 26
      pages/massif/mana/transactions.vue

26
pages/massif/mana/transactions.vue

@ -123,11 +123,18 @@ export default {
searchVal:{
startTime:"",
endTime:"",
pageNo:1,
pageSize:5,
harvestId:""
},
list:[],
total:0,
dateType:"startTime",
}
},
created(){},
created(){
this.search()
},
methods:{
clean(){
this.list=[]
@ -136,7 +143,22 @@ export default {
},
async search(){
if(this.total==0||this.list.length<this.total){
var res=await request("/api/plantTrade/list",{
method:"post",
body: this.searchVal
})
if(res.statu){
this.list=this.list.concat(res.data.records)
this.total=res.data.total
this.searchVal.pageNo++
if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"})
}else{
uni.showModal({
title:"提示",
content:res.msg||"获取交易记录失败!",
showCancel:false,
})
}
}
},
}

Loading…
Cancel
Save