修改所属泵站和权限
This commit is contained in:
@ -3,21 +3,12 @@
|
||||
function doSaveMainRole() {
|
||||
var checkedtree = $('#menu_func_tree').treeview('getChecked');
|
||||
var datas = "";
|
||||
var lis = $('[data-nodeid]');
|
||||
for (var i = 0; i < lis.length; i++) {
|
||||
if (lis[i].dataset.nodeid.split('.').length == 4) {
|
||||
var lis_element = $('#' + lis[i].id);
|
||||
if (lis_element.hasClass('node-checked')) {
|
||||
var span = lis_element.children('.check-icon');
|
||||
if (span.hasClass('glyphicon-check')) {
|
||||
datas += lis[i].id + ",";
|
||||
}
|
||||
}
|
||||
$.each(checkedtree, function (index, item) {
|
||||
// 只保存最终菜单节点,避免依赖固定树层级导致勾选后无法落库
|
||||
if (!item.nodes || item.nodes.length === 0) {
|
||||
datas += item.id + ",";
|
||||
}
|
||||
}
|
||||
/*$.each(checkedtree,function(index,item){
|
||||
datas+=item.id+",";
|
||||
});*/
|
||||
});
|
||||
$.post(ext.contextPath + "/user/updateRoleMenu.do", {menustr: datas, roleid: "${roleid}"}, function (result) {
|
||||
if (result >= 0) {
|
||||
closeModal('menuFuncModal');
|
||||
|
||||
Reference in New Issue
Block a user