Commit 8a6e17f7 by xue_wengang

用户权限

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