From 3488433f2341d0c434f15e819c2fec803209b918 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Fri, 29 Jul 2022 22:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=96=87=E4=BB=B6=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E5=B7=B2=E5=8F=91=E5=B8=83=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/DesignerRelationShapeWeb.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 a3f55dbf..ee050cca 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 @@ -871,7 +871,24 @@ public class DesignerRelationShapeWeb extends ActionWeb { } macroLibraries.put("treeData", jsonArr_new.toString()); - } else{ + }else if(attrId.equals("support_files")) { + for (int i = 0; i < objects.size(); i++) { + JSONObject jsonObject = objects.getJSONObject(i); + + String isPublish=jsonObject.getString("isPublish"); + if(isPublish!=null){ + if(isPublish.equals("false")){ + 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", jsonArr_new.toString()); }