From 5faa6da5ceb98457baa3f1b51912346874a6473d Mon Sep 17 00:00:00 2001 From: ptt <2403326863@qq.com> Date: Tue, 22 Apr 2025 15:44:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E8=AE=B0=E5=BD=95=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wf/plugin/form/ApprovalPagePluginNewDemo.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/main/java/shkd/wfs/wf/plugin/form/ApprovalPagePluginNewDemo.java b/main/java/shkd/wfs/wf/plugin/form/ApprovalPagePluginNewDemo.java index cb5b672..d06def9 100644 --- a/main/java/shkd/wfs/wf/plugin/form/ApprovalPagePluginNewDemo.java +++ b/main/java/shkd/wfs/wf/plugin/form/ApprovalPagePluginNewDemo.java @@ -21,15 +21,20 @@ import java.util.Map; public class ApprovalPagePluginNewDemo extends AbstractFormPlugin implements Plugin{ @Override public void afterCreateNewData(EventObject evt) { -// Boolean onlyView = (Boolean)this.getView().getFormShowParameter().getCustomParams().get("onlyView"); -// String type = (String)this.getView().getFormShowParameter().getCustomParams().get("type"); +// Object id1 = this.getView().getFormShowParameter().getCustomParams().get("taskId"); Object id = this.getView().getFormShowParameter().getCustomParams().get("tId"); //查看态,需要显示 审批记录页签 if(id==null){ - this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"qeug_approvalrecordap"); + Boolean onlyView = (Boolean)this.getView().getFormShowParameter().getCustomParams().get("onlyView"); + //查看态,需要显示 审批记录页签 + if(onlyView==null){ + this.getView().setVisible(false,"tabpageap_approvalrecord"); + this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"approvalrecordap"); + }else if(onlyView){ + this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"qeug_approvalrecordap"); + } }else{ try { - System.out.println(1); DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(id, "wf_task"); if(dynamicObject==null){ this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"qeug_approvalrecordap");