huangbin 4 år sedan
förälder
incheckning
f5bfc14d45

+ 10 - 3
src/views/business/exposure/list/futures/index.vue

@@ -15,9 +15,16 @@
     <!-- 明细 -->
     <Description v-if="visible"
                  @close="closeDrawer"
-                 :columns="columnsDetail"
-                 :tabList="tabList"
-                 :tableList="detailTableList" />
+                 @changeTab="changeTab"
+                 :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>
 

+ 9 - 3
src/views/business/exposure/list/realTime/index.vue

@@ -29,9 +29,15 @@
     <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>
 

+ 12 - 6
src/views/business/exposure/list/spot/index.vue

@@ -11,17 +11,23 @@
              :pagination="false"
              rowKey="key"
              :data-source="tableList">
-        <template #decreaseqty="{ record }">
-            <span>{{ record.decreaseqty.toFixed(2) + " " + record.enumdicname }}</span>
-        </template>
+      <template #decreaseqty="{ record }">
+        <span>{{ record.decreaseqty.toFixed(2) + " " + record.enumdicname }}</span>
+      </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>