From 6e717f7d67956fd8de0e86e3c2d2b233e6c7c51f Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Fri, 29 Jul 2022 22:11:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=96=87=E4=BB=B6=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=B7=B2=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/DesignerRelationShapeWeb.java | 26 ++++++++++++++----- .../js/designer.extend.link.view.portal.js | 6 +++-- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/relation/web/DesignerRelationShapeWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/relation/web/DesignerRelationShapeWeb.java index 67e2e713..a3f55dbf 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/relation/web/DesignerRelationShapeWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/designer/relation/web/DesignerRelationShapeWeb.java @@ -789,9 +789,7 @@ public class DesignerRelationShapeWeb extends ActionWeb { String id = jsonObject.getString("id"); String isParent=jsonObject.getString("isParent"); if (isParent != null) { - if (isParent.equals("true")) { - List coeProcessLevelModels = CoeProcessLevelDaoFacotory.createCoeProcessLevel().getCoeProcessLevelByPid(id, wsId); if (coeProcessLevelModels.size() > 0) { for (int k = 0; k < coeProcessLevelModels.size(); k++) { @@ -856,8 +854,25 @@ public class DesignerRelationShapeWeb extends ActionWeb { } } macroLibraries.put("treeData", jsonArr_new.toString()); + } else if(attrId.equals("R_relevant_flies")){ + for (int i = 0; i < objects.size(); i++) { + JSONObject jsonObject = objects.getJSONObject(i); + + String isPublish=jsonObject.getString("isPublish"); + if(isPublish!=null){ + if(isPublish.equals("true")){ + JSONObject node = objects.getJSONObject(i); + node.put("nocheck", "false"); + jsonArr_new.add(node); + } + }else{ + jsonArr_new.add(objects.getJSONObject(i)); + } + + } + macroLibraries.put("treeData", jsonArr_new.toString()); } else{ - macroLibraries.put("treeData", treeJson); + macroLibraries.put("treeData", jsonArr_new.toString()); } @@ -1189,7 +1204,7 @@ public class DesignerRelationShapeWeb extends ActionWeb { }else */ //如果为相关文件 未发布不可选中 - if(attrId.equals("related_files")){ + if(attrId.equals("R_relevant_flies")){ if(isPublish.equals("false") || isParent.equals("true")){ node.put("nocheck", true); } @@ -1200,14 +1215,13 @@ public class DesignerRelationShapeWeb extends ActionWeb { } } - if(attrId.equals("related_files")){ + if(attrId.equals("R_relevant_flies")){ if(isPublish.equals("true") && isStop.equals("false")){ result.add(node); } }else { // 只查没有废止的文件 if(isStop.equals("false")){ - //by bzp control.kpi String methodId = node.getString("plMethodId"); if ("control.kpi".equals(methodId) && methodScope.equals(methodId)) { diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js index a1574f3e..952e1b48 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js @@ -1452,12 +1452,13 @@ function isObjectRelationshipModel(linker, isAlert) { // 文件属性的处理 function initProcessDesc() { + debugger; var length = Object.keys(processDesc).length; var t = ''; var b=''; for(var i = 1; i <= length; i++) { var obj = processDesc[i]; - + debugger; //判断如果为相关文件/支持文件显示在右侧区域 if(obj.name=="相关文件" || obj.name=="支持文件"){ b += ''; @@ -1585,10 +1586,11 @@ function ProcessManual(obj) { t += '
'; t += ''; t += '
'; t += '
流程手册:
'; - t += ''; + t += '
'+ fileName +''; t +=''; + t +='
'; t += '
';