12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /**
- * 复制角色选择窗口。
- * dialogWidth:窗口宽度,默认值350
- * dialogWidth:窗口宽度,默认值150
- * callback:回调函数
- * 回调参数如下:
- * key:参数key
- * name:参数名称
- * 使用方法如下:
- *
- * CopyRoleDialog({callback:function(content){
- * //回调函数处理
- * }});
- * @param conf
- */
- function CopyRoleDialog(conf)
- {
- if(!conf) conf={};
- var roleId=conf.roleId;
- var url=__ctx + "/platform/system/sysRole/copy.ht?roleId=" +roleId;
-
- $.extend(conf, {help:0,status:0,scroll:0,center:1});
-
- var winArgs="dialogWidth=550px;dialogHeight=250px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
- url=url.getNewUrl();
- /*var rtn=window.showModalDialog(url,"",winArgs);
- if(conf){
- location.reload();
- }*/
-
- /*KILLDIALOG*/
- DialogUtil.open({
- height:250,
- width: 550,
- title : '复制角色',
- url: url,
- isResize: true,
- //自定义参数
- sucCall:function(rtn){
- if(conf){
- location.reload();
- }
- }
- });
- }
|