@ebuilding/runtime 2.7.0 → 2.7.2

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 (66) hide show
  1. package/e-web/dynamic.module.d.ts +7 -0
  2. package/e-web/extend/index.d.ts +1 -0
  3. package/e-web/form/index-routing.module.d.ts +7 -0
  4. package/e-web/form/index.d.ts +1 -0
  5. package/e-web/form/main/index.component.d.ts +32 -0
  6. package/e-web/index.d.ts +24 -0
  7. package/e-web/list/index.d.ts +1 -0
  8. package/e-web/report/index.d.ts +1 -0
  9. package/e-web/single/index.d.ts +1 -0
  10. package/e-web/tab/index.d.ts +1 -0
  11. package/e-web/tree/index.d.ts +1 -0
  12. package/fesm2022/e-web-extend.mjs +6 -0
  13. package/fesm2022/e-web-extend.mjs.map +1 -0
  14. package/fesm2022/e-web-form.mjs +6 -0
  15. package/fesm2022/e-web-form.mjs.map +1 -0
  16. package/fesm2022/e-web-list.mjs +6 -0
  17. package/fesm2022/e-web-list.mjs.map +1 -0
  18. package/fesm2022/e-web-report.mjs +6 -0
  19. package/fesm2022/e-web-report.mjs.map +1 -0
  20. package/fesm2022/e-web-single.mjs +6 -0
  21. package/fesm2022/e-web-single.mjs.map +1 -0
  22. package/fesm2022/e-web-tab.mjs +6 -0
  23. package/fesm2022/e-web-tab.mjs.map +1 -0
  24. package/fesm2022/e-web-tree.mjs +6 -0
  25. package/fesm2022/e-web-tree.mjs.map +1 -0
  26. package/fesm2022/e-web.mjs +1772 -12
  27. package/fesm2022/e-web.mjs.map +1 -1
  28. package/package.json +43 -15
  29. package/fesm2022/e-web-deep.module-CbGhHXVH.mjs +0 -34
  30. package/fesm2022/e-web-deep.module-CbGhHXVH.mjs.map +0 -1
  31. package/fesm2022/e-web-index.module-B_Jd2-0M.mjs +0 -30
  32. package/fesm2022/e-web-index.module-B_Jd2-0M.mjs.map +0 -1
  33. package/fesm2022/e-web-index.module-Bfxv6KPY.mjs +0 -263
  34. package/fesm2022/e-web-index.module-Bfxv6KPY.mjs.map +0 -1
  35. package/fesm2022/e-web-index.module-C0vAaHfh.mjs +0 -84
  36. package/fesm2022/e-web-index.module-C0vAaHfh.mjs.map +0 -1
  37. package/fesm2022/e-web-index.module-C7-Zm8xS.mjs +0 -94
  38. package/fesm2022/e-web-index.module-C7-Zm8xS.mjs.map +0 -1
  39. package/fesm2022/e-web-index.module-CYZiqC3a.mjs +0 -110
  40. package/fesm2022/e-web-index.module-CYZiqC3a.mjs.map +0 -1
  41. package/fesm2022/e-web-index.module-CfC5tqAw.mjs +0 -85
  42. package/fesm2022/e-web-index.module-CfC5tqAw.mjs.map +0 -1
  43. package/fesm2022/e-web-index.module-CjF6piLu.mjs +0 -81
  44. package/fesm2022/e-web-index.module-CjF6piLu.mjs.map +0 -1
  45. package/fesm2022/e-web-index.module-CuEiH_fT.mjs +0 -180
  46. package/fesm2022/e-web-index.module-CuEiH_fT.mjs.map +0 -1
  47. package/fesm2022/e-web-index.module-D43xvefy.mjs +0 -101
  48. package/fesm2022/e-web-index.module-D43xvefy.mjs.map +0 -1
  49. package/fesm2022/e-web-index.module-DQmv68kB.mjs +0 -84
  50. package/fesm2022/e-web-index.module-DQmv68kB.mjs.map +0 -1
  51. package/fesm2022/e-web-index.module-DVJ8MkSd.mjs +0 -86
  52. package/fesm2022/e-web-index.module-DVJ8MkSd.mjs.map +0 -1
  53. package/fesm2022/e-web-index.module-DqW1Wt0J.mjs +0 -157
  54. package/fesm2022/e-web-index.module-DqW1Wt0J.mjs.map +0 -1
  55. package/fesm2022/e-web-index.module-Ds5GBsXm.mjs +0 -106
  56. package/fesm2022/e-web-index.module-Ds5GBsXm.mjs.map +0 -1
  57. package/fesm2022/e-web-index.module-H56VTQVA.mjs +0 -46
  58. package/fesm2022/e-web-index.module-H56VTQVA.mjs.map +0 -1
  59. package/fesm2022/e-web-index.module-cGZ2yMVA.mjs +0 -93
  60. package/fesm2022/e-web-index.module-cGZ2yMVA.mjs.map +0 -1
  61. package/fesm2022/e-web-index.module-cKHBIc7d.mjs +0 -30
  62. package/fesm2022/e-web-index.module-cKHBIc7d.mjs.map +0 -1
  63. package/fesm2022/e-web-index.module-mKAgb87G.mjs +0 -104
  64. package/fesm2022/e-web-index.module-mKAgb87G.mjs.map +0 -1
  65. package/fesm2022/e-web-index.module-qHmobPhQ.mjs +0 -30
  66. package/fesm2022/e-web-index.module-qHmobPhQ.mjs.map +0 -1
