钟日健
2022-02-24 93108de1561810561f351c17c144950a37fdd06d
新增民警角色权限判断
31 files modified
167 ■■■■■ changed files
src/views/accreditationRecords/accreditationRecords.vue 4 ●●●● patch | view | raw | blame | history
src/views/accreditationRecords/accreditationRecordsPaper.vue 6 ●●●● patch | view | raw | blame | history
src/views/desk/notification.vue 12 ●●●● patch | view | raw | blame | history
src/views/dispatch/dispatch.vue 4 ●●●● patch | view | raw | blame | history
src/views/dispatch/dispatchChildoperable.vue 4 ●●●● patch | view | raw | blame | history
src/views/licenseApproval/branchOffice.vue 2 ●●● patch | view | raw | blame | history
src/views/licenseApproval/cancellationOfFiling.vue 2 ●●● patch | view | raw | blame | history
src/views/licenseApproval/changeLegalPerson.vue 2 ●●● patch | view | raw | blame | history
src/views/licenseApproval/crossRegion.vue 2 ●●● patch | view | raw | blame | history
src/views/licenseApproval/securityGuard.vue 2 ●●● patch | view | raw | blame | history
src/views/licenseApproval/securityPermit.vue 7 ●●●●● patch | view | raw | blame | history
src/views/licenseApproval/securityTraining.vue 2 ●●● patch | view | raw | blame | history
src/views/recruitmentManagement/index.vue 4 ●●●● patch | view | raw | blame | history
src/views/registerUnit/registerUnit.vue 4 ●●●● patch | view | raw | blame | history
src/views/securityEquipment/car.vue 4 ●●●● patch | view | raw | blame | history
src/views/securityEquipment/equipments.vue 4 ●●●● patch | view | raw | blame | history
src/views/securityEquipment/gun.vue 4 ●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue 6 ●●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuardOnce copy.vue 2 ●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuardOnce.vue 2 ●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard指纹自动识别(集成VUE报错)-9.vue 2 ●●● patch | view | raw | blame | history
src/views/securityUnit/localCompany.vue 15 ●●●●● patch | view | raw | blame | history
src/views/securityUnit/securityTraining.vue 15 ●●●●● patch | view | raw | blame | history
src/views/securityUnit/selfRecruitedSecurityGuard.vue 15 ●●●●● patch | view | raw | blame | history
src/views/securityUnit/transRegionalcompany.vue 15 ●●●●● patch | view | raw | blame | history
src/views/securityUnitChild/index copy.vue 2 ●●● patch | view | raw | blame | history
src/views/system/user copy.vue 2 ●●● patch | view | raw | blame | history
src/views/system/user.vue 14 ●●●● patch | view | raw | blame | history
src/views/trainExam/modifiedGrades.vue 4 ●●●● patch | view | raw | blame | history
src/views/wel/index.vue 2 ●●● patch | view | raw | blame | history
src/views/workreport/workreport.vue 2 ●●● patch | view | raw | blame | history
src/views/accreditationRecords/accreditationRecords.vue
@@ -911,7 +911,7 @@
        //如果是培训公司管理员
        params["createUser"] = this.userInfo.Id;
      }
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        //如果是公安管理员
        params["jurisdiction"] = this.userInfo.jurisdiction;
      }
@@ -972,7 +972,7 @@
          //如果是培训公司管理员
          data["createUser"] = this.userInfo.Id;
        }
        if (this.userInfo.role_name == "公安管理员") {
        if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
          //如果是公安管理员
          data["jurisdiction"] = this.userInfo.jurisdiction;
        }
src/views/accreditationRecords/accreditationRecordsPaper.vue
@@ -1028,7 +1028,7 @@
        //如果是培训公司管理员
        params["createUser"] = this.userInfo.Id;
      }
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        //如果是公安管理员
        params["jurisdiction"] = this.userInfo.jurisdiction;
      }
@@ -1090,7 +1090,7 @@
          //如果是培训公司管理员
          data["createUser"] = this.userInfo.Id;
        }
        if (this.userInfo.role_name == "公安管理员") {
        if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
          //如果是公安管理员
          data["jurisdiction"] = this.userInfo.jurisdiction;
        }
@@ -1138,7 +1138,7 @@
          //如果是培训公司管理员
          data["createUser"] = this.userInfo.Id;
        }
        if (this.userInfo.role_name == "公安管理员") {
        if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
          //如果是公安管理员
          data["jurisdiction"] = this.userInfo.jurisdiction;
        }
