From dc252ad2bd275f697c266e3c8b10cb7d540fdcaa Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Wed, 16 Feb 2022 17:08:11 +0800
Subject: [PATCH] 44个表格在1366*768下的适配,保安员管理-》保安员查询中操作栏更改,在用户表左侧控制栏同步高

---
 src/views/system/user.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index fa9c468..55bd067 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -1,7 +1,7 @@
 <template>
   <el-row class="users">
     <el-col :span="5">
-      <div class="box">
+      <div class="box changeBoxs">
         <el-scrollbar>
           <basic-container>
             <avue-tree
@@ -13,9 +13,15 @@
         </el-scrollbar>
       </div>
     </el-col>
-    <el-col :span="19">
-      <basic-container>
+    <el-col :span="19" class="clearBottomMargin">
+      <basic-container
+        :class="[
+          $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+          $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
+        ]"
+      >
         <avue-crud
+          class="tablesss"
           :option="option"
           :search.sync="search"
           :table-loading="loading"
@@ -217,11 +223,13 @@
         pageSize: 10,
         currentPage: 1,
         total: 0,
+        ...this.$store.state.control.changePageSize,
       },
       platformPage: {
         pageSize: 10,
         currentPage: 1,
         total: 0,
+        ...this.$store.state.control.changePageSize,
       },
       init: {
         roleTree: [],
@@ -275,6 +283,7 @@
         viewBtn: true,
         //dialogType: 'drawer',
         dialogClickModal: false,
+        ...this.$store.state.control.clearOtherBut,
         column: [
           {
             label: "登录账号",
@@ -738,6 +747,7 @@
     if (!website.tenantMode) {
       this.initData(website.tenantId);
     }
+    this.$store.commit("setWindowSizeHeightAdd");
   },
   methods: {
     nodeClick(data) {
@@ -975,6 +985,7 @@
         const data = res.data.data;
         this.page.total = data.total;
         this.data = data.records;
+        this.$store.commit("setWindowSizeHeightAdd");
         this.loading = false;
         this.selectionClear();
       });
@@ -1041,6 +1052,7 @@
         this.platformPage.total = data.total;
         this.platformData = data.records;
         this.platformLoading = false;
+        this.$store.commit("setWindowSizeHeightAdd");
         this.selectionClear();
       });
     },
@@ -1050,7 +1062,7 @@
 
 <style>
 .box {
-  height: 800px;
+  height: auto;
 }
 
 .el-scrollbar {

--
Gitblit v1.9.3