marymelisa 4 éve
szülő
commit
a6343ec003

+ 4 - 0
src/assets/styles/mixin.less

@@ -1606,4 +1606,8 @@ input:-internal-autofill-selected {
             line-height: 30px;
         }
     }
+}
+
+.topTableHeight {
+    height: calc(100% - 28px);
 }

+ 2 - 7
src/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_floating_price/index.vue

@@ -1,8 +1,6 @@
 <template>
-  <!-- 仓单预售 浮动价预售-->
-  <div class="warehouse_pre_sale_floating_price">
-    浮动价预售
-  </div>
+    <!-- 仓单预售 浮动价预售-->
+    <div class="warehouse_pre_sale_floating_price topTableHeight">浮动价预售</div>
 </template>
 
 <script lang="ts">
@@ -17,7 +15,4 @@ export default defineComponent({
 });
 </script>
 <style lang="less">
-.warehouse_pre_sale_floating_price {
-    height: calc(100% - 28px);
-}
 </style>

+ 1 - 4
src/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_price/index.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 仓单预售 一口价预售-->
-  <div class="capacity_pre_sale_price">
+  <div class="capacity_pre_sale_price topTableHeight">
     一口价预售
   </div>
 </template>
@@ -17,7 +17,4 @@ export default defineComponent({
 });
 </script>
 <style lang="less">
-.warehouse_pre_sale_price {
-    height: calc(100% - 28px);
-}
 </style>

+ 16 - 21
src/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_floating_price/index.vue

@@ -1,22 +1,20 @@
 <template>
-  <!-- 仓单贸易 浮动价挂牌-->
-  <div class="warehouse_receipt_trade_floating_price">
-    <a-table :columns="columns"
-             class="srcollYTable"
-             :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }"
-             :pagination="false"
-             :loading="loading"
-             :expandedRowKeys="expandedRowKeys"
-             :customRow="Rowclick"
-             rowKey="key"
-             :data-source="tableList">
-    </a-table>
-    <!-- 右键 -->
-    <contextMenu :contextMenu="contextMenu"
-                 @cancel="closeContext"
-                 :list="secondBtn">
-    </contextMenu>
-  </div>
+    <!-- 仓单贸易 浮动价挂牌-->
+    <div class="warehouse_receipt_trade_floating_price topTableHeight">
+        <a-table
+            :columns="columns"
+            class="srcollYTable"
+            :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }"
+            :pagination="false"
+            :loading="loading"
+            :expandedRowKeys="expandedRowKeys"
+            :customRow="Rowclick"
+            rowKey="key"
+            :data-source="tableList"
+        ></a-table>
+        <!-- 右键 -->
+        <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="secondBtn"></contextMenu>
+    </div>
 </template>
 
 <script lang="ts">
@@ -60,7 +58,4 @@ export default defineComponent({
 });
 </script>
 <style lang="less">
-.warehouse_receipt_trade_floating_price {
-    height: calc(100% - 28px);
-}
 </style>

+ 2 - 4
src/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_price/index.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 仓单预售 一口价挂牌-->
-  <div class="warehouse_receipt_trade_price">一口价挂牌</div>
+  <div class="warehouse_receipt_trade_price topTableHeight">一口价挂牌</div>
 </template>
 
 <script lang="ts">
@@ -15,7 +15,5 @@ export default defineComponent({
 });
 </script>
 <style lang="less">
-.warehouse_receipt_trade_price {
-    height: calc(100% - 28px);
-}
+
 </style>