src/views/desk/notification.vue
@@ -52,7 +52,7 @@
          type="danger"
          size="small"
          icon="el-icon-delete"
          v-if="permission.notice_delete"
          v-if="permission.notification_delete"
          plain
          @click="handleDelete"
          >删 除
@@ -66,7 +66,7 @@
        <el-button
          :size="size"
          :type="type"
          v-if="permission.notice_upload"
          v-if="permission.notification_upload"
          @click="handleUploadPage(row)"
          >附件上传
        </el-button>
@@ -259,10 +259,10 @@
    ...mapGetters(["userInfo", "permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.notice_add, false),
        viewBtn: this.vaildData(this.permission.notice_view, false),
        delBtn: this.vaildData(this.permission.notice_delete, false),
        editBtn: this.vaildData(this.permission.notice_edit, false)
        addBtn: this.vaildData(this.permission.notification_add, false),
        viewBtn: this.vaildData(this.permission.notification_view, false),
        delBtn: this.vaildData(this.permission.notification_delete, false),
        editBtn: this.vaildData(this.permission.notification_edit, false)
      };
    },
    ids() {
src/views/dispatch/dispatch.vue
@@ -502,7 +502,7 @@
      //赋值
      column.value = that.userInfo.dept_id;
      this.useifid = this.userInfo.dept_id;
    } else if (roleName == "公安管理员" || roleName == "administrator") {
    } else if (roleName == "公安管理员" || roleName == "administrator" || roleName == "民警") {
      var columnDept = that.findObject(that.option.column, "deptId");
      columnDept.dicUrl =
        "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
@@ -706,7 +706,7 @@
      if (this.useifid != 266) {
        values["deptId"] = this.useifid;
      }
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        values["jurisdiction"] = that.userInfo.jurisdiction;
      }
      getdata(
src/views/dispatch/dispatchChildoperable.vue
@@ -320,7 +320,7 @@
      column.value = that.userInfo.dept_id;
      this.useifid = this.userInfo.dept_id;
      this.initData(2);
    } else if (roleName == "公安管理员" || roleName == "administrator") {
    } else if (roleName == "公安管理员" || roleName == "administrator" || roleName == "民警") {
      var columnDept = that.findObject(that.option.column, "deptId");
      columnDept.dicUrl =
        "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
@@ -556,7 +556,7 @@
        values["deptId"] = this.useifid;
      }
      //公安局进入
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        values["jurisdiction"] = this.userInfo.jurisdiction;
      }
      getdata1(
src/views/licenseApproval/branchOffice.vue
@@ -248,7 +248,7 @@
        return;
      }
      var gonganj = "";
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        let test = /派出所$/g;
        if (test.test(this.userInfo.list.name)) {
          gonganj = "2";
src/views/licenseApproval/cancellationOfFiling.vue
@@ -187,7 +187,7 @@
        return;
      }
      var gonganj = "";
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        let test = /派出所$/g;
        if (test.test(this.userInfo.list.name)) {
          gonganj = "2";
src/views/licenseApproval/changeLegalPerson.vue
@@ -247,7 +247,7 @@
        return;
      }
      var gonganj = "";
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        let test = /派出所$/g;
        if (test.test(this.userInfo.list.name)) {
          gonganj = "2";
src/views/licenseApproval/crossRegion.vue
@@ -246,7 +246,7 @@
        return;
      }
      var gonganj = "";
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        let test = /派出所$/g;
        if (test.test(this.userInfo.list.name)) {
          gonganj = "2";
src/views/licenseApproval/securityGuard.vue
@@ -569,7 +569,7 @@
      this.loading = true;
      params["ptype"] = 3;
      var gonganj = "";
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        let test = /派出所$/g;
        if (test.test(this.userInfo.list.name)) {
          gonganj = "派出所管理员";
src/views/licenseApproval/securityPermit.vue
@@ -48,6 +48,7 @@
          :size="size"
          :type="type"
          class="zhengJian-icon"
          v-if="permission.permit_upload"
          @click.stop="handleCredentials(row)"
          >附件
        </el-button>
@@ -56,7 +57,7 @@
          :size="size"
          :type="type"
          @click.stop="rowDel(row)"
          v-if="row.type == '2' && userData == '0'"
          v-if="row.type == '2' && userData == '0' || permission.permit_audit"
          >许可审批
        </el-button>
        <el-button
@@ -64,7 +65,7 @@
          :size="size"
          :type="type"
          @click.stop="viewLicense(row)"
          v-if="row.type == '0'"
          v-if="row.type == '0' || permission.permit_print"
          >打印许可证
        </el-button>
      </template>
@@ -300,7 +301,7 @@
        return;
      }
      var gonganj = "";
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        let test = /派出所$/g;
        if (test.test(this.userInfo.list.name)) {
          gonganj = "2";
src/views/licenseApproval/securityTraining.vue
@@ -299,7 +299,7 @@
        return;
      }
      var gonganj = "";
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        let test = /派出所$/g;
        if (test.test(this.userInfo.list.name)) {
          gonganj = "2";
src/views/recruitmentManagement/index.vue
@@ -87,7 +87,7 @@
      deptColumn.value = this.useifid;
    }
    //公安局进入
    if (this.userInfo.role_name == "公安管理员") {
    if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
      that.option.column[1].dicUrl =
        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
        that.userInfo.jurisdiction;
@@ -222,7 +222,7 @@
        params["deptId"] = this.useifid;
      }
      //公安局进入
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        params["jurisdiction"] = this.userInfo.jurisdiction;
      }
src/views/registerUnit/registerUnit.vue
@@ -309,7 +309,7 @@
    },
  },
  created(){
    if(this.userInfo.role_name=="公安管理员"){
    if(this.userInfo.role_name=="公安管理员" || this.userInfo.role_name == "民警"){
      this.search['auditStatus'] = "1";
    }
  },
@@ -471,7 +471,7 @@
    onLoad(page, params = {}) {
      params = this.search;
      this.loading = true;
      if(this.userInfo.role_name=="公安管理员"){
      if(this.userInfo.role_name=="公安管理员" || this.userInfo.role_name == "民警"){
        params['jurisdiction'] = this.userInfo.jurisdiction;
      }
      getList(
src/views/securityEquipment/car.vue
@@ -168,7 +168,7 @@
      //赋值
      column.value = that.userInfo.dept_id;
      this.useifid = this.userInfo.dept_id;
    } else if (roleName == "公安管理员" || roleName == "administrator") {
    } else if (roleName == "公安管理员" || roleName == "administrator" || roleName == "民警") {
      var columnDept = that.findObject(that.option.column, "deptId");
      columnDept.dicUrl =
        "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
@@ -344,7 +344,7 @@
      }
      //公安局进入
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        params["jurisdiction"] = that.userInfo.jurisdiction;
      }
      //保安公司进入
src/views/securityEquipment/equipments.vue
@@ -170,7 +170,7 @@
      //赋值
      column.value = that.userInfo.dept_id;
      this.useifid = this.userInfo.dept_id;
    } else if (roleName == "公安管理员" || roleName == "administrator") {
    } else if (roleName == "公安管理员" || roleName == "administrator" || this.userInfo.role_name == "民警") {
      var columnDept = that.findObject(that.option.column, "deptId");
      columnDept.dicUrl =
        "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
@@ -358,7 +358,7 @@
        this.openDep("deptId");
      }
      //公安局进入
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        params["jurisdiction"] = that.userInfo.jurisdiction;
      }
src/views/securityEquipment/gun.vue
@@ -148,7 +148,7 @@
      this.useifid = this.userInfo.dept_id;
    }
    //公安局进入
    if (this.userInfo.role_name == "公安管理员") {
    if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
      that.option.column[5].dicUrl =
        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
        that.userInfo.jurisdiction;
@@ -321,7 +321,7 @@
      }
      //公安局进入
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        params["jurisdiction"] = that.userInfo.jurisdiction;
      }
      //保安公司进入
src/views/securityGuard/securityGuard.vue
@@ -169,6 +169,7 @@
                  icon="el-icon-view"
                  :size="size"
                  :type="type"
                  v-if="permission.securityGuard_view"
                  @click.stop="rowClick(row)"
                  >查看
                </el-button>
