EasyUI使用心得 DataGrid批量行编辑提交以及后台参数接收
前端页面代码
<fieldset style = "height:300px;width:555px;border-width:thin;border-color: #EAEAEA;overflow:scroll;display:block;">
<form id = "saveForm" method="post">
<table id="testTable" class="easyui-datagrid" title="工作登记" style="width:1100px;height:auto"
data-options="
iconCls: 'icon-edit',
singleSelect: true,
toolbar: '#tb',
method: 'get',
onClickRow: onClickRow
">
<thead>
<tr>
<th data-options="field:'workDate',width:120,editor:{type:'datebox',options:{required:true,editable:false}}">登记日期</th>
<th data-options="field:'taskType',width:220,formatter:function(value,row){return row.configName;},
editor:{
type:'combobox',
options:{
valueField:'id',
textField:'configName',
method:'get',
url:'${pageContext.request.contextPath }/json/getWorkType.do',
required:true
}
}&