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

表单刷新update

上级 9f4e2b0a
......@@ -905,10 +905,10 @@ import { Util } from '@/ibiz-core/utils';
});
if(AppCenterService && AppCenterService.getMessageCenter()){
this.appStateEvent = AppCenterService.getMessageCenter().subscribe(({ name, action, data }) =>{
if(!Object.is(name,"${ctrl.getPSAppDataEntity().getCodeName()}") && data.appRefreshAction){
if(!Object.is(name,"${ctrl.getPSAppDataEntity().getCodeName()}")){
return;
}
if(Object.is(action,'appRefresh')){
if(Object.is(action,'appRefresh') && data.appRefreshAction){
this.refresh([data]);
}
})
......@@ -1161,7 +1161,7 @@ import { Util } from '@/ibiz-core/utils';
this.$emit('save', data);
}
<#if ctrl.getControlType() == 'FORM'>
AppCenterService.notifyMessage({name:"${ctrl.getPSAppDataEntity().getCodeName()}",action:'appRefresh',data:Object.assign(data,{appRefreshAction:action===this.updateAction?false:true})});
AppCenterService.notifyMessage({name:"${ctrl.getPSAppDataEntity().getCodeName()}",action:'appRefresh',data:Object.assign(data,{appRefreshAction:action===this.createAction?false:true})});
this.$store.dispatch('viewaction/datasaved', { viewtag: this.viewtag });
</#if>
this.$nextTick(() => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册