rushfee/build/classes/html/rush/telaccountAdd.html

59 lines
1.7 KiB
HTML
Raw Normal View History

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="account" label="电话账号"/>
<a widget="button" iconCls="icon-search" onclick="searchAgent()">查询</a>
<a widget="button" iconCls="icon-add" onclick="add()">新增</a>
<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/getTelAccountList" >
<div type="indexcolumn" width="15" header="序号"></div>
<div field="id" visible="false" ></div>
<div field="account" width="30" header="账号">></div>
<div field="creator" width="30" header="创建人代码">></div>
<div field="creator_name" width="30" header="创建人姓名">></div>
<div field="create_date" width="70" header="创建时间"></div>
</div>
</div>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
grid.load();
function searchAgent(){
var params={account_no:aos.get('account').value};
grid.load(params);
}
function remove(){
var data = grid.getSelected();
if(!data){
aos.alert('请选择一条数据。');
return;
}
aos.post({
url:"rush/telaccount/deleteTelAccount",
data:{id:data.id},
success:function(){
aos.tip('删除成功。');
grid.reload();
}
});
}
function add(){
var param = {};
aos.showWindow('canvas/rush/telaccountAdd_new', param, '400px', '200px', '电话账号添加', function(rtnValue){
grid.reload();
});
}
</script>
</html>