@@ -1,263 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, NgModule } from '@angular/core';
3
- import * as i2 from '@angular/router';
4
- import { NavigationEnd, RouterModule } from '@angular/router';
5
- import * as i3 from '@ebuilding/base/shared.srv/commApi.service';
6
- import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
7
- import { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';
8
- import * as i1 from '@delon/theme';
9
- import * as i3$1 from '@angular/common';
10
- import { CommonModule } from '@angular/common';
11
- import * as i5 from '@delon/abc/page-header';
12
- import * as i6 from 'ng-zorro-antd/core/transition-patch';
13
- import * as i7 from 'ng-zorro-antd/menu';
14
- import * as i6$1 from 'ng-zorro-antd/breadcrumb';
15
- import * as i7$1 from 'ng-zorro-antd/spin';
16
- import { NzSpinModule } from 'ng-zorro-antd/spin';
17
- import * as _ from 'lodash';
18
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
19
- import * as i6$2 from '@ebuilding/runtime/comm/page';
20
- import { CommPageModule } from '@ebuilding/runtime/comm/page';
21
-
22
- class EWebLayoutTabComponent {
23
- http;
24
- router;
25
- activatedRoute;
26
- commAPISrv;
27
- loading = false;
28
- /**
29
- * 模块编码
30
- */
31
- moduleCode = null;
32
- /**
33
- * 布局ID
34
- */
35
- layoutId = null;
36
- /**
37
- * 布局数据
38
- */
39
- layoutData = null;
40
- subscription = null;
41
- subscriptionLoad = false;
42
- constructor(http, router, activatedRoute, commAPISrv) {
43
- this.http = http;
44
- this.router = router;
45
- this.activatedRoute = activatedRoute;
46
- this.commAPISrv = commAPISrv;
47
- /**
48
- * 监听路由变化 -- 只为左边菜单点击服务
49
- */
50
- this.subscription = this.router.events.subscribe((event) => {
51
- if (event instanceof NavigationEnd) {
52
- let arr = event.url.split("tab/");
53
- if (arr && arr.length == 2) {
54
- let parArr = arr[1].split("/");
55
- if (parArr && parArr.length == 1) {
56
- this.subscriptionLoad = true;
57
- this.layoutId = this.activatedRoute.snapshot.params['id'];
58
- this.moduleCode = this.getModuleCode();
59
- this.getPageData();
60
- }
61
- }
62
- }
63
- });
64
- /**
65
- * 当路页面刷新�?路由地址不会变化,从而需要这里再次处�? */
66
- setTimeout(() => {
67
- if (!this.subscriptionLoad) {
68
- let arr = this.router.url.split("tab/");
69
- if (arr && arr.length == 2) {
70
- this.layoutId = this.activatedRoute.snapshot.params['id'];
71
- this.moduleCode = this.getModuleCode();
72
- this.getPageData();
73
- }
74
- }
75
- }, 0);
76
- // this.activatedRoute.params.subscribe((item: any) => {
77
- // this.moduleCode = item.moduleCode;
78
- // this.layoutId = item.id;
79
- // this.getPageData();
80
- // });
81
- }
82
- ngOnInit() { }
83
- ngOnDestroy() {
84
- this.subscription.unsubscribe();
85
- }
86
- getModuleCode() {
87
- let code = this.activatedRoute.snapshot.params['moduleCode'];
88
- if (code) {
89
- return code;
90
- }
91
- let arr = this.router.url.split('?')[0].split('/').filter((item) => item);
92
- return arr.length > 1 ? arr[1] : null;
93
- }
94
- getPageData() {
95
- if (this.layoutId) {
96
- this.loading = true;
97
- let address = this.commAPISrv.getLayoutAddress(this.moduleCode, this.layoutId);
98
- this.http.post(address).subscribe((res) => {
99
- if (res.success) {
100
- this.layoutData = res.result;
101
- }
102
- this.routerChildren();
103
- this.loading = false;
104
- });
105
- }
106
- }
107
- routerChildren() {
108
- let firstRouter = this.activatedRoute.firstChild;
109
- if (firstRouter == null && this.layoutData && this.layoutData.listDetail && this.layoutData.listDetail.length > 0) {
110
- this.router.navigateByUrl(this.router.url + '/' + this.layoutData.listDetail[0].id);
111
- }
112
- }
113
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebLayoutTabComponent, deps: [{ token: i1._HttpClient }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: i3.CommAPIService }], target: i0.ɵɵFactoryTarget.Component });
114
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: EWebLayoutTabComponent, isStandalone: true, selector: "eweb-layout-tab", providers: [CommAPIService], ngImport: i0, template: "<ng-container *ngIf=\"layoutData!!\">\n <page-header [title]=\"layoutData?.menuName\" class=\"header_hide\" [syncTitle]=\"true\" [breadcrumb]=\"breadcrumb\">\n <ng-template #breadcrumb>\n <nz-breadcrumb>\n <nz-breadcrumb-item>{{ layoutData?.moduleName }}</nz-breadcrumb-item>\n <nz-breadcrumb-item>{{ layoutData?.menuName }}</nz-breadcrumb-item>\n </nz-breadcrumb>\n </ng-template>\n </page-header>\n</ng-container>\n<div class=\"default-work overflow-hidden\">\n <nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\n <ng-container *ngIf=\"layoutData!! && layoutData.listDetail!! && layoutData.listDetail.length > 0\">\n <ul nz-menu nzMode=\"horizontal\" class=\"box-layout\">\n <ng-container *ngFor=\"let item of layoutData.listDetail; let index = index\">\n <li nz-menu-item nzMatchRouter>\n <ng-container *ngIf=\"item.izFixed==true;else tmpLink\">\n <a [routerLink]=\"[item.fixedUrl+'/'+layoutId, item.id]\">{{ item?.name }}</a>\n </ng-container>\n <ng-template #tmpLink>\n <a [routerLink]=\"['./', item.id]\">{{ item?.name }}</a>\n </ng-template>\n </li>\n </ng-container>\n </ul>\n <router-outlet></router-outlet>\n </ng-container>\n </nz-spin>\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 5px 15px}\n"], dependencies: [{ kind: "ngmodule", type: RuntimeSharedImportsModule }, { kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i5.PageHeaderComponent, selector: "page-header", inputs: ["title", "titleSub", "loading", "wide", "home", "homeLink", "homeI18n", "autoBreadcrumb", "autoTitle", "syncTitle", "fixed", "fixedOffsetTop", "breadcrumb", "recursiveBreadcrumb", "logo", "action", "content", "extra", "tab"], exportAs: ["pageHeader"] }, { kind: "directive", type: i6.ɵ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: i7.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i7.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "component", type: i6$1.NzBreadCrumbComponent, selector: "nz-breadcrumb", inputs: ["nzAutoGenerate", "nzSeparator", "nzRouteLabel", "nzRouteLabelFn", "nzRouteFn"], exportAs: ["nzBreadcrumb"] }, { kind: "component", type: i6$1.NzBreadCrumbItemComponent, selector: "nz-breadcrumb-item", inputs: ["nzOverlay"], exportAs: ["nzBreadcrumbItem"] }, { kind: "component", type: i7$1.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }] });
115
- }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebLayoutTabComponent, decorators: [{
117
- type: Component,
118
- args: [{ selector: 'eweb-layout-tab', providers: [CommAPIService], imports: [
119
- RuntimeSharedImportsModule
120
- ], template: "<ng-container *ngIf=\"layoutData!!\">\n <page-header [title]=\"layoutData?.menuName\" class=\"header_hide\" [syncTitle]=\"true\" [breadcrumb]=\"breadcrumb\">\n <ng-template #breadcrumb>\n <nz-breadcrumb>\n <nz-breadcrumb-item>{{ layoutData?.moduleName }}</nz-breadcrumb-item>\n <nz-breadcrumb-item>{{ layoutData?.menuName }}</nz-breadcrumb-item>\n </nz-breadcrumb>\n </ng-template>\n </page-header>\n</ng-container>\n<div class=\"default-work overflow-hidden\">\n <nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\n <ng-container *ngIf=\"layoutData!! && layoutData.listDetail!! && layoutData.listDetail.length > 0\">\n <ul nz-menu nzMode=\"horizontal\" class=\"box-layout\">\n <ng-container *ngFor=\"let item of layoutData.listDetail; let index = index\">\n <li nz-menu-item nzMatchRouter>\n <ng-container *ngIf=\"item.izFixed==true;else tmpLink\">\n <a [routerLink]=\"[item.fixedUrl+'/'+layoutId, item.id]\">{{ item?.name }}</a>\n </ng-container>\n <ng-template #tmpLink>\n <a [routerLink]=\"['./', item.id]\">{{ item?.name }}</a>\n </ng-template>\n </li>\n </ng-container>\n </ul>\n <router-outlet></router-outlet>\n </ng-container>\n </nz-spin>\n</div>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 0 5px 15px}\n"] }]
121
- }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: i3.CommAPIService }] });
122
-
123
- const JIAQIN_LEGACY_TAB_PAGE_MAP = {
124
- '1697892930899906562': '1673862174221049858',
125
- '1697895317689569283': '1673935883854192642',
126
- '1678642616019288067': '1678571878077698049',
127
- '1678642616019288068': '1678574185532100609',
128
- '1678642616019288069': '1678574524788379650',
129
- '1684595948471111681': '1706225475903229953',
130
- };
131
- const JIAQIN_LEGACY_TAB_REDIRECT_MAP = {
132
- '1697878490666209281': '/jiaqin/manage/attendance/month-report/1684857404135550977',
133
- };
134
- class LayoutTabDetailComponent {
135
- http;
136
- activatedRoute;
137
- router;
138
- commAPISrv;
139
- loading = false;
140
- /**
141
- * 模块编码
142
- */
143
- moduleCode = null;
144
- /**
145
- * 布局详情ID
146
- */
147
- id = null;
148
- /**
149
- * 布局详情数据
150
- */
151
- data = null;
152
- constructor(http, activatedRoute, router, commAPISrv) {
153
- this.http = http;
154
- this.activatedRoute = activatedRoute;
155
- this.router = router;
156
- this.commAPISrv = commAPISrv;
157
- this.activatedRoute.params.subscribe((item) => {
158
- this.id = item.id;
159
- this.moduleCode = _.get(this.activatedRoute.parent.params, 'value.module') || this.getModuleCode();
160
- this.getPageData();
161
- });
162
- }
163
- ngOnInit() {
164
- }
165
- ngOnDestroy() { }
166
- getModuleCode() {
167
- let arr = this.router.url.split('?')[0].split('/').filter((item) => item);
168
- return arr.length > 1 ? arr[1] : null;
169
- }
170
- getPageData() {
171
- if (JIAQIN_LEGACY_TAB_REDIRECT_MAP[this.id]) {
172
- this.router.navigateByUrl(JIAQIN_LEGACY_TAB_REDIRECT_MAP[this.id]);
173
- return;
174
- }
175
- if (JIAQIN_LEGACY_TAB_PAGE_MAP[this.id]) {
176
- this.data = this.fallbackListData();
177
- this.loading = false;
178
- return;
179
- }
180
- this.loading = true;
181
- let address = this.commAPISrv.getLayoutDetailAddress(this.moduleCode, this.id);
182
- this.http.post(address).subscribe((res) => {
183
- let result = res.result;
184
- if (res.success && result) {
185
- result.module = this.moduleCode;
186
- this.data = result;
187
- }
188
- else {
189
- this.data = this.fallbackListData();
190
- }
191
- this.loading = false;
192
- }, () => {
193
- this.data = this.fallbackListData();
194
- this.loading = false;
195
- });
196
- }
197
- fallbackListData() {
198
- const pageId = JIAQIN_LEGACY_TAB_PAGE_MAP[this.id] || this.id;
199
- return {
200
- module: this.moduleCode,
201
- pageType: 'LIST',
202
- pageId,
203
- rd: Math.random()
204
- };
205
- }
206
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: LayoutTabDetailComponent, deps: [{ token: i1._HttpClient }, { token: i2.ActivatedRoute }, { token: i2.Router }, { token: i3.CommAPIService }], target: i0.ɵɵFactoryTarget.Component });
207
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: LayoutTabDetailComponent, isStandalone: true, selector: "layout-tab-detail", ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\n <ng-container *ngIf=\"data\">\n <comm-page [data]=\"data\"></comm-page>\n </ng-container>\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;overflow:auto}:host ::ng-deep comm-page{padding:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i7$1.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: CommPageModule }, { kind: "component", type: i6$2.CommPageMainComponent, selector: "comm-page", inputs: ["data"], outputs: ["selectEvent", "buttonEvent", "operationEvent", "componentEvent", "buttonAfterEvent", "pageLoadAfterEvent"] }] });
208
- }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: LayoutTabDetailComponent, decorators: [{
210
- type: Component,
211
- args: [{ selector: 'layout-tab-detail', imports: [
212
- CommonModule,
213
- FormsModule,
214
- ReactiveFormsModule,
215
- NzSpinModule,
216
- CommPageModule
217
- ], template: "<nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\n <ng-container *ngIf=\"data\">\n <comm-page [data]=\"data\"></comm-page>\n </ng-container>\n</nz-spin>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;overflow:auto}:host ::ng-deep comm-page{padding:0}\n"] }]
218
- }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.ActivatedRoute }, { type: i2.Router }, { type: i3.CommAPIService }] });
219
-
220
- const routes = [
221
- {
222
- path: ':id',
223
- component: EWebLayoutTabComponent,
224
- children: [
225
- {
226
- path: ':id',
227
- component: LayoutTabDetailComponent,
228
- },
229
- ]
230
- },
231
- {
232
- path: ":id", component: LayoutTabDetailComponent,
233
- }
234
- ];
235
- class EWebTabRoutingModule {
236
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebTabRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
237
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: EWebTabRoutingModule, imports: [i2.RouterModule], exports: [RouterModule] });
238
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebTabRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
239
- }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebTabRoutingModule, decorators: [{
241
- type: NgModule,
242
- args: [{
243
- imports: [RouterModule.forChild(routes)],
244
- exports: [RouterModule],
245
- }]
246
- }] });
247
-
248
- const COMPONENTS = [EWebLayoutTabComponent, LayoutTabDetailComponent];
249
- const COMPONENTS_NOROUNT = [];
250
- class EWebTabModule {
251
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebTabModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
252
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: EWebTabModule, imports: [EWebTabRoutingModule, EWebLayoutTabComponent, LayoutTabDetailComponent] });
253
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebTabModule, imports: [EWebTabRoutingModule, COMPONENTS] });
254
- }
255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebTabModule, decorators: [{
256
- type: NgModule,
257
- args: [{
258
- imports: [EWebTabRoutingModule, ...COMPONENTS]
259
- }]
260
- }] });
261
-
262
- export { EWebTabModule };
263
- //# sourceMappingURL=e-web-index.module-Bfxv6KPY.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"e-web-index.module-Bfxv6KPY.mjs","sources":["../../../../packages/runtime/e-web/tab/main/index.component.ts","../../../../packages/runtime/e-web/tab/main/index.component.html","../../../../packages/runtime/e-web/tab/detail/index.component.ts","../../../../packages/runtime/e-web/tab/detail/index.component.html","../../../../packages/runtime/e-web/tab/index-routing.module.ts","../../../../packages/runtime/e-web/tab/index.module.ts"],"sourcesContent":["import { Component, OnInit, OnDestroy } from '@angular/core';\nimport { Router, ActivatedRoute, NavigationEnd } from '@angular/router';\nimport { _HttpClient } from '@delon/theme';\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\n\nimport { RuntimeSharedImportsModule } from '@ebuilding/runtime/shared-imports';\n\n@Component({\n selector: 'eweb-layout-tab',\n templateUrl: './index.component.html',\n styleUrls: ['./index.component.less'],\n providers: [CommAPIService],\n imports: [\n RuntimeSharedImportsModule\n ]\n})\nexport class EWebLayoutTabComponent implements OnInit, OnDestroy {\n loading: boolean = false;\n\n /**\n * 模块编码\n */\n moduleCode: any = null;\n\n /**\n * 布局ID\n */\n layoutId: any = null;\n\n /**\n * 布局数据\n */\n layoutData: any = null;\n\n subscription: any = null;\n subscriptionLoad: boolean = false;\n\n constructor(public http: _HttpClient, public router: Router, public activatedRoute: ActivatedRoute, public commAPISrv: CommAPIService) {\n\n /**\n * 监听路由变化 -- 只为左边菜单点击服务\n */\n this.subscription = this.router.events.subscribe((event: any) => {\n if (event instanceof NavigationEnd) {\n let arr: any[] = event.url.split(\"tab/\");\n if (arr!! && arr.length == 2) {\n let parArr: any[] = arr[1].split(\"/\");\n if (parArr!! && parArr.length == 1) {\n this.subscriptionLoad = true;\n this.layoutId = this.activatedRoute.snapshot.params['id'];\n this.moduleCode = this.getModuleCode();\n this.getPageData();\n }\n }\n }\n });\n\n /**\n * 当路页面刷新�?路由地址不会变化,从而需要这里再次处�? */\n setTimeout(() => {\n if (!this.subscriptionLoad) {\n let arr: any[] = this.router.url.split(\"tab/\");\n if (arr!! && arr.length == 2) {\n this.layoutId = this.activatedRoute.snapshot.params['id'];\n this.moduleCode = this.getModuleCode();\n this.getPageData();\n }\n }\n }, 0);\n // this.activatedRoute.params.subscribe((item: any) => {\n // this.moduleCode = item.moduleCode;\n // this.layoutId = item.id;\n // this.getPageData();\n // });\n }\n\n ngOnInit(): void { }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n private getModuleCode() {\n let code = this.activatedRoute.snapshot.params['moduleCode'];\n if (code) {\n return code;\n }\n let arr: any[] = this.router.url.split('?')[0].split('/').filter((item: any) => item);\n return arr.length > 1 ? arr[1] : null;\n }\n\n getPageData() {\n if (this.layoutId!!) {\n this.loading = true;\n let address: any = this.commAPISrv.getLayoutAddress(this.moduleCode, this.layoutId);\n this.http.post(address).subscribe((res: any) => {\n if (res.success) {\n this.layoutData = res.result;\n }\n this.routerChildren();\n this.loading = false;\n });\n }\n }\n\n private routerChildren() {\n let firstRouter: any = this.activatedRoute.firstChild;\n if (firstRouter == null && this.layoutData!! && this.layoutData.listDetail!! && this.layoutData.listDetail.length > 0) {\n this.router.navigateByUrl(this.router.url + '/' + this.layoutData.listDetail[0].id);\n }\n }\n}\n","<ng-container *ngIf=\"layoutData!!\">\n <page-header [title]=\"layoutData?.menuName\" class=\"header_hide\" [syncTitle]=\"true\" [breadcrumb]=\"breadcrumb\">\n <ng-template #breadcrumb>\n <nz-breadcrumb>\n <nz-breadcrumb-item>{{ layoutData?.moduleName }}</nz-breadcrumb-item>\n <nz-breadcrumb-item>{{ layoutData?.menuName }}</nz-breadcrumb-item>\n </nz-breadcrumb>\n </ng-template>\n </page-header>\n</ng-container>\n<div class=\"default-work overflow-hidden\">\n <nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\n <ng-container *ngIf=\"layoutData!! && layoutData.listDetail!! && layoutData.listDetail.length > 0\">\n <ul nz-menu nzMode=\"horizontal\" class=\"box-layout\">\n <ng-container *ngFor=\"let item of layoutData.listDetail; let index = index\">\n <li nz-menu-item nzMatchRouter>\n <ng-container *ngIf=\"item.izFixed==true;else tmpLink\">\n <a [routerLink]=\"[item.fixedUrl+'/'+layoutId, item.id]\">{{ item?.name }}</a>\n </ng-container>\n <ng-template #tmpLink>\n <a [routerLink]=\"['./', item.id]\">{{ item?.name }}</a>\n </ng-template>\n </li>\n </ng-container>\n </ul>\n <router-outlet></router-outlet>\n </ng-container>\n </nz-spin>\n</div>","import { Component, OnInit, OnDestroy } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { _HttpClient } from '@delon/theme';\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\nimport * as _ from 'lodash';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\nimport { CommPageModule } from '@ebuilding/runtime/comm/page';\n\nconst JIAQIN_LEGACY_TAB_PAGE_MAP: Record<string, string> = {\n '1697892930899906562': '1673862174221049858',\n '1697895317689569283': '1673935883854192642',\n '1678642616019288067': '1678571878077698049',\n '1678642616019288068': '1678574185532100609',\n '1678642616019288069': '1678574524788379650',\n '1684595948471111681': '1706225475903229953',\n};\n\nconst JIAQIN_LEGACY_TAB_REDIRECT_MAP: Record<string, string> = {\n '1697878490666209281': '/jiaqin/manage/attendance/month-report/1684857404135550977',\n};\n\n@Component({\n selector: 'layout-tab-detail',\n templateUrl: './index.component.html',\n styleUrls: ['./index.component.less'],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n NzSpinModule,\n CommPageModule\n ]\n})\nexport class LayoutTabDetailComponent implements OnInit, OnDestroy {\n loading: boolean = false;\n\n /**\n * 模块编码\n */\n moduleCode: any = null;\n\n /**\n * 布局详情ID\n */\n id: any = null;\n\n /**\n * 布局详情数据\n */\n data: any = null;\n\n constructor(public http: _HttpClient, private activatedRoute: ActivatedRoute, private router: Router, public commAPISrv: CommAPIService) {\n this.activatedRoute.params.subscribe((item: any) => {\n this.id = item.id;\n this.moduleCode = _.get(this.activatedRoute.parent.params, 'value.module') || this.getModuleCode();\n this.getPageData();\n });\n }\n\n ngOnInit(): void {\n\n }\n\n ngOnDestroy() { }\n\n private getModuleCode() {\n let arr: any[] = this.router.url.split('?')[0].split('/').filter((item: any) => item);\n return arr.length > 1 ? arr[1] : null;\n }\n\n getPageData() {\n if (JIAQIN_LEGACY_TAB_REDIRECT_MAP[this.id]) {\n this.router.navigateByUrl(JIAQIN_LEGACY_TAB_REDIRECT_MAP[this.id]);\n return;\n }\n if (JIAQIN_LEGACY_TAB_PAGE_MAP[this.id]) {\n this.data = this.fallbackListData();\n this.loading = false;\n return;\n }\n this.loading = true;\n let address: any = this.commAPISrv.getLayoutDetailAddress(this.moduleCode, this.id);\n this.http.post(address).subscribe((res: any) => {\n let result: any = res.result;\n if (res.success && result!!) {\n result.module = this.moduleCode;\n this.data = result;\n } else {\n this.data = this.fallbackListData();\n }\n this.loading = false;\n }, () => {\n this.data = this.fallbackListData();\n this.loading = false;\n });\n }\n\n private fallbackListData() {\n const pageId = JIAQIN_LEGACY_TAB_PAGE_MAP[this.id] || this.id;\n return {\n module: this.moduleCode,\n pageType: 'LIST',\n pageId,\n rd: Math.random()\n };\n }\n}\n","<nz-spin [nzSpinning]=\"loading\" class=\"deon-list-spin\">\n <ng-container *ngIf=\"data\">\n <comm-page [data]=\"data\"></comm-page>\n </ng-container>\n</nz-spin>","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { EWebLayoutTabComponent } from './main/index.component';\nimport { LayoutTabDetailComponent } from './detail/index.component';\nconst routes: Routes = [\n {\n path: ':id',\n component: EWebLayoutTabComponent,\n children: [\n {\n path: ':id',\n component: LayoutTabDetailComponent,\n },\n ]\n },\n {\n path: \":id\", component: LayoutTabDetailComponent,\n }\n];\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class EWebTabRoutingModule { }\n","import { NgModule } from '@angular/core';\nimport { EWebTabRoutingModule } from './index-routing.module';\nimport { EWebLayoutTabComponent } from './main/index.component';\nimport { LayoutTabDetailComponent } from './detail/index.component';\nconst COMPONENTS: any[] = [EWebLayoutTabComponent, LayoutTabDetailComponent];\n\nconst COMPONENTS_NOROUNT: any[] = [];\n\n@NgModule({\n imports: [EWebTabRoutingModule, ...COMPONENTS]\n})\nexport class EWebTabModule { }\n"],"names":["i4","i8","i9","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;;;;;MAgBa,sBAAsB,CAAA;AAqBd,IAAA,IAAA;AAA0B,IAAA,MAAA;AAAuB,IAAA,cAAA;AAAuC,IAAA,UAAA;IApB3G,OAAO,GAAY,KAAK;AAExB;;AAEG;IACH,UAAU,GAAQ,IAAI;AAEtB;;AAEG;IACH,QAAQ,GAAQ,IAAI;AAEpB;;AAEG;IACH,UAAU,GAAQ,IAAI;IAEtB,YAAY,GAAQ,IAAI;IACxB,gBAAgB,GAAY,KAAK;AAEjC,IAAA,WAAA,CAAmB,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AAoB,wCAFrB,YAAY,CAAA,EAAA,CAAA;yGAEX,oBAAoB,EAAA,OAAA,EAAA,CAHrB,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC7B,YAAY,CAAA,EAAA,CAAA;;4FAEX,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oBACxC,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA;;;AClBD,MAAM,UAAU,GAAU,CAAC,sBAAsB,EAAE,wBAAwB,CAAC;AAE5E,MAAM,kBAAkB,GAAU,EAAE;MAKvB,aAAa,CAAA;wGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAFd,OAAA,EAAA,CAAA,oBAAoB,EALL,sBAAsB,EAAE,wBAAwB,CAAA,EAAA,CAAA;yGAO9D,aAAa,EAAA,OAAA,EAAA,CAFd,oBAAoB,EAAK,UAAU,CAAA,EAAA,CAAA;;4FAElC,aAAa,EAAA,UAAA,EAAA,CAAA;kBAHzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,oBAAoB,EAAE,GAAG,UAAU;AAC9C,iBAAA;;;;;"}
@@ -1,84 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, NgModule } from '@angular/core';
3
- import * as i2 from '@angular/router';
4
- import { RouterModule } from '@angular/router';
5
- import * as i3 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
7
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8
- import { NzButtonModule } from 'ng-zorro-antd/button';
9
- import { NzIconModule } from 'ng-zorro-antd/icon';
10
- import * as i4 from '@ebuilding/biz-list/pre-control/pre-report';
11
- import { PreReportModule } from '@ebuilding/biz-list/pre-control/pre-report';
12
- import { GramDeonHeaderModule } from '@ebuilding/abc/header';
13
- import { Decrypt } from '@ebuilding/base/shared.util/encryption';
14
- import * as i1 from '@delon/theme';
15
-
16
- class EWebReportNewComponent {
17
- http;
18
- router;
19
- activatedRoute;
20
- config = null;
21
- argInfo = null;
22
- constructor(http, router, activatedRoute) {
23
- this.http = http;
24
- this.router = router;
25
- this.activatedRoute = activatedRoute;
26
- this.getPageData();
27
- }
28
- ngOnInit() {
29
- }
30
- getPageData() {
31
- this.activatedRoute.params.subscribe((a) => {
32
- this.activatedRoute.queryParams.subscribe((b) => {
33
- if (b) {
34
- if (b?.argInfo) {
35
- this.argInfo = Decrypt(b.argInfo);
36
- }
37
- }
38
- this.config = {
39
- id: a.id,
40
- parameterData: this.argInfo
41
- };
42
- });
43
- });
44
- }
45
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebReportNewComponent, deps: [{ token: i1._HttpClient }, { token: i2.Router }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
46
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: EWebReportNewComponent, isStandalone: true, selector: "eweb-report-new", ngImport: i0, template: "<ng-container *ngIf=\"config\">\n <pre-report-page [config]=\"config\">\n </pre-report-page>\n</ng-container>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 5px 5px 15px}:host ::ng-deep pre-report-page .default-work{background:unset}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "ngmodule", type: PreReportModule }, { kind: "component", type: i4.PreReportPageComponent, selector: "pre-report-page", inputs: ["config"], outputs: ["btnBackEvent", "loadAfter"] }, { kind: "ngmodule", type: GramDeonHeaderModule }] });
47
- }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebReportNewComponent, decorators: [{
49
- type: Component,
50
- args: [{ selector: 'eweb-report-new', imports: [
51
- CommonModule,
52
- FormsModule, ReactiveFormsModule,
53
- NzButtonModule,
54
- NzIconModule,
55
- PreReportModule,
56
- GramDeonHeaderModule
57
- ], template: "<ng-container *ngIf=\"config\">\n <pre-report-page [config]=\"config\">\n </pre-report-page>\n</ng-container>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 5px 5px 15px}:host ::ng-deep pre-report-page .default-work{background:unset}\n"] }]
58
- }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.Router }, { type: i2.ActivatedRoute }] });
59
-
60
- const routes = [
61
- {
62
- path: ':id',
63
- component: EWebReportNewComponent,
64
- },
65
- {
66
- path: ':id/deep',
67
- loadChildren: () => import('./e-web-deep.module-CbGhHXVH.mjs').then((m) => m.EWebDeepModule),
68
- }
69
- ];
70
- class EWebReportNewModule {
71
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebReportNewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
72
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: EWebReportNewModule, imports: [i2.RouterModule], exports: [RouterModule] });
73
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebReportNewModule, imports: [RouterModule.forChild(routes), RouterModule] });
74
- }
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebReportNewModule, decorators: [{
76
- type: NgModule,
77
- args: [{
78
- imports: [RouterModule.forChild(routes)],
79
- exports: [RouterModule],
80
- }]
81
- }] });
82
-
83
- export { EWebReportNewModule };
84
- //# sourceMappingURL=e-web-index.module-C0vAaHfh.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"e-web-index.module-C0vAaHfh.mjs","sources":["../../../../packages/runtime/e-web/report/new/main/index.ts","../../../../packages/runtime/e-web/report/new/main/index.html","../../../../packages/runtime/e-web/report/new/index.module.ts"],"sourcesContent":["import { Component, OnInit, OnDestroy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { _HttpClient } from '@delon/theme';\nimport { PreReportModule } from '@ebuilding/biz-list/pre-control/pre-report';\nimport { GramDeonHeaderModule } from '@ebuilding/abc/header';\nimport { Decrypt } from '@ebuilding/base/shared.util/encryption';\n\n@Component({\n selector: 'eweb-report-new',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n imports: [\n CommonModule,\n FormsModule, ReactiveFormsModule,\n NzButtonModule,\n NzIconModule,\n PreReportModule,\n GramDeonHeaderModule\n ]\n})\nexport class EWebReportNewComponent implements OnInit {\n config: any = null;\n argInfo: any = null;\n\n constructor(public http: _HttpClient, public router: Router, private activatedRoute: ActivatedRoute) {\n this.getPageData();\n }\n ngOnInit(): void {\n\n }\n getPageData() {\n this.activatedRoute.params.subscribe((a: any) => {\n this.activatedRoute.queryParams.subscribe((b: any) => {\n if (b) {\n if (b?.argInfo) {\n this.argInfo = Decrypt(b.argInfo);\n }\n }\n this.config = {\n id: a.id,\n parameterData: this.argInfo\n }\n });\n });\n }\n\n}\n","<ng-container *ngIf=\"config\">\n <pre-report-page [config]=\"config\">\n </pre-report-page>\n</ng-container>","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { EWebReportNewComponent } from './main';\nimport { aclCanActivate } from '@delon/acl';\n\nconst routes: Routes = [\n {\n path: ':id',\n component: EWebReportNewComponent,\n },\n {\n path: ':id/deep',\n loadChildren: () => import('../../deep.module').then((m) => m.EWebDeepModule),\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class EWebReportNewModule { }\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAwBa,sBAAsB,CAAA;AAId,IAAA,IAAA;AAA0B,IAAA,MAAA;AAAwB,IAAA,cAAA;IAHrE,MAAM,GAAQ,IAAI;IAClB,OAAO,GAAQ,IAAI;AAEnB,IAAA,WAAA,CAAmB,IAAiB,EAAS,MAAc,EAAU,cAA8B,EAAA;QAAhF,IAAI,CAAA,IAAA,GAAJ,IAAI;QAAsB,IAAM,CAAA,MAAA,GAAN,MAAM;QAAkB,IAAc,CAAA,cAAA,GAAd,cAAc;QACjF,IAAI,CAAC,WAAW,EAAE;;IAEpB,QAAQ,GAAA;;IAGR,WAAW,GAAA;QACT,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAM,KAAI;YAC9C,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAM,KAAI;gBACnD,IAAI,CAAC,EAAE;AACL,oBAAA,IAAI,CAAC,EAAE,OAAO,EAAE;wBACd,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;;;gBAGrC,IAAI,CAAC,MAAM,GAAG;oBACZ,EAAE,EAAE,CAAC,CAAC,EAAE;oBACR,aAAa,EAAE,IAAI,CAAC;iBACrB;AACH,aAAC,CAAC;AACJ,SAAC,CAAC;;wGAvBO,sBAAsB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WA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E,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,YAAY,EAAE,MAAM,OAAO,kCAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC;AAC9E;CACF;MAMY,mBAAmB,CAAA;wGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,wCAFpB,YAAY,CAAA,EAAA,CAAA;yGAEX,mBAAmB,EAAA,OAAA,EAAA,CAHpB,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC7B,YAAY,CAAA,EAAA,CAAA;;4FAEX,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oBACxC,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA;;;;;"}
@@ -1,94 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, NgModule } from '@angular/core';
3
- import * as i2 from '@angular/router';
4
- import { RouterModule } from '@angular/router';
5
- import * as i3 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
7
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8
- import * as i4 from '@ebuilding/biz-list/pre-control/single';
9
- import { PreSingleModule } from '@ebuilding/biz-list/pre-control/single';
10
- import * as i5 from '@ebuilding/abc/header';
11
- import { GramDeonHeaderModule } from '@ebuilding/abc/header';
12
- import { Decrypt } from '@ebuilding/base/shared.util/encryption';
13
- import * as i1 from '@delon/theme';
14
-
15
- class EWebSingleDeepComponent {
16
- http;
17
- router;
18
- activatedRoute;
19
- config = null;
20
- source = null;
21
- argInfo = null;
22
- constructor(http, router, activatedRoute) {
23
- this.http = http;
24
- this.router = router;
25
- this.activatedRoute = activatedRoute;
26
- this.getPageData();
27
- }
28
- ngOnInit() {
29
- }
30
- getPageData() {
31
- this.activatedRoute.params.subscribe((a) => {
32
- this.activatedRoute.queryParams.subscribe((b) => {
33
- if (b) {
34
- if (b?.source) {
35
- this.source = b.source;
36
- }
37
- if (b?.argInfo) {
38
- this.argInfo = Decrypt(b.argInfo);
39
- }
40
- }
41
- this.config = {
42
- id: a.id,
43
- parameterData: this.argInfo
44
- };
45
- });
46
- });
47
- }
48
- btnBack() {
49
- if (this.source) {
50
- this.router.navigateByUrl(Decrypt(this.source));
51
- }
52
- else {
53
- window.history.go(-1);
54
- }
55
- }
56
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebSingleDeepComponent, deps: [{ token: i1._HttpClient }, { token: i2.Router }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
57
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: EWebSingleDeepComponent, isStandalone: true, selector: "eweb-single-deep", ngImport: i0, template: "<gram-header (btnBackClick)=\"btnBack()\"> </gram-header>\n<ng-container *ngIf=\"config\">\n <single-main [config]=\"config\"></single-main>\n</ng-container>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 5px 5px 15px;overflow:hidden}:host ::ng-deep gram-header{margin-bottom:12px;border-bottom:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: PreSingleModule }, { kind: "component", type: i4.PreSingleComponent, selector: "single-main", inputs: ["config"], outputs: ["btnBackEvent", "loadAfter"] }, { kind: "ngmodule", type: GramDeonHeaderModule }, { kind: "component", type: i5.GramDeonHeaderComponent, selector: "gram-header", inputs: ["isTitle", "isTitleClick", "isBack", "title"], outputs: ["titleClick", "btnBackClick"] }] });
58
- }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebSingleDeepComponent, decorators: [{
60
- type: Component,
61
- args: [{ selector: 'eweb-single-deep', imports: [
62
- CommonModule,
63
- FormsModule,
64
- ReactiveFormsModule,
65
- PreSingleModule,
66
- GramDeonHeaderModule
67
- ], template: "<gram-header (btnBackClick)=\"btnBack()\"> </gram-header>\n<ng-container *ngIf=\"config\">\n <single-main [config]=\"config\"></single-main>\n</ng-container>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:15px 5px 5px 15px;overflow:hidden}:host ::ng-deep gram-header{margin-bottom:12px;border-bottom:0}\n"] }]
68
- }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.Router }, { type: i2.ActivatedRoute }] });
69
-
70
- const routes = [
71
- {
72
- path: ':id',
73
- component: EWebSingleDeepComponent,
74
- },
75
- {
76
- path: ':id/deep',
77
- loadChildren: () => import('./e-web-deep.module-CbGhHXVH.mjs').then((m) => m.EWebDeepModule),
78
- }
79
- ];
80
- class EWebSingleDeepModule {
81
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebSingleDeepModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
82
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: EWebSingleDeepModule, imports: [i2.RouterModule], exports: [RouterModule] });
83
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebSingleDeepModule, imports: [RouterModule.forChild(routes), RouterModule] });
84
- }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: EWebSingleDeepModule, decorators: [{
86
- type: NgModule,
87
- args: [{
88
- imports: [RouterModule.forChild(routes)],
89
- exports: [RouterModule],
90
- }]
91
- }] });
92
-
93
- export { EWebSingleDeepModule };
94
- //# sourceMappingURL=e-web-index.module-C7-Zm8xS.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"e-web-index.module-C7-Zm8xS.mjs","sources":["../../../../packages/runtime/e-web/single/deep/main/index.ts","../../../../packages/runtime/e-web/single/deep/main/index.html","../../../../packages/runtime/e-web/single/deep/index.module.ts"],"sourcesContent":["import { Component, OnInit, OnDestroy } from '@angular/core';\nimport { Router, ActivatedRoute } from '@angular/router';\nimport { _HttpClient } from '@delon/theme';\n\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { PreSingleModule } from '@ebuilding/biz-list/pre-control/single';\nimport { GramDeonHeaderModule } from '@ebuilding/abc/header';\nimport { Decrypt } from '@ebuilding/base/shared.util/encryption';\n\n@Component({\n selector: 'eweb-single-deep',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n PreSingleModule,\n GramDeonHeaderModule\n ]\n})\nexport class EWebSingleDeepComponent implements OnInit {\n\n config: any = null;\n source: any = null;\n argInfo: any = null;\n\n constructor(public http: _HttpClient, public router: Router, private activatedRoute: ActivatedRoute) {\n this.getPageData();\n }\n ngOnInit(): void {\n\n }\n getPageData() {\n this.activatedRoute.params.subscribe((a: any) => {\n this.activatedRoute.queryParams.subscribe((b: any) => {\n if (b) {\n if (b?.source) {\n this.source = b.source;\n }\n if (b?.argInfo) {\n this.argInfo = Decrypt(b.argInfo);\n }\n }\n this.config = {\n id: a.id,\n parameterData: this.argInfo\n }\n });\n });\n }\n btnBack() {\n if (this.source) {\n this.router.navigateByUrl(Decrypt(this.source));\n } else {\n window.history.go(-1);\n }\n }\n}\n\n","<gram-header (btnBackClick)=\"btnBack()\"> </gram-header>\n<ng-container *ngIf=\"config\">\n <single-main [config]=\"config\"></single-main>\n</ng-container>","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { EWebSingleDeepComponent } from './main';\nimport { aclCanActivate } from '@delon/acl';\n\nconst routes: Routes = [\n {\n path: ':id',\n component: EWebSingleDeepComponent,\n },\n {\n path: ':id/deep',\n loadChildren: () => import('../../deep.module').then((m) => m.EWebDeepModule),\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class EWebSingleDeepModule { }\n"],"names":[],"mappings":";;;;;;;;;;;;;;MAsBa,uBAAuB,CAAA;AAMf,IAAA,IAAA;AAA0B,IAAA,MAAA;AAAwB,IAAA,cAAA;IAJrE,MAAM,GAAQ,IAAI;IAClB,MAAM,GAAQ,IAAI;IAClB,OAAO,GAAQ,IAAI;AAEnB,IAAA,WAAA,CAAmB,IAAiB,EAAS,MAAc,EAAU,cAA8B,EAAA;QAAhF,IAAI,CAAA,IAAA,GAAJ,IAAI;QAAsB,IAAM,CAAA,MAAA,GAAN,MAAM;QAAkB,IAAc,CAAA,cAAA,GAAd,cAAc;QACjF,IAAI,CAAC,WAAW,EAAE;;IAEpB,QAAQ,GAAA;;IAGR,WAAW,GAAA;QACT,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAM,KAAI;YAC9C,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAM,KAAI;gBACnD,IAAI,CAAC,EAAE;AACL,oBAAA,IAAI,CAAC,EAAE,MAAM,EAAE;AACb,wBAAA,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM;;AAExB,oBAAA,IAAI,CAAC,EAAE,OAAO,EAAE;wBACd,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;;;gBAGrC,IAAI,CAAC,MAAM,GA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