Commit ca711bf7 by 匡雅琴

Merge branch 'huy_dev_v2.1.0' of http://192.168.3.233:8090/h5/account into huy_dev_v2.1.0

2 parents 2dfc83e5 8e490143
......@@ -238,6 +238,10 @@
on: function (data) {
merchantId = data.change[0].id
findMenuFunTreeByMerId(merchantId)
for (var key in treeData) {
active.tabDelete('roleAuth', key)
treeData = {}
}
}
})
if (roleid) {
......
......@@ -28,6 +28,17 @@
.show {
display: inline-block;
}
.role-tips {
display: inline-flex;
align-items: center;
}
.role-tips i {
margin-left: 4px;
font-size: 16px;
color: #5850FF;
}
</style>
<body>
......@@ -108,7 +119,7 @@
var cols = [
//表头
{ field: '', title: '序号', type: 'numbers', width: 60 },
{ field: 'roleName', title: '角色名称', align: 'center' },
{ field: 'roleName', title: '角色名称', align: 'center', templet: '#roleTpl' },
{ field: 'roleCode', title: '角色号', align: 'center' },
{ field: 'merchantName', title: '所属商户名', align: 'center' },
{ field: 'statusName', title: '状态', align: 'center', width: 100 },
......@@ -117,7 +128,7 @@
]
var colums = [
{ field: '', title: '序号', type: 'numbers', width: 60 },
{ field: 'roleName', title: '角色名称', align: 'center' },
{ field: 'roleName', title: '角色名称', align: 'center', templet: '#roleTpl' },
{ field: 'roleCode', title: '角色号', align: 'center' },
{ field: 'statusName', title: '状态', align: 'center' },
{ field: 'createdTime', title: '创建时间', align: 'center' },
......@@ -129,7 +140,37 @@
elem: '#roleTable',
skin: 'nob',
height: 'full-300',
cols: accountInfo && accountInfo.merchantAccountLevel == 4 ? [colums] : [cols]
cols: accountInfo && accountInfo.merchantAccountLevel == 4 ? [colums] : [cols],
done: function (res, curr, count) {
$('#roleDj').hover(function (e) {
layer.tips(
'<span style="color:#333333;font-size: 14px;font-weight: 400;">此角色拥有嘀加智享车生活和精品升级的管理员权限。</span>',
this,
{
tips: [4, '#fff'],
time: 0,
}
)
},
function () {
// 鼠标移出
layer.closeAll()
})
$('#roleGl').hover(function (e) {
layer.tips(
'<span style="color:#333333;font-size: 14px;font-weight: 400;">此角色拥有账户中心所有产品的管理员权限。</span>',
this,
{
tips: [4, '#fff'],
time: 0,
}
)
},
function () {
// 鼠标移出
layer.closeAll()
})
}
})
......@@ -259,15 +300,28 @@
getTabelList(roleTable)
return false
})
})
</script>
<script type="text/html" id="roleBar">
<a class="layui-btn-xs" lay-event="detail">查看</a>
{{# if(!d.defalutRole){ }}
<a class="layui-btn-xs" lay-event="edit">修改</a>
{{# if(d.delFlag == 1){ }}
{{# } }}
{{# if(!d.defalutRole && d.delFlag == 1){ }}
<a class="layui-btn-xs" lay-event="del">删除</a>
{{# } }}
</script>
<script type="text/html" id="roleTpl">
<span class="role-tips">{{d.roleName}}
{{# if(d.roleName == 'D+智享管理员') { }}
<i class="layui-icon layui-icon-about" id="roleDj"></i>
{{# } }}
{{# if(d.roleName == '广联总管理员') { }}
<i class="layui-icon layui-icon-about" id="roleGl"></i>
{{# } }}
</span>
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!