src/components/constract/PerpetualContract/createOrder.vue
@@ -144,7 +144,7 @@ <!-- 保证金 --> <div class="submit-info-item"> <div>{{ $t("message.home.baozhengjin") }}:</div> <div>{{ getMargin }} {{ unit }}</div> <div>{{ (getMargin/parseInt(current_lever_rate)).toFixed(2) }} {{ unit }}</div> </div> <!-- 手续费 --> <div class="submit-info-item"> src/components/constract/PerpetualContract/positionCom/currentPosition.vue
@@ -112,7 +112,7 @@ timer: null, tables: [ { prop: "volume", //volume_open持仓总张数,volume表示剩余 prop: "shuliang", //volume_open持仓总张数,volume表示剩余 label: "message.home.shuliang", }, { @@ -190,8 +190,8 @@ }, directionFormatter(row, column, val) { return val === "buy" ? this.$t("message.home.kaiduo") : this.$t("message.home.kaikong"); ? 'Long' : 'Shot'; }, formatterData(row) { const ratio = this.ratioFormatter(row); @@ -228,6 +228,11 @@ }; Axios.contractOrderList(data).then((res) => { this.tableData = res.data; this.tableData.forEach(item => { let shuliang = item.deposit*item.lever_rate/item.trade_avg_price item.shuliang = shuliang.toFixed(4) }) console.log(this.tableData,'this.tableData'); this.$emit("getPositionNum", res.data.length); // 未实现盈亏 const profitLoss = res.data.reduce( src/components/constract/PerpetualContract/positionCom/historyApplyPosition.vue
@@ -210,8 +210,8 @@ directionFormatter(row) { const { direction } = row; return direction == "buy" ? this.$t("message.home.pingduo") : this.$t("message.home.pingkong"); ? 'Long' : 'Shot'; }, // directionFormatter(row) { // const map = { src/components/constract/PerpetualContract/positionCom/historyOrder.vue
@@ -162,8 +162,8 @@ directionFormatter(row) { const { direction } = row; return direction == "buy" ? this.$t("message.home.pingduo") : this.$t("message.home.pingkong"); ? 'Long' : 'Shot'; }, //获取列表数据 getList(startTime = "", endTime = "", isReset) {