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/jcsz/zzjg.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/views/jcsz/zzjg.vue b/src/views/jcsz/zzjg.vue
index c2c86f4..9bca1ca 100644
--- a/src/views/jcsz/zzjg.vue
+++ b/src/views/jcsz/zzjg.vue
@@ -62,20 +62,24 @@
             prop="RowNum"
             width="50"
             label="搴忓彿"
+            fixed
           />
           <el-table-column
             prop="org_code"
             label="缁勭粐缂栫爜"
             sortable="custom"
+            min-width="110"
           />
           <el-table-column
             prop="org_name"
             label="缁勭粐鍚嶇О"
             sortable="custom"
+            min-width="110"
           />
           <el-table-column
             prop="description"
             label="缁勭粐绫诲瀷"
+            width="110"
             sortable="custom"
           >
             <template slot-scope="{row}">
@@ -90,6 +94,7 @@
             prop="parentorg_name"
             label="涓婄骇鍗曚綅"
             sortable="custom"
+            min-widt="110"
           >
             <template slot-scope="{row}">
               <div v-if="row.parentorg_name===null">/</div>
@@ -99,15 +104,19 @@
           <el-table-column
             prop="lm_user"
             label="鍒涘缓浜哄憳"
+            width="110"
             sortable="custom"
           />
           <el-table-column
             prop="lm_date"
             label="鍒涘缓鏃堕棿"
+            width="160"
             sortable="custom"
           />
           <el-table-column
+            fixed="right"
             label="鎿嶄綔"
+            width="120"
           >
             <template slot-scope="{row}">
               <div class="operationClass">
@@ -192,7 +201,6 @@
 import Pagination from '@/components/Pagination'
 import { AddUpdateOrganization, DeleteOrganization, OrganizationSearch, PrentOrganization } from '@/api/jcsz'
 import { getCookie } from '@/utils/auth'
-import { getNewEncodingRules } from '@/utils/global'
 
 const SER_HZ = /^[\u4e00-\u9fa5]+$/
 export default {
@@ -438,7 +446,10 @@
     getHeight() {
       this.$nextTick(() => {
         this.mainHeight = window.innerHeight - 250
-        this.tableHeight = this.mainHeight - 100
+        this.tableHeight = this.mainHeight - 50
+        if (window.innerHeight < 769) {
+          this.tableHeight = this.tableHeight - 50
+        }
       })
     }
   }

--
Gitblit v1.9.3