92 lines
2.2 KiB
HTML
92 lines
2.2 KiB
HTML
<html login="false">
|
|
<head>
|
|
<title>权限分配</title>
|
|
</head>
|
|
<body>
|
|
<div widget="toolbar" style="padding:10px;border:0;">
|
|
<input widget="edit" name="cname" label="人员"/>
|
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
|
<a widget="button" iconCls="icon-add" onclick="add()">新增</a>
|
|
<a widget="button" iconCls="icon-delete" onclick="remove()">删除</a>
|
|
<a widget="button" iconCls="icon-edit" onclick="edit()">权限修改</a>
|
|
</div>
|
|
|
|
<div widget="autosize">
|
|
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="company/auth/getauthList" allowalternating="true">
|
|
<div type="indexcolumn" width="15" header="序号"></div>
|
|
<div field="bname" width="40" header="姓名"></div>
|
|
<div field="num" width="15" header="拥有查询人员总数"></div>
|
|
<div field="aisino" width="15" header="航信总部"></div>
|
|
<div field="waihu" width="15" header="鸿联外呼"></div>
|
|
<div field="cguid" visible="false"></div>
|
|
<div field="auth" width="70" header="拥有权限"></div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</body>
|
|
<script type="text/javascript">
|
|
|
|
|
|
var grid = aos.get('grid');
|
|
grid.load();
|
|
function search(){
|
|
var params={cname:aos.get('cname').value};
|
|
grid.load(params);
|
|
}
|
|
|
|
function edit(){
|
|
var data = grid.getSelected();
|
|
if(!data){
|
|
aos.alert('请选择一条数据。');
|
|
return;
|
|
}
|
|
|
|
var param = {};
|
|
param['pageState'] = 'editnew';
|
|
param['cguid'] = data.cguid;
|
|
param['cname'] = data.bname;
|
|
|
|
aos.showWindow('canvas/rush/queryauthedit', param, '500px', '600px', '功能授权',function(rtnValue){
|
|
grid.reload();
|
|
});
|
|
}
|
|
|
|
|
|
function remove(){
|
|
var data = grid.getSelected();
|
|
if(!data){
|
|
aos.alert('请选择一条数据。');
|
|
return;
|
|
}
|
|
|
|
aos.post({
|
|
url:"company/auth/deletequeryAuth",
|
|
data:{cguid:data.cguid},
|
|
success:function(){
|
|
aos.tip('删除成功。');
|
|
grid.reload();
|
|
}
|
|
|
|
});
|
|
}
|
|
|
|
function add(){
|
|
var param = {};
|
|
param['pageState'] = 'editnew';
|
|
aos.showWindow('canvas/rush/queryauthadd', param, '500px', '600px', '权限授权添加', function(rtnValue){
|
|
grid.reload();
|
|
});
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</html> |