Commit 8ab8a8eb authored by godwithdh's avatar godwithdh

boss

parent 4b08bebf
......@@ -102,7 +102,16 @@ export default {
]
},"加载中",{})
if(typeof value=='object'&&value.length>0){
this.list=value
this.list=value.map(v=>{
if(!v.nAmount){
v.nPercent=0
}else if(!v.nPercent){
v.nPercent=v.nAmount>0?100:-100
}else{
v.nPercent=Math.round((v.nAmount-v.nAmounted)/v.nAmounted*100)
}
return v;
})
}else{
this.$vux.confirm.show({
title:"提示",
......
......@@ -82,7 +82,7 @@ export default{
}else if(v.nAmount==0){
v.rate=0
}else{
v.rate=Math.round((v.nAmount-v.nAmounted)/v.nAmounted*100)/100
v.rate=Math.round((v.nAmount-v.nAmounted)/v.nAmounted*100)
}
return v;
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment