rushfee/resource/html/tick/tickadd.html

50 lines
1.1 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">
<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="no" label="反馈编号" required="true" style="margin-top:5px" minValue="0" maxValue="999"/>
<br/>
<input widget="edit" name="name" label="反馈名称" required="true" style="margin-top:5px"/>
<br/>
<input widget="textarea" name="remark" label="描述" emptyText="" width="250px" height="80px"/>
</body>
<script type="text/javascript">
function save(){
if(!FORM.validate())
{
return;
}
aos.post({
url:"tick/TickList/saveTk",
data:aos.getForm().getData(),
success:function(data, textStatus, jqXHR){
if(data == 1){
aos.tip('保存成功');
}
else{
aos.tip('反馈类型已添加');
}
}
});
}
</script>
</html>