Commit 8a6e17f7 by xue_wengang

用户权限

parent bf4a8459
......@@ -172,7 +172,8 @@ export default {
spinner: "el-icon-loading",
background: "rgba(255, 255, 255, 0.7)",
});
this.title = "角色信息修改";
this.title = "菜单信息修改";
this.$set(this.propFormField[0],'title','修改菜单')
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
......
......@@ -198,6 +198,7 @@ export default {
background: "rgba(255, 255, 255, 0.7)",
});
this.title = "角色信息修改";
this.$set(this.propFormField[0],'title','修改角色')
this.xxzjbh = this.$route.query.xxzjbh;
this.getshuju();
}
......
......@@ -157,7 +157,7 @@ export default {
if (this.selectedId.length > 0) {
this.dialogVisible = true;
} else {
this.$message.error("请选择用户");
this.$message.error("请选择角色");
}
},
getTree() {
......
......@@ -25,11 +25,11 @@ export default {
},
data() {
return {
title: "用户新增",
title: "用户修改",
propFormField: [
//基本信息
{
title: "新增用户",
title: "修改用户",
id: 1,
objStr: "",
......
......@@ -166,10 +166,6 @@ export default {
label: "用户级别",
prop: "gradeStr",
},
{
label: "用户状态",
prop: "openFlag",
},
],
cxUrl: "/sysuser/selectUserNewList",
Menu: [
......@@ -230,14 +226,22 @@ export default {
this.isPremission = JSON.parse(sessionStorage.getItem("userInfo"))
.permission.split(",")
.findIndex((item) => item == "A0000");
debugger;
this.identitycard = JSON.parse(
sessionStorage.getItem("userInfo")
).identitycard;
debugger;
this.getTree();
this.getThead();
},
methods: {
getThead() {
if (this.isPremission >= 0) {
let obj = {
label: "用户状态",
prop: "openFlag",
};
this.cxDefaultFormThead.push(obj);
}
},
editMa(scope) {
debugger;
this.$set(this.form, "id", scope.row.id);
......@@ -343,15 +347,15 @@ export default {
});
},
edit(obj) {
if (this.identitycard == obj.row.identitycard) {
if (this.identitycard == obj.row.identitycard || this.isPremission >= 0) {
this.$router.pushToTab({
path: "/addXg",
query: {
xxzjbh: obj.row.id,
},
});
}else{
this.$message.error('暂无权限,只能修改本人信息')
} else {
this.$message.error("暂无权限,只能修改本人信息");
}
},
dele(obj) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment