@ebuilding/runtime 2.7.4 → 2.8.0

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.
Files changed (50) hide show
  1. package/auth/auth-routing.module.d.ts +7 -0
  2. package/auth/auth.tokens.d.ts +7 -0
  3. package/auth/authmodule.d.ts +10 -0
  4. package/auth/index.d.ts +2 -0
  5. package/auth/login/login.component.d.ts +48 -0
  6. package/auth/login-cust/login.component.d.ts +47 -0
  7. package/core/app-feature-config.service.d.ts +26 -0
  8. package/core/app-feature.guard.d.ts +3 -0
  9. package/core/i18n/i18n.service.d.ts +25 -0
  10. package/core/index.d.ts +7 -0
  11. package/core/net/default.interceptor.d.ts +2 -0
  12. package/core/net/helper.d.ts +11 -0
  13. package/core/net/index.d.ts +2 -0
  14. package/core/net/refresh-token.d.ts +11 -0
  15. package/core/runtime-core.tokens.d.ts +18 -0
  16. package/core/start-default.guard.d.ts +2 -0
  17. package/core/startup/startup.service.d.ts +24 -0
  18. package/exception/index.d.ts +2 -0
  19. package/exception/index.module.d.ts +8 -0
  20. package/exception/main/index.d.ts +11 -0
  21. package/fesm2022/auth.mjs +500 -0
  22. package/fesm2022/auth.mjs.map +1 -0
  23. package/fesm2022/core.mjs +615 -0
  24. package/fesm2022/core.mjs.map +1 -0
  25. package/fesm2022/exception.mjs +52 -0
  26. package/fesm2022/exception.mjs.map +1 -0
  27. package/fesm2022/layout.mjs +2393 -0
  28. package/fesm2022/layout.mjs.map +1 -0
  29. package/layout/admin/index.component.d.ts +18 -0
  30. package/layout/auth/index.component.d.ts +19 -0
  31. package/layout/base.service.d.ts +48 -0
  32. package/layout/basic/basic.component.d.ts +13 -0
  33. package/layout/basic/widgets/clear-storage.component.d.ts +8 -0
  34. package/layout/basic/widgets/fullscreen.component.d.ts +8 -0
  35. package/layout/basic/widgets/i18n.component.d.ts +18 -0
  36. package/layout/basic/widgets/icon.component.d.ts +8 -0
  37. package/layout/basic/widgets/notify.component.d.ts +16 -0
  38. package/layout/basic/widgets/rtl.component.d.ts +8 -0
  39. package/layout/basic/widgets/search.component.d.ts +23 -0
  40. package/layout/basic/widgets/task.component.d.ts +8 -0
  41. package/layout/basic/widgets/user.component.d.ts +11 -0
  42. package/layout/blank/blank.component.d.ts +5 -0
  43. package/layout/components/nav-menu/index.d.ts +16 -0
  44. package/layout/components/nav-user/index.d.ts +54 -0
  45. package/layout/components/user/user.component.d.ts +57 -0
  46. package/layout/home/index.component.d.ts +20 -0
  47. package/layout/index.d.ts +7 -0
  48. package/layout/manage/index.component.d.ts +27 -0
  49. package/layout/manage/view.component.d.ts +21 -0
  50. package/package.json +42 -25
