提交 8ec387d5 编写于 作者: zcdtk's avatar zcdtk

局部代码修复

上级 c0bb24d1
......@@ -40,7 +40,7 @@ export default class MDViewEngineBase extends ViewEngine {
* @protected
* @memberof MDViewEngineBase
*/
protected openData?: (args: any[], fullargs?: any[], params?: any, $event?: any, xData?: any) => void;
protected openData?: (args: any[], contextJO: any, paramJO: any, $event?: any, xData?: any, container?: any, srfParentDeName?: string) => void;
/**
* 新建数据
......@@ -48,7 +48,7 @@ export default class MDViewEngineBase extends ViewEngine {
* @protected
* @memberof GridViewEngine
*/
protected newData?: (args: any[], fullargs?: any[], params?: any, $event?: any, xData?: any) => void;
protected newData?: (args: any[], contextJO: any, paramJO: any, $event?: any, xData?: any, container?: any, srfParentDeName?: string) => void;
/**
* Creates an instance of GridViewEngine.
......@@ -276,7 +276,7 @@ export default class MDViewEngineBase extends ViewEngine {
Object.assign(loadParam, { [this.keyPSDEField]: data[this.keyPSDEField] });
}
if (this.openData && this.isFunc(this.openData)) {
this.openData([data]);
this.openData([data], {}, {});
}
}
......
......@@ -16,19 +16,19 @@ export default class WFDynaExpMDViewEngine extends MobMDViewEngine {
constructor() {
super();
}
/**
* 引擎加载
*
* @param {*} [opts={}]
* @memberof WFDynaExpMDViewEngine
*/
public load(opts: any = {},isnotify:boolean=false): void {
this.view.getWFStepModel().then((res:any) =>{
if(!this.view.isformDruipart){
public load(opts: any = {}, isnotify: boolean = false): void {
this.view.getWFStepModel().then((res: any) => {
if (!this.view.isformDruipart) {
super.load(opts);
}else{
if(isnotify){
} else {
if (isnotify) {
super.load(opts);
}
}
......@@ -48,10 +48,11 @@ export default class WFDynaExpMDViewEngine extends MobMDViewEngine {
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());
if (this.view.viewparams.hasOwnProperty('userTaskId')) {
const paramsJO: any = { userTaskId: this.view.viewparams['userTaskId'] };
this.openData([data], {}, paramsJO);
} else {
this.openData([data], {}, {});
}
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册