钟日健
2022-02-24 93108de1561810561f351c17c144950a37fdd06d
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";
      }