lilei 4 ヶ月 前
コミット
5fc55aefdc

+ 5 - 5
src/views/salesManagement/waitDispatchNew/detailProductList.vue

@@ -25,7 +25,7 @@
         row-key-field-name="id"
         :checkbox-option="checkboxOption"
       />
-      <div v-show="showEmpty" class="empty-data1"><a-empty description="暂无产品" :image="simpleImage"/></div>
+      <div v-show="showEmpty" class="empty-data3"><a-empty description="暂无产品" :image="simpleImage"/></div>
     </a-spin>
 
   </div>
@@ -255,9 +255,9 @@ export default {
       this.showEmpty = this.dataSource.length <= 0
       const len = this.dataSource.length
       if (len < 8) {
-        this.tableHeight = (len + 1) * 34
+        this.tableHeight = this.showEmpty ? 200 : (len + 1) * 34 - 1
       } else {
-        this.tableHeight = (this.showEmpty ? 300 : this.maxHeight) + 'px'
+        this.tableHeight = this.maxHeight
       }
       this.spinning = false
       this.disabled = false
@@ -363,12 +363,12 @@ export default {
 }
 </script>
   <style lang="less">
-  .empty-data1{
+  .empty-data3{
         color: #999;
         text-align: center;
         padding: 20px;
         position: absolute;
-        bottom: 50px;
+        top: 30px;
         width: 100%;
     }
     .ve-table-body-td{