调整待办已办查看条件(致远oa打开报错问题处理)

This commit is contained in:
ptt 2025-04-21 11:28:15 +08:00
parent 0b0c4580cb
commit aa5e1d5def
1 changed files with 4 additions and 3 deletions

View File

@ -19,12 +19,13 @@ import java.util.Map;
public class ApprovalPagePluginNewDemo extends AbstractFormPlugin implements Plugin{ public class ApprovalPagePluginNewDemo extends AbstractFormPlugin implements Plugin{
@Override @Override
public void afterCreateNewData(EventObject evt) { 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.getView().setVisible(false,"tabpageap_approvalrecord");
this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"approvalrecordap"); 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"); this.showApprovalRecord(true, Boolean.FALSE, false, Boolean.FALSE,"qeug_approvalrecordap");
} }
} }