Commit d09f07d2 by 胡悦

修改

1 parent b682869b
......@@ -86,17 +86,12 @@
var treeParams = { id: merchantId, method: 'cn.com.glsx.merchants.merchant.findMerchantTree' }
var merchants = {}
request(treeParams, function(res) {
console.log(res)
if (res.code == '0') {
var arr = employeeData.visibleInferiorMer.split(',')
$.each(arr, function (index, item) {
arr[index] = +item
})
console.log(arr)
merchants = tree.create('tree', res.data, {checkedList: arr, chkDisabled: true})
// var id = 32
// var node = merchants.getNodeByParam("id",id)
// merchants.checkNode(node, true, true)
}
})
}
......
......@@ -318,7 +318,7 @@
var merchants = {}
request(treeParams, function (res) {
if (res.code == '0') {
merchants = tree.create('merchantTree', res.data)
merchants = tree.create('merchantTree', res.data, null, false)
merchants.expandAll(true)
}
})
......
......@@ -9,6 +9,15 @@
<meta name="keywords" itemprop="keywords" content="广联,帐户管理,员工管理" />
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<title>角色管理</title>
<style>
.show {
display: inline-block;
}
.hide {
display: none;
}
</style>
</head>
<body>
......
......@@ -41,6 +41,9 @@
<ul class="layui-tab-title"></ul>
<div class="layui-tab-content"></div>
</div>
<div class="footer-close">
<button type="button" class="layui-btn layui-btn-normal" id="return">关闭</button>
</div>
</div>
</main>
</div>
......@@ -66,6 +69,10 @@
// 查询角色详情
// getById()
findMenuFunTreeByMerId()
$('#return').on('click', function() {
window.history.back()
})
// form.on('select(accountSelect)', function(data){
// console.log(data.elem); //得到select原始DOM对象
// console.log(data.value); //得到被选中的值
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!