소스 검색

commit 解决ui问题

yu jie 4 년 전
부모
커밋
1c0dbbd22d
2개의 변경된 파일27개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/views/report/future_report/list/future_report/index.vue
  2. 21 0
      src/views/report/sum_pl_report/list/sum_pl_report/index.vue

+ 6 - 0
src/views/report/future_report/list/future_report/index.vue

@@ -11,6 +11,12 @@
              :customRow="Rowclick"
              rowKey="key"
              :data-source="tableList">
+
+        <!-- 持仓方向 -->
+        <template #buyorsell="{ record }">
+            <a>{{ record.buyorsell === 1 ? "卖出" : "买入" }}</a>
+        </template>
+
     </a-table>
     <!-- 明细 -->
     <Description v-if="visible"

+ 21 - 0
src/views/report/sum_pl_report/list/sum_pl_report/index.vue

@@ -11,6 +11,27 @@
              :customRow="Rowclick"
              rowKey="key"
              :data-source="tableList">
+        <!-- 出现浮点失真  强行处理-->
+        <template #spotactualpl="{ record }">
+            <a>{{ record.spotactualpl.toFixed(2) }}</a>
+        </template>
+
+        <template #spotfloatpl="{ record }">
+            <a>{{ record.spotfloatpl.toFixed(2) }}</a>
+        </template>
+
+        <template #futureactualpl="{ record }">
+            <a>{{ record.futureactualpl.toFixed(2) }}</a>
+        </template>
+
+        <template #sumactualpl="{ record }">
+            <a>{{ record.sumactualpl.toFixed(2) }}</a>
+        </template>
+
+        <template #sumpl="{ record }">
+            <a>{{ record.sumpl.toFixed(2) }}</a>
+        </template>
+
     </a-table>
     <!-- 明细 -->
     <Description v-if="visible"