保安服务企业管理项目备份
liuyg
2021-12-10 56a2e064f54346cf312736d8652863c0e5d197b7
src/views/trainingRegistration/index.vue
@@ -3,6 +3,7 @@
    :class="[$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '']"
  >
    <avue-crud
      v-if="visibles"
      :option="option"
      :table-loading="loading"
      :data="data"
@@ -135,6 +136,7 @@
export default {
  data() {
    return {
      visibles: true,
      choiceName: [],
      loading: true,
      excelBox: false,
@@ -311,10 +313,10 @@
        // tip: false,
        // searchSize: "mini",
        searchMenuSpan: 6,
        height: 563,
        height: "auto",
        index: false,
        selectable: (row, index) => {
          console.log(row, index);
          // console.log(row, index);
          if (row.auditStatus == 4 && row.cancel == 1) {
            return true;
          } else {
@@ -342,7 +344,7 @@
      });
      return ids.join(",");
    },
    ...mapGetters(["userInfo", "permission"]),
    ...mapGetters(["userInfo", "permission", "windowWidth"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.notice_add, false),
@@ -356,6 +358,17 @@
    this.search["cancel"] = 1;
    this.search["auditStatus"] = 4;
    this.search["isExam"] = 1;
  },
  watch: {
    windowHeight() {
      // console.log(this.windowHeight, "windowHeight");
      this.option.height = this.windowHeight - 320;
      this.visibles = false;
      this.$nextTick(() => {
        this.visibles = true;
        this.refreshChange();
      });
    },
  },
  mounted() {
    // if (window.name == "baoming") {
@@ -554,7 +567,11 @@
      roleIds.forEach((roleId) => {
        getRoleDetail(roleId).then((res) => {
          var roleAlias = res.data.data.roleAlias;
          if (roleAlias == "保安公司管理员" || roleAlias == "保安" || roleAlias == "分公司管理员") {
          if (
            roleAlias == "保安公司管理员" ||
            roleAlias == "保安" ||
            roleAlias == "分公司管理员"
          ) {
            //如果是保安公司管理员
            params["deptId"] = that.userInfo.dept_id;
          }