liuyg
2021-12-10 56a2e064f54346cf312736d8652863c0e5d197b7
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),