提交 77988cbe 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/pause_task' into 'release'

挂起恢复的权限修复

See merge request o2oa/o2oa!2925
...@@ -3145,6 +3145,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class( ...@@ -3145,6 +3145,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class(
if (e && e.disable) e.disable(true); if (e && e.disable) e.disable(true);
return o2.Actions.get("x_processplatform_assemble_surface").pauseTask(this.businessData.task.id, function (json) { return o2.Actions.get("x_processplatform_assemble_surface").pauseTask(this.businessData.task.id, function (json) {
this.app.notice(MWF.xApplication.process.Xform.LP.pauseWork, "success"); this.app.notice(MWF.xApplication.process.Xform.LP.pauseWork, "success");
this.businessData.control["allowResume"] = true;
if (e && e.enable) e.enable(false); if (e && e.enable) e.enable(false);
}.bind(this), function (xhr, text, error) { }.bind(this), function (xhr, text, error) {
//e.setDisable(false); //e.setDisable(false);
...@@ -3178,6 +3179,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class( ...@@ -3178,6 +3179,7 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class(
if (e && e.disable) e.disable(true); if (e && e.disable) e.disable(true);
return o2.Actions.get("x_processplatform_assemble_surface").resumeTask(this.businessData.task.id, function (json) { return o2.Actions.get("x_processplatform_assemble_surface").resumeTask(this.businessData.task.id, function (json) {
this.app.notice(MWF.xApplication.process.Xform.LP.resumeWork, "success"); this.app.notice(MWF.xApplication.process.Xform.LP.resumeWork, "success");
this.businessData.control["allowPause"] = true;
if (e && e.enable) e.enable(false); if (e && e.enable) e.enable(false);
}.bind(this), function (xhr, text, error) { }.bind(this), function (xhr, text, error) {
//e.setDisable(false); //e.setDisable(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册