rushfee/resource/html/rush/accountupdate.html

55 lines
1.6 KiB
HTML
Raw Normal View History

2022-11-22 06:55:55 +00:00
<html login="false">
<head>
<title>反馈资料</title>
</head>
<body>
<div widget="toolbar">
<a widget="button" iconCls="icon-save" onclick="save" linkToState="editold,editnew">保存</a>
<a widget="button" iconCls="icon-exit" onclick="CloseWindow()">退出</a>
</div>
<input widget="hidden" name="id" label="id" readonly="true" style="margin-top:5px"/> <br/>
<input widget="num" name="account" label="鸿联电话" required="true" allowInput="false" style="margin-top:5px" />
<input widget="edit" name="accountname" label="员工姓名" required="true" allowInput="false" style="margin-top:5px" />
<input widget="num" name="mobile1" label="测试电话1" required="true" style="margin-top:5px" />
<input widget="num" name="mobile2" label="测试电话2" required="true" style="margin-top:5px" />
</body>
<script type="text/javascript">
var grid = aos.get('grid');
grid.load();
function init(param){
aos.get("account").setValue(param['account']);
aos.get("accountname").setValue(param['cname']);
aos.get("mobile1").setValue(param['mobile1']);
aos.get("mobile2").setValue(param['mobile2']);
aos.get("id").setValue(param['id']);
}
function save(){
var one = {};
one['accountname']=aos.get('id').getValue();
one['mobile1']=aos.get('mobile1').getValue();
one['mobile2']=aos.get('mobile2').getValue();
aos.post({
url:"rush/telaccount/update",
data:one,
success:function(){
aos.tip('保存成功');
CloseWindow();
}
});
}
</script>
</html>