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

树服务逻辑

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