diff --git a/main/java/shkd/repc/resm/formplugin/SetObjectFormPlugin.java b/main/java/shkd/repc/resm/formplugin/SetObjectFormPlugin.java index d43e441..92d7913 100644 --- a/main/java/shkd/repc/resm/formplugin/SetObjectFormPlugin.java +++ b/main/java/shkd/repc/resm/formplugin/SetObjectFormPlugin.java @@ -4,6 +4,7 @@ import kd.bos.dataentity.OperateOption; import kd.bos.dataentity.entity.DynamicObject; import kd.bos.dataentity.entity.DynamicObjectCollection; import kd.bos.entity.operate.Submit; +import kd.bos.form.events.AfterDoOperationEventArgs; import kd.bos.form.events.BeforeDoOperationEventArgs; import kd.bos.form.operate.FormOperate; import kd.bos.form.plugin.AbstractFormPlugin; @@ -138,6 +139,16 @@ public class SetObjectFormPlugin extends AbstractFormPlugin implements Plugin { } } + @Override + public void afterDoOperation(AfterDoOperationEventArgs e) { + super.afterDoOperation(e); + FormOperate source = (FormOperate) e.getSource(); + String operateKey = source.getOperateKey(); + if ("submit".equals(operateKey)){ + this.getView().invokeOperation("refresh"); + } + } + /** * 递归查找上级组织 *