74 lines
2.7 KiB
HTML
74 lines
2.7 KiB
HTML
<div class="easyui-layout" style="width:100%;height:100%;">
|
|
<div id='southdiv' data-options="region:'south'" style="height:50px;text-align:center;padding:5px">
|
|
<a href="javascript:void(0)" iconCls="fa-check" class="easyui-linkbutton" onclick="wssubmitForm()" id="submitb">提交</a>
|
|
<a href="javascript:void(0)" iconCls="fa-close" class="easyui-linkbutton" onclick="closeForm()">取消</a>
|
|
</div>
|
|
<div data-options="region:'center'" style="height:100%;padding:15px 15px;">
|
|
<form id="wsff" method="post" name="wsff" enctype="multipart/form-data">
|
|
|
|
<div style="margin-top:10px;margin-bottom:5px">
|
|
<input id="checktaskname" class="easyui-textbox" name="checktaskname" style="width:480px;height:40px" data-options="label:'任务名称'"
|
|
required=true />
|
|
</div>
|
|
<!--<div style="margin-bottom:5px">
|
|
<input id="checktype" class="easyui-textbox" name="checktype" style="width:480px;height:40px" data-options="label:'检查项目',multiline:true" required=true />
|
|
</div>-->
|
|
<div style="margin-bottom:5px">
|
|
<input id="checkcontent" class="easyui-textbox" name="checkcontent" style="width:480px;height:500px" data-options="label:'检查内容',multiline:true" required=true />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
|
|
|
|
//$(function () {
|
|
// $("#checktype").combobox({
|
|
// url: 'api/checkproject?a=project',
|
|
// valueField: 'value',
|
|
// textField: 'text',
|
|
// multiple:true,
|
|
// panelHeight:'auto',
|
|
// editable: false,
|
|
// });
|
|
|
|
|
|
|
|
//})
|
|
|
|
|
|
|
|
|
|
function wssubmitForm() {
|
|
|
|
var wsdata = $('#wsff').serializeJSON();
|
|
//var checkvalue = $("#checktype").combobox('getValues');
|
|
|
|
//wsdata['checkprjtype'] =checkvalue;
|
|
$.ajax({
|
|
type: "POST",
|
|
url: 'api/checkproject?a=addcheck',
|
|
data: JSON.stringify(wsdata),
|
|
datatype: "json",
|
|
processData: false,
|
|
contentType: "application/json;charset=utf-8",
|
|
beforeSend: function () {
|
|
var bo = $('#wsff').form('validate')
|
|
if (bo == false) {
|
|
return bo
|
|
} else {
|
|
$('#submitb').linkbutton('disable');
|
|
}
|
|
},
|
|
success: function (data) {
|
|
if (data.code == 1) {
|
|
$('#tasktab').datagrid('reload');
|
|
$("#dd").dialog("close");
|
|
} else { $.messager.alert('提示', '失败!'); }
|
|
$('#submitb').linkbutton('enable');
|
|
},
|
|
});
|
|
}
|
|
|
|
|
|
</script> |