求和更改
This commit is contained in:
parent
1c02ab795b
commit
79f231cd0d
@ -59,8 +59,8 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
sum: '',
|
||||
count:'',
|
||||
sum: 0,
|
||||
count:0,
|
||||
scrollTop: 0,
|
||||
merId: '',
|
||||
UserApplylist:[]
|
||||
@ -88,13 +88,15 @@
|
||||
getAdminApplyListAPI(this.merId).then(res=>{
|
||||
console.log(res);
|
||||
this.UserApplylist=res.data.list
|
||||
this.count=res.data.count
|
||||
this.count=this.UserApplylist.length
|
||||
this.UserApplylist.forEach(item=>{
|
||||
item.create_time=item.create_time.substr(0,10)
|
||||
this.sum=parseInt(item.extract_money)+parseInt(item.extract_money)
|
||||
|
||||
console.log(parseInt(item.extract_money));
|
||||
})
|
||||
}).catch(err=>{
|
||||
for(let i =0; i<this.UserApplylist.length; i++){
|
||||
this.sum+=parseInt(this.UserApplylist[i].extract_money)
|
||||
}
|
||||
}).catch(err=>{
|
||||
console.log(err);
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user