liuyg
2021-09-24 c4e67a8942e514b65ab41bb19781d50576c15725
src/views/system/user.vue
@@ -50,7 +50,7 @@
              type="info"
              size="small"
              plain
              v-if="permission.user_role"
              v-if="permission.user_role && isguanli"
              icon="el-icon-user"
              @click="handleGrant"
              >角色配置
@@ -221,6 +221,8 @@
      }
    };
    return {
      isguanli: true,
      sizes: [5, 19],
      deptids: null,
@@ -511,7 +513,7 @@
                    required: true,
                    message: "请选择性别",
                    trigger: "blur",
                  }
                  },
                ],
              },
              {
@@ -771,6 +773,8 @@
    if (this.userInfo.role_name == "保安公司管理员") {
      this.deptids = this.userInfo.dept_id;
      this.sizes = [0, 24];
      this.isguanli = false;
      // this.option.group[2].value = this.userInfo.Id;
    } else {
      this.deptids = null;
      this.sizes = [5, 19];
@@ -824,7 +828,7 @@
      getJurisdiction(params).then((res) => {
        // console.log(res.data.data);
        // return;
        if (res.msg != "暂无承载数据") {
        if (res.data.msg != "暂无承载数据") {
          row.jurisdiction = res.data.data;
        } else {
          row.jurisdiction = "";