fix:修复树形菜单元素
This commit is contained in:
@@ -177,11 +177,11 @@
|
||||
tree.render({
|
||||
id: 'authTree'
|
||||
,elem: '#authTree'
|
||||
,checkids: checkKeys
|
||||
,data: data
|
||||
,showCheckbox: true
|
||||
,oncheck: function(obj){}
|
||||
});
|
||||
tree.setChecked('authTree', checkKeys);
|
||||
|
||||
// 监听提交
|
||||
form.on("submit(submitPage)",function(post){
|
||||
@@ -250,13 +250,12 @@
|
||||
tree.render({
|
||||
id: 'cateTree'
|
||||
,elem: '#cateTree'
|
||||
,checkids: checkKeys
|
||||
,data: data
|
||||
,showCheckbox: true
|
||||
,oncheck: function(obj){}
|
||||
});
|
||||
|
||||
tree.setChecked('cateTree', checkKeys);
|
||||
|
||||
// 监听提交
|
||||
form.on("submit(submitPage)",function(post){
|
||||
// 获取提交地址
|
||||
|
||||
@@ -366,11 +366,12 @@
|
||||
tree.render({
|
||||
id: 'authTree',
|
||||
elem: '#authTree',
|
||||
checkids: tableThis.data[event].length ? tableThis.data[event].map(Number): [],
|
||||
data: data,
|
||||
showCheckbox: true,
|
||||
})
|
||||
|
||||
tree.setChecked('authTree', tableThis.data[event].length ? tableThis.data[event].map(Number): []);
|
||||
// tree.setChecked('authTree', tableThis.data[event].length ? tableThis.data[event].map(Number): []);
|
||||
|
||||
// 监听权限提交
|
||||
form.on("submit(submitPage)", function (post) {
|
||||
|
||||
Reference in New Issue
Block a user