左侧新建图形权限

This commit is contained in:
zhal 2022-11-02 16:51:00 +08:00
parent c04e2e3b3b
commit 39f6c38261
2 changed files with 15 additions and 11 deletions

View File

@ -8029,23 +8029,27 @@ public class CoeProcessLevelWeb extends ActionWeb {
methodObj.put("categoryName", I18nRes.findValue(CoEConstant.APP_ID, c));
methodObj.put("method", model.getId());
methodObj.put("methodName", I18nRes.findValue(CoEConstant.APP_ID, model.getId()));
if (model.getSchema().contains("架构KPI图")){
if (model.getSchema().contains("架构KPI图")) {
methodObj.put("methodName", "架构KPI图");
}
if (model.getSchema().contains("角色图")){
if (model.getSchema().contains("角色图")) {
methodObj.put("methodName", "角色图");
}
// System.out.println(c+"对应的"+ PALMethodManager.getInstance().havingCreateMethodPerm(category, methodId, "process", model.getId()));
//流程入口允许新建表单图和制度图 by金鹏
if (category.equals("process")&&model.getSchema().contains("表单图")){
methodObj.put("havingCreatePerm",true);
}else if (category.equals("process")&&model.getSchema().contains("制度")){
methodObj.put("havingCreatePerm",true);
}else if(category.equals("org")&&model.getSchema().contains("角色图")) {
methodObj.put("havingCreatePerm",true);
if (category.equals("process") && model.getSchema().contains("表单图")) {
methodObj.put("havingCreatePerm", true);
} else if (category.equals("process") && model.getSchema().contains("制度")) {
methodObj.put("havingCreatePerm", true);
} else if (category.equals("org") && model.getSchema().contains("角色图")) {
methodObj.put("havingCreatePerm", false);
}else if(category.equals("org") && model.getSchema().contains("ORG 组织结构图")){
methodObj.put("havingCreatePerm", false);
}else if(category.equals("control")&&model.getSchema().contains("制度图")){
methodObj.put("havingCreatePerm",false);
}else if(category.equals("control")&&model.getSchema().contains("末级流程绩效")){
methodObj.put("havingCreatePerm",false);
}else if(model.getId().equals("process.framework")&& !_uc.getUID().equals("admin")){
methodObj.put("havingCreatePerm",false);
} else{