diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/util/CoeProcessLevelUtil.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/util/CoeProcessLevelUtil.java index 53846eeb..77f144cc 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/util/CoeProcessLevelUtil.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/util/CoeProcessLevelUtil.java @@ -2258,13 +2258,23 @@ public class CoeProcessLevelUtil { //如果是关联属性,增加链接功能 if(attributeModel.getType().equals("relation")){ - + String appUrl; String sessionId = new SSOUtil().registerClientSessionNoPassword(plModel.getCreateUser(), LoginConst.DEFAULT_LANG, "localhost", LoginConst.DEVICE_PC); if(JSONObject.parseObject(property.getPropertyValue())!=null){ String relationFileId = JSONObject.parseObject(property.getPropertyValue()).get("relationFileId").toString(); String url=SDK.getPortalAPI().getPortalUrl()+"/r/w?uuid="+relationFileId+"&teamId=&cmd=com.actionsoft.apps.coe.pal_pl_repository_designer&sid="+sessionId+""; - String appUrl=""+inputValue+""; + + //判断如果关联属性是岗位,多个岗位显示为... + if(attributeModel.getKey().equals("post")){ + int lenth=inputValue.split(",").length-1; + if(lenth>=2){ + int index1=inputValue.indexOf(","); + int index2=inputValue.indexOf(",",index1+1); + inputValue=inputValue.substring(0,index2)+"..."; + } + } + appUrl=""+inputValue+""; attribute.put("value", appUrl); }