岗位显示
This commit is contained in:
parent
e2453361ae
commit
204ba571c2
@ -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="<a href='"+url+"' style='color:blue' target='_blank'>"+inputValue+"</a>";
|
||||
|
||||
//判断如果关联属性是岗位,多个岗位显示为...
|
||||
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="<a href='"+url+"' style='color:blue' target='_blank'>"+inputValue+"</a>";
|
||||
attribute.put("value", appUrl);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user