41 lines
1.3 KiB
HTML
41 lines
1.3 KiB
HTML
<html login="false">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<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="autocomplete" name="question_type_name" label="问题分类" popupEmptyText="请选择"
|
|
textfield="text" valuefield="id" url="revisit/question/getType" required="true"
|
|
showClose="true" oncloseclick ="conCloseClick" />
|
|
|
|
<br/>
|
|
<input widget="edit" name="question_name" label="问题描述" required="true" style="margin-top:5px"/>
|
|
<br/>
|
|
|
|
<script type="text/javascript">
|
|
function save(){
|
|
if(!FORM.validate())
|
|
{
|
|
return;
|
|
}
|
|
aos.post({
|
|
url:"revisit/question/addQuestion",
|
|
data:aos.getForm().getData(),
|
|
success:function(data, textStatus, jqXHR){
|
|
if(data == 1){
|
|
aos.tip('保存成功');
|
|
}
|
|
else{
|
|
aos.tip('该问题已存在!');
|
|
}
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |