|
@@ -39,11 +39,7 @@ export default function getIandPListCom(type) {
|
|
// console.log(res);
|
|
// console.log(res);
|
|
placement.tableData=res.data.list || []
|
|
placement.tableData=res.data.list || []
|
|
placement.total=res.data.page&&res.data.page.total || 0
|
|
placement.total=res.data.page&&res.data.page.total || 0
|
|
- let amount=placement.tableData.reduce((pre,item)=>{
|
|
|
|
- return pre+item.amount
|
|
|
|
- },0)
|
|
|
|
- // 防止失真
|
|
|
|
- placement.amountTotal=Math.round(amount*100)/100
|
|
|
|
|
|
+ placement.amountTotal = res.data.amount_total
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|