59 lines
1.4 KiB
HTML
59 lines
1.4 KiB
HTML
|
<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"/> <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 init(param){
|
||
|
var pageState = param['pageState'];
|
||
|
if(pageState){
|
||
|
aos.setState(pageState)
|
||
|
}
|
||
|
if(param['id']){
|
||
|
aos.post({
|
||
|
url:"tick/TickList/loadFkInfo",
|
||
|
data:param,
|
||
|
success:function(rtnData){
|
||
|
aos.getForm().setData(rtnData);
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
function save(){
|
||
|
if(!FORM.validate())
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
aos.post({
|
||
|
url:"tick/TickList/editTk",
|
||
|
data:aos.getForm().getData(),
|
||
|
success:function(data, textStatus, jqXHR){
|
||
|
if(data==1){
|
||
|
aos.tip('保存成功');}
|
||
|
else{
|
||
|
aos.tip('名称编号已存在');
|
||
|
}
|
||
|
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</html>
|