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

代码表服务调整

上级 2c972719
...@@ -42,12 +42,15 @@ import { appEntityServiceConstructor } from '@/app-core/service/app-entity-servi ...@@ -42,12 +42,15 @@ import { appEntityServiceConstructor } from '@/app-core/service/app-entity-servi
import { counterServiceConstructor } from '@/app-core/counter/counter-service-constructor'; import { counterServiceConstructor } from '@/app-core/counter/counter-service-constructor';
import { AppCommunicationsCenter } from './app-service/message-center/app-communications-center'; import { AppCommunicationsCenter } from './app-service/message-center/app-communications-center';
import { authServiceConstructor } from '@/app-core/auth-service/auth-service-constructor' import { authServiceConstructor } from '@/app-core/auth-service/auth-service-constructor'
import { codeListServiceConstructor } from '@/app-core/code-list/code-list-service-constructor';
// 全局挂载应用实体服务构造器 // 全局挂载应用实体服务构造器
window['appEntityServiceConstructor'] = appEntityServiceConstructor; window['appEntityServiceConstructor'] = appEntityServiceConstructor;
// 全局挂载计数器服务构造器 // 全局挂载计数器服务构造器
window['counterServiceConstructor'] = counterServiceConstructor; window['counterServiceConstructor'] = counterServiceConstructor;
// 全局挂载权限服务构造器 // 全局挂载权限服务构造器
window['authServiceConstructor'] = authServiceConstructor; window['authServiceConstructor'] = authServiceConstructor;
// 全局挂载权限服务构造器
window['codeListServiceConstructor'] = codeListServiceConstructor;
// 全局挂载应用通讯中心 // 全局挂载应用通讯中心
window['acc'] = AppCommunicationsCenter.getInstance(); window['acc'] = AppCommunicationsCenter.getInstance();
......
...@@ -69,7 +69,7 @@ export class CodeListService { ...@@ -69,7 +69,7 @@ export class CodeListService {
* @memberof EntityService * @memberof EntityService
*/ */
public getService(name: string): Promise<any> { public getService(name: string): Promise<any> {
return (window as any)['codeListRegister'].getService(name); return window.codeListServiceConstructor.getService(name);
} }
/** /**
......
...@@ -2,11 +2,13 @@ import { AppEntityServiceConstructor } from '@/app-core/service/app-entity-servi ...@@ -2,11 +2,13 @@ import { AppEntityServiceConstructor } from '@/app-core/service/app-entity-servi
import { CounterServiceConstructor } from '@/app-core/counter/counter-service-constructor'; import { CounterServiceConstructor } from '@/app-core/counter/counter-service-constructor';
import { AppCommunicationsCenter } from '../app-service/message-center/app-communications-center'; import { AppCommunicationsCenter } from '../app-service/message-center/app-communications-center';
import { AuthServiceConstructor } from '@/app-core/auth-service/auth-service-constructor'; import { AuthServiceConstructor } from '@/app-core/auth-service/auth-service-constructor';
import { CodeListServiceConstructor } from '@/app-core/code-list/code-list-service-constructor';
declare global { declare global {
interface Window { interface Window {
appEntityServiceConstructor: AppEntityServiceConstructor, appEntityServiceConstructor: AppEntityServiceConstructor,
counterServiceConstructor: CounterServiceConstructor, counterServiceConstructor: CounterServiceConstructor,
authServiceConstructor: AuthServiceConstructor, authServiceConstructor: AuthServiceConstructor,
codeListServiceConstructor:CodeListServiceConstructor,
acc: AppCommunicationsCenter acc: AppCommunicationsCenter
} }
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册