js中:
function send(){
var selected = $('#intoGrid').datagrid('getSelected');
var url = "into/close.html?id="+selected.id+"&wmioRemark="+encodeURI(encodeURI($("#closeReasonform #wmioRemark").val()))+"&res="+Math.random();
$.post(url,function(data){
if(data){
closeTable();
$("#intoGrid").datagrid('reload');
$.messager.show({title:'友情提示',msg:data,timeout:5000,showType:'show'});
}
},"text");
}
后台:
@RequestMapping(value="/close")
@ResponseBody
public void close(@RequestParam int wmioId,@RequestParam String wmioRemark){
try{
String msg=wmReceiptService.updateMsgAndCloseOfLog(wmioId,URLDecoder.decode(wmioRemark, "UTF-8"), getBackUser(),col);
return Tools.toJson(msg);
}catch(Exception e){
e.printStackTrace();
}
}