会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
网站开发与移动开发
博客园
首页
新随笔
管理
公告
2011-03-19 backup
function onRoleListSelectRow(rowId){ //var rowData = jQuery("#roleList").jqGrid('getRowData',rowId); //processId = rowData["processId"]; if (rowId != '' && rowId != 'null') { loadMenuTree(rowId); } } function loadMenuTree(cl) { if(cl==null) return; //默认选中第一行记录 //var ids = jQuery("#roleList").jqGrid('getDataIDs'); //for ( var i = 0; i < ids.length; i++) { //默认选中第一行 //if (i == 0) { //var cl = ids[i]; $("#roleList").setSelection(cl); $("#roleId").val(cl); $.ajax({ url : "${ctx}/user/getMenuByRoleId.do", dataType : "json", data : {roleId : cl}, type : "POST", success : function(json) { if (json.success) { $("#menuIds").val(json.info); //alert($("#menuIds").val()); //刷新菜单树 var selectIds = $("#menuIds").val(); loadingTree(selectIds); } else { alert(json.info); } }, error : function() { alert('error'); } }); //break; //} //} }
posted on
2012-03-19 13:08
txf2004
阅读(
188
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
Powered by:
博客园
Copyright © 2024 txf2004
Powered by .NET 8.0 on Kubernetes