作为selectedtodo的不能用rel="opmUserNavDel",否则选择的id无效
<li><a class="delete" target="selectedTodo" postType="string"
href="${pageContext.request.contextPath}/system/opmUser/psdEdit?organid=${org}&id={slt_objId}"
title="你确定要删除吗?"><span>删除</span></a></li>
//callbackType刷新当前,closeCurrent关掉当前,刷新上级
return ajaxDoneOpm("/system/opmUser/ajaxDone",200,"操作成功!","opmUserNavUi","/system/opmUser/listUi","callbackType");//callbackType
return ajaxDoneOpm("/system/opmUser/ajaxDone",300,"添加失败!","opmUserNavUi","/system/opmUser/editUi","closeCurrent");
private ModelAndView ajaxDoneOpm(String url,int statusCode, String message,String navtab, String forwardUrl,String operator) {
ModelAndView mav = new ModelAndView(url);
mav.addObject("statusCode", statusCode);
mav.addObject("message", message);
mav.addObject("navTabId", navtab);
mav.addObject("callbackType", operator);
mav.addObject("forwardUrl", forwardUrl);
return mav;
}
system/opmUser/ajaxDone
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
{
"statusCode":"${statusCode}",
"message":"${message}",
"navTabId":"${navTabId}",
"callbackType":"${callbackType}",
"forwardUrl":"${forwardUrl}"
}