@ebuilding/runtime 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ import { ACLService } from '@delon/acl';
8
8
  import { ITokenService } from '@delon/auth';
9
9
  import { SettingsService, _HttpClient } from '@delon/theme';
10
10
  import { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';
11
+ import { AppFeatureConfigService } from '@ebuilding/base/shared.srv/app-feature-config.service';
11
12
  import { RuntimeAuthOptions } from '../auth.tokens';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class UserLoginComponent implements OnDestroy {
@@ -20,12 +21,13 @@ export declare class UserLoginComponent implements OnDestroy {
20
21
  settingService: SettingsService;
21
22
  private aclService;
22
23
  private dialogSrv;
24
+ private featureConfig;
23
25
  private authOptions;
24
26
  title: any;
25
27
  sourceType: any;
26
28
  sourceUserId: any;
27
29
  sourceCorpId: any;
28
- constructor(fb: FormBuilder, modalSrv: NzModalService, router: Router, activatedRoute: ActivatedRoute, reuseTabService: ReuseTabService, tokenService: ITokenService, http: _HttpClient, msg: NzMessageService, settingService: SettingsService, aclService: ACLService, dialogSrv: GramBaseDialogService, authOptions: RuntimeAuthOptions);
30
+ constructor(fb: FormBuilder, modalSrv: NzModalService, router: Router, activatedRoute: ActivatedRoute, reuseTabService: ReuseTabService, tokenService: ITokenService, http: _HttpClient, msg: NzMessageService, settingService: SettingsService, aclService: ACLService, dialogSrv: GramBaseDialogService, featureConfig: AppFeatureConfigService, authOptions: RuntimeAuthOptions);
29
31
  get customerId(): import("@angular/forms").AbstractControl<any, any>;
30
32
  get userName(): import("@angular/forms").AbstractControl<any, any>;
31
33
  get password(): import("@angular/forms").AbstractControl<any, any>;
@@ -43,6 +45,6 @@ export declare class UserLoginComponent implements OnDestroy {
43
45
  submit(): void;
44
46
  getUserMenus(): void;
45
47
  ngOnDestroy(): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<UserLoginComponent, [null, null, null, null, { optional: true; }, null, null, null, null, null, null, null]>;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserLoginComponent, [null, null, null, null, { optional: true; }, null, null, null, null, null, null, null, null]>;
47
49
  static ɵcmp: i0.ɵɵComponentDeclaration<UserLoginComponent, "passport-login", never, {}, {}, never, never, true, never>;
48
50
  }
@@ -8,6 +8,7 @@ import { ACLService } from '@delon/acl';
8
8
  import { ITokenService } from '@delon/auth';
9
9
  import { SettingsService, _HttpClient } from '@delon/theme';
10
10
  import { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';
11
+ import { AppFeatureConfigService } from '@ebuilding/base/shared.srv/app-feature-config.service';
11
12
  import { RuntimeAuthOptions } from '../auth.tokens';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class UserLoginCustComponent implements OnDestroy {
@@ -20,12 +21,13 @@ export declare class UserLoginCustComponent implements OnDestroy {
20
21
  settingService: SettingsService;
21
22
  private aclService;
22
23
  private dialogSrv;
24
+ private featureConfig;
23
25
  private authOptions;
24
26
  title: any;
25
27
  sourceType: any;
26
28
  sourceUserId: any;
27
29
  customerId: any;
28
- constructor(fb: FormBuilder, modalSrv: NzModalService, router: Router, activatedRoute: ActivatedRoute, reuseTabService: ReuseTabService, tokenService: ITokenService, http: _HttpClient, msg: NzMessageService, settingService: SettingsService, aclService: ACLService, dialogSrv: GramBaseDialogService, authOptions: RuntimeAuthOptions);
30
+ constructor(fb: FormBuilder, modalSrv: NzModalService, router: Router, activatedRoute: ActivatedRoute, reuseTabService: ReuseTabService, tokenService: ITokenService, http: _HttpClient, msg: NzMessageService, settingService: SettingsService, aclService: ACLService, dialogSrv: GramBaseDialogService, featureConfig: AppFeatureConfigService, authOptions: RuntimeAuthOptions);
29
31
  get userName(): import("@angular/forms").AbstractControl<any, any>;
30
32
  get password(): import("@angular/forms").AbstractControl<any, any>;
31
33
  get mobile(): import("@angular/forms").AbstractControl<any, any>;
@@ -42,6 +44,6 @@ export declare class UserLoginCustComponent implements OnDestroy {
42
44
  submit(): void;
43
45
  getUserMenus(): void;
44
46
  ngOnDestroy(): void;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<UserLoginCustComponent, [null, null, null, null, { optional: true; }, null, null, null, null, null, null, null]>;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserLoginCustComponent, [null, null, null, null, { optional: true; }, null, null, null, null, null, null, null, null]>;
46
48
  static ɵcmp: i0.ɵɵComponentDeclaration<UserLoginCustComponent, "passport-login-cust", never, {}, {}, never, never, true, never>;
47
49
  }
@@ -1,26 +1,5 @@
1
- import { Router } from '@angular/router';
2
- import { SettingsService, _HttpClient } from '@delon/theme';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare const AppFeatureConfigKey = "APP_FEATURE_CONFIG";
6
- export interface AppFeatureConfig {
7
- enableWorkflow: boolean;
8
- enableMessageCenter: boolean;
9
- }
10
- export declare class AppFeatureConfigService {
11
- private http;
12
- private settings;
13
- private router;
14
- private loading$;
15
- constructor(http: _HttpClient, settings: SettingsService, router: Router);
16
- load(force?: boolean): Observable<AppFeatureConfig>;
17
- save(config: AppFeatureConfig): Observable<AppFeatureConfig>;
18
- current(): AppFeatureConfig | null;
19
- redirectHome(): void;
20
- private set;
21
- private fromResponse;
22
- private defaults;
23
- private toBool;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<AppFeatureConfigService, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<AppFeatureConfigService>;
26
- }
1
+ /**
2
+ * 兼容运行端原有导入路径,实际实现统一由 base/shared.srv 提供。
3
+ */
4
+ export { AppFeatureConfigKey, AppFeatureConfigService, } from '@ebuilding/base/shared.srv/app-feature-config.service';
5
+ export type { AppFeatureConfig } from '@ebuilding/base/shared.srv/app-feature-config.service';
package/fesm2022/auth.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Optional, Inject, Component, NgModule } from '@angular/core';
3
- import * as i8 from '@ebuilding/runtime/shared-imports';
3
+ import * as i9 from '@ebuilding/runtime/shared-imports';
4
4
  import { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';
5
5
  import * as i1 from '@angular/forms';
6
6
  import { Validators } from '@angular/forms';
7
- import * as i15 from '@delon/abc/reuse-tab';
7
+ import * as i16 from '@delon/abc/reuse-tab';
8
8
  import { ReuseTabService } from '@delon/abc/reuse-tab';
9
9
  import * as i6 from '@delon/acl';
10
10
  import { DelonACLModule } from '@delon/acl';
@@ -20,12 +20,13 @@ import { RouterModule } from '@angular/router';
20
20
  import * as i4 from '@delon/theme';
21
21
  import * as i5 from 'ng-zorro-antd/message';
22
22
  import * as i7 from '@ebuilding/base/shared.srv/base-dialog.service';
23
- import * as i9 from 'ng-zorro-antd/button';
24
- import * as i10 from 'ng-zorro-antd/core/transition-patch';
25
- import * as i11 from 'ng-zorro-antd/core/wave';
26
- import * as i12 from 'ng-zorro-antd/grid';
27
- import * as i13 from 'ng-zorro-antd/input';
28
- import * as i14 from 'ng-zorro-antd/form';
23
+ import * as i8 from '@ebuilding/base/shared.srv/app-feature-config.service';
24
+ import * as i10 from 'ng-zorro-antd/button';
25
+ import * as i11 from 'ng-zorro-antd/core/transition-patch';
26
+ import * as i12 from 'ng-zorro-antd/core/wave';
27
+ import * as i13 from 'ng-zorro-antd/grid';
28
+ import * as i14 from 'ng-zorro-antd/input';
29
+ import * as i15 from 'ng-zorro-antd/form';
29
30
 
30
31
  const RUNTIME_AUTH_OPTIONS = new InjectionToken('RUNTIME_AUTH_OPTIONS', {
31
32
  providedIn: 'root',
@@ -46,12 +47,13 @@ class UserLoginComponent {
46
47
  settingService;
47
48
  aclService;
48
49
  dialogSrv;
50
+ featureConfig;
49
51
  authOptions;
50
52
  title = AppNameDesc;
51
53
  sourceType = null;
52
54
  sourceUserId = null;
53
55
  sourceCorpId = null;
54
- constructor(fb, modalSrv, router, activatedRoute, reuseTabService, tokenService, http, msg, settingService, aclService, dialogSrv, authOptions) {
56
+ constructor(fb, modalSrv, router, activatedRoute, reuseTabService, tokenService, http, msg, settingService, aclService, dialogSrv, featureConfig, authOptions) {
55
57
  this.router = router;
56
58
  this.activatedRoute = activatedRoute;
57
59
  this.reuseTabService = reuseTabService;
@@ -61,6 +63,7 @@ class UserLoginComponent {
61
63
  this.settingService = settingService;
62
64
  this.aclService = aclService;
63
65
  this.dialogSrv = dialogSrv;
66
+ this.featureConfig = featureConfig;
64
67
  this.authOptions = authOptions;
65
68
  this.loading = false;
66
69
  this.title = this.settingService.app?.name;
@@ -168,6 +171,8 @@ class UserLoginComponent {
168
171
  this.settingService.setUser(res.userInfo);
169
172
  // 设置用户Token信息
170
173
  this.tokenService.set(res);
174
+ // 登录身份已经确定,清理该租户及旧版本遗留的功能开关缓存,由首页重新读取服务端配置。
175
+ this.featureConfig.clear();
171
176
  this.forceChangePwd = res.forceChangePwd === true || res.userInfo?.forceChangePwd === true;
172
177
  // ACL:设置权限为全量
173
178
  this.aclService.setFull(false);
@@ -228,8 +233,8 @@ class UserLoginComponent {
228
233
  clearInterval(this.interval$);
229
234
  }
230
235
  }
231
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UserLoginComponent, deps: [{ token: i1.FormBuilder }, { token: i2.NzModalService }, { token: i3.Router }, { token: i3.ActivatedRoute }, { token: ReuseTabService, optional: true }, { token: DA_SERVICE_TOKEN }, { token: i4._HttpClient }, { token: i5.NzMessageService }, { token: i4.SettingsService }, { token: i6.ACLService }, { token: i7.GramBaseDialogService }, { token: RUNTIME_AUTH_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
232
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: UserLoginComponent, isStandalone: true, selector: "passport-login", providers: [SocialService], ngImport: i0, template: "<div class=\"header\">\u767B\u5F55&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u4F01\u4E1AID\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"flag\">\n <input nz-input formControlName=\"customerId\" placeholder=\"\u8BF7\u8F93\u5165\u4F01\u4E1AID\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u8D26\u53F7\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>\u767B\u5F55</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">\u5FD8\u8BB0\u5BC6\u7801</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;height:100%;padding:50px;color:#000}:host ::ng-deep .header{padding:25px 0 40px;font-weight:700;font-size:18px;text-align:left}:host ::ng-deep .form .ant-form-item{margin-bottom:25px;text-align:left}:host ::ng-deep .form nz-form-item:nth-child(1),:host ::ng-deep .form nz-form-item:nth-child(2){height:50px;margin-bottom:25px}:host ::ng-deep .form .ant-input-prefix{margin-right:8px}:host ::ng-deep .ant-input{border:0;border-radius:0}:host ::ng-deep .ant-input:focus{background:#fff;background-color:#fff;box-shadow:none}:host ::ng-deep button{border-radius:18px}:host ::ng-deep input::-webkit-input-placeholder{font-size:14px!important}:host ::ng-deep input:-moz-placeholder{font-size:14px!important}:host ::ng-deep input::-moz-placeholder{font-size:14px!important}:host ::ng-deep input:-ms-input-placeholder{font-size:14px!important}:host ::ng-deep input:-internal-autofill-previewed,:host ::ng-deep input:-internal-autofill-selected{transition:background-color 5000s ease-out .5s;-webkit-text-fill-color:#807c7c}\n"], dependencies: [{ kind: "ngmodule", type: RuntimeSharedImportsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i8.FormSubmitTouchDirective, selector: "form[formGroup]" }, { kind: "component", type: i9.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i10.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i11.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i12.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i12.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i13.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i13.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i14.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i14.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i14.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: DelonACLModule }] });
236
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UserLoginComponent, deps: [{ token: i1.FormBuilder }, { token: i2.NzModalService }, { token: i3.Router }, { token: i3.ActivatedRoute }, { token: ReuseTabService, optional: true }, { token: DA_SERVICE_TOKEN }, { token: i4._HttpClient }, { token: i5.NzMessageService }, { token: i4.SettingsService }, { token: i6.ACLService }, { token: i7.GramBaseDialogService }, { token: i8.AppFeatureConfigService }, { token: RUNTIME_AUTH_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
237
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: UserLoginComponent, isStandalone: true, selector: "passport-login", providers: [SocialService], ngImport: i0, template: "<div class=\"header\">\u767B\u5F55&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u4F01\u4E1AID\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"flag\">\n <input nz-input formControlName=\"customerId\" placeholder=\"\u8BF7\u8F93\u5165\u4F01\u4E1AID\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u8D26\u53F7\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>\u767B\u5F55</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">\u5FD8\u8BB0\u5BC6\u7801</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;height:100%;padding:50px;color:#000}:host ::ng-deep .header{padding:25px 0 40px;font-weight:700;font-size:18px;text-align:left}:host ::ng-deep .form .ant-form-item{margin-bottom:25px;text-align:left}:host ::ng-deep .form nz-form-item:nth-child(1),:host ::ng-deep .form nz-form-item:nth-child(2){height:50px;margin-bottom:25px}:host ::ng-deep .form .ant-input-prefix{margin-right:8px}:host ::ng-deep .ant-input{border:0;border-radius:0}:host ::ng-deep .ant-input:focus{background:#fff;background-color:#fff;box-shadow:none}:host ::ng-deep button{border-radius:18px}:host ::ng-deep input::-webkit-input-placeholder{font-size:14px!important}:host ::ng-deep input:-moz-placeholder{font-size:14px!important}:host ::ng-deep input::-moz-placeholder{font-size:14px!important}:host ::ng-deep input:-ms-input-placeholder{font-size:14px!important}:host ::ng-deep input:-internal-autofill-previewed,:host ::ng-deep input:-internal-autofill-selected{transition:background-color 5000s ease-out .5s;-webkit-text-fill-color:#807c7c}\n"], dependencies: [{ kind: "ngmodule", type: RuntimeSharedImportsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i9.FormSubmitTouchDirective, selector: "form[formGroup]" }, { kind: "component", type: i10.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i11.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i12.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i13.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i13.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i14.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i14.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i15.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i15.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i15.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: DelonACLModule }] });
233
238
  }
234
239
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UserLoginComponent, decorators: [{
235
240
  type: Component,
@@ -237,7 +242,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
237
242
  RuntimeSharedImportsModule,
238
243
  DelonACLModule
239
244
  ], template: "<div class=\"header\">\u767B\u5F55&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u4F01\u4E1AID\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"flag\">\n <input nz-input formControlName=\"customerId\" placeholder=\"\u8BF7\u8F93\u5165\u4F01\u4E1AID\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u8D26\u53F7\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>\u767B\u5F55</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">\u5FD8\u8BB0\u5BC6\u7801</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;height:100%;padding:50px;color:#000}:host ::ng-deep .header{padding:25px 0 40px;font-weight:700;font-size:18px;text-align:left}:host ::ng-deep .form .ant-form-item{margin-bottom:25px;text-align:left}:host ::ng-deep .form nz-form-item:nth-child(1),:host ::ng-deep .form nz-form-item:nth-child(2){height:50px;margin-bottom:25px}:host ::ng-deep .form .ant-input-prefix{margin-right:8px}:host ::ng-deep .ant-input{border:0;border-radius:0}:host ::ng-deep .ant-input:focus{background:#fff;background-color:#fff;box-shadow:none}:host ::ng-deep button{border-radius:18px}:host ::ng-deep input::-webkit-input-placeholder{font-size:14px!important}:host ::ng-deep input:-moz-placeholder{font-size:14px!important}:host ::ng-deep input::-moz-placeholder{font-size:14px!important}:host ::ng-deep input:-ms-input-placeholder{font-size:14px!important}:host ::ng-deep input:-internal-autofill-previewed,:host ::ng-deep input:-internal-autofill-selected{transition:background-color 5000s ease-out .5s;-webkit-text-fill-color:#807c7c}\n"] }]
240
- }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.NzModalService }, { type: i3.Router }, { type: i3.ActivatedRoute }, { type: i15.ReuseTabService, decorators: [{
245
+ }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.NzModalService }, { type: i3.Router }, { type: i3.ActivatedRoute }, { type: i16.ReuseTabService, decorators: [{
241
246
  type: Optional
242
247
  }, {
243
248
  type: Inject,
@@ -245,7 +250,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
245
250
  }] }, { type: undefined, decorators: [{
246
251
  type: Inject,
247
252
  args: [DA_SERVICE_TOKEN]
248
- }] }, { type: i4._HttpClient }, { type: i5.NzMessageService }, { type: i4.SettingsService }, { type: i6.ACLService }, { type: i7.GramBaseDialogService }, { type: undefined, decorators: [{
253
+ }] }, { type: i4._HttpClient }, { type: i5.NzMessageService }, { type: i4.SettingsService }, { type: i6.ACLService }, { type: i7.GramBaseDialogService }, { type: i8.AppFeatureConfigService }, { type: undefined, decorators: [{
249
254
  type: Inject,
250
255
  args: [RUNTIME_AUTH_OPTIONS]
251
256
  }] }] });
@@ -260,12 +265,13 @@ class UserLoginCustComponent {
260
265
  settingService;
261
266
  aclService;
262
267
  dialogSrv;
268
+ featureConfig;
263
269
  authOptions;
264
270
  title = AppNameDesc;
265
271
  sourceType = null;
266
272
  sourceUserId = null;
267
273
  customerId = null;
268
- constructor(fb, modalSrv, router, activatedRoute, reuseTabService, tokenService, http, msg, settingService, aclService, dialogSrv, authOptions) {
274
+ constructor(fb, modalSrv, router, activatedRoute, reuseTabService, tokenService, http, msg, settingService, aclService, dialogSrv, featureConfig, authOptions) {
269
275
  this.router = router;
270
276
  this.activatedRoute = activatedRoute;
271
277
  this.reuseTabService = reuseTabService;
@@ -275,6 +281,7 @@ class UserLoginCustComponent {
275
281
  this.settingService = settingService;
276
282
  this.aclService = aclService;
277
283
  this.dialogSrv = dialogSrv;
284
+ this.featureConfig = featureConfig;
278
285
  this.authOptions = authOptions;
279
286
  this.loading = false;
280
287
  this.title = this.settingService.app?.name;
@@ -366,6 +373,8 @@ class UserLoginCustComponent {
366
373
  this.settingService.setUser(res.userInfo);
367
374
  // 设置用户Token信息
368
375
  this.tokenService.set(res);
376
+ // 登录身份已经确定,清理该租户及旧版本遗留的功能开关缓存,由首页重新读取服务端配置。
377
+ this.featureConfig.clear();
369
378
  this.forceChangePwd = res.forceChangePwd === true || res.userInfo?.forceChangePwd === true;
370
379
  // ACL:设置权限为全量
371
380
  this.aclService.setFull(false);
@@ -426,8 +435,8 @@ class UserLoginCustComponent {
426
435
  clearInterval(this.interval$);
427
436
  }
428
437
  }
429
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UserLoginCustComponent, deps: [{ token: i1.FormBuilder }, { token: i2.NzModalService }, { token: i3.Router }, { token: i3.ActivatedRoute }, { token: ReuseTabService, optional: true }, { token: DA_SERVICE_TOKEN }, { token: i4._HttpClient }, { token: i5.NzMessageService }, { token: i4.SettingsService }, { token: i6.ACLService }, { token: i7.GramBaseDialogService }, { token: RUNTIME_AUTH_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
430
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: UserLoginCustComponent, isStandalone: true, selector: "passport-login-cust", providers: [SocialService], ngImport: i0, template: "<div class=\"header\">\u767B\u5F55&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u8D26\u53F7\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>\u767B\u5F55</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">\u5FD8\u8BB0\u5BC6\u7801</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;height:100%;padding:50px;color:#000}:host ::ng-deep .header{padding:25px 0 40px;font-weight:700;font-size:18px;text-align:left}:host ::ng-deep .form .ant-form-item{margin-bottom:25px;text-align:left}:host ::ng-deep .form nz-form-item:nth-child(1),:host ::ng-deep .form nz-form-item:nth-child(2){height:50px;margin-bottom:25px}:host ::ng-deep .form .ant-input-prefix{margin-right:8px}:host ::ng-deep .ant-input{border:0;border-radius:0}:host ::ng-deep .ant-input:focus{background:#fff;background-color:#fff;box-shadow:none}:host ::ng-deep button{border-radius:18px}:host ::ng-deep input::-webkit-input-placeholder{font-size:14px!important}:host ::ng-deep input:-moz-placeholder{font-size:14px!important}:host ::ng-deep input::-moz-placeholder{font-size:14px!important}:host ::ng-deep input:-ms-input-placeholder{font-size:14px!important}:host ::ng-deep input:-internal-autofill-previewed,:host ::ng-deep input:-internal-autofill-selected{transition:background-color 5000s ease-out .5s;-webkit-text-fill-color:#807c7c}\n"], dependencies: [{ kind: "ngmodule", type: RuntimeSharedImportsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i8.FormSubmitTouchDirective, selector: "form[formGroup]" }, { kind: "component", type: i9.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i10.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i11.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i12.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i12.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i13.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i13.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i14.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i14.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i14.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: DelonACLModule }] });
438
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UserLoginCustComponent, deps: [{ token: i1.FormBuilder }, { token: i2.NzModalService }, { token: i3.Router }, { token: i3.ActivatedRoute }, { token: ReuseTabService, optional: true }, { token: DA_SERVICE_TOKEN }, { token: i4._HttpClient }, { token: i5.NzMessageService }, { token: i4.SettingsService }, { token: i6.ACLService }, { token: i7.GramBaseDialogService }, { token: i8.AppFeatureConfigService }, { token: RUNTIME_AUTH_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
439
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: UserLoginCustComponent, isStandalone: true, selector: "passport-login-cust", providers: [SocialService], ngImport: i0, template: "<div class=\"header\">\u767B\u5F55&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u8D26\u53F7\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>\u767B\u5F55</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">\u5FD8\u8BB0\u5BC6\u7801</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;height:100%;padding:50px;color:#000}:host ::ng-deep .header{padding:25px 0 40px;font-weight:700;font-size:18px;text-align:left}:host ::ng-deep .form .ant-form-item{margin-bottom:25px;text-align:left}:host ::ng-deep .form nz-form-item:nth-child(1),:host ::ng-deep .form nz-form-item:nth-child(2){height:50px;margin-bottom:25px}:host ::ng-deep .form .ant-input-prefix{margin-right:8px}:host ::ng-deep .ant-input{border:0;border-radius:0}:host ::ng-deep .ant-input:focus{background:#fff;background-color:#fff;box-shadow:none}:host ::ng-deep button{border-radius:18px}:host ::ng-deep input::-webkit-input-placeholder{font-size:14px!important}:host ::ng-deep input:-moz-placeholder{font-size:14px!important}:host ::ng-deep input::-moz-placeholder{font-size:14px!important}:host ::ng-deep input:-ms-input-placeholder{font-size:14px!important}:host ::ng-deep input:-internal-autofill-previewed,:host ::ng-deep input:-internal-autofill-selected{transition:background-color 5000s ease-out .5s;-webkit-text-fill-color:#807c7c}\n"], dependencies: [{ kind: "ngmodule", type: RuntimeSharedImportsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i9.FormSubmitTouchDirective, selector: "form[formGroup]" }, { kind: "component", type: i10.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i11.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i12.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i13.NzColDirective, selector: "[nz-col],nz-col,nz-form-control,nz-form-label", inputs: ["nzFlex", "nzSpan", "nzOrder", "nzOffset", "nzPush", "nzPull", "nzXs", "nzSm", "nzMd", "nzLg", "nzXl", "nzXXl"], exportAs: ["nzCol"] }, { kind: "directive", type: i13.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i14.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i14.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i15.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i15.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i15.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: DelonACLModule }] });
431
440
  }
432
441
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UserLoginCustComponent, decorators: [{
433
442
  type: Component,
@@ -435,7 +444,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
435
444
  RuntimeSharedImportsModule,
436
445
  DelonACLModule
437
446
  ], template: "<div class=\"header\">\u767B\u5F55&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u8D26\u53F7\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u8D26\u53F7\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"\u767B\u5F55\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>\u767B\u5F55</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">\u5FD8\u8BB0\u5BC6\u7801</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;height:100%;padding:50px;color:#000}:host ::ng-deep .header{padding:25px 0 40px;font-weight:700;font-size:18px;text-align:left}:host ::ng-deep .form .ant-form-item{margin-bottom:25px;text-align:left}:host ::ng-deep .form nz-form-item:nth-child(1),:host ::ng-deep .form nz-form-item:nth-child(2){height:50px;margin-bottom:25px}:host ::ng-deep .form .ant-input-prefix{margin-right:8px}:host ::ng-deep .ant-input{border:0;border-radius:0}:host ::ng-deep .ant-input:focus{background:#fff;background-color:#fff;box-shadow:none}:host ::ng-deep button{border-radius:18px}:host ::ng-deep input::-webkit-input-placeholder{font-size:14px!important}:host ::ng-deep input:-moz-placeholder{font-size:14px!important}:host ::ng-deep input::-moz-placeholder{font-size:14px!important}:host ::ng-deep input:-ms-input-placeholder{font-size:14px!important}:host ::ng-deep input:-internal-autofill-previewed,:host ::ng-deep input:-internal-autofill-selected{transition:background-color 5000s ease-out .5s;-webkit-text-fill-color:#807c7c}\n"] }]
438
- }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.NzModalService }, { type: i3.Router }, { type: i3.ActivatedRoute }, { type: i15.ReuseTabService, decorators: [{
447
+ }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.NzModalService }, { type: i3.Router }, { type: i3.ActivatedRoute }, { type: i16.ReuseTabService, decorators: [{
439
448
  type: Optional
440
449
  }, {
441
450
  type: Inject,
@@ -443,7 +452,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
443
452
  }] }, { type: undefined, decorators: [{
444
453
  type: Inject,
445
454
  args: [DA_SERVICE_TOKEN]
446
- }] }, { type: i4._HttpClient }, { type: i5.NzMessageService }, { type: i4.SettingsService }, { type: i6.ACLService }, { type: i7.GramBaseDialogService }, { type: undefined, decorators: [{
455
+ }] }, { type: i4._HttpClient }, { type: i5.NzMessageService }, { type: i4.SettingsService }, { type: i6.ACLService }, { type: i7.GramBaseDialogService }, { type: i8.AppFeatureConfigService }, { type: undefined, decorators: [{
447
456
  type: Inject,
448
457
  args: [RUNTIME_AUTH_OPTIONS]
449
458
  }] }] });
@@ -1 +1 @@
1
- {"version":3,"file":"auth.mjs","sources":["../../../../packages/runtime/auth/auth.tokens.ts","../../../../packages/runtime/auth/login/login.component.ts","../../../../packages/runtime/auth/login/login.component.html","../../../../packages/runtime/auth/login-cust/login.component.ts","../../../../packages/runtime/auth/login-cust/login.component.html","../../../../packages/runtime/auth/auth-routing.module.ts","../../../../packages/runtime/auth/authmodule.ts","../../../../packages/runtime/auth/auth.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport interface RuntimeAuthOptions {\n homeUrl: string;\n changePasswordUrl: string;\n sourceType: string;\n}\n\nexport const RUNTIME_AUTH_OPTIONS = new InjectionToken<RuntimeAuthOptions>('RUNTIME_AUTH_OPTIONS', {\n providedIn: 'root',\n factory: () => ({\n homeUrl: '/home',\n changePasswordUrl: '/admin/change-password',\n sourceType: 'PC',\n }),\n});\n\n","import { Component, Inject, OnDestroy, Optional } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzModalService } from 'ng-zorro-antd/modal';\r\nimport { ReuseTabService } from '@delon/abc/reuse-tab';\r\nimport { ACLService, DelonACLModule } from '@delon/acl';\r\nimport { DA_SERVICE_TOKEN, ITokenService, SocialService } from '@delon/auth';\r\nimport { SettingsService, _HttpClient } from '@delon/theme';\r\nimport { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';\r\nimport { ModuleAPI, Gram_App_Module, Gram_App_Type, Gram_Platform } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { initData } from '@ebuilding/base/shared.util/comm.menu';\r\nimport { base64Encode } from '@ebuilding/base/shared.util/tool';\r\nimport { cloneDeep } from 'lodash';\nimport { AppNameDesc, AppSetId, AppSetName, AppSetData, AppCustomerId } from '@ebuilding/base/shared.var/shared.variable';\nimport { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';\nimport { RUNTIME_AUTH_OPTIONS, RuntimeAuthOptions } from '../auth.tokens';\n\r\n@Component({\r\n selector: 'passport-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.less'],\r\n providers: [SocialService],\r\n imports: [\r\n RuntimeSharedImportsModule,\n DelonACLModule\r\n ]\r\n})\r\nexport class UserLoginComponent implements OnDestroy {\r\n title: any = AppNameDesc;\r\n\r\n sourceType: any = null;\r\n sourceUserId: any = null;\r\n sourceCorpId: any = null;\r\n constructor(\r\n fb: FormBuilder,\r\n modalSrv: NzModalService,\r\n private router: Router,\r\n private activatedRoute: ActivatedRoute,\r\n @Optional()\r\n @Inject(ReuseTabService)\r\n private reuseTabService: ReuseTabService,\r\n @Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService,\r\n public http: _HttpClient,\r\n public msg: NzMessageService,\r\n public settingService: SettingsService,\r\n private aclService: ACLService,\n private dialogSrv: GramBaseDialogService,\n @Inject(RUNTIME_AUTH_OPTIONS) private authOptions: RuntimeAuthOptions,\n ) {\n this.loading = false;\r\n this.title = this.settingService.app?.name;\r\n this.settingService.setData(Gram_App_Type, \"DEFAULT\");\r\n this.form = fb.group({\r\n customerId: [null, [Validators.required, Validators.minLength(2)]],\r\n userName: [null, [Validators.required, Validators.minLength(1)]],\r\n password: [null, Validators.required],\r\n mobile: [null, [Validators.required, Validators.pattern(/^1\\d{10}$/)]],\r\n captcha: [null, [Validators.required]],\r\n remember: [true],\r\n });\r\n modalSrv.closeAll();\r\n dialogSrv.closeAllDrawers();\r\n this.activatedRoute.queryParams.subscribe((params: any) => {\r\n if (params!! && params['type']!! && params['userId']!! && params['corpId']!!) {\r\n this.sourceType = params['type'];\r\n this.sourceUserId = params['userId'];\r\n this.sourceCorpId = params['corpId'];\r\n }\r\n });\r\n }\r\n\r\n // #region fields\r\n\r\n get customerId() {\r\n return this.form.controls[\"customerId\"];\r\n }\r\n get userName() {\r\n return this.form.controls[\"userName\"];\r\n }\r\n get password() {\r\n return this.form.controls[\"password\"];\r\n }\r\n get mobile() {\r\n return this.form.controls[\"mobile\"];\r\n }\r\n get captcha() {\r\n return this.form.controls[\"captcha\"];\r\n }\r\n form: FormGroup;\r\n error = '';\r\n type = 0;\r\n loading = false;\r\n forceChangePwd = false;\r\n // #region get captcha\r\n\r\n count = 0;\r\n interval$: any;\r\n\r\n // #endregion\r\n\r\n switch(ret: any) {\r\n this.type = ret.index;\r\n }\r\n\r\n getCaptcha() {\r\n if (this.mobile.invalid) {\r\n this.mobile.markAsDirty({ onlySelf: true });\r\n this.mobile.updateValueAndValidity({ onlySelf: true });\r\n return;\r\n }\r\n this.count = 59;\r\n this.interval$ = setInterval(() => {\r\n this.count -= 1;\r\n if (this.count <= 0) {\r\n clearInterval(this.interval$);\r\n }\r\n }, 1000);\r\n }\r\n\r\n // #endregion\r\n\r\n submit() {\r\n this.error = '';\r\n this.customerId.markAsDirty();\r\n this.customerId.updateValueAndValidity();\r\n this.userName.markAsDirty();\r\n this.userName.updateValueAndValidity();\r\n this.password.markAsDirty();\r\n this.password.updateValueAndValidity();\r\n if (this.customerId.invalid || this.userName.invalid || this.password.invalid) {\r\n return;\r\n }\r\n\r\n const encodePwd = base64Encode(this.password.value);\r\n\r\n let postUrl: any = `${ModuleAPI.system}/auth/login`;\r\n let postData: any = {\r\n customerId: this.customerId.value,\r\n account: this.userName.value,\r\n password: encodePwd,\r\n sourceType: this.authOptions.sourceType,\n captcha: '',\r\n checkKey: '',\r\n };\r\n if (this.sourceType!! && this.sourceUserId!! && this.sourceCorpId!!) {\r\n if (this.sourceType == 'dd') {\r\n postData['thirdType'] = 'DD';\r\n postData['thirdCorpId'] = this.sourceCorpId;\r\n postData['thirdUserId'] = this.sourceUserId;\r\n }\r\n }\r\n this.loading = true;\r\n this.settingService.setData(AppCustomerId, this.customerId.value);\r\n this.http.post(postUrl, postData, null, { headers: { customerId: this.customerId.value } }).subscribe(\r\n (res: any) => {\r\n this.settingService.setData(Gram_Platform, \"DEFAULT\");\r\n if (res!! && res.success == true) {\r\n res = res.result;\r\n // 清空路由复用信息\r\n if (this.reuseTabService) {\r\n this.reuseTabService.clear();\r\n }\r\n // 用户信息:包括姓名、头像、邮箱地址\r\n this.settingService.setUser(res.userInfo);\r\n // 设置用户Token信息\r\n this.tokenService.set(res);\r\n this.forceChangePwd = res.forceChangePwd === true || res.userInfo?.forceChangePwd === true;\r\n // ACL:设置权限为全量\r\n this.aclService.setFull(false);\r\n let listRole: any[] = [];\r\n if (res.userInfo!! && res.userInfo.listRole!!) {\r\n listRole = res.userInfo.listRole;\r\n }\r\n let eId: any = null;\r\n let eName: any = null;\r\n let listEbId: any[] = [];\r\n if (res.userInfo!! && res.userInfo.listEbId!! && res.userInfo.listEbId.length > 0) {\r\n listEbId = res.userInfo.listEbId;\r\n listEbId.forEach((item: any) => {\r\n if (res.userInfo.defaultId!! && item.id == res.userInfo.defaultId) {\r\n eId = item.id;\r\n eName = item.name;\r\n }\r\n });\r\n if (eId == null || eId == '') {\r\n eId = listEbId[0].id;\r\n eName = listEbId[0].name;\r\n }\r\n }\r\n this.aclService.setRole(listRole);\r\n this.settingService.setData(AppSetId, eId);\r\n this.settingService.setData(AppSetName, eName);\r\n this.settingService.setData(AppSetData, listEbId);\r\n this.getUserMenus();\r\n } else {\r\n this.loading = false;\r\n }\r\n },\r\n (res: any) => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n\r\n getUserMenus() {\r\n this.http.post(`${ModuleAPI.user}/user/sys/module`, null).subscribe(\r\n (res: any) => {\r\n let menuData: any[] = [];\r\n if (res.result!! && res.result.length > 0) {\r\n menuData = initData(res.result);\r\n }\r\n\r\n this.settingService.setData(Gram_App_Module, cloneDeep(menuData));\r\n if (this.forceChangePwd) {\r\n this.router.navigateByUrl(this.authOptions.changePasswordUrl);\n } else {\n this.router.navigateByUrl(this.authOptions.homeUrl);\n }\n this.loading = false;\r\n },\r\n (res: any) => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n\r\n // #endregion\r\n\r\n ngOnDestroy(): void {\r\n if (this.interval$) {\r\n clearInterval(this.interval$);\r\n }\r\n }\r\n}\r\n","<div class=\"header\">登录&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"企业ID不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"flag\">\n <input nz-input formControlName=\"customerId\" placeholder=\"请输入企业ID\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"登录账号不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"请输入登录账号\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"登录密码不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"请输入登录密码\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>登录</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">忘记密码</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>\n","import { Component, Inject, OnDestroy, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzModalService } from 'ng-zorro-antd/modal';\r\nimport { ReuseTabService } from '@delon/abc/reuse-tab';\r\nimport { ACLService, DelonACLModule } from '@delon/acl';\r\nimport { DA_SERVICE_TOKEN, ITokenService, SocialService } from '@delon/auth';\r\nimport { SettingsService, _HttpClient } from '@delon/theme';\r\nimport { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';\r\nimport { ModuleAPI, Gram_App_Module, Gram_App_Type, Gram_Platform } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { initData } from '@ebuilding/base/shared.util/comm.menu';\r\nimport { base64Encode } from '@ebuilding/base/shared.util/tool';\r\nimport { cloneDeep } from 'lodash';\nimport { AppNameDesc, AppSetId, AppSetName, AppSetData, AppCustomerId } from '@ebuilding/base/shared.var/shared.variable';\nimport { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';\nimport { RUNTIME_AUTH_OPTIONS, RuntimeAuthOptions } from '../auth.tokens';\n\r\n@Component({\r\n selector: 'passport-login-cust',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.less'],\r\n providers: [SocialService],\r\n imports: [\r\n RuntimeSharedImportsModule,\n DelonACLModule\r\n ]\r\n})\r\nexport class UserLoginCustComponent implements OnDestroy {\r\n title: any = AppNameDesc;\r\n\r\n sourceType: any = null;\r\n sourceUserId: any = null;\r\n customerId: any = null;\r\n constructor(\r\n fb: FormBuilder,\r\n modalSrv: NzModalService,\r\n private router: Router,\r\n private activatedRoute: ActivatedRoute,\r\n @Optional()\r\n @Inject(ReuseTabService)\r\n private reuseTabService: ReuseTabService,\r\n @Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService,\r\n public http: _HttpClient,\r\n public msg: NzMessageService,\r\n public settingService: SettingsService,\r\n private aclService: ACLService,\n private dialogSrv: GramBaseDialogService,\n @Inject(RUNTIME_AUTH_OPTIONS) private authOptions: RuntimeAuthOptions,\n ) {\n this.loading = false;\r\n this.title = this.settingService.app?.name;\r\n this.settingService.setData(Gram_App_Type, \"DEFAULT\");\r\n this.form = fb.group({\r\n userName: [null, [Validators.required, Validators.minLength(1)]],\r\n password: [null, Validators.required],\r\n mobile: [null, [Validators.required, Validators.pattern(/^1\\d{10}$/)]],\r\n captcha: [null, [Validators.required]],\r\n remember: [true],\r\n });\r\n modalSrv.closeAll();\r\n dialogSrv.closeAllDrawers();\r\n this.activatedRoute.params.subscribe((item: any) => {\r\n if (item && item?.id) {\r\n this.customerId = item['id'];\r\n }\r\n });\r\n }\r\n\r\n get userName() {\r\n return this.form.controls[\"userName\"];\r\n }\r\n get password() {\r\n return this.form.controls[\"password\"];\r\n }\r\n get mobile() {\r\n return this.form.controls[\"mobile\"];\r\n }\r\n get captcha() {\r\n return this.form.controls[\"captcha\"];\r\n }\r\n form: FormGroup;\r\n error = '';\r\n type = 0;\r\n loading = false;\r\n forceChangePwd = false;\r\n // #region get captcha\r\n\r\n count = 0;\r\n interval$: any;\r\n\r\n // #endregion\r\n\r\n switch(ret: any) {\r\n this.type = ret.index;\r\n }\r\n\r\n getCaptcha() {\r\n if (this.mobile.invalid) {\r\n this.mobile.markAsDirty({ onlySelf: true });\r\n this.mobile.updateValueAndValidity({ onlySelf: true });\r\n return;\r\n }\r\n this.count = 59;\r\n this.interval$ = setInterval(() => {\r\n this.count -= 1;\r\n if (this.count <= 0) {\r\n clearInterval(this.interval$);\r\n }\r\n }, 1000);\r\n }\r\n\r\n // #endregion\r\n\r\n submit() {\r\n this.error = '';\r\n this.userName.markAsDirty();\r\n this.userName.updateValueAndValidity();\r\n this.password.markAsDirty();\r\n this.password.updateValueAndValidity();\r\n if (this.userName.invalid || this.password.invalid) {\r\n return;\r\n }\r\n\r\n const encodePwd = base64Encode(this.password.value);\r\n\r\n let postUrl: any = `${ModuleAPI.system}/auth/login`;\r\n let postData: any = {\r\n customerId: this.customerId,\r\n account: this.userName.value,\r\n password: encodePwd,\r\n sourceType: this.authOptions.sourceType,\n captcha: '',\r\n checkKey: '',\r\n };\r\n this.loading = true;\r\n this.settingService.setData(AppCustomerId, this.customerId);\r\n this.http.post(postUrl, postData, null, { headers: { customerId: this.customerId } }).subscribe(\r\n (res: any) => {\r\n this.settingService.setData(Gram_Platform, \"DEFAULT\");\r\n if (res!! && res.success == true) {\r\n res = res.result;\r\n // 清空路由复用信息\r\n if (this.reuseTabService) {\r\n this.reuseTabService.clear();\r\n }\r\n // 用户信息:包括姓名、头像、邮箱地址\r\n this.settingService.setUser(res.userInfo);\r\n // 设置用户Token信息\r\n this.tokenService.set(res);\r\n this.forceChangePwd = res.forceChangePwd === true || res.userInfo?.forceChangePwd === true;\r\n // ACL:设置权限为全量\r\n this.aclService.setFull(false);\r\n let listRole: any[] = [];\r\n if (res.userInfo!! && res.userInfo.listRole!!) {\r\n listRole = res.userInfo.listRole;\r\n }\r\n let eId: any = null;\r\n let eName: any = null;\r\n let listEbId: any[] = [];\r\n if (res.userInfo!! && res.userInfo.listEbId!! && res.userInfo.listEbId.length > 0) {\r\n listEbId = res.userInfo.listEbId;\r\n listEbId.forEach((item: any) => {\r\n if (res.userInfo.defaultId!! && item.id == res.userInfo.defaultId) {\r\n eId = item.id;\r\n eName = item.name;\r\n }\r\n });\r\n if (eId == null || eId == '') {\r\n eId = listEbId[0].id;\r\n eName = listEbId[0].name;\r\n }\r\n }\r\n this.aclService.setRole(listRole);\r\n this.settingService.setData(AppSetId, eId);\r\n this.settingService.setData(AppSetName, eName);\r\n this.settingService.setData(AppSetData, listEbId);\r\n this.getUserMenus();\r\n } else {\r\n this.loading = false;\r\n }\r\n },\r\n (res: any) => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n\r\n getUserMenus() {\r\n this.http.post(`${ModuleAPI.user}/user/sys/module`, null).subscribe(\r\n (res: any) => {\r\n let menuData: any[] = [];\r\n if (res.result!! && res.result.length > 0) {\r\n menuData = initData(res.result);\r\n }\r\n\r\n this.settingService.setData(Gram_App_Module, cloneDeep(menuData));\r\n if (this.forceChangePwd) {\r\n this.router.navigateByUrl(this.authOptions.changePasswordUrl);\n } else {\n this.router.navigateByUrl(this.authOptions.homeUrl);\n }\n this.loading = false;\r\n },\r\n (res: any) => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n\r\n // #endregion\r\n\r\n ngOnDestroy(): void {\r\n if (this.interval$) {\r\n clearInterval(this.interval$);\r\n }\r\n }\r\n}\r\n","<div class=\"header\">登录&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"登录账号不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"请输入登录账号\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"登录密码不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"请输入登录密码\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>登录</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">忘记密码</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>","import { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { UserLoginComponent } from './login/login.component';\nimport { UserLoginCustComponent } from './login-cust/login.component';\n\nconst routes: Routes = [\n {\n path: 'login',\n component: UserLoginComponent,\n data: { title: '登录', titleI18n: '登录' },\n },\n {\n path: 'login/:id',\n component: UserLoginCustComponent,\n data: { title: '登录', titleI18n: '登录' },\n },\n {\n path: ':id',\n component: UserLoginCustComponent,\n data: { title: '登录', titleI18n: '登录' },\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class AuthRoutingModule { }\n","import { NgModule } from '@angular/core';\nimport { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';\n\nimport { UserLoginComponent } from './login/login.component';\nimport { UserLoginCustComponent } from './login-cust/login.component';\nimport { AuthRoutingModule } from './auth-routing.module';\n\nconst COMPONENTS = [UserLoginComponent, UserLoginCustComponent];\n\n@NgModule({\n imports: [RuntimeSharedImportsModule, AuthRoutingModule, ...COMPONENTS],\n //declarations: [...COMPONENTS],\n})\nexport class AuthModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQa,oBAAoB,GAAG,IAAI,cAAc,CAAqB,sBAAsB,EAAE;AACjG,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,OAAO;AACd,QAAA,OAAO,EAAE,OAAO;AAChB,QAAA,iBAAiB,EAAE,wBAAwB;AAC3C,QAAA,UAAU,EAAE,IAAI;KACjB,CAAC;AACH,CAAA;;MCaY,kBAAkB,CAAA;AASnB,IAAA,MAAA;AACA,IAAA,cAAA;AAGA,IAAA,eAAA;AAC0B,IAAA,YAAA;AAC3B,IAAA,IAAA;AACA,IAAA,GAAA;AACA,IAAA,cAAA;AACC,IAAA,UAAA;AACA,IAAA,SAAA;AAC8B,IAAA,WAAA;IAnBxC,KAAK,GAAQ,WAAW;IAExB,UAAU,GAAQ,IAAI;IACtB,YAAY,GAAQ,IAAI;IACxB,YAAY,GAAQ,IAAI;IACxB,WACE,CAAA,EAAe,EACf,QAAwB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CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAV,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,YAHX,0BAA0B,EAAE,iBAAiB,EAHrC,kBAAkB,EAAE,sBAAsB,CAAA,EAAA,CAAA;AAMjD,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,EAHX,OAAA,EAAA,CAAA,0BAA0B,EAAE,iBAAiB,EAAK,UAAU,CAAA,EAAA,CAAA;;4FAG3D,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,0BAA0B,EAAE,iBAAiB,EAAE,GAAG,UAAU,CAAC;;AAExE,iBAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"auth.mjs","sources":["../../../../packages/runtime/auth/auth.tokens.ts","../../../../packages/runtime/auth/login/login.component.ts","../../../../packages/runtime/auth/login/login.component.html","../../../../packages/runtime/auth/login-cust/login.component.ts","../../../../packages/runtime/auth/login-cust/login.component.html","../../../../packages/runtime/auth/auth-routing.module.ts","../../../../packages/runtime/auth/authmodule.ts","../../../../packages/runtime/auth/auth.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport interface RuntimeAuthOptions {\n homeUrl: string;\n changePasswordUrl: string;\n sourceType: string;\n}\n\nexport const RUNTIME_AUTH_OPTIONS = new InjectionToken<RuntimeAuthOptions>('RUNTIME_AUTH_OPTIONS', {\n providedIn: 'root',\n factory: () => ({\n homeUrl: '/home',\n changePasswordUrl: '/admin/change-password',\n sourceType: 'PC',\n }),\n});\n\n","import { Component, Inject, OnDestroy, Optional } from '@angular/core';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzModalService } from 'ng-zorro-antd/modal';\r\nimport { ReuseTabService } from '@delon/abc/reuse-tab';\r\nimport { ACLService, DelonACLModule } from '@delon/acl';\r\nimport { DA_SERVICE_TOKEN, ITokenService, SocialService } from '@delon/auth';\r\nimport { SettingsService, _HttpClient } from '@delon/theme';\r\nimport { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';\nimport { AppFeatureConfigService } from '@ebuilding/base/shared.srv/app-feature-config.service';\nimport { ModuleAPI, Gram_App_Module, Gram_App_Type, Gram_Platform } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { initData } from '@ebuilding/base/shared.util/comm.menu';\r\nimport { base64Encode } from '@ebuilding/base/shared.util/tool';\r\nimport { cloneDeep } from 'lodash';\nimport { AppNameDesc, AppSetId, AppSetName, AppSetData, AppCustomerId } from '@ebuilding/base/shared.var/shared.variable';\nimport { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';\nimport { RUNTIME_AUTH_OPTIONS, RuntimeAuthOptions } from '../auth.tokens';\n\r\n@Component({\r\n selector: 'passport-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.less'],\r\n providers: [SocialService],\r\n imports: [\r\n RuntimeSharedImportsModule,\n DelonACLModule\r\n ]\r\n})\r\nexport class UserLoginComponent implements OnDestroy {\r\n title: any = AppNameDesc;\r\n\r\n sourceType: any = null;\r\n sourceUserId: any = null;\r\n sourceCorpId: any = null;\r\n constructor(\r\n fb: FormBuilder,\r\n modalSrv: NzModalService,\r\n private router: Router,\r\n private activatedRoute: ActivatedRoute,\r\n @Optional()\r\n @Inject(ReuseTabService)\r\n private reuseTabService: ReuseTabService,\r\n @Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService,\r\n public http: _HttpClient,\r\n public msg: NzMessageService,\r\n public settingService: SettingsService,\r\n private aclService: ACLService,\n private dialogSrv: GramBaseDialogService,\n private featureConfig: AppFeatureConfigService,\n @Inject(RUNTIME_AUTH_OPTIONS) private authOptions: RuntimeAuthOptions,\n ) {\n this.loading = false;\r\n this.title = this.settingService.app?.name;\r\n this.settingService.setData(Gram_App_Type, \"DEFAULT\");\r\n this.form = fb.group({\r\n customerId: [null, [Validators.required, Validators.minLength(2)]],\r\n userName: [null, [Validators.required, Validators.minLength(1)]],\r\n password: [null, Validators.required],\r\n mobile: [null, [Validators.required, Validators.pattern(/^1\\d{10}$/)]],\r\n captcha: [null, [Validators.required]],\r\n remember: [true],\r\n });\r\n modalSrv.closeAll();\r\n dialogSrv.closeAllDrawers();\r\n this.activatedRoute.queryParams.subscribe((params: any) => {\r\n if (params!! && params['type']!! && params['userId']!! && params['corpId']!!) {\r\n this.sourceType = params['type'];\r\n this.sourceUserId = params['userId'];\r\n this.sourceCorpId = params['corpId'];\r\n }\r\n });\r\n }\r\n\r\n // #region fields\r\n\r\n get customerId() {\r\n return this.form.controls[\"customerId\"];\r\n }\r\n get userName() {\r\n return this.form.controls[\"userName\"];\r\n }\r\n get password() {\r\n return this.form.controls[\"password\"];\r\n }\r\n get mobile() {\r\n return this.form.controls[\"mobile\"];\r\n }\r\n get captcha() {\r\n return this.form.controls[\"captcha\"];\r\n }\r\n form: FormGroup;\r\n error = '';\r\n type = 0;\r\n loading = false;\r\n forceChangePwd = false;\r\n // #region get captcha\r\n\r\n count = 0;\r\n interval$: any;\r\n\r\n // #endregion\r\n\r\n switch(ret: any) {\r\n this.type = ret.index;\r\n }\r\n\r\n getCaptcha() {\r\n if (this.mobile.invalid) {\r\n this.mobile.markAsDirty({ onlySelf: true });\r\n this.mobile.updateValueAndValidity({ onlySelf: true });\r\n return;\r\n }\r\n this.count = 59;\r\n this.interval$ = setInterval(() => {\r\n this.count -= 1;\r\n if (this.count <= 0) {\r\n clearInterval(this.interval$);\r\n }\r\n }, 1000);\r\n }\r\n\r\n // #endregion\r\n\r\n submit() {\r\n this.error = '';\r\n this.customerId.markAsDirty();\r\n this.customerId.updateValueAndValidity();\r\n this.userName.markAsDirty();\r\n this.userName.updateValueAndValidity();\r\n this.password.markAsDirty();\r\n this.password.updateValueAndValidity();\r\n if (this.customerId.invalid || this.userName.invalid || this.password.invalid) {\r\n return;\r\n }\r\n\r\n const encodePwd = base64Encode(this.password.value);\r\n\r\n let postUrl: any = `${ModuleAPI.system}/auth/login`;\r\n let postData: any = {\r\n customerId: this.customerId.value,\r\n account: this.userName.value,\r\n password: encodePwd,\r\n sourceType: this.authOptions.sourceType,\n captcha: '',\r\n checkKey: '',\r\n };\r\n if (this.sourceType!! && this.sourceUserId!! && this.sourceCorpId!!) {\r\n if (this.sourceType == 'dd') {\r\n postData['thirdType'] = 'DD';\r\n postData['thirdCorpId'] = this.sourceCorpId;\r\n postData['thirdUserId'] = this.sourceUserId;\r\n }\r\n }\r\n this.loading = true;\r\n this.settingService.setData(AppCustomerId, this.customerId.value);\r\n this.http.post(postUrl, postData, null, { headers: { customerId: this.customerId.value } }).subscribe(\r\n (res: any) => {\r\n this.settingService.setData(Gram_Platform, \"DEFAULT\");\r\n if (res!! && res.success == true) {\r\n res = res.result;\r\n // 清空路由复用信息\r\n if (this.reuseTabService) {\r\n this.reuseTabService.clear();\r\n }\r\n // 用户信息:包括姓名、头像、邮箱地址\r\n this.settingService.setUser(res.userInfo);\r\n // 设置用户Token信息\n this.tokenService.set(res);\n // 登录身份已经确定,清理该租户及旧版本遗留的功能开关缓存,由首页重新读取服务端配置。\n this.featureConfig.clear();\n this.forceChangePwd = res.forceChangePwd === true || res.userInfo?.forceChangePwd === true;\r\n // ACL:设置权限为全量\r\n this.aclService.setFull(false);\r\n let listRole: any[] = [];\r\n if (res.userInfo!! && res.userInfo.listRole!!) {\r\n listRole = res.userInfo.listRole;\r\n }\r\n let eId: any = null;\r\n let eName: any = null;\r\n let listEbId: any[] = [];\r\n if (res.userInfo!! && res.userInfo.listEbId!! && res.userInfo.listEbId.length > 0) {\r\n listEbId = res.userInfo.listEbId;\r\n listEbId.forEach((item: any) => {\r\n if (res.userInfo.defaultId!! && item.id == res.userInfo.defaultId) {\r\n eId = item.id;\r\n eName = item.name;\r\n }\r\n });\r\n if (eId == null || eId == '') {\r\n eId = listEbId[0].id;\r\n eName = listEbId[0].name;\r\n }\r\n }\r\n this.aclService.setRole(listRole);\r\n this.settingService.setData(AppSetId, eId);\r\n this.settingService.setData(AppSetName, eName);\r\n this.settingService.setData(AppSetData, listEbId);\r\n this.getUserMenus();\r\n } else {\r\n this.loading = false;\r\n }\r\n },\r\n (res: any) => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n\r\n getUserMenus() {\r\n this.http.post(`${ModuleAPI.user}/user/sys/module`, null).subscribe(\r\n (res: any) => {\r\n let menuData: any[] = [];\r\n if (res.result!! && res.result.length > 0) {\r\n menuData = initData(res.result);\r\n }\r\n\r\n this.settingService.setData(Gram_App_Module, cloneDeep(menuData));\r\n if (this.forceChangePwd) {\r\n this.router.navigateByUrl(this.authOptions.changePasswordUrl);\n } else {\n this.router.navigateByUrl(this.authOptions.homeUrl);\n }\n this.loading = false;\r\n },\r\n (res: any) => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n\r\n // #endregion\r\n\r\n ngOnDestroy(): void {\r\n if (this.interval$) {\r\n clearInterval(this.interval$);\r\n }\r\n }\r\n}\r\n","<div class=\"header\">登录&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"企业ID不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"flag\">\n <input nz-input formControlName=\"customerId\" placeholder=\"请输入企业ID\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"登录账号不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"请输入登录账号\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"登录密码不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"请输入登录密码\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>登录</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">忘记密码</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>\n","import { Component, Inject, OnDestroy, Optional } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzModalService } from 'ng-zorro-antd/modal';\r\nimport { ReuseTabService } from '@delon/abc/reuse-tab';\r\nimport { ACLService, DelonACLModule } from '@delon/acl';\r\nimport { DA_SERVICE_TOKEN, ITokenService, SocialService } from '@delon/auth';\r\nimport { SettingsService, _HttpClient } from '@delon/theme';\r\nimport { GramBaseDialogService } from '@ebuilding/base/shared.srv/base-dialog.service';\nimport { AppFeatureConfigService } from '@ebuilding/base/shared.srv/app-feature-config.service';\nimport { ModuleAPI, Gram_App_Module, Gram_App_Type, Gram_Platform } from '@ebuilding/base/shared.var/shared.constant';\r\nimport { initData } from '@ebuilding/base/shared.util/comm.menu';\r\nimport { base64Encode } from '@ebuilding/base/shared.util/tool';\r\nimport { cloneDeep } from 'lodash';\nimport { AppNameDesc, AppSetId, AppSetName, AppSetData, AppCustomerId } from '@ebuilding/base/shared.var/shared.variable';\nimport { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';\nimport { RUNTIME_AUTH_OPTIONS, RuntimeAuthOptions } from '../auth.tokens';\n\r\n@Component({\r\n selector: 'passport-login-cust',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.less'],\r\n providers: [SocialService],\r\n imports: [\r\n RuntimeSharedImportsModule,\n DelonACLModule\r\n ]\r\n})\r\nexport class UserLoginCustComponent implements OnDestroy {\r\n title: any = AppNameDesc;\r\n\r\n sourceType: any = null;\r\n sourceUserId: any = null;\r\n customerId: any = null;\r\n constructor(\r\n fb: FormBuilder,\r\n modalSrv: NzModalService,\r\n private router: Router,\r\n private activatedRoute: ActivatedRoute,\r\n @Optional()\r\n @Inject(ReuseTabService)\r\n private reuseTabService: ReuseTabService,\r\n @Inject(DA_SERVICE_TOKEN) private tokenService: ITokenService,\r\n public http: _HttpClient,\r\n public msg: NzMessageService,\r\n public settingService: SettingsService,\r\n private aclService: ACLService,\n private dialogSrv: GramBaseDialogService,\n private featureConfig: AppFeatureConfigService,\n @Inject(RUNTIME_AUTH_OPTIONS) private authOptions: RuntimeAuthOptions,\n ) {\n this.loading = false;\r\n this.title = this.settingService.app?.name;\r\n this.settingService.setData(Gram_App_Type, \"DEFAULT\");\r\n this.form = fb.group({\r\n userName: [null, [Validators.required, Validators.minLength(1)]],\r\n password: [null, Validators.required],\r\n mobile: [null, [Validators.required, Validators.pattern(/^1\\d{10}$/)]],\r\n captcha: [null, [Validators.required]],\r\n remember: [true],\r\n });\r\n modalSrv.closeAll();\r\n dialogSrv.closeAllDrawers();\r\n this.activatedRoute.params.subscribe((item: any) => {\r\n if (item && item?.id) {\r\n this.customerId = item['id'];\r\n }\r\n });\r\n }\r\n\r\n get userName() {\r\n return this.form.controls[\"userName\"];\r\n }\r\n get password() {\r\n return this.form.controls[\"password\"];\r\n }\r\n get mobile() {\r\n return this.form.controls[\"mobile\"];\r\n }\r\n get captcha() {\r\n return this.form.controls[\"captcha\"];\r\n }\r\n form: FormGroup;\r\n error = '';\r\n type = 0;\r\n loading = false;\r\n forceChangePwd = false;\r\n // #region get captcha\r\n\r\n count = 0;\r\n interval$: any;\r\n\r\n // #endregion\r\n\r\n switch(ret: any) {\r\n this.type = ret.index;\r\n }\r\n\r\n getCaptcha() {\r\n if (this.mobile.invalid) {\r\n this.mobile.markAsDirty({ onlySelf: true });\r\n this.mobile.updateValueAndValidity({ onlySelf: true });\r\n return;\r\n }\r\n this.count = 59;\r\n this.interval$ = setInterval(() => {\r\n this.count -= 1;\r\n if (this.count <= 0) {\r\n clearInterval(this.interval$);\r\n }\r\n }, 1000);\r\n }\r\n\r\n // #endregion\r\n\r\n submit() {\r\n this.error = '';\r\n this.userName.markAsDirty();\r\n this.userName.updateValueAndValidity();\r\n this.password.markAsDirty();\r\n this.password.updateValueAndValidity();\r\n if (this.userName.invalid || this.password.invalid) {\r\n return;\r\n }\r\n\r\n const encodePwd = base64Encode(this.password.value);\r\n\r\n let postUrl: any = `${ModuleAPI.system}/auth/login`;\r\n let postData: any = {\r\n customerId: this.customerId,\r\n account: this.userName.value,\r\n password: encodePwd,\r\n sourceType: this.authOptions.sourceType,\n captcha: '',\r\n checkKey: '',\r\n };\r\n this.loading = true;\r\n this.settingService.setData(AppCustomerId, this.customerId);\r\n this.http.post(postUrl, postData, null, { headers: { customerId: this.customerId } }).subscribe(\r\n (res: any) => {\r\n this.settingService.setData(Gram_Platform, \"DEFAULT\");\r\n if (res!! && res.success == true) {\r\n res = res.result;\r\n // 清空路由复用信息\r\n if (this.reuseTabService) {\r\n this.reuseTabService.clear();\r\n }\r\n // 用户信息:包括姓名、头像、邮箱地址\r\n this.settingService.setUser(res.userInfo);\r\n // 设置用户Token信息\n this.tokenService.set(res);\n // 登录身份已经确定,清理该租户及旧版本遗留的功能开关缓存,由首页重新读取服务端配置。\n this.featureConfig.clear();\n this.forceChangePwd = res.forceChangePwd === true || res.userInfo?.forceChangePwd === true;\r\n // ACL:设置权限为全量\r\n this.aclService.setFull(false);\r\n let listRole: any[] = [];\r\n if (res.userInfo!! && res.userInfo.listRole!!) {\r\n listRole = res.userInfo.listRole;\r\n }\r\n let eId: any = null;\r\n let eName: any = null;\r\n let listEbId: any[] = [];\r\n if (res.userInfo!! && res.userInfo.listEbId!! && res.userInfo.listEbId.length > 0) {\r\n listEbId = res.userInfo.listEbId;\r\n listEbId.forEach((item: any) => {\r\n if (res.userInfo.defaultId!! && item.id == res.userInfo.defaultId) {\r\n eId = item.id;\r\n eName = item.name;\r\n }\r\n });\r\n if (eId == null || eId == '') {\r\n eId = listEbId[0].id;\r\n eName = listEbId[0].name;\r\n }\r\n }\r\n this.aclService.setRole(listRole);\r\n this.settingService.setData(AppSetId, eId);\r\n this.settingService.setData(AppSetName, eName);\r\n this.settingService.setData(AppSetData, listEbId);\r\n this.getUserMenus();\r\n } else {\r\n this.loading = false;\r\n }\r\n },\r\n (res: any) => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n\r\n getUserMenus() {\r\n this.http.post(`${ModuleAPI.user}/user/sys/module`, null).subscribe(\r\n (res: any) => {\r\n let menuData: any[] = [];\r\n if (res.result!! && res.result.length > 0) {\r\n menuData = initData(res.result);\r\n }\r\n\r\n this.settingService.setData(Gram_App_Module, cloneDeep(menuData));\r\n if (this.forceChangePwd) {\r\n this.router.navigateByUrl(this.authOptions.changePasswordUrl);\n } else {\n this.router.navigateByUrl(this.authOptions.homeUrl);\n }\n this.loading = false;\r\n },\r\n (res: any) => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n\r\n // #endregion\r\n\r\n ngOnDestroy(): void {\r\n if (this.interval$) {\r\n clearInterval(this.interval$);\r\n }\r\n }\r\n}\r\n","<div class=\"header\">登录&nbsp;&nbsp;{{ title }}</div>\n<div class=\"form\">\n <form nz-form [formGroup]=\"form\" (ngSubmit)=\"submit()\" role=\"form\">\n <nz-form-item>\n <nz-form-control nzErrorTip=\"登录账号不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"user\">\n <input nz-input formControlName=\"userName\" placeholder=\"请输入登录账号\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-control nzErrorTip=\"登录密码不能为空\">\n <nz-input-group nzSize=\"large\" nzPrefixIcon=\"lock\">\n <input nz-input type=\"password\" formControlName=\"password\" placeholder=\"请输入登录密码\" maxlength=\"80\" />\n </nz-input-group>\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <button nz-button type=\"submit\" nzType=\"primary\" nzSize=\"large\" [nzLoading]=\"loading\" nzBlock>登录</button>\n </nz-form-item>\n\n <nz-form-item>\n <nz-col [nzSpan]=\"12\"> </nz-col>\n <nz-col [nzSpan]=\"12\" class=\"text-right\">\n <!-- <a class=\"forgot\">忘记密码</a> -->\n </nz-col>\n </nz-form-item>\n </form>\n</div>","import { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { UserLoginComponent } from './login/login.component';\nimport { UserLoginCustComponent } from './login-cust/login.component';\n\nconst routes: Routes = [\n {\n path: 'login',\n component: UserLoginComponent,\n data: { title: '登录', titleI18n: '登录' },\n },\n {\n path: 'login/:id',\n component: UserLoginCustComponent,\n data: { title: '登录', titleI18n: '登录' },\n },\n {\n path: ':id',\n component: UserLoginCustComponent,\n data: { title: '登录', titleI18n: '登录' },\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class AuthRoutingModule { }\n","import { NgModule } from '@angular/core';\nimport { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';\n\nimport { UserLoginComponent } from './login/login.component';\nimport { UserLoginCustComponent } from './login-cust/login.component';\nimport { AuthRoutingModule } from './auth-routing.module';\n\nconst COMPONENTS = [UserLoginComponent, UserLoginCustComponent];\n\n@NgModule({\n imports: [RuntimeSharedImportsModule, AuthRoutingModule, ...COMPONENTS],\n //declarations: [...COMPONENTS],\n})\nexport class AuthModule { }\n","/**\n * Generated b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