@@ -1592,7 +1593,7 @@
      column.dicUrl =
        "/api/blade-system/dept/security_lazy-tree?deptId=" +
        this.userInfo.dept_id;
    } else if (roleName == "公安管理员" || roleName == "administrator") {
    } else if (roleName == "公安管理员" || roleName == "administrator" || this.userInfo.role_name == "民警") {
      var columnDept = that.findObject(that.option.column, "deptId");
      columnDept.dicUrl =
        "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
@@ -2132,7 +2133,7 @@
          //如果是培训公司管理员
          data["trainingUnitId"] = this.userInfo.Id;
        }
        if (this.userInfo.role_name == "公安管理员") {
        if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
          //如果是公安管理员
          data["jurisdiction"] = this.userInfo.jurisdiction;
        }
@@ -2732,6 +2733,7 @@
          } else if (
            roleAlias == "公安管理员" ||
            roleAlias == "administrator"
            || this.userInfo.role_name == "民警"
          ) {
            params["jurisdiction"] = that.userInfo.jurisdiction;
            var ColumnDeptUpdate = that.findObject(that.option.group, "deptId");
src/views/securityGuard/securityGuardOnce copy.vue
@@ -1380,7 +1380,7 @@
            that.isSecurity = true;
            //如果是保安公司管理员
            params["deptId"] = that.userInfo.dept_id;
          } else if (roleAlias == "公安管理员") {
          } else if (roleAlias == "公安管理员" || this.userInfo.role_name == "民警") {
            params["jurisdiction"] = that.userInfo.jurisdiction;
            var columnDept = that.findObject(that.option.column, "deptId");
            columnDept.dicUrl =
src/views/securityGuard/securityGuardOnce.vue
@@ -1347,7 +1347,7 @@
            that.isSecurity = false;
            //如果是保安公司管理员
            params["deptId"] = that.userInfo.dept_id;
          } else if (roleAlias == "公安管理员") {
          } else if (roleAlias == "公安管理员" || this.userInfo.role_name == "民警") {
            params["jurisdiction"] = that.userInfo.jurisdiction;
            var columnDept = that.findObject(that.option.column, "deptId");
            columnDept.dicUrl =
src/views/securityGuard/securityGuard指纹自动识别(集成VUE报错)-9.vue
@@ -1872,7 +1872,7 @@
            );
            importColumn.action =
              "/api/blade-user/import-user?deptId=" + this.deptIds;
          } else if (roleAlias == "公安管理员") {
          } else if (roleAlias == "公安管理员" || this.userInfo.role_name == "民警") {
            params["jurisdiction"] = that.userInfo.jurisdiction;
            var columnDept = that.findObject(that.option.column, "deptId");
            columnDept.dicUrl =
src/views/securityUnit/localCompany.vue
@@ -12,6 +12,7 @@
      :data="data"
      :page.sync="page"
      ref="crudrec"
      :permission="permissionList"
      @on-load="onLoad"
      :table-loading="loading"
      @row-save="rowSave"
@@ -37,12 +38,14 @@
          icon="el-icon-s-custom"
          :size="size"
          :type="type"
          v-if="permission.localCompany_view"
          @click.stop="rowClick(row)"
          >查看
        </el-button>
        <el-button
          :size="size"
          :type="type"
          v-if="permission.localCompany_upload"
          @click="handleUploadPage(row)"
          icon="el-icon-circle-check"
          >附件上传
@@ -54,6 +57,7 @@
          size="small"
          plain
          icon="el-icon-delete"
          v-if="permission.localCompany_delete"
          @click="handleDelete"
          >删 除
        </el-button>
@@ -62,6 +66,7 @@
          size="small"
          plain
          icon="el-icon-upload2"
          v-if="permission.localCompany_import"
          @click="handleImport1"
          >批量导入
        </el-button>
@@ -397,7 +402,15 @@
    // this.getJurisdictionTree();
  },
  computed: {
    ...mapGetters(["userInfo"]),
    ...mapGetters(["userInfo", "permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.localCompany_add, false),
        viewBtn: this.vaildData(this.permission.localCompany_view, false),
        delBtn: this.vaildData(this.permission.localCompany_delete, false),
        editBtn: this.vaildData(this.permission.localCompany_edit, false)
      };
    },
    ids() {
      let ids = [];
      this.selectionList.forEach(ele => {
src/views/securityUnit/securityTraining.vue
@@ -12,6 +12,7 @@
      :data="data"
      :page.sync="page"
      ref="crudrec"
      :permission="permissionList"
      @on-load="onLoad"
      :table-loading="loading"
      @row-save="rowSave"
@@ -37,12 +38,14 @@
          icon="el-icon-s-custom"
          :size="size"
          :type="type"
          v-if="permission.securityTraining_view"
          @click.stop="rowClick(row)"
          >查看
        </el-button>
        <el-button
          :size="size"
          :type="type"
          v-if="permission.securityTraining_upload"
          @click="handleUploadPage(row)"
          icon="el-icon-circle-check"
          >附件上传
@@ -54,6 +57,7 @@
          size="small"
          plain
          icon="el-icon-delete"
          v-if="permission.securityTraining_delete"
          @click="handleDelete"
          >删 除
        </el-button>
@@ -62,6 +66,7 @@
          size="small"
          plain
          icon="el-icon-upload2"
          v-if="permission.securityTraining_import"
          @click="handleImport1"
          >批量导入
        </el-button>
@@ -389,7 +394,15 @@
    }
  },
  computed: {
    ...mapGetters(["userInfo"]),
    ...mapGetters(["userInfo", "permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.securityTraining_add, false),
        viewBtn: this.vaildData(this.permission.securityTraining_view, false),
        delBtn: this.vaildData(this.permission.securityTraining_delete, false),
        editBtn: this.vaildData(this.permission.securityTraining_edit, false)
      };
    },
    ids() {
      let ids = [];
      this.selectionList.forEach(ele => {
src/views/securityUnit/selfRecruitedSecurityGuard.vue
@@ -12,6 +12,7 @@
      :data="data"
      :page.sync="page"
      ref="crudrec"
      :permission="permissionList"
      @on-load="onLoad"
      :table-loading="loading"
      @row-save="rowSave"
@@ -37,12 +38,14 @@
          icon="el-icon-s-custom"
          :size="size"
          :type="type"
          v-if="permission.selfRecruitedSecurityGuard_view"
          @click.stop="rowClick(row)"
          >查看
        </el-button>
        <el-button
          :size="size"
          :type="type"
          v-if="permission.selfRecruitedSecurityGuard_upload"
          @click="handleUploadPage(row)"
          icon="el-icon-circle-check"
          >附件上传
@@ -54,6 +57,7 @@
          size="small"
          plain
          icon="el-icon-delete"
          v-if="permission.selfRecruitedSecurityGuard_delete"
          @click="handleDelete"
          >删 除
        </el-button>
@@ -62,6 +66,7 @@
          size="small"
          plain
          icon="el-icon-upload2"
          v-if="permission.selfRecruitedSecurityGuard_import"
          @click="handleImport1"
          >批量导入
        </el-button>
@@ -364,7 +369,15 @@
    }
  },
  computed: {
    ...mapGetters(["userInfo"]),
    ...mapGetters(["userInfo", "permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.selfRecruitedSecurityGuard_add, false),
        viewBtn: this.vaildData(this.permission.selfRecruitedSecurityGuard_view, false),
        delBtn: this.vaildData(this.permission.selfRecruitedSecurityGuard_delete, false),
        editBtn: this.vaildData(this.permission.selfRecruitedSecurityGuard_edit, false)
      };
    },
    ids() {
      let ids = [];
      this.selectionList.forEach(ele => {
src/views/securityUnit/transRegionalcompany.vue
@@ -12,6 +12,7 @@
      :data="data"
      :page.sync="page"
      ref="crudrec"
      :permission="permissionList"
      @on-load="onLoad"
      :table-loading="loading"
      @row-save="rowSave"
@@ -38,12 +39,14 @@
          icon="el-icon-s-custom"
          :size="size"
          :type="type"
          v-if="permission.transRegionalcompany_view"
          @click.stop="rowClick(row)"
          >查看
        </el-button>
        <el-button
          :size="size"
          :type="type"
          v-if="permission.transRegionalcompany_upload"
          @click="handleUploadPage(row)"
          icon="el-icon-circle-check"
          >附件上传
@@ -55,6 +58,7 @@
          size="small"
          plain
          icon="el-icon-delete"
          v-if="permission.transRegionalcompany_delete"
          @click="handleDelete"
          >删 除
        </el-button>
@@ -63,6 +67,7 @@
          size="small"
          plain
          icon="el-icon-upload2"
          v-if="permission.transRegionalcompany_import"
          @click="handleImport1"
          >批量导入
        </el-button>
@@ -391,7 +396,15 @@
    }
  },
  computed: {
    ...mapGetters(["userInfo"]),
    ...mapGetters(["userInfo", "permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.transRegionalcompany_add, false),
        viewBtn: this.vaildData(this.permission.transRegionalcompany_view, false),
        delBtn: this.vaildData(this.permission.transRegionalcompany_delete, false),
        editBtn: this.vaildData(this.permission.transRegionalcompany_edit, false)
      };
    },
    ids() {
      let ids = [];
      this.selectionList.forEach(ele => {
src/views/securityUnitChild/index copy.vue
@@ -1101,7 +1101,7 @@
      if (deptId) {
        //2.1 单位信息进入
        //判断人员角色
        if (role_name == "公安管理员" || role_name == "administrator") {
        if (role_name == "公安管理员" || role_name == "administrator" || this.userInfo.role_name == "民警") {
          //3.1 判断按进入的公司类型
          if (data.state == "2") {
            //本市保安公司,对应的tab 条数
src/views/system/user copy.vue
@@ -706,7 +706,7 @@
    //公安局进入
    var parentId = null;
    var that = this;
    // if (this.userInfo.role_name == "公安管理员") {
    // if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
    parentId = this.userInfo.dept_id;
    if (parentId == "1123598813738675201") {
src/views/system/user.vue
@@ -717,7 +717,7 @@
    var that = this;
    //公安局进入
    if (this.userInfo.role_name == "公安管理员") {
    if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
      var parentId = this.userInfo.dept_id;
      var userId = this.userInfo.Id;
      getDeptLazyTree(parentId, userId).then(res => {
@@ -801,9 +801,9 @@
            }
          }
          column.dicData = b;
        } else if (d == "公安管理员") {
        } else if (d == "公安管理员" || d=="民警") {
          for (var i in k) {
            if (k[i].title == "公安管理员") {
            if (k[i].title == "公安管理员" || k[i].title == "民警") {
              b.push(k[i]);
            }
          }
@@ -814,7 +814,7 @@
      });
      // this.userInfo.role_name == "保安公司管理员"
      //公安局进入
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        var parentId = this.userInfo.dept_id;
        var userId = this.userInfo.Id;
        getDeptLazyTree(parentId, userId).then(res => {
@@ -1031,7 +1031,7 @@
    },
    beforeOpen(done, type) {
      if (["edit", "view"].includes(type)) {
        if (this.userInfo.role_name != "公安管理员") {
        if (this.userInfo.role_name != "公安管理员" && this.userInfo.role_name == "民警") {
          const column = this.findObject(this.option.group, "code");
          column.display = false;
        }
@@ -1050,7 +1050,7 @@
        });
      }
      if (["add"].includes(type)) {
        if (this.userInfo.role_name != "公安管理员") {
        if (this.userInfo.role_name != "公安管理员" && this.userInfo.role_name == "民警") {
          const column = this.findObject(this.option.group, "code");
          column.display = false;
        }
@@ -1071,7 +1071,7 @@
      this.loading = true;
      var deptid = this.deptids == null ? this.treeDeptId.id : this.deptids;
      //公安局进入
      if (this.userInfo.role_name == "公安管理员") {
      if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        params["jurisdiction"] = this.userInfo.jurisdiction;
        params["roleId"] = "1";
      }
src/views/trainExam/modifiedGrades.vue
@@ -644,7 +644,7 @@
    };
  },
  created() {
    if (this.userInfo.role_name == "公安管理员") {
    if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
      //判断是否为市局管理员
      if (this.userInfo.jurisdiction == "1372091709474910209") {
        this.check = true;
@@ -787,7 +787,7 @@
            //如果是培训公司管理员
            params["trainUnitId"] = that.userInfo.dept_id;
          }
          if (this.userInfo.role_name == "公安管理员") {
          if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
            //如果是公安管理员
            params["jurisdiction"] = this.userInfo.jurisdiction;
          }
src/views/wel/index.vue
@@ -67,7 +67,7 @@
  },
  created(){
    //获取二维码图片
    if(this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "administrator"){
    if(this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "administrator" || this.userInfo.role_name == "民警"){
      this.isImg = true;
      //查询图片
      getDetails(10).then((res) => {
src/views/workreport/workreport.vue
@@ -293,7 +293,7 @@
            this.selectionClear();
          });
        });
      } else if (this.userInfo.role_name == "公安管理员") {
      } else if (this.userInfo.role_name == "公安管理员" || this.userInfo.role_name == "民警") {
        const column = that.findObject(that.option.column, "category");
        var code1 = { code: "workReportCategory" };
        getDictionaryBiz(code1).then(res => {