浏览代码

期货报表

huangbin 4 年之前
父节点
当前提交
d3acfc6114
共有 1 个文件被更改,包括 13 次插入7 次删除
  1. 13 7
      src/views/report/future_report/list/future_report/index.vue

+ 13 - 7
src/views/report/future_report/list/future_report/index.vue

@@ -12,19 +12,25 @@
              rowKey="key"
              :data-source="tableList">
 
-        <!-- 持仓方向 -->
-        <template #buyorsell="{ record }">
-            <a>{{ record.buyorsell === 1 ? "卖出" : "买入" }}</a>
-        </template>
+      <!-- 持仓方向 -->
+      <template #buyorsell="{ record }">
+        <a>{{ record.buyorsell === 1 ? "卖出" : "买入" }}</a>
+      </template>
 
     </a-table>
     <!-- 明细 -->
     <Description v-if="visible"
                  @close="closeDrawer"
                  @changeTab="changeTab"
-                 :columns="columnsDetail"
-                 :tabList="tabList"
-                 :tableList="detailTableList" />
+                 :tabList="tabList">
+      <a-table :columns="columnsDetail"
+               class="topTable"
+               :pagination="false"
+               rowKey="key"
+               :data-source="detailTableList"
+               :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }">
+      </a-table>
+    </Description>
   </div>
 </template>