From d33eacc1f85ac3a736b33ba4713a19aae466d711 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 05 八月 2022 16:42:53 +0800
Subject: [PATCH] 1.做适应平板显示的内容大小

---
 src/views/wlgl/kwdy.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/views/wlgl/kwdy.vue b/src/views/wlgl/kwdy.vue
index 23f6f5d..33deba8 100644
--- a/src/views/wlgl/kwdy.vue
+++ b/src/views/wlgl/kwdy.vue
@@ -105,6 +105,7 @@
           />
           <el-table-column
             label="鎿嶄綔"
+            width="120"
           >
             <template slot-scope="{row}">
               <div class="operationClass">
@@ -241,18 +242,26 @@
     }
   },
   created() {
-    this.getStorageDefSearch()
-    this.getWareHouseSelect()
+    this.handleRequest()
   },
   mounted() {
     window.addEventListener('resize', this.getHeight)
     this.getHeight()
   },
   methods: {
+    handleRequest() {
+      this.getStorageDefSearch().then(res => {
+        if (res.code === '200') {
+          this.getWareHouseSelect()
+        }
+      })
+    },
+
     async getStorageDefSearch() {
       const res = await StorageDefSearch(this.form)
       this.tableData = res.data
       this.total = res.count
+      return { code: res.code }
     },
     async getWareHouseSelect() {
       const { data: res } = await WareHouseSelect()
@@ -364,8 +373,8 @@
     getHeight() {
       this.$nextTick(() => {
         this.mainHeight = window.innerHeight - 250
-        this.tableHeight = this.mainHeight - 100
-        if (window.innerHeight < 800) {
+        this.tableHeight = this.mainHeight - 50
+        if (window.innerHeight < 769) {
           this.tableHeight = this.tableHeight - 50
         }
       })

--
Gitblit v1.9.3