提交 814be93c 编写于 作者: zcdtk's avatar zcdtk

工作流提交处理

上级 7d006045
...@@ -716,10 +716,11 @@ export class EntityServiceBase { ...@@ -716,10 +716,11 @@ export class EntityServiceBase {
try { try {
let res: any; let res: any;
if (wfdata && Object.keys(wfdata).length !== 0) { if (wfdata && Object.keys(wfdata).length !== 0) {
const _data: any = { ...{ activedata: data }, wfdata }; const _data: any = { ...{ activedata: data }, ...wfdata };
res = await this.http.post(`/wfcore/${this.systemName}-app-${this.appName}/${this.dePath}/${data[this.key]}/tasks/${wfdata['taskId']}`, _data); res = await this.http.post(`/wfcore/${this.systemName}-app-${this.appName}/${this.dePath}/${data[this.key]}/tasks/${wfdata['taskId']}`, _data);
} } else {
res = await this.http.post(`/${this.dePath}/${context[this.key]}/wfsubmit`, data); res = await this.http.post(`/${this.dePath}/${context[this.key]}/wfsubmit`, data);
}
return res; return res;
} catch (res) { } catch (res) {
return new HttpResponse(res.status, null); return new HttpResponse(res.status, null);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册