组织图标显示
This commit is contained in:
parent
67a7951527
commit
de8249544a
@ -3650,19 +3650,35 @@ public class PALRepositoryQueryAPIManager {
|
||||
PALMethodModel methodModel = PALMethodCache.getPALMethodModelById(model.getMethodId());
|
||||
if (methodModel != null) {// 存在该建模方法
|
||||
if (methodModel.isFolder()) {// 文件夹类型扩展的建模方法
|
||||
|
||||
JSONObject methodIcon = PALMethodManager.getInstance().getPALMethodIconById(model.getMethodId());
|
||||
icon.put("icon", methodIcon.getString("code"));
|
||||
icon.put("color", methodIcon.getString("color"));
|
||||
} else {// 文件类型模型文件
|
||||
icon.put("icon", "");
|
||||
icon.put("color", "#8E8E8E");
|
||||
object.put("folder", false);// 非文件夹
|
||||
//判断如果是组织图,更换组织图图标
|
||||
if(methodModel.getId().equals("org.role") || methodModel.getId().equals("org.normal")){
|
||||
icon.put("icon", "");
|
||||
icon.put("color", "#ef7b40");
|
||||
object.put("folder", false);// 非文件夹
|
||||
}else{
|
||||
icon.put("icon", "");
|
||||
icon.put("color", "#8E8E8E");
|
||||
object.put("folder", false);// 非文件夹
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
if (icon.isEmpty()) {// 默认
|
||||
icon.put("icon", "");
|
||||
icon.put("color", "#FFB718");
|
||||
//判断如果是组织图,更换组织图图标
|
||||
if(model.getMethodId().equals("org.role") || model.getMethodId().equals("org.normal")){
|
||||
icon.put("icon", "");
|
||||
icon.put("color", "#ef7b40");
|
||||
}else{
|
||||
icon.put("icon", "");
|
||||
icon.put("color", "#FFB718");
|
||||
}
|
||||
|
||||
}
|
||||
object.put("icon", icon);
|
||||
List<PALRepositoryModel> children = null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user