|
@@ -1,15 +1,16 @@
|
|
|
-import { ChangeDetectorRef, Component, Inject, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
|
|
-import { ConstantService, FormSchemaService, GeneralHttpService, GeneralUtilsService, I18NService } from '@core';
|
|
|
+import { ChangeDetectorRef, Component, Inject, Injector, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core';
|
|
|
+import { FormSchemaService, GeneralHttpService, GeneralUtilsService, I18NService } from '@core';
|
|
|
+import * as icConstant from '@core';
|
|
|
import { CacheService } from '@delon/cache';
|
|
|
import { SFComponent, SFSchema } from '@delon/form';
|
|
|
import { ALAIN_I18N_TOKEN, ModalHelper } from '@delon/theme';
|
|
|
+import { icDeepCopy } from '@shared';
|
|
|
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
|
import { NzNotificationService } from 'ng-zorro-antd/notification';
|
|
|
import { NzFormatEmitEvent, NzTreeComponent, NzTreeNode } from 'ng-zorro-antd/tree';
|
|
|
import { forkJoin } from 'rxjs';
|
|
|
|
|
|
import { PopupSelectPanelComponent } from '../../../../shared/component/popup-select/popup-select-panel';
|
|
|
-import {icDeepCopy} from "@shared";
|
|
|
@Component({
|
|
|
selector: 'app-sys-rw-org-list',
|
|
|
styleUrls: ['./list.component.less'],
|
|
@@ -17,6 +18,7 @@ import {icDeepCopy} from "@shared";
|
|
|
})
|
|
|
export class SysRwOrgListComponent implements OnInit {
|
|
|
/* #region 变量定义 */
|
|
|
+ constant = icConstant;
|
|
|
@ViewChild('baseTree', { static: true }) baseTree!: NzTreeComponent;
|
|
|
@ViewChild('baseFormSf', { static: true }) baseFormSf!: SFComponent;
|
|
|
baseFormSchema: SFSchema = this.formSchema.organizationBaseFormSchema;
|
|
@@ -66,15 +68,17 @@ export class SysRwOrgListComponent implements OnInit {
|
|
|
/* #region 构造函数 */
|
|
|
constructor(
|
|
|
private http: GeneralHttpService,
|
|
|
- private constant: ConstantService,
|
|
|
private cd: ChangeDetectorRef,
|
|
|
private utils: GeneralUtilsService,
|
|
|
private modal: ModalHelper,
|
|
|
private notification: NzNotificationService,
|
|
|
@Inject(ALAIN_I18N_TOKEN) public i18n: I18NService,
|
|
|
- private formSchema: FormSchemaService,
|
|
|
+ private injector: Injector,
|
|
|
public srv: CacheService
|
|
|
) {}
|
|
|
+ private get formSchema(): FormSchemaService {
|
|
|
+ return this.injector.get(FormSchemaService);
|
|
|
+ }
|
|
|
/* #endregion */
|
|
|
|
|
|
ngOnInit() {
|