javascript

 //查看角色所属用户
        function roleuser(obj, id) {
            var C_ID = id;
            var Url = "/Sys/RoleUserName" + "/" + C_ID;
            $.getJSON(Url,
             function (json) {
                                  $.each(json, function (i) {
                                      $("#roledlg").append(json.Data)
                                      $('#roledlg').dialog('open');
                                  })
                                  $("#roleuserdlg").empty();
                                  $("#roleuserdlg").append(json);
//                 $.messager.defaults.ok = "关闭";
//                 // 解析json
//                 $.messager.alert('角色所属用户', json);
                 //$(".panel-body-noborder").css("overflow-y", "auto");
             })
                              $("#roleuserdlg").css("overflow-y", "auto");
                              $('#roleuserdlg').dialog('open');

         }

 



html

<div id="roleuserdlg" class="easyui-dialog" title="角色所属用户" closed="true" data-options="iconCls:'icon-blank', modal: true" style="width: 300px; height: 400px; padding: 10px; display: none;"> </div>

 

posted on 2014-07-31 10:35  王洪洪  阅读(550)  评论(0编辑  收藏  举报