rushfee/resource/html/rush/telaccountAdd_new.html

51 lines
998 B
HTML

<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-save" onclick="add()">保存</a>
<a widget="button" iconCls="icon-exit" onclick="CloseWindow()">退出</a>
</div>
</body>
<script type="text/javascript">
function add(){
var account_no = aos.get('account').value;
var params={account:aos.get('account').value};
if(account_no==null || account_no==""){
aos.alert('请输入账号!');
return;
}
aos.post({
url:"rush/telaccount/addTelAccount",
data:{account:account_no},
success:function(rtnData){
if(rtnData.result=='OK'){
aos.tip('保存成功');
CloseWindow();
grid.reload();
}else{
aos.tip('此账号已经存在或被使用!');
}
}
});
}
</script>
</html>