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/resource/oss.vue |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/views/resource/oss.vue b/src/views/resource/oss.vue
index 7acb722..c44ff95 100644
--- a/src/views/resource/oss.vue
+++ b/src/views/resource/oss.vue
@@ -1,6 +1,13 @@
 <template>
-  <basic-container class="oos">
+  <basic-container
+    :class="[
+      'oos',
+      $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
+    ]"
+  >
     <avue-crud
+      class="tablesss"
       :option="option"
       :table-loading="loading"
       :data="data"
@@ -95,6 +102,7 @@
         pageSize: 10,
         currentPage: 1,
         total: 0,
+        ...this.$store.state.control.changePageSize,
       },
       selectionList: [],
       option: {
@@ -108,10 +116,11 @@
         searchShowBtn: false,
         viewBtn: true,
         selection: true,
-        menuWidth: 400,
+        menuWidth: 430,
         labelWidth: 100,
         dialogWidth: 880,
         dialogClickModal: false,
+        ...this.$store.state.control.clearOtherBut,
         column: [
           {
             label: "分类",
@@ -155,6 +164,7 @@
           {
             label: "资源地址",
             prop: "endpoint",
+            overHidden: true,
             span: 24,
             rules: [
               {
@@ -303,6 +313,9 @@
       return ids.join(",");
     },
   },
+  mounted() {
+    this.$store.commit("setWindowSizeHeightAdd");
+  },
   methods: {
     rowSave(row, done, loading) {
       add(row).then(
@@ -449,6 +462,7 @@
         const data = res.data.data;
         this.page.total = data.total;
         this.data = data.records;
+        this.$store.commit("setWindowSizeHeightAdd");
         this.loading = false;
         this.selectionClear();
       });

--
Gitblit v1.9.3