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"); } }