| | |
| | | }, |
| | | ratioFormatter(row) { |
| | | const { change_ratio } = row; |
| | | const ratio = `${bigDecimal.divide(change_ratio, 100, 4)}%`; |
| | | const ratio = `${bigDecimal.divide(change_ratio * 100, 100, 2)}%`; |
| | | return ratio; |
| | | }, |
| | | directionFormatter(row, column, val) { |
| | |
| | | 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", |
| | | }, |
| | | { |
| | |
| | | // item.close_time = item.close_time.split(' ')[0] + ' ' + initDate(item.close_time.split(' ')[1]) |
| | | // }) |
| | | this.tableData = res.data; |
| | | 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; |
| | |
| | | <div class="margin-top-bottom20"> |
| | | <total-assets :pageType="'financial'"></total-assets> |
| | | <div class="tab-customize-box"> |
| | | <el-input v-model="bizhong" style="width: 150px;" placeholder="搜索币种"/> |
| | | <el-button type="primary" style="margin-left: 10px;margin-right: 20px;" @click="getList">查询</el-button> |
| | | <el-checkbox v-model="yangCangchecked" label="隐藏0资产" size="large" @change="getList" /> |
| | | <el-input v-model="bizhong" style="width: 150px;" :placeholder="$t('message.user.sousuobizhong')"/> |
| | | <el-button type="primary" style="margin-left: 10px;margin-right: 20px;" @click="getList">{{ $t('message.user.chaxun') }}</el-button> |
| | | <el-checkbox v-model="yangCangchecked" :label="$t('message.user.yincangzichan')" size="large" @change="getList" /> |
| | | </div> |
| | | </div> |
| | | <div> |