@ebuilding/abc 2.0.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.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/button/index.d.ts +1 -0
- package/button/src/default/index.d.ts +15 -0
- package/button/src/index.module.d.ts +9 -0
- package/button/src/inner/index.d.ts +10 -0
- package/button/src/main/index.d.ts +16 -0
- package/button/src/public_api.d.ts +4 -0
- package/card/index.d.ts +1 -0
- package/card/src/card.service.d.ts +19 -0
- package/card/src/column-default/index.d.ts +22 -0
- package/card/src/column-img/index.d.ts +22 -0
- package/card/src/column-img1/index.d.ts +13 -0
- package/card/src/column-img2/index.d.ts +13 -0
- package/card/src/column-img3/index.d.ts +13 -0
- package/card/src/default/index.d.ts +45 -0
- package/card/src/design/index.d.ts +10 -0
- package/card/src/design-text/index.d.ts +10 -0
- package/card/src/index.module.d.ts +11 -0
- package/card/src/item-group/index.d.ts +16 -0
- package/card/src/item-text/index.d.ts +15 -0
- package/card/src/item.service.d.ts +20 -0
- package/card/src/public_api.d.ts +6 -0
- package/card-assess/index.d.ts +1 -0
- package/card-assess/src/default/index.d.ts +19 -0
- package/card-assess/src/index.module.d.ts +7 -0
- package/card-assess/src/public_api.d.ts +2 -0
- package/card-emp/index.d.ts +1 -0
- package/card-emp/src/default/index.d.ts +10 -0
- package/card-emp/src/emp-okr/index.d.ts +12 -0
- package/card-emp/src/index.module.d.ts +8 -0
- package/card-emp/src/public_api.d.ts +3 -0
- package/card-list/index.d.ts +1 -0
- package/card-list/src/default/index.d.ts +14 -0
- package/card-list/src/index.module.d.ts +7 -0
- package/card-list/src/public_api.d.ts +2 -0
- package/card-okr/index.d.ts +1 -0
- package/card-okr/src/default/index.d.ts +22 -0
- package/card-okr/src/index.module.d.ts +17 -0
- package/card-okr/src/kpi-stats1/index.d.ts +15 -0
- package/card-okr/src/kpi-stats2/index.d.ts +14 -0
- package/card-okr/src/kpi-stats3/index.d.ts +16 -0
- package/card-okr/src/objective/index.d.ts +14 -0
- package/card-okr/src/objective-dl/index.d.ts +16 -0
- package/card-okr/src/objective-dx/index.d.ts +16 -0
- package/card-okr/src/public_api.d.ts +11 -0
- package/card-okr/src/stats-default/index.d.ts +14 -0
- package/card-okr/src/stats-objective/index.d.ts +14 -0
- package/card-okr/src/stats-progress/index.d.ts +12 -0
- package/card-plan-kpi/index.d.ts +1 -0
- package/card-plan-kpi/src/default/index.d.ts +22 -0
- package/card-plan-kpi/src/index.module.d.ts +7 -0
- package/card-plan-kpi/src/public_api.d.ts +2 -0
- package/card-result/index.d.ts +1 -0
- package/card-result/src/default/index.d.ts +45 -0
- package/card-result/src/index.module.d.ts +8 -0
- package/card-result/src/public_api.d.ts +2 -0
- package/card-score/index.d.ts +1 -0
- package/card-score/src/default/index.d.ts +9 -0
- package/card-score/src/index.module.d.ts +8 -0
- package/card-score/src/public_api.d.ts +2 -0
- package/card-user/index.d.ts +1 -0
- package/card-user/src/default/index.d.ts +11 -0
- package/card-user/src/index.module.d.ts +7 -0
- package/card-user/src/public_api.d.ts +2 -0
- package/card2/index.d.ts +1 -0
- package/card2/src/default/index.d.ts +90 -0
- package/card2/src/index.module.d.ts +7 -0
- package/card2/src/public_api.d.ts +2 -0
- package/codemirror/index.d.ts +1 -0
- package/codemirror/src/default/index.d.ts +10 -0
- package/codemirror/src/index.module.d.ts +7 -0
- package/codemirror/src/public_api.d.ts +5 -0
- package/collect/index.d.ts +1 -0
- package/collect/src/default/index.d.ts +11 -0
- package/collect/src/index.module.d.ts +7 -0
- package/collect/src/public_api.d.ts +2 -0
- package/developing/index.d.ts +1 -0
- package/developing/src/default/index.d.ts +8 -0
- package/developing/src/index.module.d.ts +10 -0
- package/developing/src/public_api.d.ts +2 -0
- package/empty/index.d.ts +1 -0
- package/empty/src/default/index.d.ts +13 -0
- package/empty/src/index.module.d.ts +7 -0
- package/empty/src/public_api.d.ts +2 -0
- package/fesm2022/codemirror.mjs +806 -0
- package/fesm2022/codemirror.mjs.map +1 -0
- package/fesm2022/components.button.mjs +121 -0
- package/fesm2022/components.button.mjs.map +1 -0
- package/fesm2022/components.card-assess.mjs +68 -0
- package/fesm2022/components.card-assess.mjs.map +1 -0
- package/fesm2022/components.card-emp.mjs +65 -0
- package/fesm2022/components.card-emp.mjs.map +1 -0
- package/fesm2022/components.card-list.mjs +53 -0
- package/fesm2022/components.card-list.mjs.map +1 -0
- package/fesm2022/components.card-okr.mjs +370 -0
- package/fesm2022/components.card-okr.mjs.map +1 -0
- package/fesm2022/components.card-plan-kpi.mjs +68 -0
- package/fesm2022/components.card-plan-kpi.mjs.map +1 -0
- package/fesm2022/components.card-result.mjs +137 -0
- package/fesm2022/components.card-result.mjs.map +1 -0
- package/fesm2022/components.card-score.mjs +47 -0
- package/fesm2022/components.card-score.mjs.map +1 -0
- package/fesm2022/components.card-user.mjs +56 -0
- package/fesm2022/components.card-user.mjs.map +1 -0
- package/fesm2022/components.card.mjs +670 -0
- package/fesm2022/components.card.mjs.map +1 -0
- package/fesm2022/components.card2.mjs +463 -0
- package/fesm2022/components.card2.mjs.map +1 -0
- package/fesm2022/components.collect.mjs +57 -0
- package/fesm2022/components.collect.mjs.map +1 -0
- package/fesm2022/components.developing.mjs +38 -0
- package/fesm2022/components.developing.mjs.map +1 -0
- package/fesm2022/components.empty.mjs +54 -0
- package/fesm2022/components.empty.mjs.map +1 -0
- package/fesm2022/components.flow-button.mjs +89 -0
- package/fesm2022/components.flow-button.mjs.map +1 -0
- package/fesm2022/components.header-user.mjs +261 -0
- package/fesm2022/components.header-user.mjs.map +1 -0
- package/fesm2022/components.header.mjs +81 -0
- package/fesm2022/components.header.mjs.map +1 -0
- package/fesm2022/components.line.mjs +44 -0
- package/fesm2022/components.line.mjs.map +1 -0
- package/fesm2022/components.no-role.mjs +37 -0
- package/fesm2022/components.no-role.mjs.map +1 -0
- package/fesm2022/components.nz-table-tree.mjs +407 -0
- package/fesm2022/components.nz-table-tree.mjs.map +1 -0
- package/fesm2022/components.nz-table.mjs +463 -0
- package/fesm2022/components.nz-table.mjs.map +1 -0
- package/fesm2022/components.plan-item.mjs +249 -0
- package/fesm2022/components.plan-item.mjs.map +1 -0
- package/fesm2022/components.principal.mjs +59 -0
- package/fesm2022/components.principal.mjs.map +1 -0
- package/fesm2022/components.python.mjs +140 -0
- package/fesm2022/components.python.mjs.map +1 -0
- package/fesm2022/components.quick.mjs +158 -0
- package/fesm2022/components.quick.mjs.map +1 -0
- package/fesm2022/components.record.mjs +106 -0
- package/fesm2022/components.record.mjs.map +1 -0
- package/fesm2022/components.step-entry.mjs +50 -0
- package/fesm2022/components.step-entry.mjs.map +1 -0
- package/fesm2022/components.target-value.mjs +83 -0
- package/fesm2022/components.target-value.mjs.map +1 -0
- package/fesm2022/components.text.mjs +444 -0
- package/fesm2022/components.text.mjs.map +1 -0
- package/fesm2022/components.tree.mjs +203 -0
- package/fesm2022/components.tree.mjs.map +1 -0
- package/fesm2022/ebuilding-abc.mjs +121 -0
- package/fesm2022/ebuilding-abc.mjs.map +1 -0
- package/flow-button/index.d.ts +1 -0
- package/flow-button/src/default/index.d.ts +14 -0
- package/flow-button/src/index.module.d.ts +7 -0
- package/flow-button/src/public_api.d.ts +2 -0
- package/header/index.d.ts +1 -0
- package/header/src/default/index.d.ts +16 -0
- package/header/src/index.module.d.ts +10 -0
- package/header/src/public_api.d.ts +2 -0
- package/header-user/index.d.ts +1 -0
- package/header-user/src/default/index.d.ts +57 -0
- package/header-user/src/index.module.d.ts +7 -0
- package/header-user/src/public_api.d.ts +2 -0
- package/index.d.ts +1 -0
- package/line/index.d.ts +1 -0
- package/line/src/default/index.d.ts +9 -0
- package/line/src/index.module.d.ts +10 -0
- package/line/src/public_api.d.ts +2 -0
- package/no-role/index.d.ts +1 -0
- package/no-role/src/default/index.d.ts +9 -0
- package/no-role/src/index.module.d.ts +8 -0
- package/no-role/src/public_api.d.ts +2 -0
- package/nz-table/index.d.ts +1 -0
- package/nz-table/src/default/index.d.ts +90 -0
- package/nz-table/src/index.module.d.ts +7 -0
- package/nz-table/src/public_api.d.ts +2 -0
- package/nz-table-tree/index.d.ts +1 -0
- package/nz-table-tree/src/default/index.d.ts +98 -0
- package/nz-table-tree/src/index.module.d.ts +8 -0
- package/nz-table-tree/src/operation/index.d.ts +12 -0
- package/nz-table-tree/src/public_api.d.ts +2 -0
- package/package.json +144 -0
- package/plan-item/index.d.ts +1 -0
- package/plan-item/src/default/index.d.ts +45 -0
- package/plan-item/src/index.module.d.ts +7 -0
- package/plan-item/src/public_api.d.ts +2 -0
- package/principal/index.d.ts +1 -0
- package/principal/src/default/index.d.ts +15 -0
- package/principal/src/index.module.d.ts +7 -0
- package/principal/src/public_api.d.ts +2 -0
- package/python/index.d.ts +1 -0
- package/python/src/default/index.d.ts +8 -0
- package/python/src/index.module.d.ts +8 -0
- package/python/src/public_api.d.ts +2 -0
- package/quick/index.d.ts +1 -0
- package/quick/src/datetime/index.d.ts +12 -0
- package/quick/src/default/index.d.ts +14 -0
- package/quick/src/index.module.d.ts +10 -0
- package/quick/src/public_api.d.ts +2 -0
- package/record/index.d.ts +1 -0
- package/record/src/default/index.d.ts +12 -0
- package/record/src/index.module.d.ts +8 -0
- package/record/src/main/index.d.ts +12 -0
- package/record/src/public_api.d.ts +3 -0
- package/step-entry/index.d.ts +1 -0
- package/step-entry/src/default/index.d.ts +12 -0
- package/step-entry/src/index.module.d.ts +9 -0
- package/step-entry/src/public_api.d.ts +2 -0
- package/target-value/index.d.ts +1 -0
- package/target-value/src/default/index.d.ts +17 -0
- package/target-value/src/index.module.d.ts +8 -0
- package/target-value/src/public_api.d.ts +2 -0
- package/text/index.d.ts +1 -0
- package/text/src/default/index.d.ts +25 -0
- package/text/src/index.module.d.ts +9 -0
- package/text/src/public_api.d.ts +2 -0
- package/text/src/text.service.d.ts +57 -0
- package/tree/index.d.ts +1 -0
- package/tree/src/default/index.d.ts +39 -0
- package/tree/src/index.module.d.ts +9 -0
- package/tree/src/public_api.d.ts +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.collect.mjs","sources":["../../../../packages/abc/collect/src/default/index.ts","../../../../packages/abc/collect/src/default/index.html","../../../../packages/abc/collect/src/index.module.ts","../../../../packages/abc/collect/components.collect.ts"],"sourcesContent":["import { Component, Input, OnInit, AfterViewInit, OnChanges, ChangeDetectionStrategy, SimpleChanges } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SystemColor } from \"@ebuilding/base/shared.util/comm.colors\";\n@Component({\n selector: 'gram-collect',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule]\n})\nexport class GramDeonCollectComponent implements OnInit, AfterViewInit, OnChanges {\n\n @Input() data: any[] = [];\n\n pageData: any[] = [];\n\n ngOnInit(): void { }\n\n ngAfterViewInit() { }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes[\"data\"]) {\n if (this.data!! && this.data.length > 0) {\n let index: number = 0;\n this.data.map((item: any) => {\n item.bgColor = SystemColor[index];\n if (index == SystemColor.length - 1) {\n index = 0;\n } else {\n index++;\n }\n });\n }\n }\n }\n}\n","<ul *ngIf=\"data!! && data.length>0\">\n <li *ngFor=\"let item of data\">\n <div class=\"item-box\" [ngStyle]=\"{'background':item.bgColor}\">\n <div class=\"value\">{{item?.value}}</div>\n <div class=\"name\">{{item?.name}}</div>\n </div>\n </li>\n</ul>","import { NgModule } from '@angular/core';\n\nimport { GramDeonCollectComponent } from './default/index';\n\nconst components: any[] = [GramDeonCollectComponent];\n\n@NgModule({\n imports: [...components],\n exports: [...components],\n})\nexport class GramDeonCollectModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
5
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
6
|
+
|
|
7
|
+
class GramDeonDevelopingComponent {
|
|
8
|
+
ngOnInit() { }
|
|
9
|
+
ngAfterViewInit() { }
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonDevelopingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramDeonDevelopingComponent, isStandalone: true, selector: "gram-developing", ngImport: i0, template: "<div class=\"developing-box\">\n <div class=\"title1\">\u5373\u5C06\u4E0A\u7EBF</div>\n <div class=\"title2\">\n <ul>\n <li></li>\n <li>\u656C\u8BF7\u671F\u5F85</li>\n <li></li>\n </ul>\n </div>\n <div class=\"image\"></div>\n</div>\n", styles: [":host ::ng-deep{margin:auto}:host ::ng-deep .title1{height:28px;margin:0 44.5px 1.6px 27.5px;color:#214a81;font-weight:400;font-size:20px;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;text-align:left}:host ::ng-deep .title2{margin:1.6px 0 0;color:#214a81;font-weight:400;font-size:38px;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;text-align:left}:host ::ng-deep .title2 ul{display:flex;width:100%}:host ::ng-deep .title2 ul li:nth-child(1),:host ::ng-deep .title2 ul li:nth-child(3){width:33.6px;height:2px;margin:30px 20px 20px;background-color:#224b82}:host ::ng-deep .image{position:absolute;top:80px;right:0;width:465px;height:302px;background:url(/assets/images/developing.png) no-repeat;background-size:cover}:host ::ng-deep .developing-box{position:relative;display:inline-block;width:700px;height:390px;margin:auto auto 20px;padding:50px 000}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonDevelopingComponent, decorators: [{
|
|
14
|
+
type: Component,
|
|
15
|
+
args: [{ selector: 'gram-developing', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"developing-box\">\n <div class=\"title1\">\u5373\u5C06\u4E0A\u7EBF</div>\n <div class=\"title2\">\n <ul>\n <li></li>\n <li>\u656C\u8BF7\u671F\u5F85</li>\n <li></li>\n </ul>\n </div>\n <div class=\"image\"></div>\n</div>\n", styles: [":host ::ng-deep{margin:auto}:host ::ng-deep .title1{height:28px;margin:0 44.5px 1.6px 27.5px;color:#214a81;font-weight:400;font-size:20px;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;text-align:left}:host ::ng-deep .title2{margin:1.6px 0 0;color:#214a81;font-weight:400;font-size:38px;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;text-align:left}:host ::ng-deep .title2 ul{display:flex;width:100%}:host ::ng-deep .title2 ul li:nth-child(1),:host ::ng-deep .title2 ul li:nth-child(3){width:33.6px;height:2px;margin:30px 20px 20px;background-color:#224b82}:host ::ng-deep .image{position:absolute;top:80px;right:0;width:465px;height:302px;background:url(/assets/images/developing.png) no-repeat;background-size:cover}:host ::ng-deep .developing-box{position:relative;display:inline-block;width:700px;height:390px;margin:auto auto 20px;padding:50px 000}\n"] }]
|
|
16
|
+
}] });
|
|
17
|
+
|
|
18
|
+
const components = [GramDeonDevelopingComponent];
|
|
19
|
+
class GramDeonDevelopingModule {
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonDevelopingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
21
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramDeonDevelopingModule, imports: [CommonModule, NzIconModule, NzButtonModule, GramDeonDevelopingComponent], exports: [GramDeonDevelopingComponent] });
|
|
22
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonDevelopingModule, imports: [CommonModule, NzIconModule, NzButtonModule] });
|
|
23
|
+
}
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonDevelopingModule, decorators: [{
|
|
25
|
+
type: NgModule,
|
|
26
|
+
args: [{
|
|
27
|
+
imports: [CommonModule, NzIconModule, NzButtonModule,
|
|
28
|
+
...components],
|
|
29
|
+
exports: [...components],
|
|
30
|
+
}]
|
|
31
|
+
}] });
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Generated bundle index. Do not edit.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
export { GramDeonDevelopingComponent, GramDeonDevelopingModule };
|
|
38
|
+
//# sourceMappingURL=components.developing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.developing.mjs","sources":["../../../../packages/abc/developing/src/default/index.ts","../../../../packages/abc/developing/src/default/index.html","../../../../packages/abc/developing/src/index.module.ts","../../../../packages/abc/developing/components.developing.ts"],"sourcesContent":["import { Component, OnInit, AfterViewInit, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'gram-developing',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class GramDeonDevelopingComponent implements OnInit, AfterViewInit {\n ngOnInit(): void { }\n\n ngAfterViewInit() { }\n}\n","<div class=\"developing-box\">\n <div class=\"title1\">即将上线</div>\n <div class=\"title2\">\n <ul>\n <li></li>\n <li>敬请期待</li>\n <li></li>\n </ul>\n </div>\n <div class=\"image\"></div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\n\nimport { GramDeonDevelopingComponent } from './default/index';\n\nconst components: any[] = [GramDeonDevelopingComponent];\n\n@NgModule({\n imports: [CommonModule, NzIconModule, NzButtonModule,\n ...components],\n exports: [...components],\n})\nexport class GramDeonDevelopingModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAQa,2BAA2B,CAAA;AACtC,IAAA,QAAQ;AAER,IAAA,eAAe;wGAHJ,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA3B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,2BAA2B,2ECRxC,qQAWA,EAAA,MAAA,EAAA,CAAA,05BAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FDHa,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBANvC,SAAS;+BACE,iBAAiB,EAAA,eAAA,EAGV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qQAAA,EAAA,MAAA,EAAA,CAAA,05BAAA,CAAA,EAAA;;;AECjD,MAAM,UAAU,GAAU,CAAC,2BAA2B,CAAC;MAO1C,wBAAwB,CAAA;wGAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAxB,wBAAwB,EAAA,OAAA,EAAA,CAJzB,YAAY,EAAE,YAAY,EAAE,cAAc,EAH3B,2BAA2B,CAAA,EAAA,OAAA,EAAA,CAA3B,2BAA2B,CAAA,EAAA,CAAA;AAOzC,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,EAJzB,OAAA,EAAA,CAAA,YAAY,EAAE,YAAY,EAAE,cAAc,CAAA,EAAA,CAAA;;4FAIzC,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,cAAc;AAClD,wBAAA,GAAG,UAAU,CAAC;AAChB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
|
|
7
|
+
class GramDeonEmptyComponent {
|
|
8
|
+
desc;
|
|
9
|
+
state = 'empty';
|
|
10
|
+
emptyClick = new EventEmitter();
|
|
11
|
+
ngOnInit() { }
|
|
12
|
+
ngAfterViewInit() { }
|
|
13
|
+
constructor() { }
|
|
14
|
+
empty() {
|
|
15
|
+
this.emptyClick.emit();
|
|
16
|
+
}
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonEmptyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramDeonEmptyComponent, isStandalone: true, selector: "gram-empty", inputs: { desc: "desc", state: "state" }, outputs: { emptyClick: "emptyClick" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"state\">\n <ng-container *ngSwitchCase=\"'empty'\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <ng-container *ngIf=\"desc!!;else tmpDefault\">\n <span>{{desc}}</span>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'role'\">\n <div class=\"image\"><img src=\"assets/images/default/empty4.png\" /></div>\n <div class=\"desc\"><span>{{desc==null?'\u60A8\u6682\u65E0\u8BE5\u529F\u80FD\u7684\u8BBF\u95EE\u6743\u9650':desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'period'\">\n <div class=\"image\"><img src=\"assets/images/default/empty3.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'write'\">\n <div class=\"image\"><img src=\"assets/images/default/empty6.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'running'\">\n <div class=\"image\"><img src=\"assets/images/default/empty7.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'add'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty8.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'empty9'\">\n <div class=\"image\"><img src=\"assets/images/default/empty9.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'kpi'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty10.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'interView'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty11.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'add-empty'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n</ng-container>\n<ng-template #tmpDefault>\n <span>\u6682\u65E0\u6570\u636E~</span>\n</ng-template>", styles: [":host ::ng-deep{display:inline-block;width:180px;margin:auto;text-align:center}:host ::ng-deep .image{width:150px;display:flex;margin:auto}:host ::ng-deep img{width:100%;margin:auto;text-align:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonEmptyComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'gram-empty', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
23
|
+
CommonModule,
|
|
24
|
+
FormsModule,
|
|
25
|
+
ReactiveFormsModule
|
|
26
|
+
], template: "<ng-container [ngSwitch]=\"state\">\n <ng-container *ngSwitchCase=\"'empty'\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <ng-container *ngIf=\"desc!!;else tmpDefault\">\n <span>{{desc}}</span>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'role'\">\n <div class=\"image\"><img src=\"assets/images/default/empty4.png\" /></div>\n <div class=\"desc\"><span>{{desc==null?'\u60A8\u6682\u65E0\u8BE5\u529F\u80FD\u7684\u8BBF\u95EE\u6743\u9650':desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'period'\">\n <div class=\"image\"><img src=\"assets/images/default/empty3.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'write'\">\n <div class=\"image\"><img src=\"assets/images/default/empty6.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'running'\">\n <div class=\"image\"><img src=\"assets/images/default/empty7.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'add'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty8.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'empty9'\">\n <div class=\"image\"><img src=\"assets/images/default/empty9.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'kpi'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty10.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'interView'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty11.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'add-empty'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n</ng-container>\n<ng-template #tmpDefault>\n <span>\u6682\u65E0\u6570\u636E~</span>\n</ng-template>", styles: [":host ::ng-deep{display:inline-block;width:180px;margin:auto;text-align:center}:host ::ng-deep .image{width:150px;display:flex;margin:auto}:host ::ng-deep img{width:100%;margin:auto;text-align:center}\n"] }]
|
|
27
|
+
}], ctorParameters: () => [], propDecorators: { desc: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], state: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], emptyClick: [{
|
|
32
|
+
type: Output
|
|
33
|
+
}] } });
|
|
34
|
+
|
|
35
|
+
const components = [GramDeonEmptyComponent];
|
|
36
|
+
class GramDeonEmptyModule {
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonEmptyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
38
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramDeonEmptyModule, imports: [GramDeonEmptyComponent], exports: [GramDeonEmptyComponent] });
|
|
39
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonEmptyModule, imports: [components] });
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonEmptyModule, decorators: [{
|
|
42
|
+
type: NgModule,
|
|
43
|
+
args: [{
|
|
44
|
+
imports: [...components],
|
|
45
|
+
exports: [...components],
|
|
46
|
+
}]
|
|
47
|
+
}] });
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Generated bundle index. Do not edit.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
export { GramDeonEmptyComponent, GramDeonEmptyModule };
|
|
54
|
+
//# sourceMappingURL=components.empty.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.empty.mjs","sources":["../../../../packages/abc/empty/src/default/index.ts","../../../../packages/abc/empty/src/default/index.html","../../../../packages/abc/empty/src/index.module.ts","../../../../packages/abc/empty/components.empty.ts"],"sourcesContent":["import { Component, OnInit, Output, AfterViewInit, ChangeDetectionStrategy, Input, EventEmitter } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n@Component({\n selector: 'gram-empty',\n standalone: true,\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule\n ]\n})\nexport class GramDeonEmptyComponent implements OnInit, AfterViewInit {\n @Input() desc: string;\n @Input() state: string = 'empty';\n @Output() emptyClick: EventEmitter<any> = new EventEmitter();\n\n ngOnInit(): void { }\n\n ngAfterViewInit() { }\n\n constructor() { }\n\n empty() {\n this.emptyClick.emit();\n }\n}\n","<ng-container [ngSwitch]=\"state\">\n <ng-container *ngSwitchCase=\"'empty'\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\">\n <ng-container *ngIf=\"desc!!;else tmpDefault\">\n <span>{{desc}}</span>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'role'\">\n <div class=\"image\"><img src=\"assets/images/default/empty4.png\" /></div>\n <div class=\"desc\"><span>{{desc==null?'您暂无该功能的访问权限':desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'period'\">\n <div class=\"image\"><img src=\"assets/images/default/empty3.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'write'\">\n <div class=\"image\"><img src=\"assets/images/default/empty6.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'running'\">\n <div class=\"image\"><img src=\"assets/images/default/empty7.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'add'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty8.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'empty9'\">\n <div class=\"image\"><img src=\"assets/images/default/empty9.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'kpi'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty10.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'interView'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty11.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'add-empty'\">\n <a (click)=\"empty()\">\n <div class=\"image\"><img src=\"assets/images/default/empty2.png\" /></div>\n <div class=\"desc\"><span>{{desc}}</span></div>\n </a>\n </ng-container>\n</ng-container>\n<ng-template #tmpDefault>\n <span>暂无数据~</span>\n</ng-template>","import { NgModule } from '@angular/core';\nimport { GramDeonEmptyComponent } from './default/index';\n\nconst components: any[] = [GramDeonEmptyComponent];\n\n@NgModule({\n imports: [...components],\n exports: [...components],\n})\nexport class GramDeonEmptyModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAgBa,sBAAsB,CAAA;AACxB,IAAA,IAAI;IACJ,KAAK,GAAW,OAAO;AACtB,IAAA,UAAU,GAAsB,IAAI,YAAY,EAAE;AAE5D,IAAA,QAAQ;AAER,IAAA,eAAe;AAEf,IAAA,WAAA,GAAA;IAEA,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;;wGAZb,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,uJChBnC,g6EAwDc,EAAA,MAAA,EAAA,CAAA,4MAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,ED7CV,YAAY,EACZ,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,WAAW,8BACX,mBAAmB,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAGV,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAZlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,cACV,IAAI,EAAA,eAAA,EAGC,uBAAuB,CAAC,MAAM,EACtC,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX;AACD,qBAAA,EAAA,QAAA,EAAA,g6EAAA,EAAA,MAAA,EAAA,CAAA,4MAAA,CAAA,EAAA;wDAGQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,KAAK,EAAA,CAAA;sBAAb;gBACS,UAAU,EAAA,CAAA;sBAAnB;;;AEhBH,MAAM,UAAU,GAAU,CAAC,sBAAsB,CAAC;MAMrC,mBAAmB,CAAA;wGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAnB,mBAAmB,EAAA,OAAA,EAAA,CANL,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAAtB,sBAAsB,CAAA,EAAA,CAAA;AAMpC,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAHjB,UAAU,CAAA,EAAA,CAAA;;4FAGZ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import * as i2 from 'ng-zorro-antd/button';
|
|
7
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
8
|
+
import * as i5 from 'ng-zorro-antd/icon';
|
|
9
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
10
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
11
|
+
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
12
|
+
import { GramPipeModule } from '@ebuilding/base/shared.pipe';
|
|
13
|
+
import { ActionData } from '@ebuilding/base/shared.util/comm.workflow';
|
|
14
|
+
import * as i3 from 'ng-zorro-antd/core/transition-patch';
|
|
15
|
+
import * as i4 from 'ng-zorro-antd/core/wave';
|
|
16
|
+
|
|
17
|
+
class GramDeonFlowButtonComponent {
|
|
18
|
+
data = null;
|
|
19
|
+
buttonClick = new EventEmitter();
|
|
20
|
+
sourceData;
|
|
21
|
+
constructor() { }
|
|
22
|
+
ngOnInit() { }
|
|
23
|
+
ngOnChanges(changes) {
|
|
24
|
+
if (changes['data'] && this.data) {
|
|
25
|
+
this.getPageData();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
getPageData() {
|
|
29
|
+
if (this.data && this.data.length > 0) {
|
|
30
|
+
let arr = [];
|
|
31
|
+
ActionData().forEach((item) => {
|
|
32
|
+
let findData = this.data.filter((d) => {
|
|
33
|
+
return d.type == item.value;
|
|
34
|
+
});
|
|
35
|
+
if (findData && findData.length > 0) {
|
|
36
|
+
arr.push(findData[0]);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
this.sourceData = arr;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
btnClick(e, type, button) {
|
|
43
|
+
e.stopPropagation();
|
|
44
|
+
this.buttonClick.emit({
|
|
45
|
+
type: type,
|
|
46
|
+
data: button,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFlowButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramDeonFlowButtonComponent, isStandalone: true, selector: "gram-form-button", inputs: { data: "data" }, outputs: { buttonClick: "buttonClick" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"sourceData!! && sourceData.length > 0\">\n <ng-container *ngFor=\"let button of sourceData\">\n <ng-container [ngSwitch]=\"button.type\">\n <ng-container *ngSwitchCase=\"'CC'\">\n <button nz-button nzType=\"default\" type=\"button\" (submit)=\"btnClick($event, 'CC', button)\" (click)=\"btnClick($event, 'CC', button)\">\n <span nz-icon nzType=\"select\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'APPROVE'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'APPROVE', button)\"\n (click)=\"btnClick($event, 'APPROVE', button)\"\n >\n <span nz-icon nzType=\"send\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'REBACK'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'REBACK', button)\"\n (click)=\"btnClick($event, 'REBACK', button)\"\n >\n <span nz-icon nzType=\"undo\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'REJECT'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'REJECT', button)\"\n (click)=\"btnClick($event, 'REJECT', button)\"\n >\n <span nz-icon nzType=\"minus-circle\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'TERMINATE'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'TERMINATE', button)\"\n (click)=\"btnClick($event, 'TERMINATE', button)\"\n >\n <span nz-icon nzType=\"stop\"></span>{{ button.name }}\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [":host ::ng-deep{display:inline-block;flex:1;padding:0;text-align:right}:host ::ng-deep .approve{display:flex;flex-direction:row;align-items:center;width:100%;margin:0;padding:0}:host ::ng-deep .approve li{padding:0 8px 0 0}:host ::ng-deep .approve .desc{padding:0 0 0 20px;font-weight:600;font-size:14px}:host ::ng-deep .approve .desc:after{padding:0 5px 0 3px;content:\":\"}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵ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: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i5.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "ngmodule", type: NzModalModule }, { kind: "ngmodule", type: GramPipeModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
51
|
+
}
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFlowButtonComponent, decorators: [{
|
|
53
|
+
type: Component,
|
|
54
|
+
args: [{ selector: 'gram-form-button', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
55
|
+
CommonModule,
|
|
56
|
+
FormsModule,
|
|
57
|
+
ReactiveFormsModule,
|
|
58
|
+
NzButtonModule,
|
|
59
|
+
NzIconModule,
|
|
60
|
+
NzInputModule,
|
|
61
|
+
NzModalModule,
|
|
62
|
+
GramPipeModule
|
|
63
|
+
], template: "<ng-container *ngIf=\"sourceData!! && sourceData.length > 0\">\n <ng-container *ngFor=\"let button of sourceData\">\n <ng-container [ngSwitch]=\"button.type\">\n <ng-container *ngSwitchCase=\"'CC'\">\n <button nz-button nzType=\"default\" type=\"button\" (submit)=\"btnClick($event, 'CC', button)\" (click)=\"btnClick($event, 'CC', button)\">\n <span nz-icon nzType=\"select\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'APPROVE'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'APPROVE', button)\"\n (click)=\"btnClick($event, 'APPROVE', button)\"\n >\n <span nz-icon nzType=\"send\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'REBACK'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'REBACK', button)\"\n (click)=\"btnClick($event, 'REBACK', button)\"\n >\n <span nz-icon nzType=\"undo\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'REJECT'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'REJECT', button)\"\n (click)=\"btnClick($event, 'REJECT', button)\"\n >\n <span nz-icon nzType=\"minus-circle\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'TERMINATE'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'TERMINATE', button)\"\n (click)=\"btnClick($event, 'TERMINATE', button)\"\n >\n <span nz-icon nzType=\"stop\"></span>{{ button.name }}\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [":host ::ng-deep{display:inline-block;flex:1;padding:0;text-align:right}:host ::ng-deep .approve{display:flex;flex-direction:row;align-items:center;width:100%;margin:0;padding:0}:host ::ng-deep .approve li{padding:0 8px 0 0}:host ::ng-deep .approve .desc{padding:0 0 0 20px;font-weight:600;font-size:14px}:host ::ng-deep .approve .desc:after{padding:0 5px 0 3px;content:\":\"}\n"] }]
|
|
64
|
+
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], buttonClick: [{
|
|
67
|
+
type: Output
|
|
68
|
+
}] } });
|
|
69
|
+
|
|
70
|
+
const components = [GramDeonFlowButtonComponent];
|
|
71
|
+
class GramDeonFlowButtonModule {
|
|
72
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFlowButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
73
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFlowButtonModule, imports: [GramDeonFlowButtonComponent], exports: [GramDeonFlowButtonComponent] });
|
|
74
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFlowButtonModule, imports: [components] });
|
|
75
|
+
}
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonFlowButtonModule, decorators: [{
|
|
77
|
+
type: NgModule,
|
|
78
|
+
args: [{
|
|
79
|
+
imports: [...components],
|
|
80
|
+
exports: [...components],
|
|
81
|
+
}]
|
|
82
|
+
}] });
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Generated bundle index. Do not edit.
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
export { GramDeonFlowButtonComponent, GramDeonFlowButtonModule };
|
|
89
|
+
//# sourceMappingURL=components.flow-button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.flow-button.mjs","sources":["../../../../packages/abc/flow-button/src/default/index.ts","../../../../packages/abc/flow-button/src/default/index.html","../../../../packages/abc/flow-button/src/index.module.ts","../../../../packages/abc/flow-button/components.flow-button.ts"],"sourcesContent":["import {\n Component,\n OnInit,\n Input,\n Output,\n EventEmitter,\n OnChanges,\n SimpleChanges,\n ChangeDetectionStrategy,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { NzButtonModule } from 'ng-zorro-antd/button';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzModalModule } from 'ng-zorro-antd/modal';\nimport { GramPipeModule } from '@ebuilding/base/shared.pipe';\nimport { ActionData } from '@ebuilding/base/shared.util/comm.workflow';\n@Component({\n selector: 'gram-form-button',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n NzButtonModule,\n NzIconModule,\n NzInputModule,\n NzModalModule,\n GramPipeModule\n ]\n})\nexport class GramDeonFlowButtonComponent implements OnInit, OnChanges {\n @Input() data: any = null;\n\n @Output() buttonClick: EventEmitter<any> = new EventEmitter();\n sourceData: any[];\n\n constructor() { }\n\n ngOnInit() { }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['data'] && this.data!!) {\n this.getPageData();\n }\n }\n\n getPageData() {\n if (this.data!! && this.data.length > 0) {\n let arr: any[] = [];\n ActionData().forEach((item: any) => {\n let findData: any[] = this.data.filter((d: any) => {\n return d.type == item.value;\n });\n if (findData!! && findData.length > 0) {\n arr.push(findData[0]);\n }\n });\n this.sourceData = arr;\n }\n }\n\n btnClick(e: any, type: any, button: any) {\n e.stopPropagation();\n this.buttonClick.emit({\n type: type,\n data: button,\n });\n }\n}\n","<ng-container *ngIf=\"sourceData!! && sourceData.length > 0\">\n <ng-container *ngFor=\"let button of sourceData\">\n <ng-container [ngSwitch]=\"button.type\">\n <ng-container *ngSwitchCase=\"'CC'\">\n <button nz-button nzType=\"default\" type=\"button\" (submit)=\"btnClick($event, 'CC', button)\" (click)=\"btnClick($event, 'CC', button)\">\n <span nz-icon nzType=\"select\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'APPROVE'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'APPROVE', button)\"\n (click)=\"btnClick($event, 'APPROVE', button)\"\n >\n <span nz-icon nzType=\"send\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'REBACK'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'REBACK', button)\"\n (click)=\"btnClick($event, 'REBACK', button)\"\n >\n <span nz-icon nzType=\"undo\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'REJECT'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'REJECT', button)\"\n (click)=\"btnClick($event, 'REJECT', button)\"\n >\n <span nz-icon nzType=\"minus-circle\"></span>{{ button.name }}\n </button>\n </ng-container>\n <ng-container *ngSwitchCase=\"'TERMINATE'\">\n <button\n nz-button\n nzType=\"primary\"\n type=\"button\"\n (submit)=\"btnClick($event, 'TERMINATE', button)\"\n (click)=\"btnClick($event, 'TERMINATE', button)\"\n >\n <span nz-icon nzType=\"stop\"></span>{{ button.name }}\n </button>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-container>\n","import { NgModule } from '@angular/core';\nimport { GramDeonFlowButtonComponent } from './default/index';\n\nconst components: any[] = [GramDeonFlowButtonComponent];\n\n@NgModule({\n\n imports: [...components],\n exports: [...components],\n})\nexport class GramDeonFlowButtonModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Inject, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i7 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1 from 'ng-zorro-antd/modal';
|
|
6
|
+
import { NzModalModule } from 'ng-zorro-antd/modal';
|
|
7
|
+
import * as i9 from 'ng-zorro-antd/form';
|
|
8
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
9
|
+
import * as i15 from 'ng-zorro-antd/button';
|
|
10
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
11
|
+
import * as i18 from 'ng-zorro-antd/icon';
|
|
12
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
13
|
+
import * as i10 from 'ng-zorro-antd/avatar';
|
|
14
|
+
import { NzAvatarModule } from 'ng-zorro-antd/avatar';
|
|
15
|
+
import * as i12 from 'ng-zorro-antd/dropdown';
|
|
16
|
+
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
|
|
17
|
+
import * as i13 from 'ng-zorro-antd/select';
|
|
18
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
19
|
+
import * as i14 from 'ng-zorro-antd/input';
|
|
20
|
+
import { NzInputModule } from 'ng-zorro-antd/input';
|
|
21
|
+
import * as i5 from '@angular/forms';
|
|
22
|
+
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
23
|
+
import { DA_SERVICE_TOKEN } from '@delon/auth';
|
|
24
|
+
import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
|
|
25
|
+
import { AppCustomerId, AppSetData, AppSetName, AppSetId } from '@ebuilding/base/shared.var/shared.variable';
|
|
26
|
+
import screenfull from 'screenfull';
|
|
27
|
+
import * as i2 from '@delon/theme';
|
|
28
|
+
import * as i3 from '@angular/router';
|
|
29
|
+
import * as i4 from 'ng-zorro-antd/message';
|
|
30
|
+
import * as i6 from '@ebuilding/base/shared.srv/global.event';
|
|
31
|
+
import * as i8 from 'ng-zorro-antd/grid';
|
|
32
|
+
import * as i11 from 'ng-zorro-antd/menu';
|
|
33
|
+
import * as i16 from 'ng-zorro-antd/core/transition-patch';
|
|
34
|
+
import * as i17 from 'ng-zorro-antd/core/wave';
|
|
35
|
+
|
|
36
|
+
class GramHeaderUserComponent {
|
|
37
|
+
modalService;
|
|
38
|
+
settings;
|
|
39
|
+
router;
|
|
40
|
+
http;
|
|
41
|
+
modal;
|
|
42
|
+
msg;
|
|
43
|
+
fb;
|
|
44
|
+
tokenService;
|
|
45
|
+
globalSrv;
|
|
46
|
+
cdr;
|
|
47
|
+
get user() {
|
|
48
|
+
return this.settings.user;
|
|
49
|
+
}
|
|
50
|
+
get customerId() {
|
|
51
|
+
return this.settings.getData(AppCustomerId);
|
|
52
|
+
}
|
|
53
|
+
avatar = null;
|
|
54
|
+
listEId = [];
|
|
55
|
+
defaultEName = null;
|
|
56
|
+
setIdIsVisible = false;
|
|
57
|
+
setIdIsOkLoading = false;
|
|
58
|
+
validateEIdForm;
|
|
59
|
+
myIsVisible = false;
|
|
60
|
+
constructor(modalService, settings, router, http, modal, msg, fb, tokenService, globalSrv, cdr) {
|
|
61
|
+
this.modalService = modalService;
|
|
62
|
+
this.settings = settings;
|
|
63
|
+
this.router = router;
|
|
64
|
+
this.http = http;
|
|
65
|
+
this.modal = modal;
|
|
66
|
+
this.msg = msg;
|
|
67
|
+
this.fb = fb;
|
|
68
|
+
this.tokenService = tokenService;
|
|
69
|
+
this.globalSrv = globalSrv;
|
|
70
|
+
this.cdr = cdr;
|
|
71
|
+
this.avatar = this.user?.avatar;
|
|
72
|
+
if (this.avatar == null) {
|
|
73
|
+
this.avatar = '/assets/images/employee.png';
|
|
74
|
+
}
|
|
75
|
+
this.globalSrv.subscribe('reload-header-user', (res) => {
|
|
76
|
+
this.avatar = this.user?.avatar;
|
|
77
|
+
this.cdr.detectChanges();
|
|
78
|
+
});
|
|
79
|
+
let tmpEIds = this.settings.getData(AppSetData);
|
|
80
|
+
if (tmpEIds && tmpEIds.length > 0) {
|
|
81
|
+
this.listEId = tmpEIds;
|
|
82
|
+
}
|
|
83
|
+
this.defaultEName = this.settings.getData(AppSetName);
|
|
84
|
+
}
|
|
85
|
+
validateForm;
|
|
86
|
+
captchaTooltipIcon = {
|
|
87
|
+
type: 'info-circle',
|
|
88
|
+
theme: 'twotone',
|
|
89
|
+
};
|
|
90
|
+
submitForm() {
|
|
91
|
+
Object.values(this.validateForm.controls).forEach((control) => {
|
|
92
|
+
if (control.invalid) {
|
|
93
|
+
control.markAsDirty();
|
|
94
|
+
control.updateValueAndValidity({ onlySelf: true });
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
if (this.validateForm.valid) {
|
|
98
|
+
this.isOkLoading = true;
|
|
99
|
+
this.http
|
|
100
|
+
.post(`${ModuleAPI.system}/sys/user/updatePwd`, {
|
|
101
|
+
oldPwd: this.validateForm.controls?.["password"]?.value,
|
|
102
|
+
newPwd: this.validateForm.controls?.["newPassword"]?.value,
|
|
103
|
+
})
|
|
104
|
+
.subscribe((res) => {
|
|
105
|
+
if (res.success) {
|
|
106
|
+
this.isOkLoading = false;
|
|
107
|
+
this.isVisible = true;
|
|
108
|
+
this.msg.success('密码修改成功,请重新登录');
|
|
109
|
+
this.tokenService.clear();
|
|
110
|
+
this.router.navigateByUrl(this.tokenService.login_url);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
updateConfirmValidator() {
|
|
116
|
+
Promise.resolve().then(() => this.validateForm.controls?.["confirmPassword"]?.updateValueAndValidity());
|
|
117
|
+
}
|
|
118
|
+
confirmationValidator = (control) => {
|
|
119
|
+
if (!control.value) {
|
|
120
|
+
return { required: true };
|
|
121
|
+
}
|
|
122
|
+
else if (control.value !== this.validateForm.controls?.["newPassword"]?.value) {
|
|
123
|
+
return { confirm: true, error: true };
|
|
124
|
+
}
|
|
125
|
+
return {};
|
|
126
|
+
};
|
|
127
|
+
getCaptcha(e) {
|
|
128
|
+
e.preventDefault();
|
|
129
|
+
}
|
|
130
|
+
ngOnInit() {
|
|
131
|
+
this.validateForm = this.fb.group({
|
|
132
|
+
password: [null, [Validators.required]],
|
|
133
|
+
newPassword: [null, [Validators.required]],
|
|
134
|
+
confirmPassword: [null, [Validators.required, this.confirmationValidator]],
|
|
135
|
+
});
|
|
136
|
+
this.validateEIdForm = this.fb.group({
|
|
137
|
+
eId: [null, [Validators.required]],
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
logout() {
|
|
141
|
+
this.modal.confirm({
|
|
142
|
+
nzTitle: '提示',
|
|
143
|
+
nzContent: `您确定需要退出吗?`,
|
|
144
|
+
nzOnOk: () => {
|
|
145
|
+
this.http.post(`${ModuleAPI.system}/auth/logout`, {}).subscribe((res) => {
|
|
146
|
+
this.tokenService.clear();
|
|
147
|
+
this.router.navigateByUrl(this.tokenService.login_url);
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
nzFooter = null;
|
|
153
|
+
isVisible = false;
|
|
154
|
+
isOkLoading = false;
|
|
155
|
+
showModal() {
|
|
156
|
+
this.validateForm.reset();
|
|
157
|
+
this.isVisible = true;
|
|
158
|
+
}
|
|
159
|
+
showAdmin() {
|
|
160
|
+
window.open(`/admin/home`, '_blank');
|
|
161
|
+
}
|
|
162
|
+
showSettings() {
|
|
163
|
+
this.myIsVisible = true;
|
|
164
|
+
}
|
|
165
|
+
myCancel() {
|
|
166
|
+
this.myIsVisible = false;
|
|
167
|
+
}
|
|
168
|
+
setScreenfull() {
|
|
169
|
+
if (screenfull.isEnabled) {
|
|
170
|
+
screenfull.toggle();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
handleOk() {
|
|
174
|
+
this.isOkLoading = true;
|
|
175
|
+
setTimeout(() => {
|
|
176
|
+
this.isVisible = false;
|
|
177
|
+
this.isOkLoading = false;
|
|
178
|
+
}, 3000);
|
|
179
|
+
}
|
|
180
|
+
handleCancel() {
|
|
181
|
+
this.validateForm.reset();
|
|
182
|
+
this.isVisible = false;
|
|
183
|
+
}
|
|
184
|
+
goToChangeSetId() {
|
|
185
|
+
this.setIdIsVisible = true;
|
|
186
|
+
}
|
|
187
|
+
setIdCancel() {
|
|
188
|
+
this.validateEIdForm.reset();
|
|
189
|
+
this.setIdIsVisible = false;
|
|
190
|
+
}
|
|
191
|
+
submitSetIdForm() {
|
|
192
|
+
Object.values(this.validateEIdForm.controls).forEach((control) => {
|
|
193
|
+
if (control.invalid) {
|
|
194
|
+
control.markAsDirty();
|
|
195
|
+
control.updateValueAndValidity({ onlySelf: true });
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
if (this.validateEIdForm.valid) {
|
|
199
|
+
let id = this.validateEIdForm.controls?.["eId"]?.value;
|
|
200
|
+
this.setIdIsOkLoading = true;
|
|
201
|
+
this.http.post(`${ModuleAPI.system}/sys/user/changeEId/${id}`).subscribe((res) => {
|
|
202
|
+
this.setIdIsOkLoading = false;
|
|
203
|
+
if (res.success) {
|
|
204
|
+
this.setIdIsVisible = false;
|
|
205
|
+
this.listEId.forEach((item) => {
|
|
206
|
+
if (item.id == id) {
|
|
207
|
+
this.settings.setData(AppSetId, id);
|
|
208
|
+
this.settings.setData(AppSetName, item.name);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
this.msg.success('切换成功');
|
|
212
|
+
this.router.navigateByUrl('/home');
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramHeaderUserComponent, deps: [{ token: i1.NzModalService }, { token: i2.SettingsService }, { token: i3.Router }, { token: i2._HttpClient }, { token: i1.NzModalService }, { token: i4.NzMessageService }, { token: i5.FormBuilder }, { token: DA_SERVICE_TOKEN }, { token: i6.GramGlobalService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
218
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramHeaderUserComponent, isStandalone: true, selector: "gram-header-user", ngImport: i0, template: "<div class=\"alain-default__nav-item d-flex align-items-center px-sm\" nz-dropdown nzPlacement=\"bottomRight\"\n nzTrigger=\"click\" [nzDropdownMenu]=\"userMenu\">\n <nz-avatar [nzSrc]=\"avatar\" nzSize=\"small\" class=\"mr-sm\"></nz-avatar>\n {{ user?.name }}\n</div>\n<nz-dropdown-menu #userMenu=\"nzDropdownMenu\">\n <div nz-menu class=\"width-sm menu-user-dropdown\">\n <ng-container *ngIf=\"listEId!! && listEId.length > 1\">\n <div nz-menu-item (click)=\"goToChangeSetId()\">\n <span nz-icon nzType=\"idcard\"></span>\n \u8EAB\u4EFD\u5207\u6362\n </div>\n <div nz-menu-divider></div>\n </ng-container>\n <div nz-menu-item (click)=\"setScreenfull()\">\n <i nz-icon nzType=\"fullscreen\" class=\"mr-sm\"></i>\n \u5168\u5C4F\u663E\u793A\n </div>\n <div nz-menu-item (click)=\"showAdmin()\">\n <i nz-icon nzType=\"setting\" class=\"mr-sm\"></i>\n \u540E\u53F0\u8BBE\u7F6E\n </div>\n <div nz-menu-divider></div>\n <div nz-menu-item (click)=\"showModal()\">\n <i nz-icon nzType=\"eye\" class=\"mr-sm\"></i>\n \u5BC6\u7801\u4FEE\u6539\n </div>\n <div nz-menu-item (click)=\"logout()\">\n <i nz-icon nzType=\"logout\" class=\"mr-sm\"></i>\n \u9000\u51FA\u7CFB\u7EDF\n </div>\n <div nz-menu-divider></div>\n <div nz-menu-item (click)=\"showSettings()\">\n <i nz-icon nzType=\"project\" class=\"mr-sm\"></i>\n \u5173\u4E8E\u6211\u4EEC\n </div>\n <div nz-menu-item>\n <i nz-icon nzType=\"number\" class=\"mr-sm\"></i>\n <label class=\"customerId\">\u4F01\u4E1AID</label>{{ customerId }}\n </div>\n </div>\n</nz-dropdown-menu>\n\n<nz-modal [(nzVisible)]=\"isVisible\" nzTitle=\"\u5BC6\u7801\u4FEE\u6539\" (nzOnCancel)=\"handleCancel()\" [nzFooter]=\"nzFooter\"\n nzClassName=\"modalPwd\">\n <form nz-form [formGroup]=\"validateForm\" (ngSubmit)=\"submitForm()\" class=\"frmPwd\">\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\" nzFor=\"password\" nzRequired>\u5BC6\u7801</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\" nzErrorTip=\"\u8BF7\u8F93\u5165\u5BC6\u7801\">\n <input nz-input type=\"password\" id=\"password\" formControlName=\"password\" maxlength=\"50\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\" nzFor=\"newPassword\" nzRequired>\u65B0\u5BC6\u7801</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\" nzErrorTip=\"\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\">\n <input nz-input type=\"password\" id=\"newPassword\" formControlName=\"newPassword\" maxlength=\"50\"\n (ngModelChange)=\"updateConfirmValidator()\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\" nzFor=\"confirmPassword\" nzRequired>\u786E\u8BA4\u5BC6\u7801</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\" [nzErrorTip]=\"errorTpl\">\n <input nz-input type=\"password\" formControlName=\"confirmPassword\" id=\"confirmPassword\" maxlength=\"50\"\n (ngModelChange)=\"updateConfirmValidator()\" />\n <ng-template #errorTpl let-control>\n <ng-container *ngIf=\"control.hasError('required')\">\u8BF7\u8F93\u5165\u786E\u8BA4\u5BC6\u7801</ng-container>\n <ng-container *ngIf=\"control.hasError('confirm')\"> \u60A8\u4FE9\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4 </ng-container>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n <div class=\"button-box\">\n <div>\n <button nz-button nzType=\"default\" (click)=\"handleCancel()\" type=\"button\">\u53D6\u6D88</button>\n <button nz-button nzType=\"primary\" type=\"submit\" [nzLoading]=\"isOkLoading\">\u786E\u5B9A</button>\n </div>\n </div>\n </form>\n</nz-modal>\n\n<nz-modal [(nzVisible)]=\"setIdIsVisible\" nzTitle=\"\u8EAB\u4EFD\u5207\u6362\" (nzOnCancel)=\"setIdCancel()\" nzClassName=\"modalPwd\"\n [nzFooter]=\"nzFooter\">\n <form nz-form [formGroup]=\"validateEIdForm\" (ngSubmit)=\"submitSetIdForm()\" class=\"frmPwd\">\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\">\u5F53\u524D\u8EAB\u4EFD</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\"> {{ defaultEName }} </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\" nzFor=\"setId\" nzRequired>\u5207\u6362\u8EAB\u4EFD</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\" nzErrorTip=\"\u8BF7\u9009\u62E9\u8EAB\u4EFD\">\n <nz-select id=\"eId\" formControlName=\"eId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u8EAB\u4EFD\">\n <ng-container *ngFor=\"let item of listEId\">\n <nz-option [nzValue]=\"item.id\" [nzLabel]=\"item.name\"></nz-option>\n </ng-container>\n </nz-select>\n </nz-form-control>\n </nz-form-item>\n\n <div class=\"button-box\">\n <div>\n <button nz-button nzType=\"default\" (click)=\"setIdCancel()\" type=\"button\">\u53D6\u6D88</button>\n <button nz-button nzType=\"primary\" type=\"submit\" [nzLoading]=\"setIdIsOkLoading\">\u786E\u5B9A</button>\n </div>\n </div>\n </form>\n</nz-modal>\n\n<nz-modal [(nzVisible)]=\"myIsVisible\" nzTitle=\"\u5173\u4E8E\u6211\u4EEC\" (nzOnCancel)=\"myCancel()\" nzClassName=\"modalMe\">\n <div *nzModalContent>\n <p>\n <label class=\"title\">\u7248\u672C\u53F7</label>\n <label>2.1.0</label>\n </p>\n <p>\n <label class=\"title\">\u8054\u7CFB\u4EBA</label>\n <label>Jack Ren</label>\n </p>\n <p>\n <label class=\"title\">\u8054\u7CFB\u90AE\u7BB1</label>\n <label>jackren0913@gmail.com</label>\n </p>\n <p>\n <label class=\"title\">\u4F01\u4E1A\u540D\u79F0</label>\n <label>\u897F\u5B89\u8398\u58A8\u79D1\u6280\u6709\u9650\u516C\u53F8</label>\n </p>\n </div>\n <div *nzModalFooter>\n <button nz-button nzType=\"default\" (click)=\"myCancel()\">\u5173\u95ED</button>\n </div>\n</nz-modal>", styles: [":host ::ng-deep{padding:0;overflow:auto;margin:auto}:host ::ng-deep header-user-pwd{display:flex;flex:1;width:100%;height:100%;padding:20px}:host ::ng-deep .alain-default__nav-item,:host ::ng-deep .alain-default__nav nz-badge{color:#262626}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i5.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: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i5.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i5.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i5.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NzModalModule }, { kind: "component", type: i1.NzModalComponent, selector: "nz-modal", inputs: ["nzMask", "nzMaskClosable", "nzCloseOnNavigation", "nzVisible", "nzClosable", "nzOkLoading", "nzOkDisabled", "nzCancelDisabled", "nzCancelLoading", "nzKeyboard", "nzNoAnimation", "nzCentered", "nzDraggable", "nzContent", "nzFooter", "nzZIndex", "nzWidth", "nzWrapClassName", "nzClassName", "nzStyle", "nzTitle", "nzCloseIcon", "nzMaskStyle", "nzBodyStyle", "nzOkText", "nzCancelText", "nzOkType", "nzOkDanger", "nzIconType", "nzModalType", "nzAutofocus", "nzOnOk", "nzOnCancel"], outputs: ["nzOnOk", "nzOnCancel", "nzAfterOpen", "nzAfterClose", "nzVisibleChange"], exportAs: ["nzModal"] }, { kind: "directive", type: i1.NzModalFooterDirective, selector: "[nzModalFooter]", exportAs: ["nzModalFooter"] }, { kind: "directive", type: i1.NzModalContentDirective, selector: "[nzModalContent]", exportAs: ["nzModalContent"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "directive", type: i8.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: i8.NzRowDirective, selector: "[nz-row],nz-row,nz-form-item", inputs: ["nzAlign", "nzJustify", "nzGutter"], exportAs: ["nzRow"] }, { kind: "directive", type: i9.NzFormDirective, selector: "[nz-form]", inputs: ["nzLayout", "nzNoColon", "nzAutoTips", "nzDisableAutoTips", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzForm"] }, { kind: "component", type: i9.NzFormItemComponent, selector: "nz-form-item", exportAs: ["nzFormItem"] }, { kind: "component", type: i9.NzFormLabelComponent, selector: "nz-form-label", inputs: ["nzFor", "nzRequired", "nzNoColon", "nzTooltipTitle", "nzTooltipIcon", "nzLabelAlign", "nzLabelWrap"], exportAs: ["nzFormLabel"] }, { kind: "component", type: i9.NzFormControlComponent, selector: "nz-form-control", inputs: ["nzSuccessTip", "nzWarningTip", "nzErrorTip", "nzValidatingTip", "nzExtra", "nzAutoTips", "nzDisableAutoTips", "nzHasFeedback", "nzValidateStatus"], exportAs: ["nzFormControl"] }, { kind: "ngmodule", type: NzAvatarModule }, { kind: "component", type: i10.NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "ngmodule", type: NzDropDownModule }, { kind: "directive", type: i11.NzMenuDirective, selector: "[nz-menu]", inputs: ["nzInlineIndent", "nzTheme", "nzMode", "nzInlineCollapsed", "nzSelectable"], outputs: ["nzClick"], exportAs: ["nzMenu"] }, { kind: "component", type: i11.NzMenuItemComponent, selector: "[nz-menu-item]", inputs: ["nzPaddingLeft", "nzDisabled", "nzSelected", "nzDanger", "nzMatchRouterExact", "nzMatchRouter"], exportAs: ["nzMenuItem"] }, { kind: "directive", type: i11.NzMenuDividerDirective, selector: "[nz-menu-divider]", exportAs: ["nzMenuDivider"] }, { kind: "directive", type: i12.NzDropDownDirective, selector: "[nz-dropdown]", inputs: ["nzDropdownMenu", "nzTrigger", "nzMatchWidthElement", "nzBackdrop", "nzClickHide", "nzDisabled", "nzVisible", "nzOverlayClassName", "nzOverlayStyle", "nzPlacement"], outputs: ["nzVisibleChange"], exportAs: ["nzDropdown"] }, { kind: "component", type: i12.NzDropdownMenuComponent, selector: "nz-dropdown-menu", exportAs: ["nzDropdownMenu"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i13.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i13.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzInputModule }, { kind: "directive", type: i14.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i15.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i16.ɵ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: i17.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i18.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
219
|
+
}
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramHeaderUserComponent, decorators: [{
|
|
221
|
+
type: Component,
|
|
222
|
+
args: [{ selector: 'gram-header-user', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
223
|
+
CommonModule,
|
|
224
|
+
FormsModule,
|
|
225
|
+
ReactiveFormsModule,
|
|
226
|
+
NzModalModule,
|
|
227
|
+
NzFormModule,
|
|
228
|
+
NzAvatarModule,
|
|
229
|
+
NzDropDownModule,
|
|
230
|
+
NzSelectModule,
|
|
231
|
+
NzInputModule,
|
|
232
|
+
NzButtonModule,
|
|
233
|
+
NzIconModule
|
|
234
|
+
], template: "<div class=\"alain-default__nav-item d-flex align-items-center px-sm\" nz-dropdown nzPlacement=\"bottomRight\"\n nzTrigger=\"click\" [nzDropdownMenu]=\"userMenu\">\n <nz-avatar [nzSrc]=\"avatar\" nzSize=\"small\" class=\"mr-sm\"></nz-avatar>\n {{ user?.name }}\n</div>\n<nz-dropdown-menu #userMenu=\"nzDropdownMenu\">\n <div nz-menu class=\"width-sm menu-user-dropdown\">\n <ng-container *ngIf=\"listEId!! && listEId.length > 1\">\n <div nz-menu-item (click)=\"goToChangeSetId()\">\n <span nz-icon nzType=\"idcard\"></span>\n \u8EAB\u4EFD\u5207\u6362\n </div>\n <div nz-menu-divider></div>\n </ng-container>\n <div nz-menu-item (click)=\"setScreenfull()\">\n <i nz-icon nzType=\"fullscreen\" class=\"mr-sm\"></i>\n \u5168\u5C4F\u663E\u793A\n </div>\n <div nz-menu-item (click)=\"showAdmin()\">\n <i nz-icon nzType=\"setting\" class=\"mr-sm\"></i>\n \u540E\u53F0\u8BBE\u7F6E\n </div>\n <div nz-menu-divider></div>\n <div nz-menu-item (click)=\"showModal()\">\n <i nz-icon nzType=\"eye\" class=\"mr-sm\"></i>\n \u5BC6\u7801\u4FEE\u6539\n </div>\n <div nz-menu-item (click)=\"logout()\">\n <i nz-icon nzType=\"logout\" class=\"mr-sm\"></i>\n \u9000\u51FA\u7CFB\u7EDF\n </div>\n <div nz-menu-divider></div>\n <div nz-menu-item (click)=\"showSettings()\">\n <i nz-icon nzType=\"project\" class=\"mr-sm\"></i>\n \u5173\u4E8E\u6211\u4EEC\n </div>\n <div nz-menu-item>\n <i nz-icon nzType=\"number\" class=\"mr-sm\"></i>\n <label class=\"customerId\">\u4F01\u4E1AID</label>{{ customerId }}\n </div>\n </div>\n</nz-dropdown-menu>\n\n<nz-modal [(nzVisible)]=\"isVisible\" nzTitle=\"\u5BC6\u7801\u4FEE\u6539\" (nzOnCancel)=\"handleCancel()\" [nzFooter]=\"nzFooter\"\n nzClassName=\"modalPwd\">\n <form nz-form [formGroup]=\"validateForm\" (ngSubmit)=\"submitForm()\" class=\"frmPwd\">\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\" nzFor=\"password\" nzRequired>\u5BC6\u7801</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\" nzErrorTip=\"\u8BF7\u8F93\u5165\u5BC6\u7801\">\n <input nz-input type=\"password\" id=\"password\" formControlName=\"password\" maxlength=\"50\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\" nzFor=\"newPassword\" nzRequired>\u65B0\u5BC6\u7801</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\" nzErrorTip=\"\u8BF7\u8F93\u5165\u65B0\u5BC6\u7801\">\n <input nz-input type=\"password\" id=\"newPassword\" formControlName=\"newPassword\" maxlength=\"50\"\n (ngModelChange)=\"updateConfirmValidator()\" />\n </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\" nzFor=\"confirmPassword\" nzRequired>\u786E\u8BA4\u5BC6\u7801</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\" [nzErrorTip]=\"errorTpl\">\n <input nz-input type=\"password\" formControlName=\"confirmPassword\" id=\"confirmPassword\" maxlength=\"50\"\n (ngModelChange)=\"updateConfirmValidator()\" />\n <ng-template #errorTpl let-control>\n <ng-container *ngIf=\"control.hasError('required')\">\u8BF7\u8F93\u5165\u786E\u8BA4\u5BC6\u7801</ng-container>\n <ng-container *ngIf=\"control.hasError('confirm')\"> \u60A8\u4FE9\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u4E00\u81F4 </ng-container>\n </ng-template>\n </nz-form-control>\n </nz-form-item>\n <div class=\"button-box\">\n <div>\n <button nz-button nzType=\"default\" (click)=\"handleCancel()\" type=\"button\">\u53D6\u6D88</button>\n <button nz-button nzType=\"primary\" type=\"submit\" [nzLoading]=\"isOkLoading\">\u786E\u5B9A</button>\n </div>\n </div>\n </form>\n</nz-modal>\n\n<nz-modal [(nzVisible)]=\"setIdIsVisible\" nzTitle=\"\u8EAB\u4EFD\u5207\u6362\" (nzOnCancel)=\"setIdCancel()\" nzClassName=\"modalPwd\"\n [nzFooter]=\"nzFooter\">\n <form nz-form [formGroup]=\"validateEIdForm\" (ngSubmit)=\"submitSetIdForm()\" class=\"frmPwd\">\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\">\u5F53\u524D\u8EAB\u4EFD</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\"> {{ defaultEName }} </nz-form-control>\n </nz-form-item>\n <nz-form-item>\n <nz-form-label [nzSm]=\"6\" [nzXs]=\"24\" nzFor=\"setId\" nzRequired>\u5207\u6362\u8EAB\u4EFD</nz-form-label>\n <nz-form-control [nzSm]=\"14\" [nzXs]=\"24\" nzErrorTip=\"\u8BF7\u9009\u62E9\u8EAB\u4EFD\">\n <nz-select id=\"eId\" formControlName=\"eId\" nzPlaceHolder=\"\u8BF7\u9009\u62E9\u8EAB\u4EFD\">\n <ng-container *ngFor=\"let item of listEId\">\n <nz-option [nzValue]=\"item.id\" [nzLabel]=\"item.name\"></nz-option>\n </ng-container>\n </nz-select>\n </nz-form-control>\n </nz-form-item>\n\n <div class=\"button-box\">\n <div>\n <button nz-button nzType=\"default\" (click)=\"setIdCancel()\" type=\"button\">\u53D6\u6D88</button>\n <button nz-button nzType=\"primary\" type=\"submit\" [nzLoading]=\"setIdIsOkLoading\">\u786E\u5B9A</button>\n </div>\n </div>\n </form>\n</nz-modal>\n\n<nz-modal [(nzVisible)]=\"myIsVisible\" nzTitle=\"\u5173\u4E8E\u6211\u4EEC\" (nzOnCancel)=\"myCancel()\" nzClassName=\"modalMe\">\n <div *nzModalContent>\n <p>\n <label class=\"title\">\u7248\u672C\u53F7</label>\n <label>2.1.0</label>\n </p>\n <p>\n <label class=\"title\">\u8054\u7CFB\u4EBA</label>\n <label>Jack Ren</label>\n </p>\n <p>\n <label class=\"title\">\u8054\u7CFB\u90AE\u7BB1</label>\n <label>jackren0913@gmail.com</label>\n </p>\n <p>\n <label class=\"title\">\u4F01\u4E1A\u540D\u79F0</label>\n <label>\u897F\u5B89\u8398\u58A8\u79D1\u6280\u6709\u9650\u516C\u53F8</label>\n </p>\n </div>\n <div *nzModalFooter>\n <button nz-button nzType=\"default\" (click)=\"myCancel()\">\u5173\u95ED</button>\n </div>\n</nz-modal>", styles: [":host ::ng-deep{padding:0;overflow:auto;margin:auto}:host ::ng-deep header-user-pwd{display:flex;flex:1;width:100%;height:100%;padding:20px}:host ::ng-deep .alain-default__nav-item,:host ::ng-deep .alain-default__nav nz-badge{color:#262626}\n"] }]
|
|
235
|
+
}], ctorParameters: () => [{ type: i1.NzModalService }, { type: i2.SettingsService }, { type: i3.Router }, { type: i2._HttpClient }, { type: i1.NzModalService }, { type: i4.NzMessageService }, { type: i5.FormBuilder }, { type: undefined, decorators: [{
|
|
236
|
+
type: Inject,
|
|
237
|
+
args: [DA_SERVICE_TOKEN]
|
|
238
|
+
}] }, { type: i6.GramGlobalService }, { type: i0.ChangeDetectorRef }] });
|
|
239
|
+
|
|
240
|
+
const components = [GramHeaderUserComponent];
|
|
241
|
+
class GramDeonHeaderUserModule {
|
|
242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonHeaderUserModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
243
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramDeonHeaderUserModule, imports: [GramHeaderUserComponent], exports: [GramHeaderUserComponent] });
|
|
244
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonHeaderUserModule, imports: [components] });
|
|
245
|
+
}
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonHeaderUserModule, decorators: [{
|
|
247
|
+
type: NgModule,
|
|
248
|
+
args: [{
|
|
249
|
+
imports: [
|
|
250
|
+
...components
|
|
251
|
+
],
|
|
252
|
+
exports: [...components],
|
|
253
|
+
}]
|
|
254
|
+
}] });
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Generated bundle index. Do not edit.
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
export { GramDeonHeaderUserModule, GramHeaderUserComponent };
|
|
261
|
+
//# sourceMappingURL=components.header-user.mjs.map
|