|
@@ -41,7 +41,7 @@
|
|
|
>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="isUser"
|
|
|
+ prop="isUse"
|
|
|
align="center"
|
|
|
label="实际使用(元)"
|
|
|
>
|
|
@@ -114,6 +114,17 @@
|
|
|
console.log(data)
|
|
|
this.tableData = data;
|
|
|
this.PageData.total = res['data'][1][0]['total']
|
|
|
+ console.log(this.tableData)
|
|
|
+ this.tableData.forEach(item=>{
|
|
|
+ let actualuse = JSON.parse(item['actualuse']);
|
|
|
+ let applyfund = item['applyfund']?JSON.parse(item['applyfund']):[];
|
|
|
+ let isUse = 0;
|
|
|
+ let apply = 0;
|
|
|
+ for(let i in actualuse)isUse+=Number(actualuse[i]);
|
|
|
+ for(let j in applyfund)apply+=Number(applyfund[j]);
|
|
|
+ item['isUse'] = isUse;
|
|
|
+ item['apply'] = apply;
|
|
|
+ })
|
|
|
//后面还有申请经费和实际使用的计算
|
|
|
this.loading = false;
|
|
|
},err=>{
|