(1)权限微调
(2)分页函数移动到common.js
This commit is contained in:
@@ -70,7 +70,7 @@ public class IpCfgController extends BaseController{
|
|||||||
// return ipCfgList(model,Constants.AUDIT_PAGE,cfgName,ipCfg,request,response);
|
// return ipCfgList(model,Constants.AUDIT_PAGE,cfgName,ipCfg,request,response);
|
||||||
// }
|
// }
|
||||||
@RequestMapping(value = {"list"})
|
@RequestMapping(value = {"list"})
|
||||||
@RequiresPermissions(value={"cfg:ip:add","cfg:ip:edit","cfg:ip:delete","cfg:ip:audit"},logical=Logical.OR)
|
@RequiresPermissions(value={"cfg:ip:view"},logical=Logical.OR)
|
||||||
public String ipCfgList(Model model,Integer audit,String cfgName,@ModelAttribute("ipCfg")BaseIpCfg ipCfg,HttpServletRequest request,HttpServletResponse response) {
|
public String ipCfgList(Model model,Integer audit,String cfgName,@ModelAttribute("ipCfg")BaseIpCfg ipCfg,HttpServletRequest request,HttpServletResponse response) {
|
||||||
model.addAttribute("cfgName", cfgName);
|
model.addAttribute("cfgName", cfgName);
|
||||||
model.addAttribute("audit", audit);
|
model.addAttribute("audit", audit);
|
||||||
|
|||||||
@@ -34,14 +34,6 @@
|
|||||||
$("#searchForm")[0].reset();
|
$("#searchForm")[0].reset();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
//查询
|
|
||||||
function page(n,s){
|
|
||||||
$("#intype").attr("name",$("#seltype").val());
|
|
||||||
$("#pageNo").val(n);
|
|
||||||
$("#pageSize").val(s);
|
|
||||||
$("#searchForm").submit();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
var edit=function(url){
|
var edit=function(url){
|
||||||
var cked = $('tbody tr td input.i-checks:checkbox:checked');
|
var cked = $('tbody tr td input.i-checks:checkbox:checked');
|
||||||
if(cked.val()==1){
|
if(cked.val()==1){
|
||||||
|
|||||||
@@ -104,3 +104,11 @@ var areaControlInit=function(){
|
|||||||
$("input[name='areaEffectiveIds']").val("");
|
$("input[name='areaEffectiveIds']").val("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//查询
|
||||||
|
var page=function(n,s){
|
||||||
|
$("#intype").attr("name",$("#seltype").val());
|
||||||
|
$("#pageNo").val(n);
|
||||||
|
$("#pageSize").val(s);
|
||||||
|
$("#searchForm").submit();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user