From 56a2e064f54346cf312736d8652863c0e5d197b7 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 10 Dec 2021 14:02:41 +0800
Subject: [PATCH] +样式适配以及培训公司登入只有企业名称做验证

---
 src/views/securityUnitChild/social.vue |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/views/securityUnitChild/social.vue b/src/views/securityUnitChild/social.vue
index b1f756c..cd71fd1 100644
--- a/src/views/securityUnitChild/social.vue
+++ b/src/views/securityUnitChild/social.vue
@@ -3,6 +3,7 @@
     :class="[$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '']"
   >
     <avue-crud
+      v-if="visible"
       :option="option"
       :table-loading="loading"
       :data="data"
@@ -84,6 +85,7 @@
       deptid = this.$store.getters.userInfo.dept_id;
     }
     return {
+      visible: true,
       form: { cardid: "" },
 
       query: {},
@@ -98,7 +100,7 @@
       selectionList: [],
       option: {
         height: "auto",
-        calcHeight: 30,
+        // calcHeight: 30,
         tip: false,
         searchShow: true,
         align: "center",
@@ -384,9 +386,21 @@
       this.$refs.crud.refreshTable();
       this.$refs.crud.doLayout();
     },
+    windowHeight() {
+      console.log(this.windowHeight);
+      this.option.height = this.windowHeight - 320;
+      this.visible = false;
+      this.$nextTick(() => {
+        this.visible = true;
+        this.refreshChange();
+      });
+    },
+  },
+  created() {
+    this.option.height = this.windowHeight - 320;
   },
   computed: {
-    ...mapGetters(["permission", "userInfo"]),
+    ...mapGetters(["permission", "userInfo", "windowHeight"]),
     permissionList() {
       return {
         addBtn: this.vaildData(this.permission.social_add, true),

--
Gitblit v1.9.3