liuyg
2021-12-10 56a2e064f54346cf312736d8652863c0e5d197b7
src/views/securityEquipment/car.vue
@@ -7,6 +7,7 @@
      ]"
    >
      <avue-crud
        v-if="visible"
        :option="option"
        :data="data"
        :page.sync="page"
@@ -67,9 +68,23 @@
import { getdata, adddata, update, remove } from "@/api/car/car";
import { mapGetters } from "vuex";
export default {
  props: ["fromDeptId"],
  props: ["fromDeptId", "windowHeight"],
  watch: {
    windowHeight() {
      if (!this.windowHeight) {
        return;
      }
      this.option.height = this.windowHeight - 320;
      this.visible = false;
      this.$nextTick(() => {
        this.visible = true;
        this.refreshChange();
      });
    },
  },
  data() {
    return {
      visible: true,
      deptIds: "",
      excelBox: false,
      excelForm: {},
@@ -115,7 +130,7 @@
        searchSize: "mini",
        border: true,
        searchMenuSpan: 6,
        height: 583,
        height: "auto",
        menuWidth: 160,
        align: "center",
        selection: true,
@@ -140,6 +155,9 @@
    this.deptIds = this.userInfo.dept_id;
  },
  created() {
    if (this.windowHeight) {
      this.option.height = this.windowHeight - 320;
    }
    var that = this;
    if (
      this.userInfo.role_name == "装备管理员" ||