| | |
| | | label: "message.home.baozhengjin", |
| | | }, |
| | | { |
| | | prop: "profit", |
| | | prop: "change_ratio", |
| | | label: "message.user.weishixianyingkui(shouyilv)", |
| | | formatter: this.formatterData, |
| | | formatter: this.formatterDatas, |
| | | }, |
| | | ], |
| | | tableData: [], |
| | |
| | | const profit = Number(row.profit).toFixed(4); |
| | | return `${profit}(${ratio})`; |
| | | }, |
| | | formatterDatas(row) { |
| | | const ratio = row.change_ratio+'%' ; |
| | | const profit = Number(row.profit).toFixed(4); |
| | | return `${profit}(${ratio})`; |
| | | }, |
| | | //设置单个单元格样式 行下标:rowIndex 列下标:columnIndex |
| | | cellStyle({ row, column, rowIndex, columnIndex }) { |
| | | if (columnIndex == 6) { |