提交 b83e76f4 编写于 作者: KK's avatar KK

重写onEditData

上级 ef1d54fc
......@@ -34,4 +34,25 @@ export default class WFDynaExpMDViewEngine extends MobMDViewEngine {
}
})
}
/**
* 编辑数据
*
* @param {*} arg
* @memberof MobWFMDViewEngine
*/
public onEditData(arg: any): void {
const loadParam: any = {};
const { data }: { data: any } = arg;
if (this.keyPSDEField && data[this.keyPSDEField] && !Object.is(data[this.keyPSDEField], '')) {
Object.assign(loadParam, { [this.keyPSDEField]: data[this.keyPSDEField] });
}
if (this.openData && this.isFunc(this.openData)) {
if(this.view.viewparams.hasOwnProperty('userTaskId')){
this.openData([loadParam], [data],{userTaskId:this.view.viewparams['userTaskId']}, null, this.getMDCtrl());
}else{
this.openData([loadParam], [data], {}, null, this.getMDCtrl());
}
}
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册