提交 a175aaeb 编写于 作者: RedPing97's avatar RedPing97

增加form表单对关联视图的支持

上级 86d15db4
...@@ -21,6 +21,7 @@ ${item.render.code} ...@@ -21,6 +21,7 @@ ${item.render.code}
]" ]"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
ref="druipart"
:localContext ='<@getNavigateContext item />' :localContext ='<@getNavigateContext item />'
:localParam ='<@getNavigateParams item />' :localParam ='<@getNavigateParams item />'
parameterName='${appde.getCodeName()?lower_case}' parameterName='${appde.getCodeName()?lower_case}'
......
...@@ -1067,6 +1067,16 @@ import { Environment } from '@/environments/environment'; ...@@ -1067,6 +1067,16 @@ import { Environment } from '@/environments/environment';
this.$emit('load', this.data); this.$emit('load', this.data);
</#if> </#if>
}); });
if(AppCenterService && AppCenterService.getMessageCenter()){
this.appStateEvent = AppCenterService.getMessageCenter().subscribe(({ name, action, data }) =>{
if(!Object.is(name,"${ctrl.getPSAppDataEntity().getCodeName()}")){
return;
}
if(Object.is(action,'appRefresh')){
this.refresh([data]);
}
})
}
} }
/** /**
...@@ -1111,6 +1121,11 @@ import { Environment } from '@/environments/environment'; ...@@ -1111,6 +1121,11 @@ import { Environment } from '@/environments/environment';
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public refresh(args?: any): void { public refresh(args?: any): void {
let druipart:any = this.$refs.druipart
if (druipart) {
druipart.refreshDRUIPart(args);
return;
}
let arg: any = {}; let arg: any = {};
Object.assign(arg,args?args[0]:{}); Object.assign(arg,args?args[0]:{});
if (this.data.srfkey && !Object.is(this.data.srfkey, '')) { if (this.data.srfkey && !Object.is(this.data.srfkey, '')) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册