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

工具栏服务结构调整

上级 469580c8
...@@ -48,7 +48,7 @@ import { counterServiceConstructor } from '@/app-core/counter/counter-service-co ...@@ -48,7 +48,7 @@ import { counterServiceConstructor } from '@/app-core/counter/counter-service-co
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'; import { codeListServiceConstructor } from '@/app-core/code-list/code-list-service-constructor';
import { utilServiceRegister } from '@/utilservice/util-service-register'; import { utilServiceConstructor } from '@/app-core/util-service/util-service-constructor';
// 全局挂载应用实体服务构造器 // 全局挂载应用实体服务构造器
window['appEntityServiceConstructor'] = appEntityServiceConstructor; window['appEntityServiceConstructor'] = appEntityServiceConstructor;
// 全局挂载计数器服务构造器 // 全局挂载计数器服务构造器
...@@ -59,7 +59,8 @@ window['authServiceConstructor'] = authServiceConstructor; ...@@ -59,7 +59,8 @@ window['authServiceConstructor'] = authServiceConstructor;
window['codeListServiceConstructor'] = codeListServiceConstructor; window['codeListServiceConstructor'] = codeListServiceConstructor;
// 全局挂载应用通讯中心 // 全局挂载应用通讯中心
window['acc'] = AppCommunicationsCenter.getInstance(); window['acc'] = AppCommunicationsCenter.getInstance();
window['utilServiceRegister'] = utilServiceRegister; // 全局挂载工具服务中心
window['utilServiceConstructor'] = utilServiceConstructor;
/** /**
* 注册组件 * 注册组件
*/ */
......
...@@ -4,6 +4,7 @@ import { AppCommunicationsCenter } from '../app-service/message-center/app-commu ...@@ -4,6 +4,7 @@ import { AppCommunicationsCenter } from '../app-service/message-center/app-commu
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'; import { CodeListServiceConstructor } from '@/app-core/code-list/code-list-service-constructor';
import { UtilServiceRegister } from '@/utilservice/util-service-register'; import { UtilServiceRegister } from '@/utilservice/util-service-register';
import { UtilServiceConstructor } from '@/app-core/util-service/util-service-constructor';
declare global { declare global {
interface Window { interface Window {
appEntityServiceConstructor: AppEntityServiceConstructor, appEntityServiceConstructor: AppEntityServiceConstructor,
...@@ -11,6 +12,6 @@ declare global { ...@@ -11,6 +12,6 @@ declare global {
authServiceConstructor: AuthServiceConstructor, authServiceConstructor: AuthServiceConstructor,
codeListServiceConstructor:CodeListServiceConstructor, codeListServiceConstructor:CodeListServiceConstructor,
acc: AppCommunicationsCenter, acc: AppCommunicationsCenter,
utilServiceRegister:UtilServiceRegister utilServiceConstructor:UtilServiceConstructor
} }
} }
\ No newline at end of file
...@@ -99,7 +99,7 @@ export class UtilService { ...@@ -99,7 +99,7 @@ export class UtilService {
* @memberof UtilService * @memberof UtilService
*/ */
public getService(name: string): Promise<any> { public getService(name: string): Promise<any> {
return (window as any)['utilServiceRegister'].getService(name); return window.utilServiceConstructor.getService(name);
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册