| | |
| | | formatter: this.directionFormatter, |
| | | }, |
| | | { |
| | | prop: "deposit_open", |
| | | label: "message.home.baozhengjin", |
| | | }, |
| | | { |
| | | prop: "trade_avg_price", |
| | | label: "message.home.chengjiaojunjia", |
| | | }, |
| | |
| | | }, |
| | | |
| | | { |
| | | prop: "volume_open", |
| | | prop: "shuliang", |
| | | label: "message.home.shuliang", |
| | | }, |
| | | { |
| | |
| | | directionFormatter(row) { |
| | | const { direction } = row; |
| | | return direction == "buy" |
| | | ? this.$t("message.home.pingduo") |
| | | : this.$t("message.home.pingkong"); |
| | | ? 'Long' |
| | | : 'Shot'; |
| | | }, |
| | | //获取列表数据 |
| | | getList(startTime = "", endTime = "", isReset) { |
| | |
| | | // item.close_time = item.close_time.split(' ')[0] + ' ' + initDate(item.close_time.split(' ')[1]) |
| | | // }) |
| | | this.tableData = res.data; |
| | | console.log(this.tableData,'this.tableData'); |
| | | this.tableData.forEach(item => { |
| | | let shuliang = item.deposit_open*item.lever_rate/item.trade_avg_price |
| | | item.shuliang = shuliang.toFixed(4) |
| | | }) |
| | | // console.log(this.tableData,'this.tableData'); |
| | | const noNext = res.data.length == 0 || res.data.length < 10; |
| | | this.noNext = noNext; |
| | | }); |