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

服务调整

上级 0a8a8fbf
......@@ -48,7 +48,7 @@ import i18n from '@/locale';
* @public
* @memberof ${appde.getCodeName()}Service
*/
public appEntityService = this.getService('${appde.getCodeName()?lower_case}');
public appEntityService ;
<#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as node>
......@@ -63,13 +63,34 @@ import i18n from '@/locale';
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
public ${node.getPSAppDataEntity().codeName?lower_case}Service: any = async ()=>{ await this.getService('${node.getPSAppDataEntity().codeName?lower_case}');}
public ${node.getPSAppDataEntity().codeName?lower_case}Service: any ;
</#if>
</#if>
</#if>
</#list>
</#if>
constructor(opts: any = {}) {
super(opts)
this.$store = opts.$store;
this.getService('${appde.getCodeName()?lower_case}').then((res)=>{
this.appEntityService = res;
})
<#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as node>
<#if node.getTreeNodeType() == 'DE' && node.getPSAppDataEntity()??>
<#if appde?? && appde.getId() != node.getPSAppDataEntity().getId()>
<#if !P.exists("importService2", node.getPSAppDataEntity().getId(), "")>
this.getService('${node.getPSAppDataEntity().codeName?lower_case}').then((res)=>{
this.${node.getPSAppDataEntity().codeName?lower_case}Service = res;
})
</#if>
</#if>
</#if>
</#list>
</#if>
}
/**
* 节点分隔符号
*
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册