فهرست منبع

修复表单流转后立刻关闭重定向无效的问题

unknown 5 سال پیش
والد
کامیت
5c417fe35b
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 9 1
      o2web/source/x_component_process_Xform/Form.js

+ 9 - 1
o2web/source/x_component_process_Xform/Form.js

@@ -1575,7 +1575,15 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
             "buttonList": [
             "buttonList": [
                 {
                 {
                     "text": this.app.lp.closePage,
                     "text": this.app.lp.closePage,
-                    "action": function () { dlg.close(); this.app.close(); }.bind(this)
+                    "action": function () {
+                        dlg.close();
+                        if (this.json.afterProcessAction=="redirect" && this.json.afterProcessRedirectScript && this.json.afterProcessRedirectScript.code){
+                            var url = this.Macro.exec(this.json.afterProcessRedirectScript.code, this);
+                            (new URI(url)).go();
+                        }else{
+                            this.app.close();
+                        }
+                    }.bind(this)
                 }
                 }
             ]
             ]
         };
         };