修改contIp 的model为redirectAttribute
contIpForm增加loading遮盖
This commit is contained in:
@@ -184,14 +184,15 @@ public class AvContentController extends BaseController {
|
||||
@RequestMapping(value = {"/saveContIp"})
|
||||
public String saveContIp(Model model,HttpServletRequest request,HttpServletResponse response,
|
||||
@ModelAttribute("cfg")BaseIpCfg cfg,
|
||||
@ModelAttribute("areaCfgIds")String areaCfgIds){
|
||||
@ModelAttribute("areaCfgIds")String areaCfgIds
|
||||
,RedirectAttributes redirectAttributes){
|
||||
try{
|
||||
avContentCfgService.saveOrUpdateContIp(cfg,areaCfgIds);
|
||||
addMessage(model,"save_success");
|
||||
addMessage(redirectAttributes,"save_success");
|
||||
}catch(Exception e){
|
||||
logger.error("信息保存失败",e);
|
||||
e.printStackTrace();
|
||||
addMessage(model,"save_failed");
|
||||
addMessage(redirectAttributes,"save_failed");
|
||||
}
|
||||
|
||||
return "redirect:" + adminPath +"/ntc/av/contIpList?functionId="+cfg.getFunctionId();
|
||||
|
||||
@@ -19,7 +19,7 @@ $(function(){
|
||||
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
||||
},
|
||||
submitHandler: function(form){
|
||||
//loading('onloading...');
|
||||
loading('onloading...');
|
||||
form.submit();
|
||||
},
|
||||
errorContainer: "#messageBox",
|
||||
|
||||
Reference in New Issue
Block a user