一.
1.引用js<script type="text/javascript" src="static/yhsystem/js/fileuploadExpand.js?v=1.2"></script>
2.
<tr>
<td style="82px;text-align:right;padding-top: 13px;font-size:13px" >相关附件
</td>
<td >
<%@ include file="../../system/tools/upload/moreImg.jsp"%>
</td>
</tr>
二.提交form
$.post($("#eForm").attr("action"),serializeJson("eForm"),function(data){
if(data.msg=="success"){
if(ulList>0){
saveFiles($("#APPEAL_ID").val(),"","edit");
$("#zhongxin").hide();
$("#zhongxin2").show();
}
else{
$("#zhongxin").hide();
$("#zhongxin2").show();
top.Dialog.close();
}
}
},"json");
三。后台代码:
/**
* 保存
*
* @param
* @throws Exception
*/
@RequestMapping(value = "/save")
@ResponseBody
public Object save() throws Exception {
ModelAndView mv = new ModelAndView();
PageData pd = new PageData();
pd = this.getPageData();
pd.put("STATUS", 0);
pd.put("SH_JFDB", 0);
pd.put("SH_AZB", 0);
pd.put("SH_AZZB", 0);
appealService.save(pd);
Map<String,Object> res = new HashMap<String,Object>();
res.put("msg", "success");
return res;
}
案例模块:北京隐患-工程质量-监理单位报告-申诉