From aa5e1d5def0c18ae7f9891015f5c73271e367224 Mon Sep 17 00:00:00 2001
From: ptt <2403326863@qq.com>
Date: Mon, 21 Apr 2025 11:28:15 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BE=85=E5=8A=9E=E5=B7=B2?=
 =?UTF-8?q?=E5=8A=9E=E6=9F=A5=E7=9C=8B=E6=9D=A1=E4=BB=B6(=E8=87=B4?=
 =?UTF-8?q?=E8=BF=9Coa=E6=89=93=E5=BC=80=E6=8A=A5=E9=94=99=E9=97=AE?=
 =?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../shkd/wfs/wf/plugin/form/ApprovalPagePluginNewDemo.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/main/java/shkd/wfs/wf/plugin/form/ApprovalPagePluginNewDemo.java b/main/java/shkd/wfs/wf/plugin/form/ApprovalPagePluginNewDemo.java
index cfd8169..47067be 100644
--- a/main/java/shkd/wfs/wf/plugin/form/ApprovalPagePluginNewDemo.java
+++ b/main/java/shkd/wfs/wf/plugin/form/ApprovalPagePluginNewDemo.java
@@ -19,12 +19,13 @@ 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");
+//        Boolean onlyView = (Boolean)this.getView().getFormShowParameter().getCustomParams().get("onlyView");
+        String type = (String)this.getView().getFormShowParameter().getCustomParams().get("type");
         //查看态,需要显示 审批记录页签
-        if(onlyView==null){
+        if(type==null||"tohandle".equals(type)){
             this.getView().setVisible(false,"tabpageap_approvalrecord");
             this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"approvalrecordap");
-        }else if(onlyView){
+        }else if("handled".equals(type)){
             this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"qeug_approvalrecordap");
         }
     }