@@ -0,0 +1,500 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Optional, Inject, Component, NgModule } from '@angular/core';
3
+ import * as i8 from '@ebuilding/runtime/shared-imports';
4
+ import { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';
5
+ import * as i1 from '@angular/forms';
6
+ import { Validators } from '@angular/forms';
7
+ import * as i15 from '@delon/abc/reuse-tab';
8
+ import { ReuseTabService } from '@delon/abc/reuse-tab';
9
+ import * as i6 from '@delon/acl';
10
+ import { DelonACLModule } from '@delon/acl';
11
+ import { DA_SERVICE_TOKEN, SocialService } from '@delon/auth';
12
+ import { Gram_App_Type, ModuleAPI, Gram_Platform, Gram_App_Module } from '@ebuilding/base/shared.var/shared.constant';
13
+ import { initData } from '@ebuilding/base/shared.util/comm.menu';
14
+ import { base64Encode } from '@ebuilding/base/shared.util/tool';
15
+ import { cloneDeep } from 'lodash';
16
+ import { AppNameDesc, AppCustomerId, AppSetId, AppSetName, AppSetData } from '@ebuilding/base/shared.var/shared.variable';
17
+ import * as i2 from 'ng-zorro-antd/modal';
18
+ import * as i3 from '@angular/router';
19
+ import { RouterModule } from '@angular/router';
20
+ import * as i4 from '@delon/theme';
21
+ import * as i5 from 'ng-zorro-antd/message';
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';
29
+
30
+ const RUNTIME_AUTH_OPTIONS = new InjectionToken('RUNTIME_AUTH_OPTIONS', {
31
+ providedIn: 'root',
32
+ factory: () => ({
33
+ homeUrl: '/home',
34
+ changePasswordUrl: '/admin/change-password',
35
+ sourceType: 'PC',
36
+ }),
37
+ });
38
+
39
+ class UserLoginComponent {
40
+ router;
41
+ activatedRoute;
42
+ reuseTabService;
43
+ tokenService;
44
+ http;
45
+ msg;
46
+ settingService;
47
+ aclService;
48
+ dialogSrv;
49
+ authOptions;
50
+ title = AppNameDesc;
51
+ sourceType = null;
52
+ sourceUserId = null;
53
+ sourceCorpId = null;
54
+ constructor(fb, modalSrv, router, activatedRoute, reuseTabService, tokenService, http, msg, settingService, aclService, dialogSrv, authOptions) {
55
+ this.router = router;
56
+ this.activatedRoute = activatedRoute;
57
+ this.reuseTabService = reuseTabService;
58
+ this.tokenService = tokenService;
59
+ this.http = http;
60
+ this.msg = msg;
61
+ this.settingService = settingService;
62
+ this.aclService = aclService;
63
+ this.dialogSrv = dialogSrv;
64
+ this.authOptions = authOptions;
65
+ this.loading = false;
66
+ this.title = this.settingService.app?.name;
67
+ this.settingService.setData(Gram_App_Type, "DEFAULT");
68
+ this.form = fb.group({
69
+ customerId: [null, [Validators.required, Validators.minLength(2)]],
70
+ userName: [null, [Validators.required, Validators.minLength(1)]],
71
+ password: [null, Validators.required],
72
+ mobile: [null, [Validators.required, Validators.pattern(/^1\d{10}$/)]],
73
+ captcha: [null, [Validators.required]],
74
+ remember: [true],
75
+ });
76
+ modalSrv.closeAll();
77
+ dialogSrv.closeAllDrawers();
78
+ this.activatedRoute.queryParams.subscribe((params) => {
79
+ if (params && params['type'] && params['userId'] && params['corpId']) {
80
+ this.sourceType = params['type'];
81
+ this.sourceUserId = params['userId'];
82
+ this.sourceCorpId = params['corpId'];
83
+ }
84
+ });
85
+ }
86
+ // #region fields
87
+ get customerId() {
88
+ return this.form.controls["customerId"];
89
+ }
90
+ get userName() {
91
+ return this.form.controls["userName"];
92
+ }
93
+ get password() {
94
+ return this.form.controls["password"];
95
+ }
96
+ get mobile() {
97
+ return this.form.controls["mobile"];
98
+ }
99
+ get captcha() {
100
+ return this.form.controls["captcha"];
101
+ }
102
+ form;
103
+ error = '';
104
+ type = 0;
105
+ loading = false;
106
+ forceChangePwd = false;
107
+ // #region get captcha
108
+ count = 0;
109
+ interval$;
110
+ // #endregion
111
+ switch(ret) {
112
+ this.type = ret.index;
113
+ }
114
+ getCaptcha() {
115
+ if (this.mobile.invalid) {
116
+ this.mobile.markAsDirty({ onlySelf: true });
117
+ this.mobile.updateValueAndValidity({ onlySelf: true });
118
+ return;
119
+ }
120
+ this.count = 59;
121
+ this.interval$ = setInterval(() => {
122
+ this.count -= 1;
123
+ if (this.count <= 0) {
124
+ clearInterval(this.interval$);
125
+ }
126
+ }, 1000);
127
+ }
128
+ // #endregion
129
+ submit() {
130
+ this.error = '';
131
+ this.customerId.markAsDirty();
132
+ this.customerId.updateValueAndValidity();
133
+ this.userName.markAsDirty();
134
+ this.userName.updateValueAndValidity();
135
+ this.password.markAsDirty();
136
+ this.password.updateValueAndValidity();
137
+ if (this.customerId.invalid || this.userName.invalid || this.password.invalid) {
138
+ return;
139
+ }
140
+ const encodePwd = base64Encode(this.password.value);
141
+ let postUrl = `${ModuleAPI.system}/auth/login`;
142
+ let postData = {
143
+ customerId: this.customerId.value,
144
+ account: this.userName.value,
145
+ password: encodePwd,
146
+ sourceType: this.authOptions.sourceType,
147
+ captcha: '',
148
+ checkKey: '',
149
+ };
150
+ if (this.sourceType && this.sourceUserId && this.sourceCorpId) {
151
+ if (this.sourceType == 'dd') {
152
+ postData['thirdType'] = 'DD';
153
+ postData['thirdCorpId'] = this.sourceCorpId;
154
+ postData['thirdUserId'] = this.sourceUserId;
155
+ }
156
+ }
157
+ this.loading = true;
158
+ this.settingService.setData(AppCustomerId, this.customerId.value);
159
+ this.http.post(postUrl, postData, null, { headers: { customerId: this.customerId.value } }).subscribe((res) => {
160
+ this.settingService.setData(Gram_Platform, "DEFAULT");
161
+ if (res && res.success == true) {
162
+ res = res.result;
163
+ // 清空路由复用信息
164
+ if (this.reuseTabService) {
165
+ this.reuseTabService.clear();
166
+ }
167
+ // 用户信息:包括姓名、头像、邮箱地址
168
+ this.settingService.setUser(res.userInfo);
169
+ // 设置用户Token信息
170
+ this.tokenService.set(res);
171
+ this.forceChangePwd = res.forceChangePwd === true || res.userInfo?.forceChangePwd === true;
172
+ // ACL:设置权限为全量
173
+ this.aclService.setFull(false);
174
+ let listRole = [];
175
+ if (res.userInfo && res.userInfo.listRole) {
176
+ listRole = res.userInfo.listRole;
177
+ }
178
+ let eId = null;
179
+ let eName = null;
180
+ let listEbId = [];
181
+ if (res.userInfo && res.userInfo.listEbId && res.userInfo.listEbId.length > 0) {
182
+ listEbId = res.userInfo.listEbId;
183
+ listEbId.forEach((item) => {
184
+ if (res.userInfo.defaultId && item.id == res.userInfo.defaultId) {
185
+ eId = item.id;
186
+ eName = item.name;
187
+ }
188
+ });
189
+ if (eId == null || eId == '') {
190
+ eId = listEbId[0].id;
191
+ eName = listEbId[0].name;
192
+ }
193
+ }
194
+ this.aclService.setRole(listRole);
195
+ this.settingService.setData(AppSetId, eId);
196
+ this.settingService.setData(AppSetName, eName);
197
+ this.settingService.setData(AppSetData, listEbId);
198
+ this.getUserMenus();
199
+ }
200
+ else {
201
+ this.loading = false;
202
+ }
203
+ }, (res) => {
204
+ this.loading = false;
205
+ });
206
+ }
207
+ getUserMenus() {
208
+ this.http.post(`${ModuleAPI.user}/user/sys/module`, null).subscribe((res) => {
209
+ let menuData = [];
210
+ if (res.result && res.result.length > 0) {
211
+ menuData = initData(res.result);
212
+ }
213
+ this.settingService.setData(Gram_App_Module, cloneDeep(menuData));
214
+ if (this.forceChangePwd) {
215
+ this.router.navigateByUrl(this.authOptions.changePasswordUrl);
216
+ }
217
+ else {
218
+ this.router.navigateByUrl(this.authOptions.homeUrl);
219
+ }
220
+ this.loading = false;
221
+ }, (res) => {
222
+ this.loading = false;
223
+ });
224
+ }
225
+ // #endregion
226
+ ngOnDestroy() {
227
+ if (this.interval$) {
228
+ clearInterval(this.interval$);
229
+ }
230
+ }
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 }] });
233
+ }
234
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UserLoginComponent, decorators: [{
235
+ type: Component,
236
+ args: [{ selector: 'passport-login', providers: [SocialService], imports: [
237
+ RuntimeSharedImportsModule,
238
+ DelonACLModule
239
+ ], 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: [{
241
+ type: Optional
242
+ }, {
243
+ type: Inject,
244
+ args: [ReuseTabService]
245
+ }] }, { type: undefined, decorators: [{
246
+ type: Inject,
247
+ args: [DA_SERVICE_TOKEN]
248
+ }] }, { type: i4._HttpClient }, { type: i5.NzMessageService }, { type: i4.SettingsService }, { type: i6.ACLService }, { type: i7.GramBaseDialogService }, { type: undefined, decorators: [{
249
+ type: Inject,
250
+ args: [RUNTIME_AUTH_OPTIONS]
251
+ }] }] });
252
+
253
+ class UserLoginCustComponent {
254
+ router;
255
+ activatedRoute;
256
+ reuseTabService;
257
+ tokenService;
258
+ http;
259
+ msg;
260
+ settingService;
261
+ aclService;
262
+ dialogSrv;
263
+ authOptions;
264
+ title = AppNameDesc;
265
+ sourceType = null;
266
+ sourceUserId = null;
267
+ customerId = null;
268
+ constructor(fb, modalSrv, router, activatedRoute, reuseTabService, tokenService, http, msg, settingService, aclService, dialogSrv, authOptions) {
269
+ this.router = router;
270
+ this.activatedRoute = activatedRoute;
271
+ this.reuseTabService = reuseTabService;
272
+ this.tokenService = tokenService;
273
+ this.http = http;
274
+ this.msg = msg;
275
+ this.settingService = settingService;
276
+ this.aclService = aclService;
277
+ this.dialogSrv = dialogSrv;
278
+ this.authOptions = authOptions;
279
+ this.loading = false;
280
+ this.title = this.settingService.app?.name;
281
+ this.settingService.setData(Gram_App_Type, "DEFAULT");
282
+ this.form = fb.group({
283
+ userName: [null, [Validators.required, Validators.minLength(1)]],
284
+ password: [null, Validators.required],
285
+ mobile: [null, [Validators.required, Validators.pattern(/^1\d{10}$/)]],
286
+ captcha: [null, [Validators.required]],
287
+ remember: [true],
288
+ });
289
+ modalSrv.closeAll();
290
+ dialogSrv.closeAllDrawers();
291
+ this.activatedRoute.params.subscribe((item) => {
292
+ if (item && item?.id) {
293
+ this.customerId = item['id'];
294
+ }
295
+ });
296
+ }
297
+ get userName() {
298
+ return this.form.controls["userName"];
299
+ }
300
+ get password() {
301
+ return this.form.controls["password"];
302
+ }
303
+ get mobile() {
304
+ return this.form.controls["mobile"];
305
+ }
306
+ get captcha() {
307
+ return this.form.controls["captcha"];
308
+ }
309
+ form;
310
+ error = '';
311
+ type = 0;
312
+ loading = false;
313
+ forceChangePwd = false;
314
+ // #region get captcha
315
+ count = 0;
316
+ interval$;
317
+ // #endregion
318
+ switch(ret) {
319
+ this.type = ret.index;
320
+ }
321
+ getCaptcha() {
322
+ if (this.mobile.invalid) {
323
+ this.mobile.markAsDirty({ onlySelf: true });
324
+ this.mobile.updateValueAndValidity({ onlySelf: true });
325
+ return;
326
+ }
327
+ this.count = 59;
328
+ this.interval$ = setInterval(() => {
329
+ this.count -= 1;
330
+ if (this.count <= 0) {
331
+ clearInterval(this.interval$);
332
+ }
333
+ }, 1000);
334
+ }
335
+ // #endregion
336
+ submit() {
337
+ this.error = '';
338
+ this.userName.markAsDirty();
339
+ this.userName.updateValueAndValidity();
340
+ this.password.markAsDirty();
341
+ this.password.updateValueAndValidity();
342
+ if (this.userName.invalid || this.password.invalid) {
343
+ return;
344
+ }
345
+ const encodePwd = base64Encode(this.password.value);
346
+ let postUrl = `${ModuleAPI.system}/auth/login`;
347
+ let postData = {
348
+ customerId: this.customerId,
349
+ account: this.userName.value,
350
+ password: encodePwd,
351
+ sourceType: this.authOptions.sourceType,
352
+ captcha: '',
353
+ checkKey: '',
354
+ };
355
+ this.loading = true;
356
+ this.settingService.setData(AppCustomerId, this.customerId);
357
+ this.http.post(postUrl, postData, null, { headers: { customerId: this.customerId } }).subscribe((res) => {
358
+ this.settingService.setData(Gram_Platform, "DEFAULT");
359
+ if (res && res.success == true) {
360
+ res = res.result;
361
+ // 清空路由复用信息
362
+ if (this.reuseTabService) {
363
+ this.reuseTabService.clear();
364
+ }
365
+ // 用户信息:包括姓名、头像、邮箱地址
366
+ this.settingService.setUser(res.userInfo);
367
+ // 设置用户Token信息
368
+ this.tokenService.set(res);
369
+ this.forceChangePwd = res.forceChangePwd === true || res.userInfo?.forceChangePwd === true;
370
+ // ACL:设置权限为全量
371
+ this.aclService.setFull(false);
372
+ let listRole = [];
373
+ if (res.userInfo && res.userInfo.listRole) {
374
+ listRole = res.userInfo.listRole;
375
+ }
376
+ let eId = null;
377
+ let eName = null;
378
+ let listEbId = [];
379
+ if (res.userInfo && res.userInfo.listEbId && res.userInfo.listEbId.length > 0) {
380
+ listEbId = res.userInfo.listEbId;
381
+ listEbId.forEach((item) => {
382
+ if (res.userInfo.defaultId && item.id == res.userInfo.defaultId) {
383
+ eId = item.id;
384
+ eName = item.name;
385
+ }
386
+ });
387
+ if (eId == null || eId == '') {
388
+ eId = listEbId[0].id;
389
+ eName = listEbId[0].name;
390
+ }
391
+ }
392
+ this.aclService.setRole(listRole);
393
+ this.settingService.setData(AppSetId, eId);
394
+ this.settingService.setData(AppSetName, eName);
395
+ this.settingService.setData(AppSetData, listEbId);
396
+ this.getUserMenus();
397
+ }
398
+ else {
399
+ this.loading = false;
400
+ }
401
+ }, (res) => {
402
+ this.loading = false;
403
+ });
404
+ }
405
+ getUserMenus() {
406
+ this.http.post(`${ModuleAPI.user}/user/sys/module`, null).subscribe((res) => {
407
+ let menuData = [];
408
+ if (res.result && res.result.length > 0) {
409
+ menuData = initData(res.result);
410
+ }
411
+ this.settingService.setData(Gram_App_Module, cloneDeep(menuData));
412
+ if (this.forceChangePwd) {
413
+ this.router.navigateByUrl(this.authOptions.changePasswordUrl);
414
+ }
415
+ else {
416
+ this.router.navigateByUrl(this.authOptions.homeUrl);
417
+ }
418
+ this.loading = false;
419
+ }, (res) => {
420
+ this.loading = false;
421
+ });
422
+ }
423
+ // #endregion
424
+ ngOnDestroy() {
425
+ if (this.interval$) {
426
+ clearInterval(this.interval$);
427
+ }
428
+ }
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 }] });
431
+ }
432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UserLoginCustComponent, decorators: [{
433
+ type: Component,
434
+ args: [{ selector: 'passport-login-cust', providers: [SocialService], imports: [
435
+ RuntimeSharedImportsModule,
436
+ DelonACLModule
437
+ ], 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: [{
439
+ type: Optional
440
+ }, {
441
+ type: Inject,
442
+ args: [ReuseTabService]
443
+ }] }, { type: undefined, decorators: [{
444
+ type: Inject,
445
+ args: [DA_SERVICE_TOKEN]
446
+ }] }, { type: i4._HttpClient }, { type: i5.NzMessageService }, { type: i4.SettingsService }, { type: i6.ACLService }, { type: i7.GramBaseDialogService }, { type: undefined, decorators: [{
447
+ type: Inject,
448
+ args: [RUNTIME_AUTH_OPTIONS]
449
+ }] }] });
450
+
451
+ const routes = [
452
+ {
453
+ path: 'login',
454
+ component: UserLoginComponent,
455
+ data: { title: '登录', titleI18n: '登录' },
456
+ },
457
+ {
458
+ path: 'login/:id',
459
+ component: UserLoginCustComponent,
460
+ data: { title: '登录', titleI18n: '登录' },
461
+ },
462
+ {
463
+ path: ':id',
464
+ component: UserLoginCustComponent,
465
+ data: { title: '登录', titleI18n: '登录' },
466
+ }
467
+ ];
468
+ class AuthRoutingModule {
469
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AuthRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
470
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: AuthRoutingModule, imports: [i3.RouterModule], exports: [RouterModule] });
471
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AuthRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
472
+ }
473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AuthRoutingModule, decorators: [{
474
+ type: NgModule,
475
+ args: [{
476
+ imports: [RouterModule.forChild(routes)],
477
+ exports: [RouterModule],
478
+ }]
479
+ }] });
480
+
481
+ const COMPONENTS = [UserLoginComponent, UserLoginCustComponent];
482
+ class AuthModule {
483
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
484
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: AuthModule, imports: [RuntimeSharedImportsModule, AuthRoutingModule, UserLoginComponent, UserLoginCustComponent] });
485
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AuthModule, imports: [RuntimeSharedImportsModule, AuthRoutingModule, COMPONENTS] });
486
+ }
487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AuthModule, decorators: [{
488
+ type: NgModule,
489
+ args: [{
490
+ imports: [RuntimeSharedImportsModule, AuthRoutingModule, ...COMPONENTS],
491
+ //declarations: [...COMPONENTS],
492
+ }]
493
+ }] });
494
+
495
+ /**
496
+ * Generated bundle index. Do not edit.
497
+ */
498
+
499
+ export { AuthModule, RUNTIME_AUTH_OPTIONS };
500
+ //# sourceMappingURL=auth.mjs.map
@@ -0,0 +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,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