Browse Source

表格暂无数据修改

marymelisa 4 years ago
parent
commit
5f76065e9c

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

@@ -2104,6 +2104,7 @@ input:-internal-autofill-selected {
                 max-height: calc(100vh - 378px);
                 background: @m-black2;
             }
+            
         }
     }
     .srcollYTableNoBottom {
@@ -2114,6 +2115,17 @@ input:-internal-autofill-selected {
             }
         }
     }
+    .noPlaceHolder {
+        .ant-table-placeholder {
+            display: none;
+        }
+    }
+    .hasPlaceHolder {
+        .ant-table-placeholder {
+            .position(absolute, 28px, auto, auto, 50%);
+            margin-left: -56px;
+        }
+    }
 }
 // 下半部分表格高度
 .layout-bottom {

+ 1 - 1
src/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_basis_difference/index.vue

@@ -3,7 +3,7 @@
     <div class="topTableHeight">
         <a-table
             :columns="columns"
-            :class="['srcollYTable', isBottom ? 'secondTabTable' : 'secondTabTableNoBottom']"
+            :class="['srcollYTable', isBottom ? 'secondTabTable' : 'secondTabTableNoBottom', getQuoteList().length ? 'noPlaceHolder' : 'hasPlaceHolder']"
             :scroll="{ x: '100%', y: isBottom ? 'calc(100vh- 407px)' : 'calc(100vh - 167px)' }"
             :pagination="false"
             :loading="loading"

+ 4 - 1
src/views/market/spot_trade/spot_trade_order_transaction/spot_trade_order_transaction_listing_transfer/index.vue

@@ -3,7 +3,7 @@
     <div class="topTableHeight">
         <a-table
             :columns="columns"
-            :class="['srcollYTable', isBottom ? 'secondTabTable' : 'secondTabTableNoBottom']"
+            :class="['srcollYTable', isBottom ? 'secondTabTable' : 'secondTabTableNoBottom', getQuoteList().length ? 'noPlaceHolder' : 'hasPlaceHolder']"
             :scroll="{ x: '100%', y: isBottom ? 'calc(100vh- 407px)' : 'calc(100vh - 167px)' }"
             :pagination="false"
             :loading="loading"
@@ -120,4 +120,7 @@ export default defineComponent({
 });
 </script>
 <style lang="less">
+.noData {
+    .position(absolute, 28px, 0, 0, 0);
+}
 </style>

+ 1 - 1
src/views/market/spot_trade/spot_trade_reference_market/index.vue

@@ -3,7 +3,7 @@
     <div class="topTableHeight">
         <a-table
             :columns="columns"
-            :class="['srcollYTable', isBottom ? '' : 'srcollYTableNoBottom']"
+            :class="['srcollYTable', isBottom ? '' : 'srcollYTableNoBottom', goodsList.length ? 'noPlaceHolder' : 'hasPlaceHolder']"
             :scroll="{ x: '100%', y: isBottom ? 'calc(100vh - 378px)' :  'calc(100vh - 138px)'}"
             :pagination="false"
             :loading="loading"

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

@@ -4,7 +4,7 @@
         <Filter :enumName="name" @buy="buyOpen" @search="search" />
         <a-table
             :columns="columns"
-            :class="['srcollYTable', isBottom ? 'condSecondTabTable' : 'condSecondTabTableNoBottom']"
+            :class="['srcollYTable', isBottom ? 'condSecondTabTable' : 'condSecondTabTableNoBottom', tableList.length ? 'noPlaceHolder' : 'hasPlaceHolder']"
             :scroll="{ x: '100%', y: isBottom ? 'calc(100vh- 443px)' : 'calc(100vh - 196px)' }"
             :pagination="false"
             :loading="loading"

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

@@ -4,7 +4,7 @@
         <Filter :enumName="name" @search="search" @buy="buyOpen" />
         <a-table
             :columns="columns"
-            :class="['srcollYTable', isBottom ? 'condSecondTabTable' : 'condSecondTabTableNoBottom']"
+            :class="['srcollYTable', isBottom ? 'condSecondTabTable' : 'condSecondTabTableNoBottom', tableList.length ? 'noPlaceHolder' : 'hasPlaceHolder']"
             :scroll="{ x: '100%', y: isBottom ? 'calc(100vh- 443px)' : 'calc(100vh - 196px)' }"
             :pagination="false"
             :loading="loading"

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

@@ -4,7 +4,7 @@
         <Filter :enumName="name" @search="search" @buy="buyOpen" />
         <a-table
             :columns="columns"
-            :class="['srcollYTable', isBottom ? 'condSecondTabTable' : 'condSecondTabTableNoBottom']"
+            :class="['srcollYTable', isBottom ? 'condSecondTabTable' : 'condSecondTabTableNoBottom', tableList.length ? 'noPlaceHolder' : 'hasPlaceHolder']"
             :scroll="{ x: '100%', y: isBottom ? 'calc(100vh- 443px)' : 'calc(100vh - 196px)' }"
             :pagination="false"
             :loading="loading"

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

@@ -4,7 +4,7 @@
         <Filter :enumName="name" @search="search" @buy="buyOpen" />
         <a-table
             :columns="columns"
-            :class="['srcollYTable', isBottom ? 'condSecondTabTable' : 'condSecondTabTableNoBottom']"
+            :class="['srcollYTable', isBottom ? 'condSecondTabTable' : 'condSecondTabTableNoBottom', tableList.length ? 'noPlaceHolder' : 'hasPlaceHolder']"
             :scroll="{ x: '100%', y: isBottom ? 'calc(100vh- 443px)' : 'calc(100vh - 196px)' }"
             :pagination="false"
             :loading="loading"