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

Revert "服务调整"

This reverts commit e3fd00a4.
上级 e3fd00a4
......@@ -48,7 +48,7 @@ import i18n from '@/locale';
* @public
* @memberof ${appde.getCodeName()}Service
*/
public appEntityService ;
public appEntityService = this.getService('${appde.getCodeName()?lower_case}');
<#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as node>
......@@ -63,34 +63,13 @@ import i18n from '@/locale';
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
public ${node.getPSAppDataEntity().codeName?lower_case}Service: any ;
public ${node.getPSAppDataEntity().codeName?lower_case}Service: any = async ()=>{ await this.getService('${node.getPSAppDataEntity().codeName?lower_case}');}
</#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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册