| | |
| | | <span class="name" |
| | | >{{ scope.row.name }} {{ $t("message.home.yongxu") }}</span |
| | | > |
| | | <span class="lever_rate">{{ |
| | | <!-- <span class="lever_rate">{{ |
| | | scope.row.lever_rate ? `${scope.row.lever_rate}x` : "1x" |
| | | }}</span> |
| | | }}</span> --> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | timer: null, |
| | | tables: [ |
| | | { |
| | | prop: "profit", |
| | | label: "message.user.weishixianyingkui(shouyilv)", |
| | | formatter: this.formatterData, |
| | | }, |
| | | { |
| | | prop: "volume", //volume_open持仓总张数,volume表示剩余 |
| | | label: "message.home.zhangshu", |
| | | }, |
| | | |
| | | { |
| | | prop: "trade_avg_price", |
| | | label: "message.user.kaicangjiage", |
| | |
| | | prop: "deposit", |
| | | label: "message.home.baozhengjin", |
| | | }, |
| | | |
| | | // { |
| | | // prop: "qiangPing", |
| | | // label: "message.home.qiangping", |
| | | // }, |
| | | { |
| | | prop: "profit", |
| | | label: "message.user.weishixianyingkui(shouyilv)", |
| | | formatter: this.formatterData, |
| | | }, |
| | | { |
| | | prop: "qiangPing", |
| | | label: "message.home.qiangping", |
| | | prop: "create_time", |
| | | label: "message.jiaoyi.jiaoyishijian", // 下单时间 |
| | | }, |
| | | ], |
| | | tableData: [], |
| | |
| | | formatterData(row) { |
| | | const ratio = this.ratioFormatter(row); |
| | | const profit = Number(row.profit).toFixed(4); |
| | | return `${profit}(${ratio})`; |
| | | return `${profit}/n(${ratio})`; |
| | | }, |
| | | //设置单个单元格样式 行下标:rowIndex 列下标:columnIndex |
| | | cellStyle({ row, column, rowIndex, columnIndex }) { |