From c4e67a8942e514b65ab41bb19781d50576c15725 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 24 Sep 2021 19:56:52 +0800
Subject: [PATCH] 用户
---
src/views/system/user.vue | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index 93b4be6..eda8308 100644
--- a/src/views/system/user.vue
+++ b/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 = "";
--
Gitblit v1.9.3