5.10航天ui交易所pc端,代码jiem-pc
lxf
2025-05-30 e4abde60d72c05dec734feea446528b602ffd658
src/components/constract/PerpetualContract/positionCom/currentPosition.vue
@@ -17,9 +17,9 @@
            <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>
@@ -81,9 +81,15 @@
      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",
@@ -107,14 +113,14 @@
          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: [],
@@ -148,7 +154,7 @@
    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 }) {