var priceSignList = new Array();
$("#appExponentPriceSignEditForm tr").each(function() {
var that = this;
var orderItemObj = new Object();
$(that).find("select,input").each(function() {
var name = $(this).attr("name");
orderItemObj[name] = $(this).val();
});
priceSignList.push(orderItemObj);
});
$.ajax({
url: '${path}/appExponentPriceSign/edit',
method: "POST",
dataType: "json",
contentType: "application/json;charset=utf-8",
async: false,
data:JSON.stringify(priceSignList),
success: function(data) {
if(data.success) {
$.messager.alert('提示', data.msg, 'info')
parent.$.modalDialog.openner_dataGrid.datagrid('reload')
parent.$.modalDialog.handler.dialog('close');
} else {
$.messager.alert('错误', data.msg, 'error')
}
}
});
controller 接收
public Object edit(@RequestBody List<AppExponentPriceSign> priceSignList)