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

树服务逻辑

上级 145f105e
...@@ -52,15 +52,6 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@/a ...@@ -52,15 +52,6 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@/a
</#compress> </#compress>
</#macro> </#macro>
/**
/**
* 节点分隔符号
*
* @public
* @memberof ${appde.getCodeName()}Service
*/
public appEntityService = this.getService('${appde.getCodeName()?lower_case}');
<#if ctrl.getPSDETreeNodes()??> <#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as node> <#list ctrl.getPSDETreeNodes() as node>
<#if node.getTreeNodeType() == 'DE' && node.getPSAppDataEntity()??> <#if node.getTreeNodeType() == 'DE' && node.getPSAppDataEntity()??>
...@@ -615,7 +606,7 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@/a ...@@ -615,7 +606,7 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@/a
<#if appde?? && appde.getId() != node.getPSAppDataEntity().getId()> <#if appde?? && appde.getId() != node.getPSAppDataEntity().getId()>
const _appEntityService: any = this.${node.getPSAppDataEntity().codeName?lower_case}Service; const _appEntityService: any = this.${node.getPSAppDataEntity().codeName?lower_case}Service;
<#else> <#else>
const _appEntityService: any = this.appEntityService; const _appEntityService: any = this.service;
</#if> </#if>
let list: any[] = []; let list: any[] = [];
if (_appEntityService['${node.getPSAppDEDataSet().getCodeName()}'] && _appEntityService['${node.getPSAppDEDataSet().getCodeName()}'] instanceof Function) { if (_appEntityService['${node.getPSAppDEDataSet().getCodeName()}'] && _appEntityService['${node.getPSAppDEDataSet().getCodeName()}'] instanceof Function) {
...@@ -872,6 +863,13 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@/a ...@@ -872,6 +863,13 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@/a
} }
} }
constructor(opts: any = {}) {
super(opts)
this.getService(this.appDEName).then((res)=>{
this.service = res;
});
}
<#ibizinclude> <#ibizinclude>
../@MACRO/SERVICE/SERVICE_BOTTOM.ts.ftl ../@MACRO/SERVICE/SERVICE_BOTTOM.ts.ftl
</#ibizinclude> </#ibizinclude>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册