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

解决viewparams 污染问题

上级 11e46657
...@@ -120,7 +120,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -120,7 +120,7 @@ import UtilService from '@/utilservice/util-service';
this.viewState.next({ tag: name, action: action, data: data }); this.viewState.next({ tag: name, action: action, data: data });
}); });
if(this.isEnableCustomized){ if(this.isEnableCustomized){
this.loadModel(this.utilServiceName,this.context,Object.assign(this.viewparams,{utilServiceName:this.utilServiceName,modelid:this.modelId})); this.loadModel(this.utilServiceName,this.context,Object.assign({utilServiceName:this.utilServiceName,modelid:this.modelId},this.viewparams));
} }
}); });
} }
...@@ -167,7 +167,7 @@ import UtilService from '@/utilservice/util-service'; ...@@ -167,7 +167,7 @@ import UtilService from '@/utilservice/util-service';
private async openPopupModal(view: any, context: any, param: any): Promise<any> { private async openPopupModal(view: any, context: any, param: any): Promise<any> {
const result: any = await this.$appmodal.openModal(view, context, param); const result: any = await this.$appmodal.openModal(view, context, param);
if (result || Object.is(result.ret, 'OK')) { if (result || Object.is(result.ret, 'OK')) {
this.loadModel(this.utilServiceName,this.context,Object.assign(this.viewparams,{utilServiceName:this.utilServiceName,modelid:this.modelId})); this.loadModel(this.utilServiceName,this.context,Object.assign({utilServiceName:this.utilServiceName,modelid:this.modelId},this.viewparams));
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册