.net通用权限框架B/S (五)--WEB(3)组织机构

.net通用权限框架B/S

首先我们看导航菜单中,对组织机构的设置

我们设置了组织机构名称,链接(对应的mvc控制器名/orga),图标是个小钥匙,菜单的操作权限设置的是"添加,编辑,删除"三个

当一个用户登录系统,根据这个用户对应的角色,他可能有三个权限,也可能只有编辑权限;当然他也可能根本看不到"组织机构"这个导航菜单

用户登录先判断导航菜单权限,有就显示,用户单击导航菜单,再判断他的操作权限.如添加,删除

.net通用权限框架B/S (五)--WEB(3)组织机构

组织机构首页:如下图,整个看是列表使用easuyui的 treegrid ,所以可以看到可以折叠的树形状表格,截图能看到添加,编辑,删除,说明登录用户拥有的角色对该页面有这三个权限

treegrid对应json格式是这样的

{
"totale": "",
"rows": [
{
"id": "",
"orgaid": "",
"organame": "总部",
"parentid": "",
"sort": "",
"manager": "a",
"remark": "",
"delflag": "",
"createon": "",
"createby": "",
"modifyon": "",
"modifyby": "",
"children": [
{
"id": "",
"orgaid": "",
"organame": "济南分部",
"parentid": "",
"sort": "",
"manager": "",
"remark": "",
"delflag": "False",
"createon": "2015/2/9 16:23:14",
"createby": "",
"modifyon": "2015/2/9 16:23:14",
"modifyby": "",
"children": [
{
"id": "",
"orgaid": "",
"organame": "财务部",
"parentid": "",
"sort": "",
"manager": "",
"remark": "",
"delflag": "",
"createon": "",
"createby": "",
"modifyon": "",
"modifyby": "",
"children": []
},
{
"id": "",
"orgaid": "",
"organame": "市场部",
"parentid": "",
"sort": "",
"manager": "",
"remark": "",
"delflag": "False",
"createon": "2015/2/9 16:23:14",
"createby": "",
"modifyon": "2015/2/9 16:23:14",
"modifyby": "",
"children": []
}
]
},
{
"id": "",
"orgaid": "",
"organame": "广州分部",
"parentid": "",
"sort": "",
"manager": "",
"remark": "",
"delflag": "False",
"createon": "2015/2/9 16:23:14",
"createby": "",
"modifyon": "2015/2/9 16:23:14",
"modifyby": "",
"children": [
{
"id": "",
"orgaid": "",
"organame": "信息部",
"parentid": "",
"sort": "",
"manager": "王刚",
"remark": "",
"delflag": "",
"createon": "",
"createby": "",
"modifyon": "",
"modifyby": "",
"children": []
}
]
},
{
"id": "",
"orgaid": "",
"organame": "合肥分部",
"parentid": "",
"sort": "",
"manager": "",
"remark": "",
"delflag": "",
"createon": "",
"createby": "",
"modifyon": "",
"modifyby": "",
"children": [
{
"id": "",
"orgaid": "",
"organame": "营销部",
"parentid": "",
"sort": "",
"manager": "陈",
"remark": "啊啊111",
"delflag": "",
"createon": "",
"createby": "",
"modifyon": "",
"modifyby": "",
"children": []
} ]
}
]
}
]
}

.net通用权限框架B/S (五)--WEB(3)组织机构

上一篇:LVS+Keepalived搭建MyCAT高可用負載均衡集群


下一篇:JavaWEB域对象