diff --git a/src/main/java/neatlogic/framework/process/constvalue/ItsmTenantConfig.java b/src/main/java/neatlogic/framework/process/constvalue/ItsmTenantConfig.java index 3e36a59f80ead471b2d35a2c7429f06fe1f0d9e3..b203ed7813f67870bcd2b0107d0d19da6d8abc3e 100644 --- a/src/main/java/neatlogic/framework/process/constvalue/ItsmTenantConfig.java +++ b/src/main/java/neatlogic/framework/process/constvalue/ItsmTenantConfig.java @@ -18,6 +18,7 @@ package neatlogic.framework.process.constvalue; import neatlogic.framework.common.constvalue.ApiParamType; import neatlogic.framework.config.ITenantConfig; import neatlogic.framework.util.$; +import org.apache.commons.lang3.StringUtils; public enum ItsmTenantConfig implements ITenantConfig { PROCESS_TASK_BASE_INFO_IS_SHOW("processtaskBaseInfoIsShow", null, "term.itsm.isshowbaseinfo", ApiParamType.INTEGER), @@ -29,7 +30,17 @@ public enum ItsmTenantConfig implements ITenantConfig { WORKCENTER_AUTO_REFRESH("workcenter.auto.refresh", "1", "nfpc.itsmtenantconfig.workcenterrefresh", ApiParamType.INTEGER), WORKCENTER_CUSTOM_LIMIT("workcenter.custom.limit", "5", "nfpc.itsmtenantconfig.workcentercustomlimit", ApiParamType.INTEGER), WORKCENTER_PROCESSTASK_NEWPAGE("workcenter.processtask.newpage", "0", "nfpc.itsmtenantconfig.workcenterprocesstasknewpage", ApiParamType.INTEGER), - PROCESSTASK_TAB_LAYOUT("processtask.tab.layout", "{}", "nfpc.itsmtenantconfig.processtasktablayout", ApiParamType.JSONOBJECT), + PROCESSTASK_TAB_LAYOUT("processtask.tab.layout", "{}", "nfpc.itsmtenantconfig.processtasktablayout", ApiParamType.JSONOBJECT, "{\n" + + "\t\"position\": \"above/below\",\n" + + "\t\"layoutList\": [\n" + + "\t\t{\n" + + "\t\t\t\"key\": \"report\",\n" + + "\t\t\t\"top\": false,\n" + + "\t\t\t\"description\": \"上报内容\"\n" + + "\t\t}\n" + + "\t],\n" + + "\t\"description\": \"position字段用于设置固定位置,值为above时固定到上方,值为below时固定到下方;layoutList集合中元素的key和top是必填字段,description是选填字段;key是tab的唯一标识,top字段用于设置是否默认固定,值为true时默认固定;layoutList集合中元素的顺序就是固定位置顺序,从上到下,从左到右,在layoutList集合显式设置的tab会排在前面;key字段的取值:report(上报内容),collection(工单集合),dataconversion(数据转换),eoa(电子签批),subProcess(子流程),autoexec(自动化),automatic(自动处理),changecreate(变更详情),changehandle(变更详情),cmdbsync(配置项同步),createjob(创建作业),diagram(架构设计),taskConfigList(子任务策略),preNode(前置步骤节点信息(eoa)),step(步骤日志),activity(时间线),relevance(关联工单),markrepeat(重复事件),file(附件清单),reportingHistory(上报历史)\"\n" + + "}"), PROCESSTASK_WORKERPOLICY_ISONLYONCEEXECUTE("processtask.workerpolicy.isonlyonceexecute", "0", "nfpc.itsmtenantconfig.processtaskworkerpolicyisonlyonceexecute", ApiParamType.INTEGER), PROCESSTASK_STEP_AUTOAPPROVAL_SHOW("processtask.step.autoapproval.show", "0", "nfpc.itsmtenantconfig.processtaskstepautoapprovalshow", ApiParamType.INTEGER), @@ -39,6 +50,7 @@ public enum ItsmTenantConfig implements ITenantConfig { String value; String description; ApiParamType type; + String help; ItsmTenantConfig(String key, String value, String description, ApiParamType type) { this.key = key; @@ -47,6 +59,14 @@ public enum ItsmTenantConfig implements ITenantConfig { this.type = type; } + ItsmTenantConfig(String key, String value, String description, ApiParamType type, String help) { + this.key = key; + this.value = value; + this.description = description; + this.type = type; + this.help = help; + } + @Override public String getKey() { return key; @@ -59,7 +79,11 @@ public enum ItsmTenantConfig implements ITenantConfig { @Override public String getDescription() { - return $.t(description); + if (StringUtils.isNotBlank(this.help)) { + return $.t(description) + ", " + help; + } else { + return $.t(description); + } } @Override