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

代码表服务结构调整

上级 e69b65ed
import { ServiceConstructorBase } from '@/ibiz-core/service/service-constructor-base';
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
/**
* 代码表服务构造器
*
* @export
* @class CodeListConstructor
*/
export class CodeListServiceConstructor extends ServiceConstructorBase {
/**
* 初始化
*
* @protected
* @memberof CodeListConstructor
*/
protected init(): void {
<#if app.getAllPSAppCodeLists()??>
<#list app.getAllPSAppCodeLists() as codelist>
<#if codelist.getCodeListType() == "DYNAMIC">
this.allService.set('${codelist.codeName}', () => import('@/app-core/code-list-service/${srffilepath2(codelist.codeName)}'));
</#if>
</#list>
</#if>
}
}
export const codeListServiceConstructor: CodeListServiceConstructor = new CodeListServiceConstructor();
\ No newline at end of file
@@ -0,0 +1,89 @@
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
/**
* 代码表服务注册中心
*
* @export
* @class CodeListConstructor
*/
export class CodeListConstructor extends ServiceConstructorBase {
/**
* 初始化
*
* @protected
* @memberof CodeListConstructor
*/
protected init(): void {
<#if app.getAllPSAppCodeLists()??>
<#list app.getAllPSAppCodeLists() as codelist>
<#if codelist.getCodeListType() == "DYNAMIC">
this.allCodeList.set('${codelist.codeName}', () => import('@/app-core/code-list/${srffilepath2(codelist.codeName)}'));
</#if>
</#list>
</#if>
}
}
export const codeListConstructor: CodeListConstructor = new CodeListConstructor();
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册