Administrator
2021-12-16 7434e5ccf889189d24e7f4e655fbf752a0883d5b
src/views/securityUnit/selfRecruitedSecurityGuard.vue
@@ -1,6 +1,11 @@
<template>
  <basic-container>
    <div class="securityUnit">
    <div
      :class="[
        'securityUnit',
        $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
      ]"
    >
      <avue-crud
        :option="option"
        :data="data"
@@ -158,6 +163,7 @@
        pageSize: 10,
        currentPage: 1,
        total: 0,
        ...this.$store.state.control.changePageSize,
      },
      treeData: [],
@@ -262,12 +268,13 @@
        tip: false,
        searchSize: "mini",
        searchMenuSpan: 6,
        height: 583,
        height: "auto",
        menuWidth: 275,
        align: "center",
        border: true,
        selection: true,
        ...this.$store.state.control.clearOtherBut,
        column: [
          ...column,
          {
@@ -292,6 +299,16 @@
  created() {
    this.option0.column[4].value = 0;
    this.option0.column[4].disabled = true;
    if (this.userInfo.role_name == "培训公司管理员") {
      for (let k in this.option0.column) {
        if (this.option0.column[k].prop == "enterprisename") {
          continue;
        }
        if (this.option0.column[k].rules) {
          delete this.option0.column[k].rules;
        }
      }
    }
  },
  computed: {
    ...mapGetters(["userInfo"]),
@@ -484,6 +501,9 @@
        console.log("是公安add jurisdiction");
        params["jurisdiction"] = this.userInfo.jurisdiction;
      }
      if (this.userInfo.role_name == "培训公司管理员") {
        params["createDeptId"] = this.userInfo.dept_id;
      }
      params["stats"] = 0;
      this.loading = true;
      getdata(