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/desk/notice.vue |   40 ++++++++++++++++++++++++++--------------
 1 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/src/views/desk/notice.vue b/src/views/desk/notice.vue
index 907221e..c218268 100644
--- a/src/views/desk/notice.vue
+++ b/src/views/desk/notice.vue
@@ -1,6 +1,13 @@
 <template>
-  <basic-container class="notice">
+  <basic-container
+    :class="[
+      'notice',
+      $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
+      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
+    ]"
+  >
     <avue-crud
+      class="tablesss"
       :option="option"
       :table-loading="loading"
       :data="data"
@@ -37,11 +44,11 @@
         <el-tag>{{ row.categoryName }}</el-tag>
       </template>
       <template slot-scope="{ type, size, row }" slot="menu">
-        <el-button 
-        :size="size" 
-        :type="type" 
-        @click="handleUploadPage(row)"
-        v-if="permission.notice_upload"
+        <el-button
+          :size="size"
+          :type="type"
+          @click="handleUploadPage(row)"
+          v-if="permission.notice_upload"
           >附件上传
         </el-button>
       </template>
@@ -70,6 +77,7 @@
         pageSize: 10,
         currentPage: 1,
         total: 0,
+        ...this.$store.state.control.changePageSize,
       },
       selectionList: [],
       option: {
@@ -88,9 +96,10 @@
         excelBtn: false,
         menuWidth: 380,
         dialogClickModal: false,
-        addBtnText:"发布",
-        addTitle:"发布",
-        saveBtnText:'发布',
+        addBtnText: "发布",
+        addTitle: "发布",
+        saveBtnText: "发布",
+        ...this.$store.state.control.clearOtherBut,
         column: [
           {
             label: "通知标题",
@@ -182,6 +191,7 @@
                 trigger: "click",
               },
             ],
+            width: 155,
           },
           {
             label: "通知内容",
@@ -221,7 +231,9 @@
       return ids.join(",");
     },
   },
-  mounted() {},
+  mounted() {
+    this.$store.commit("setWindowSizeHeightAdd");
+  },
   methods: {
     //跳转到附近列表页面
     handleUploadPage(row) {
@@ -229,14 +241,14 @@
         path: `/resource/uploadNotice`,
         query: {
           deptId: row.deptId,
-          noticeId:row.id,
+          noticeId: row.id,
         },
       });
     },
     rowSave(row, done, loading) {
       row.category = 2;
       row.deptId = this.deptId;
-      row['type'] = 1;
+      row["type"] = 1;
       add(row).then(
         () => {
           this.onLoad(this.page);
@@ -375,6 +387,7 @@
         const data = res.data.data;
         this.page.total = data.total;
         this.data = data.records;
+        this.$store.commit("setWindowSizeHeightAdd");
         this.loading = false;
         this.selectionClear();
       });
@@ -383,5 +396,4 @@
 };
 </script>
 
-<style>
-</style>
+<style></style>

--
Gitblit v1.9.3