Administrator
2021-11-27 8f70db3e82e273387e133e7d429be48dfc34e262
保安员,证书申请权限修改
2 files modified
52 ■■■■ changed files
src/views/securityGuard/securityGuard.vue 39 ●●●●● patch | view | raw | blame | history
src/views/trainExam/performance.vue 13 ●●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue
@@ -86,6 +86,7 @@
              size="small"
              plain
              icon="el-icon-download"
              v-if="permission.export_security_info"
              @click="handleExportSecurityInfo"
              >保安信息导出
            </el-button>
@@ -1256,6 +1257,7 @@
  },
  beforeCreate() {},
  created() {
    var that = this;
    // console.log(this.userInfo, 9999);
    if (this.userInfo.role_name == "办证管理员") {
      this.search["userType"] = 7;
@@ -1274,6 +1276,19 @@
        column.defaultExpandAll = true;
        column.dicUrl =
          "/api/blade-system/dept/security_lazy-tree?deptId="+this.userInfo.dept_id;
      }else if(roleName == "公安管理员" ||
        roleName == "administrator"){
        var columnDept = that.findObject(that.option.column, "deptId");
            columnDept.dicUrl =
              "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
              that.userInfo.jurisdiction;
      }else {
          //查询保安单位信息(包含子级)
        const column = this.findObject(this.option.column, "deptId");
        // column.search = false;
        //默认全部展开
        column.dicUrl =
          "/api/blade-system/dept/security_lazy-tree";
      }
    })
@@ -2317,14 +2332,9 @@
            roleAlias == "administrator"
          ) {
            params["jurisdiction"] = that.userInfo.jurisdiction;
            var columnDept = that.findObject(that.option.column, "deptId");
            columnDept.dicUrl =
              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
              that.userInfo.jurisdiction;
            var ColumnDeptUpdate = that.findObject(that.option.group, "deptId");
            ColumnDeptUpdate.dicUrl =
              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
              that.userInfo.jurisdiction;
              "/api/blade-system/dept/security_lazy-tree?jurisdiction=" + that.userInfo.jurisdiction;
            //审查状态查询开启
            var columnExaminationType = that.findObject(
@@ -2333,28 +2343,13 @@
            );
            columnExaminationType.search = true;
            columnExaminationType.hide = false;
          } else if (roleAlias == "培训公司管理员") {
            //如果是培训公司管理员
            // params["trainingUnitId"] = that.userInfo.dept_id;
            var columnDept2 = that.findObject(that.option.column, "deptId");
            columnDept2.dicUrl =
              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
            var ColumnDeptUpdate2 = that.findObject(
              that.option.group,
              "deptId"
            );
            ColumnDeptUpdate2.dicUrl =
              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
          } else {
            var columnDept1 = that.findObject(that.option.column, "deptId");
            columnDept1.dicUrl =
              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
            var ColumnDeptUpdate1 = that.findObject(
              that.option.group,
              "deptId"
            );
            ColumnDeptUpdate1.dicUrl =
              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
              "/api/blade-system/dept/security_lazy-tree";
          }
          let values = {
src/views/trainExam/performance.vue
@@ -93,7 +93,7 @@
                type="primary"
                size="small"
                plain
                v-if="permission.securityGuard_security_paper_apply"
                v-if="permission.trainExam_performance_paper_apply"
                icon="el-icon-collection-tag"
                @click="handleSecurityPaperApply"
                >证书制证申请
@@ -664,6 +664,7 @@
            editDisplay: true,
            // 表单编辑时是否为查看模式
            editDetail: false,
            width: 58,
          },
          {
@@ -702,7 +703,9 @@
            // 表单编辑时是否禁止
            editDisabled: true,
            // 表单编辑时是否可见
            editDisplay: true,
            editDisplay: false,
            viewDetail: false,
            viewDisplay: false,
            // 表单编辑时是否为查看模式
            editDetail: false,
          },
@@ -738,9 +741,9 @@
            // 表单新增时是否为查看模式
            addDetail: false,
            // 表单编辑时是否禁止
            editDisabled: false,
            editDisabled: true,
            // 表单编辑时是否可见
            editDisplay: false,
            editDisplay: true,
            // 表单编辑时是否为查看模式
            editDetail: false,
          },
@@ -876,7 +879,7 @@
          return securityApply(data);
        })
        .then(() => {
          // this.$refs.crud.toggleSelection();
          this.$refs.questionBankCrud.toggleSelection();
          this.$message({
            type: "success",
            message: "操作成功!",