| | |
| | | if (!isNaN(value)) { |
| | | return prev + curr |
| | | } else { |
| | | return prev |
| | | return prev |
| | | } |
| | | }, 0) |
| | | sums[index] = this.tableList.tableColumn[index - 1].unit + "" + sums[index] |
| | | let unitIndex = this.tableList.tableColumn.findIndex(obj => obj.label === column.label); |
| | | sums[index]+=this.tableList.tableColumn[unitIndex].unit |
| | | } else { |
| | | sums[index] = "" |
| | | } |
| | |
| | | :table-list="tableList" |
| | | @selTableCol="selTableCol" |
| | | @tableRowClick="tableRowClick" |
| | | :showSummary="true" |
| | | > |
| | | <template slot="tableButton"> |
| | | <el-table-column label="操作" width="210" align="center"> |
| | |
| | | prop: "unit", |
| | | width: 120, |
| | | default: false, |
| | | isShowColumn: showcol.includes("价值") |
| | | isShowColumn: showcol.includes("单位") |
| | | }, |
| | | { |
| | | label: "价值", |