2022-05-16 15:07:40 +00:00
|
|
|
<html login="false">
|
|
|
|
<head>
|
|
|
|
<title>电话账号分配</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div widget="toolbar" style="padding:10px;border:0;">
|
|
|
|
<input widget="edit" name="cname" label="人员"/>
|
|
|
|
<input widget="edit" name="acc" label="电话"/>
|
|
|
|
<a widget="button" iconCls="icon-search" onclick="search()">查询</a>
|
|
|
|
<a widget="button" iconCls="icon-add" onclick="add()">新增</a>
|
2022-11-22 06:55:55 +00:00
|
|
|
<a widget="button" iconCls="icon-add" onclick="update()">修改</a>
|
2022-05-16 15:07:40 +00:00
|
|
|
<a widget="button" iconCls="icon-delete" onclick="remove()">删除</a>
|
|
|
|
</div>
|
|
|
|
<div widget="autosize">
|
|
|
|
<div widget="datagrid" name="grid" style="width: 100%; height: 100%;" url="rush/telaccount/getList" allowalternating="true">
|
2022-11-22 06:55:55 +00:00
|
|
|
<div type="indexcolumn" width="50" header="序号"></div>
|
|
|
|
<div field="cname" width="50" header="姓名">></div>
|
2022-05-16 15:07:40 +00:00
|
|
|
<div field="id" visible="false"></div>
|
2022-11-22 06:55:55 +00:00
|
|
|
<div field="account" width="50" header="鸿联电话"></div>
|
|
|
|
<div field="mobile1" width="50" header="测试电话1"></div>
|
|
|
|
<div field="mobile2" width="50" header="测试电话2"></div>
|
2022-05-16 15:07:40 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var grid = aos.get('grid');
|
|
|
|
grid.load();
|
|
|
|
|
|
|
|
var grid = aos.get('grid');
|
|
|
|
grid.load();
|
|
|
|
function search(){
|
|
|
|
var params={CNAME:aos.get('cname').value};
|
|
|
|
var params={acc:aos.get('acc').value};
|
|
|
|
grid.load(params);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function remove(){
|
|
|
|
var data = grid.getSelected();
|
|
|
|
if(!data){
|
|
|
|
aos.alert('请选择一条数据。');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var param = {}
|
|
|
|
param['account'] = data.account;
|
|
|
|
param['id'] = data.id;
|
|
|
|
aos.post({
|
|
|
|
url:"rush/telaccount/delete",
|
|
|
|
data:param,
|
|
|
|
success:function(){
|
|
|
|
aos.tip('删除成功。');
|
|
|
|
grid.reload();
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function add(){
|
|
|
|
var param = {};
|
|
|
|
param['pageState'] = 'editnew';
|
|
|
|
aos.showWindow('canvas/rush/accountadd', param, '300px', '300px', '鸿联账号添加', function(rtnValue){
|
|
|
|
grid.reload();
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
2022-11-22 06:55:55 +00:00
|
|
|
|
|
|
|
function update(){
|
|
|
|
var data = grid.getSelected();
|
|
|
|
if(!data){
|
|
|
|
aos.alert('请选择一条数据。');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var param = {}
|
|
|
|
param['id'] = data.id;
|
|
|
|
param['account'] = data.account;
|
|
|
|
param['mobile1'] = data.mobile1;
|
|
|
|
param['mobile2'] = data.mobile2;
|
|
|
|
param['cname'] = data.cname;
|
|
|
|
param['pageState'] = 'editnew';
|
|
|
|
aos.showWindow('canvas/rush/accountupdate', param, '300px', '300px', '鸿联账号修改', function(rtnValue){
|
|
|
|
grid.reload();
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
2022-05-16 15:07:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</html>
|