调整待办已办查看条件(致远oa打开报错问题处理)
This commit is contained in:
parent
0b0c4580cb
commit
aa5e1d5def
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue