liuyg
2021-12-10 56a2e064f54346cf312736d8652863c0e5d197b7
src/views/securityUnitChild/index.vue
@@ -151,6 +151,7 @@
      >
        <basic-container>
          <avue-crud
            v-if="visible"
            :option="option1"
            :data="data1"
            :page.sync="page1"
@@ -197,6 +198,7 @@
      >
        <basic-container>
          <avue-crud
            v-if="visible"
            :option="option2"
            :data="data2"
            :page.sync="page2"
@@ -236,13 +238,21 @@
      <!-- <span v-else-if="typeTABS.prop === 'tab4'" class="tab"> -->
      <el-tab-pane label="装备管理" name="tab4">
        <!-- 装备管理 -->
        <equipments :fromDeptId="departmentid" v-if="overzb"></equipments>
        <equipments
          v-if="overzb"
          :fromDeptId="departmentid"
          :windowHeight="windowHeight"
        ></equipments>
        <!-- </span> -->
      </el-tab-pane>
      <!-- <span v-else-if="typeTABS.prop === 'tab5'" class="tab"> -->
      <el-tab-pane label="车辆管理" name="tab5">
        <!-- 车辆管理 -->
        <car :fromDeptId="departmentid" v-if="overcar"></car>
        <car
          :fromDeptId="departmentid"
          v-if="overcar"
          :windowHeight="windowHeight"
        ></car>
        <!-- </span> -->
      </el-tab-pane>
      <!-- <span v-else-if="typeTABS.prop === 'tab6'" class="tab">
@@ -337,7 +347,7 @@
import licence from "./licence.vue";
import businessLicense from "./businessLicense.vue";
import social from "./social.vue";
import { mapState } from "vuex";
import { mapGetters } from "vuex";
import { getRoleDetail } from "@/api/system/role";
export default {
@@ -373,6 +383,7 @@
      ],
    };
    return {
      visible: false,
      overcar: false, //结决id传入、信息获取的优先级
      overzb: false, //结决id传入、信息获取的优先级
      overcar: false, //结决id传入、信息获取的优先级
@@ -534,7 +545,7 @@
        tip: false,
        searchSize: "mini",
        searchMenuSpan: 8,
        height: 563,
        height: "auto",
        menuWidth: 200,
        align: "center",
        selection: true,
@@ -557,7 +568,7 @@
        tip: false,
        searchSize: "mini",
        searchMenuSpan: 8,
        height: 563,
        height: "auto",
        menuWidth: 200,
        menuAlign: "center",
        align: "center",
@@ -568,9 +579,7 @@
    };
  },
  computed: {
    ...mapState({
      userInfo: (state) => state.user.userInfo,
    }),
    ...mapGetters(["userInfo", "windowHeight"]),
    chuzitime() {
      return this.data1.capitaltime;
    },
@@ -814,7 +823,7 @@
    //
    onLoad1(page, params = {}) {
      this.loading1 = true;
      console.log(page, params, 3435434);
      // console.log(page, params, 3435434);
      params["deptId"] = this.departmentid;
      getdataOnce1(
        page.currentPage,
@@ -825,11 +834,11 @@
        const data = res.data.data;
        this.page1.total = data.total;
        this.data1 = data.records;
        console.log(this.data1);
        // console.log(this.data1);
        this.loading1 = false;
        this.$refs.crudrec1.refreshTable();
        this.$refs.crudrec1.doLayout();
        // this.$refs.crudrec1.refreshTable();
        // this.$refs.crudrec1.doLayout();
      });
      // onLoad1(page, params = {}) {
      //   this.loading1 = true;
@@ -975,7 +984,7 @@
        const data = res.data.data;
        this.page2.total = data.total;
        this.data2 = data.records;
        console.log(this.data2);
        // console.log(this.data2);
        this.loading2 = false;
        this.$refs.crudrec2.refreshTable();
        this.$refs.crudrec2.doLayout();
@@ -999,7 +1008,7 @@
        if (that.readLock("danweidata") != null) {
          row = JSON.parse(that.readLock("danweidata"));
          // that.obj0.title = row.enterprisename;
          console.log(row, "rowneibu");
          // console.log(row, "rowneibu");
          that.departmentid = row.departmentid;
          for (var k in row) {
            that.obj0[k] = row[k];
@@ -1112,9 +1121,20 @@
    this.onloads();
  },
  watch: {
    // chuzitime() {
    // console.log(this.chuzitime, "chuzitime");
    // windowWidth() {
    //   console.log(this.windowWidth, "windowWidth");
    // },
    windowHeight() {
      // console.log(this.windowHeight, "windowHeight");
      this.option1.height = this.windowHeight - 320;
      this.option2.height = this.windowHeight - 320;
      this.visible = false;
      this.$nextTick(() => {
        this.visible = true;
        this.refreshChange1();
        this.refreshChange2();
      });
    },
  },
};
</script>