From 204ba571c28c4e8fb2e915963909bfe33b214906 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Tue, 12 Jul 2022 14:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B2=97=E4=BD=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pal/repository/util/CoeProcessLevelUtil.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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); }