@ebuilding/biz-form 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/advanced/index.d.ts +1 -0
- package/advanced/src/index.module.d.ts +8 -0
- package/advanced/src/main/index.d.ts +29 -0
- package/advanced/src/public_api.d.ts +2 -0
- package/basic/index.d.ts +1 -0
- package/basic/src/basic.d.ts +53 -0
- package/basic/src/basic.drawer.d.ts +30 -0
- package/basic/src/default/index.d.ts +27 -0
- package/basic/src/index.module.d.ts +9 -0
- package/basic/src/main/index.d.ts +32 -0
- package/basic/src/public_api.d.ts +3 -0
- package/custom/index.d.ts +1 -0
- package/custom/src/default/index.d.ts +30 -0
- package/custom/src/index.module.d.ts +9 -0
- package/custom/src/main/index.d.ts +27 -0
- package/custom/src/public_api.d.ts +3 -0
- package/design/index.d.ts +1 -0
- package/design/src/default/index.d.ts +25 -0
- package/design/src/index.module.d.ts +8 -0
- package/design/src/public_api.d.ts +2 -0
- package/empInfo/index.d.ts +1 -0
- package/empInfo/src/children/index.d.ts +28 -0
- package/empInfo/src/default/index.d.ts +34 -0
- package/empInfo/src/index.module.d.ts +9 -0
- package/empInfo/src/public_api.d.ts +2 -0
- package/empInfo/src/service.d.ts +14 -0
- package/fesm2022/advanced.mjs +114 -0
- package/fesm2022/advanced.mjs.map +1 -0
- package/fesm2022/basic.mjs +431 -0
- package/fesm2022/basic.mjs.map +1 -0
- package/fesm2022/custom.mjs +156 -0
- package/fesm2022/custom.mjs.map +1 -0
- package/fesm2022/design.mjs +109 -0
- package/fesm2022/design.mjs.map +1 -0
- package/fesm2022/ebuilding-biz-form.mjs +7 -0
- package/fesm2022/ebuilding-biz-form.mjs.map +1 -0
- package/fesm2022/empInfo.mjs +273 -0
- package/fesm2022/empInfo.mjs.map +1 -0
- package/fesm2022/history.mjs +119 -0
- package/fesm2022/history.mjs.map +1 -0
- package/fesm2022/page.mjs +200 -0
- package/fesm2022/page.mjs.map +1 -0
- package/fesm2022/preview.mjs +317 -0
- package/fesm2022/preview.mjs.map +1 -0
- package/fesm2022/rule.mjs +204 -0
- package/fesm2022/rule.mjs.map +1 -0
- package/fesm2022/service.mjs +813 -0
- package/fesm2022/service.mjs.map +1 -0
- package/fesm2022/srv.basic.default.mjs +48 -0
- package/fesm2022/srv.basic.default.mjs.map +1 -0
- package/fesm2022/srv.basic.drawer.mjs +70 -0
- package/fesm2022/srv.basic.drawer.mjs.map +1 -0
- package/fesm2022/srv.basic.flow.mjs +353 -0
- package/fesm2022/srv.basic.flow.mjs.map +1 -0
- package/fesm2022/srv.basic.mjs +813 -0
- package/fesm2022/srv.basic.mjs.map +1 -0
- package/fesm2022/srv.default.service.mjs +186 -0
- package/fesm2022/srv.default.service.mjs.map +1 -0
- package/fesm2022/srv.form.default.service.mjs +224 -0
- package/fesm2022/srv.form.default.service.mjs.map +1 -0
- package/fesm2022/srv.form.service.mjs +502 -0
- package/fesm2022/srv.form.service.mjs.map +1 -0
- package/fesm2022/srv.form.workflow.mjs +573 -0
- package/fesm2022/srv.form.workflow.mjs.map +1 -0
- package/fesm2022/srv.form2.service.mjs +238 -0
- package/fesm2022/srv.form2.service.mjs.map +1 -0
- package/fesm2022/srv.formGroup.service.mjs +242 -0
- package/fesm2022/srv.formGroup.service.mjs.map +1 -0
- package/history/index.d.ts +1 -0
- package/history/src/default/index.d.ts +34 -0
- package/history/src/index.module.d.ts +8 -0
- package/history/src/public_api.d.ts +2 -0
- package/index.d.ts +2 -0
- package/package.json +100 -0
- package/page/index.d.ts +1 -0
- package/page/src/default/index.d.ts +35 -0
- package/page/src/index.module.d.ts +8 -0
- package/page/src/public_api.d.ts +2 -0
- package/preview/index.d.ts +1 -0
- package/preview/src/default/index.d.ts +37 -0
- package/preview/src/index.module.d.ts +9 -0
- package/preview/src/main/index.d.ts +38 -0
- package/preview/src/public_api.d.ts +3 -0
- package/rule/index.d.ts +1 -0
- package/rule/src/default/index.d.ts +39 -0
- package/rule/src/index.module.d.ts +8 -0
- package/rule/src/public_api.d.ts +2 -0
- package/service/basic/index.d.ts +166 -0
- package/service/basic.default/index.d.ts +25 -0
- package/service/basic.drawer/index.d.ts +36 -0
- package/service/basic.flow/index.d.ts +103 -0
- package/service/default.service/index.d.ts +59 -0
- package/service/form.default.service/index.d.ts +45 -0
- package/service/form.service/index.d.ts +77 -0
- package/service/form.workflow/index.d.ts +139 -0
- package/service/form2.service/index.d.ts +51 -0
- package/service/formGroup.service/index.d.ts +52 -0
- package/service/index.d.ts +1 -0
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, Directive, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i8 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i9 from '@angular/forms';
|
|
6
|
+
import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import * as i3 from '@kre-form/core';
|
|
8
|
+
import { FormlyModule } from '@kre-form/core';
|
|
9
|
+
import { NzFormModule } from 'ng-zorro-antd/form';
|
|
10
|
+
import * as i10 from 'ng-zorro-antd/icon';
|
|
11
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
12
|
+
import * as i11 from 'ng-zorro-antd/spin';
|
|
13
|
+
import { NzSpinModule } from 'ng-zorro-antd/spin';
|
|
14
|
+
import * as i12 from 'ng-zorro-antd/button';
|
|
15
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
16
|
+
import * as i15 from 'ng-zorro-antd/empty';
|
|
17
|
+
import { NzEmptyModule } from 'ng-zorro-antd/empty';
|
|
18
|
+
import * as i7 from '@ebuilding/base/shared.srv/commApi.service';
|
|
19
|
+
import { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';
|
|
20
|
+
import { GramDeonAntdModule } from '@ebuilding/biz-comm/type';
|
|
21
|
+
import { GetFormConfig } from '@ebuilding/base/shared.config/form';
|
|
22
|
+
import _ from 'lodash';
|
|
23
|
+
import { Subject, of, zip } from 'rxjs';
|
|
24
|
+
import * as i1 from '@delon/theme';
|
|
25
|
+
import * as i2 from '@ebuilding/base/shared.srv/deon.util';
|
|
26
|
+
import * as i4 from '@ebuilding/base/shared.srv/global.event';
|
|
27
|
+
import * as i5 from 'ng-zorro-antd/message';
|
|
28
|
+
import * as i5$1 from '@ebuilding/base/components/drawer';
|
|
29
|
+
import * as i13 from 'ng-zorro-antd/core/transition-patch';
|
|
30
|
+
import * as i14 from 'ng-zorro-antd/core/wave';
|
|
31
|
+
|
|
32
|
+
class BasicService {
|
|
33
|
+
http;
|
|
34
|
+
utilService;
|
|
35
|
+
deonFormBuilder;
|
|
36
|
+
globalSrv;
|
|
37
|
+
msg;
|
|
38
|
+
commAPISrv;
|
|
39
|
+
loading = true;
|
|
40
|
+
form = new FormGroup({});
|
|
41
|
+
model = {};
|
|
42
|
+
options = {};
|
|
43
|
+
fields = [];
|
|
44
|
+
/**
|
|
45
|
+
* 销毁
|
|
46
|
+
*/
|
|
47
|
+
onDestroy$ = new Subject();
|
|
48
|
+
config = null;
|
|
49
|
+
btnCloseEvent = new EventEmitter();
|
|
50
|
+
btnSaveEvent = new EventEmitter();
|
|
51
|
+
constructor(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv) {
|
|
52
|
+
this.http = http;
|
|
53
|
+
this.utilService = utilService;
|
|
54
|
+
this.deonFormBuilder = deonFormBuilder;
|
|
55
|
+
this.globalSrv = globalSrv;
|
|
56
|
+
this.msg = msg;
|
|
57
|
+
this.commAPISrv = commAPISrv;
|
|
58
|
+
this.globalSrv.subscribe('deon-field-repeat', (res) => {
|
|
59
|
+
if (res != undefined && res.field != undefined && res.data != undefined && res.type != undefined) {
|
|
60
|
+
if (res.type == 'delete') {
|
|
61
|
+
this.options._buildForm(true);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
ngOnDestroy() {
|
|
67
|
+
this.onDestroy$.next();
|
|
68
|
+
this.onDestroy$.complete();
|
|
69
|
+
}
|
|
70
|
+
/*
|
|
71
|
+
获取设计
|
|
72
|
+
*/
|
|
73
|
+
getDesign() {
|
|
74
|
+
let config = GetFormConfig(this, this.config?.formId, this.form, this.model, this.options, this.fields);
|
|
75
|
+
if (config == undefined || config == null) {
|
|
76
|
+
config = [];
|
|
77
|
+
}
|
|
78
|
+
return of(_.cloneDeep(config));
|
|
79
|
+
}
|
|
80
|
+
/*
|
|
81
|
+
获取角色
|
|
82
|
+
*/
|
|
83
|
+
getRole() {
|
|
84
|
+
let params = {
|
|
85
|
+
formId: this.config.formId,
|
|
86
|
+
type: this.config.type,
|
|
87
|
+
};
|
|
88
|
+
let apiName = this.commAPISrv.getFormRole(this.config?.moduleCode);
|
|
89
|
+
return this.http.post(`${apiName}`, params);
|
|
90
|
+
}
|
|
91
|
+
/*
|
|
92
|
+
获取配置-下拉选项
|
|
93
|
+
*/
|
|
94
|
+
getDropDown() {
|
|
95
|
+
let apiName = this.commAPISrv.getFormDropDown(this.config?.moduleCode, this.config.formId);
|
|
96
|
+
return this.http.post(`${apiName}`);
|
|
97
|
+
}
|
|
98
|
+
/*
|
|
99
|
+
获取配置-表单数据
|
|
100
|
+
*/
|
|
101
|
+
getFromModel() {
|
|
102
|
+
if (this.config.type != 'ADD' && this.config.id) {
|
|
103
|
+
if (this.config.api && this.config.api.modelAPI) {
|
|
104
|
+
return this.http.post(`${this.config.api.modelAPI}/${this.config.id}`);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
let apiName = this.commAPISrv.getFormModel(this.config.moduleCode);
|
|
108
|
+
return this.http.post(`${apiName}`, {
|
|
109
|
+
formId: this.config.formId,
|
|
110
|
+
id: this.config.id,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
return of(null);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/*
|
|
119
|
+
获取配置-表单默认值
|
|
120
|
+
*/
|
|
121
|
+
getFromDefaultModel() {
|
|
122
|
+
if (this.config.type == 'ADD' && this.config.formId) {
|
|
123
|
+
let apiName = null;
|
|
124
|
+
if (this.config.api && this.config.api.modelDefaultAPI) {
|
|
125
|
+
apiName = this.config.api.modelDefaultAPI;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
apiName = this.commAPISrv.getFormDefaultModel(this.config.moduleCode);
|
|
129
|
+
}
|
|
130
|
+
return this.http.post(`${apiName}/${this.config.formId}`);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return of(null);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* 组装配置
|
|
138
|
+
*/
|
|
139
|
+
getPageConfig() {
|
|
140
|
+
new Promise((resolve) => {
|
|
141
|
+
zip(this.getDesign(), this.getRole(), this.getDropDown(), this.getFromModel(), this.getFromDefaultModel()).subscribe(([design, role, drop, d, m]) => {
|
|
142
|
+
this.model = {};
|
|
143
|
+
let fieldConfigs = design;
|
|
144
|
+
let fieldRole = {};
|
|
145
|
+
let fieldOptions = {};
|
|
146
|
+
//传入的值
|
|
147
|
+
if (this.config.model != undefined && this.config.model != null) {
|
|
148
|
+
this.model = Object.assign(this.model, this.config.model);
|
|
149
|
+
}
|
|
150
|
+
//传入的权限
|
|
151
|
+
if (this.config.role != undefined && this.config.role != null) {
|
|
152
|
+
fieldRole = Object.assign(fieldRole, this.config.role);
|
|
153
|
+
}
|
|
154
|
+
//字段权限
|
|
155
|
+
if (role.success == true && role.result) {
|
|
156
|
+
fieldRole = Object.assign(fieldRole, role.result);
|
|
157
|
+
}
|
|
158
|
+
//字段Options
|
|
159
|
+
if (drop.success == true && drop.result) {
|
|
160
|
+
fieldOptions = drop.result;
|
|
161
|
+
}
|
|
162
|
+
//默认值
|
|
163
|
+
if (d && d.success == true && d.result) {
|
|
164
|
+
this.model = Object.assign(this.model, d.result);
|
|
165
|
+
}
|
|
166
|
+
//获取的表单值
|
|
167
|
+
if (m && m.success == true && m.result) {
|
|
168
|
+
this.model = Object.assign(this.model, m.result);
|
|
169
|
+
}
|
|
170
|
+
this.utilService.initConfig(fieldConfigs, fieldRole, fieldOptions, this.model, null, null, this, (e, field) => { });
|
|
171
|
+
this.fields = fieldConfigs;
|
|
172
|
+
setTimeout(() => {
|
|
173
|
+
if (this.options != undefined && this.options != null && this.options?.resetModel) {
|
|
174
|
+
this.options?.resetModel();
|
|
175
|
+
}
|
|
176
|
+
}, 0);
|
|
177
|
+
this.loading = false;
|
|
178
|
+
}, () => {
|
|
179
|
+
this.loading = false;
|
|
180
|
+
}, () => {
|
|
181
|
+
this.loading = false;
|
|
182
|
+
resolve();
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
save() {
|
|
187
|
+
if (!this.form.valid) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
if (this.config.saveEvent != undefined && this.config.saveEvent != null && this.config.saveEvent == false) {
|
|
191
|
+
this.btnSave(this.model);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
this.loading = true;
|
|
195
|
+
let apiName = null;
|
|
196
|
+
if (this.config.type == 'ADD') {
|
|
197
|
+
if (this.config.api && this.config.api.addAPI) {
|
|
198
|
+
apiName = this.config.api.addAPI;
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
apiName = this.commAPISrv.getFormAdd(this.config.moduleCode);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
else if (this.config.type == 'EDIT') {
|
|
205
|
+
if (this.config.api && this.config.api.editAPI) {
|
|
206
|
+
apiName = this.config.api.editAPI;
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
apiName = this.commAPISrv.getFormUpdate(this.config.moduleCode);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
this.http.post(`${apiName}`, this.model).subscribe((res) => {
|
|
213
|
+
this.loading = false;
|
|
214
|
+
if (res && res.success == true) {
|
|
215
|
+
this.msg.success('保存成功!');
|
|
216
|
+
this.btnSave(res.data);
|
|
217
|
+
}
|
|
218
|
+
}, () => {
|
|
219
|
+
this.loading = false;
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* 取消-关闭
|
|
225
|
+
*/
|
|
226
|
+
btnClose() {
|
|
227
|
+
// this.drawerRef.close({
|
|
228
|
+
// type: 'close',
|
|
229
|
+
// data: null,
|
|
230
|
+
// });
|
|
231
|
+
this.btnCloseEvent.emit({
|
|
232
|
+
type: 'close',
|
|
233
|
+
data: null,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* 保存-关闭
|
|
238
|
+
* @param e
|
|
239
|
+
*/
|
|
240
|
+
btnSave(e) {
|
|
241
|
+
this.btnSaveEvent.emit({
|
|
242
|
+
type: 'save',
|
|
243
|
+
data: e,
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5.NzMessageService }, { token: i7.CommAPIService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
247
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: BasicService, isStandalone: true, inputs: { config: "config" }, outputs: { btnCloseEvent: "btnCloseEvent", btnSaveEvent: "btnSaveEvent" }, ngImport: i0 });
|
|
248
|
+
}
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, decorators: [{
|
|
250
|
+
type: Directive
|
|
251
|
+
}], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.DeonFormUtilService }, { type: i3.FormlyFormBuilder }, { type: i4.GramGlobalService }, { type: i5.NzMessageService }, { type: i7.CommAPIService }], propDecorators: { config: [{
|
|
252
|
+
type: Input
|
|
253
|
+
}], btnCloseEvent: [{
|
|
254
|
+
type: Output
|
|
255
|
+
}], btnSaveEvent: [{
|
|
256
|
+
type: Output
|
|
257
|
+
}] } });
|
|
258
|
+
|
|
259
|
+
class BasicDrawerService extends BasicService {
|
|
260
|
+
http;
|
|
261
|
+
utilService;
|
|
262
|
+
deonFormBuilder;
|
|
263
|
+
globalSrv;
|
|
264
|
+
msg;
|
|
265
|
+
drawerRef;
|
|
266
|
+
commAPISrv;
|
|
267
|
+
constructor(http, utilService, deonFormBuilder, globalSrv, msg, drawerRef, commAPISrv) {
|
|
268
|
+
super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);
|
|
269
|
+
this.http = http;
|
|
270
|
+
this.utilService = utilService;
|
|
271
|
+
this.deonFormBuilder = deonFormBuilder;
|
|
272
|
+
this.globalSrv = globalSrv;
|
|
273
|
+
this.msg = msg;
|
|
274
|
+
this.drawerRef = drawerRef;
|
|
275
|
+
this.commAPISrv = commAPISrv;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* 关闭
|
|
279
|
+
* @param e
|
|
280
|
+
*/
|
|
281
|
+
btnSave(e) {
|
|
282
|
+
this.drawerRef.close({
|
|
283
|
+
type: 'save',
|
|
284
|
+
data: e,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* 取消
|
|
289
|
+
*/
|
|
290
|
+
btnClose() {
|
|
291
|
+
this.drawerRef.close({
|
|
292
|
+
type: 'close',
|
|
293
|
+
data: null,
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicDrawerService, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5.NzMessageService }, { token: i5$1.NzDrawerRef }, { token: i7.CommAPIService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
297
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: BasicDrawerService, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
298
|
+
}
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicDrawerService, decorators: [{
|
|
300
|
+
type: Directive
|
|
301
|
+
}], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.DeonFormUtilService }, { type: i3.FormlyFormBuilder }, { type: i4.GramGlobalService }, { type: i5.NzMessageService }, { type: i5$1.NzDrawerRef }, { type: i7.CommAPIService }] });
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* 固定表单 - 弹框
|
|
305
|
+
*/
|
|
306
|
+
class FormBasicComponent extends BasicDrawerService {
|
|
307
|
+
http;
|
|
308
|
+
utilService;
|
|
309
|
+
deonFormBuilder;
|
|
310
|
+
globalSrv;
|
|
311
|
+
drawerRef;
|
|
312
|
+
msg;
|
|
313
|
+
commAPISrv;
|
|
314
|
+
constructor(http, utilService, deonFormBuilder, globalSrv, drawerRef, msg, commAPISrv) {
|
|
315
|
+
super(http, utilService, deonFormBuilder, globalSrv, msg, drawerRef, commAPISrv);
|
|
316
|
+
this.http = http;
|
|
317
|
+
this.utilService = utilService;
|
|
318
|
+
this.deonFormBuilder = deonFormBuilder;
|
|
319
|
+
this.globalSrv = globalSrv;
|
|
320
|
+
this.drawerRef = drawerRef;
|
|
321
|
+
this.msg = msg;
|
|
322
|
+
this.commAPISrv = commAPISrv;
|
|
323
|
+
}
|
|
324
|
+
ngOnInit() {
|
|
325
|
+
this.loading = true;
|
|
326
|
+
this.getPageConfig();
|
|
327
|
+
}
|
|
328
|
+
ngAfterContentChecked() {
|
|
329
|
+
// this.changeDetector.detectChanges();
|
|
330
|
+
}
|
|
331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5$1.NzDrawerRef }, { token: i5.NzMessageService }, { token: i7.CommAPIService }], target: i0.ɵɵFactoryTarget.Component });
|
|
332
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormBasicComponent, isStandalone: true, selector: "form-basic", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>\u6682\u5B58</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i9.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i11.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵ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: i14.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i15.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { kind: "ngmodule", type: GramDeonAntdModule }] });
|
|
333
|
+
}
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicComponent, decorators: [{
|
|
335
|
+
type: Component,
|
|
336
|
+
args: [{ selector: 'form-basic', providers: [CommAPIService], imports: [
|
|
337
|
+
CommonModule,
|
|
338
|
+
FormsModule,
|
|
339
|
+
ReactiveFormsModule,
|
|
340
|
+
NzFormModule,
|
|
341
|
+
NzIconModule,
|
|
342
|
+
NzSpinModule,
|
|
343
|
+
NzButtonModule,
|
|
344
|
+
NzEmptyModule,
|
|
345
|
+
FormlyModule,
|
|
346
|
+
GramDeonAntdModule
|
|
347
|
+
], template: "<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>\u6682\u5B58</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}\n"] }]
|
|
348
|
+
}], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.DeonFormUtilService }, { type: i3.FormlyFormBuilder }, { type: i4.GramGlobalService }, { type: i5$1.NzDrawerRef }, { type: i5.NzMessageService }, { type: i7.CommAPIService }] });
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* 固定表单 - 非弹窗
|
|
352
|
+
*/
|
|
353
|
+
class FormBasicMainComponent extends BasicService {
|
|
354
|
+
http;
|
|
355
|
+
utilService;
|
|
356
|
+
deonFormBuilder;
|
|
357
|
+
globalSrv;
|
|
358
|
+
drawerRef;
|
|
359
|
+
msg;
|
|
360
|
+
commAPISrv;
|
|
361
|
+
constructor(http, utilService, deonFormBuilder, globalSrv, drawerRef, msg, commAPISrv) {
|
|
362
|
+
super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);
|
|
363
|
+
this.http = http;
|
|
364
|
+
this.utilService = utilService;
|
|
365
|
+
this.deonFormBuilder = deonFormBuilder;
|
|
366
|
+
this.globalSrv = globalSrv;
|
|
367
|
+
this.drawerRef = drawerRef;
|
|
368
|
+
this.msg = msg;
|
|
369
|
+
this.commAPISrv = commAPISrv;
|
|
370
|
+
}
|
|
371
|
+
ngOnInit() {
|
|
372
|
+
this.loading = true;
|
|
373
|
+
this.getPageConfig();
|
|
374
|
+
}
|
|
375
|
+
ngAfterContentChecked() {
|
|
376
|
+
// this.changeDetector.detectChanges();
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* 取消-关闭
|
|
380
|
+
*/
|
|
381
|
+
btnClose() {
|
|
382
|
+
this.drawerRef.close({
|
|
383
|
+
type: 'close',
|
|
384
|
+
data: null,
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
btnSave() {
|
|
388
|
+
this.drawerRef.close({
|
|
389
|
+
type: 'save',
|
|
390
|
+
data: null,
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicMainComponent, deps: [{ token: i1._HttpClient }, { token: i2.DeonFormUtilService }, { token: i3.FormlyFormBuilder }, { token: i4.GramGlobalService }, { token: i5$1.NzDrawerRef }, { token: i5.NzMessageService }, { token: i7.CommAPIService }], target: i0.ɵɵFactoryTarget.Component });
|
|
394
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FormBasicMainComponent, isStandalone: true, selector: "form-basic-main", providers: [CommAPIService], usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>\u6682\u5B58</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i9.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NzFormModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i10.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i11.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i12.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i13.ɵ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: i14.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "component", type: i15.NzEmptyComponent, selector: "nz-empty", inputs: ["nzNotFoundImage", "nzNotFoundContent", "nzNotFoundFooter"], exportAs: ["nzEmpty"] }, { kind: "ngmodule", type: FormlyModule }, { kind: "component", type: i3.FormlyForm, selector: "formly-form", inputs: ["form", "model", "fields", "options"], outputs: ["modelChange"] }, { kind: "ngmodule", type: GramDeonAntdModule }] });
|
|
395
|
+
}
|
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicMainComponent, decorators: [{
|
|
397
|
+
type: Component,
|
|
398
|
+
args: [{ selector: 'form-basic-main', providers: [CommAPIService], imports: [
|
|
399
|
+
CommonModule,
|
|
400
|
+
FormsModule,
|
|
401
|
+
ReactiveFormsModule,
|
|
402
|
+
NzFormModule,
|
|
403
|
+
NzIconModule,
|
|
404
|
+
NzSpinModule,
|
|
405
|
+
NzButtonModule,
|
|
406
|
+
NzEmptyModule,
|
|
407
|
+
FormlyModule,
|
|
408
|
+
GramDeonAntdModule
|
|
409
|
+
], template: "<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>\u53D6\u6D88</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>\u6682\u5B58</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n </nz-spin>\r\n</form>", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%;padding:0 5px}:host ::ng-deep form{flex:1;overflow:auto}\n"] }]
|
|
410
|
+
}], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.DeonFormUtilService }, { type: i3.FormlyFormBuilder }, { type: i4.GramGlobalService }, { type: i5$1.NzDrawerRef }, { type: i5.NzMessageService }, { type: i7.CommAPIService }] });
|
|
411
|
+
|
|
412
|
+
const components = [FormBasicComponent, FormBasicMainComponent];
|
|
413
|
+
class FormBasicModule {
|
|
414
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
415
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: FormBasicModule, imports: [CommonModule, FormBasicComponent, FormBasicMainComponent], exports: [FormBasicComponent, FormBasicMainComponent] });
|
|
416
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicModule, imports: [CommonModule, components] });
|
|
417
|
+
}
|
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FormBasicModule, decorators: [{
|
|
419
|
+
type: NgModule,
|
|
420
|
+
args: [{
|
|
421
|
+
imports: [CommonModule, ...components],
|
|
422
|
+
exports: [...components],
|
|
423
|
+
}]
|
|
424
|
+
}] });
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Generated bundle index. Do not edit.
|
|
428
|
+
*/
|
|
429
|
+
|
|
430
|
+
export { FormBasicComponent, FormBasicMainComponent, FormBasicModule };
|
|
431
|
+
//# sourceMappingURL=basic.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basic.mjs","sources":["../../../../packages/biz-form/basic/src/basic.ts","../../../../packages/biz-form/basic/src/basic.drawer.ts","../../../../packages/biz-form/basic/src/default/index.ts","../../../../packages/biz-form/basic/src/default/index.html","../../../../packages/biz-form/basic/src/main/index.ts","../../../../packages/biz-form/basic/src/main/index.html","../../../../packages/biz-form/basic/src/index.module.ts","../../../../packages/biz-form/basic/basic.ts"],"sourcesContent":["import { Directive, Input, Output, EventEmitter, OnDestroy } from '@angular/core';\r\nimport { FormGroup } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormOptions, FormlyFieldConfig, FormlyFormBuilder } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\nimport { GetFormConfig } from '@ebuilding/base/shared.config/form';\r\n\r\nimport _ from 'lodash';\r\nimport { of, Subject, zip } from 'rxjs';\r\n\r\n@Directive()\r\nexport abstract class BasicService implements OnDestroy {\r\n loading: boolean = true;\r\n form = new FormGroup({});\r\n model: any = {};\r\n options: FormlyFormOptions = {};\r\n fields: FormlyFieldConfig[] = [];\r\n\r\n /**\r\n * 销毁\r\n */\r\n onDestroy$ = new Subject<void>();\r\n\r\n @Input() config: any = null;\r\n @Output() btnCloseEvent: EventEmitter<any> = new EventEmitter();\r\n @Output() btnSaveEvent: EventEmitter<any> = new EventEmitter();\r\n\r\n constructor(\r\n public http: _HttpClient,\r\n public utilService: DeonFormUtilService,\r\n public deonFormBuilder: FormlyFormBuilder,\r\n public globalSrv: GramGlobalService,\r\n public msg: NzMessageService,\r\n public commAPISrv: CommAPIService,\r\n ) {\r\n this.globalSrv.subscribe('deon-field-repeat', (res: any) => {\r\n if (res != undefined && res.field != undefined && res.data != undefined && res.type != undefined) {\r\n if (res.type == 'delete') {\r\n (<any>this.options)._buildForm(true);\r\n }\r\n }\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n this.onDestroy$.next();\r\n this.onDestroy$.complete();\r\n }\r\n\r\n /*\r\n 获取设计\r\n */\r\n getDesign() {\r\n let config: any[] = GetFormConfig(this, this.config?.formId, this.form, this.model, this.options, this.fields);\r\n if (config == undefined || config == null) {\r\n config = [];\r\n }\r\n return of(_.cloneDeep(config));\r\n }\r\n\r\n /*\r\n 获取角色\r\n */\r\n getRole() {\r\n let params: any = {\r\n formId: this.config.formId,\r\n type: this.config.type,\r\n };\r\n let apiName: any = this.commAPISrv.getFormRole(this.config?.moduleCode);\r\n return this.http.post(`${apiName}`, params);\r\n }\r\n\r\n /*\r\n 获取配置-下拉选项\r\n */\r\n getDropDown() {\r\n let apiName: any = this.commAPISrv.getFormDropDown(this.config?.moduleCode, this.config.formId);\r\n return this.http.post(`${apiName}`);\r\n }\r\n\r\n /*\r\n 获取配置-表单数据\r\n */\r\n getFromModel() {\r\n if (this.config.type != 'ADD' && this.config.id!!) {\r\n if (this.config.api!! && this.config.api.modelAPI!!) {\r\n return this.http.post(`${this.config.api.modelAPI}/${this.config.id}`);\r\n } else {\r\n let apiName: any = this.commAPISrv.getFormModel(this.config.moduleCode);\r\n return this.http.post(`${apiName}`, {\r\n formId: this.config.formId,\r\n id: this.config.id,\r\n });\r\n }\r\n } else {\r\n return of(null);\r\n }\r\n }\r\n\r\n /*\r\n 获取配置-表单默认值\r\n */\r\n getFromDefaultModel() {\r\n if (this.config.type == 'ADD' && this.config.formId!!) {\r\n let apiName: any = null;\r\n if (this.config.api!! && this.config.api.modelDefaultAPI!!) {\r\n apiName = this.config.api.modelDefaultAPI;\r\n } else {\r\n apiName = this.commAPISrv.getFormDefaultModel(this.config.moduleCode);\r\n }\r\n return this.http.post(`${apiName}/${this.config.formId}`);\r\n } else {\r\n return of(null);\r\n }\r\n }\r\n\r\n /**\r\n * 组装配置\r\n */\r\n getPageConfig() {\r\n new Promise((resolve: any) => {\r\n zip(this.getDesign(), this.getRole(), this.getDropDown(), this.getFromModel(), this.getFromDefaultModel()).subscribe(\r\n ([design, role, drop, d, m]) => {\r\n this.model = {};\r\n let fieldConfigs: FormlyFieldConfig[] = design;\r\n let fieldRole: any = {};\r\n let fieldOptions: any = {};\r\n\r\n //传入的值\r\n if (this.config.model != undefined && this.config.model != null) {\r\n this.model = Object.assign(this.model, this.config.model);\r\n }\r\n //传入的权限\r\n if (this.config.role != undefined && this.config.role != null) {\r\n fieldRole = Object.assign(fieldRole, this.config.role);\r\n }\r\n\r\n //字段权限\r\n if (role.success == true && role.result!!) {\r\n fieldRole = Object.assign(fieldRole, role.result);\r\n }\r\n\r\n //字段Options\r\n if (drop.success == true && drop.result!!) {\r\n fieldOptions = drop.result;\r\n }\r\n\r\n //默认值\r\n if (d!! && d.success == true && d.result!!) {\r\n this.model = Object.assign(this.model, d.result);\r\n }\r\n\r\n //获取的表单值\r\n if (m!! && m.success == true && m.result!!) {\r\n this.model = Object.assign(this.model, m.result);\r\n }\r\n\r\n this.utilService.initConfig(fieldConfigs, fieldRole, fieldOptions, this.model, null, null, this, (e: any, field: any) => { });\r\n this.fields = fieldConfigs;\r\n\r\n setTimeout(() => {\r\n if (this.options != undefined && this.options != null && this.options?.resetModel) {\r\n this.options?.resetModel();\r\n }\r\n }, 0);\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n resolve();\r\n },\r\n );\r\n });\r\n }\r\n\r\n save() {\r\n if (!this.form.valid) {\r\n return;\r\n }\r\n if (this.config.saveEvent != undefined && this.config.saveEvent != null && this.config.saveEvent == false) {\r\n this.btnSave(this.model);\r\n } else {\r\n this.loading = true;\r\n let apiName = null;\r\n if (this.config.type == 'ADD') {\r\n if (this.config.api!! && this.config.api.addAPI!!) {\r\n apiName = this.config.api.addAPI;\r\n } else {\r\n apiName = this.commAPISrv.getFormAdd(this.config.moduleCode);\r\n }\r\n } else if (this.config.type == 'EDIT') {\r\n if (this.config.api!! && this.config.api.editAPI!!) {\r\n apiName = this.config.api.editAPI;\r\n } else {\r\n apiName = this.commAPISrv.getFormUpdate(this.config.moduleCode);\r\n }\r\n }\r\n this.http.post(`${apiName}`, this.model).subscribe(\r\n (res: any) => {\r\n this.loading = false;\r\n if (res && res.success == true) {\r\n this.msg.success('保存成功!');\r\n this.btnSave(res.data);\r\n }\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n );\r\n }\r\n }\r\n\r\n /**\r\n * 取消-关闭\r\n */\r\n btnClose() {\r\n // this.drawerRef.close({\r\n // type: 'close',\r\n // data: null,\r\n // });\r\n this.btnCloseEvent.emit({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n /**\r\n * 保存-关闭\r\n * @param e\r\n */\r\n btnSave(e: any) {\r\n this.btnSaveEvent.emit({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n}\r\n","import { Directive } from '@angular/core';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormBuilder } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message'; \r\n\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\n\r\nimport { BasicService } from \"./basic\";\r\n\r\n@Directive()\r\nexport abstract class BasicDrawerService extends BasicService {\r\n\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n public override msg: NzMessageService,\r\n public drawerRef: NzDrawerRef<any>,\r\n public override commAPISrv: CommAPIService,\r\n\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n /**\r\n * 关闭\r\n * @param e \r\n */\r\n override btnSave(e: any) {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n\r\n /**\r\n * 取消\r\n */\r\n override btnClose() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n}\r\n","import { Component, OnInit, AfterContentChecked } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyFormBuilder, FormlyModule } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\n\r\nimport { BasicDrawerService } from '../basic.drawer';\r\n\r\n/**\r\n * 固定表单 - 弹框\r\n */\r\n@Component({\r\n selector: 'form-basic',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n NzIconModule,\r\n NzSpinModule,\r\n NzButtonModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormBasicComponent extends BasicDrawerService implements OnInit, AfterContentChecked {\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n public override drawerRef: NzDrawerRef<any>,\r\n public override msg: NzMessageService,\r\n public override commAPISrv: CommAPIService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, drawerRef, commAPISrv);\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n this.getPageConfig();\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n}\r\n","<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>暂存</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n </nz-spin>\r\n</form>","import { Component, OnInit, AfterContentChecked } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { FormlyModule, FormlyFormBuilder } from '@kre-form/core';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzFormModule } from 'ng-zorro-antd/form';\r\nimport { NzIconModule } from 'ng-zorro-antd/icon';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\n\r\nimport { DeonFormUtilService } from '@ebuilding/base/shared.srv/deon.util';\r\nimport { GramGlobalService } from '@ebuilding/base/shared.srv/global.event';\r\nimport { CommAPIService } from '@ebuilding/base/shared.srv/commApi.service';\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramDeonAntdModule } from '@ebuilding/biz-comm/type';\r\n\r\nimport { BasicService } from '../basic';\r\n\r\n/**\r\n * 固定表单 - 非弹窗\r\n */\r\n@Component({\r\n selector: 'form-basic-main',\r\n styleUrls: ['./index.less'],\r\n templateUrl: './index.html',\r\n providers: [CommAPIService],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n NzFormModule,\r\n NzIconModule,\r\n NzSpinModule,\r\n NzButtonModule,\r\n NzEmptyModule,\r\n FormlyModule,\r\n GramDeonAntdModule\r\n ]\r\n})\r\nexport class FormBasicMainComponent extends BasicService implements OnInit, AfterContentChecked {\r\n constructor(\r\n public override http: _HttpClient,\r\n public override utilService: DeonFormUtilService,\r\n public override deonFormBuilder: FormlyFormBuilder,\r\n public override globalSrv: GramGlobalService,\r\n public drawerRef: NzDrawerRef<any>,\r\n public override msg: NzMessageService,\r\n public override commAPISrv: CommAPIService,\r\n ) {\r\n super(http, utilService, deonFormBuilder, globalSrv, msg, commAPISrv);\r\n }\r\n\r\n ngOnInit() {\r\n this.loading = true;\r\n this.getPageConfig();\r\n }\r\n\r\n ngAfterContentChecked(): void {\r\n // this.changeDetector.detectChanges();\r\n }\r\n\r\n /**\r\n * 取消-关闭\r\n */\r\n override btnClose() {\r\n this.drawerRef.close({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n override btnSave() {\r\n this.drawerRef.close({\r\n type: 'save',\r\n data: null,\r\n });\r\n }\r\n}\r\n","<form [formGroup]=\"form\" (ngSubmit)=\"save()\" #defaultForm>\r\n <nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-from\">\r\n <ng-container *ngIf=\"fields && fields.length>0;else emptyPage\">\r\n <formly-form [model]=\"model\" [fields]=\"fields\" [options]=\"options\" [form]=\"form\"> </formly-form>\r\n </ng-container>\r\n <ng-template #emptyPage>\r\n <nz-empty *ngIf=\"loading!==true\"></nz-empty>\r\n </ng-template>\r\n </div>\r\n <div class=\"deon-button\" *ngIf=\"config.type!='VIEW' && config.type!='PREVIEW'\">\r\n <button nz-button nzType=\"default\" (click)=\"btnClose()\" type=\"button\"><i nz-icon nzType=\"close\"></i>取消</button>\r\n <!-- <button nz-button nzType=\"primary\" id=\"DRAFT\" *ngIf=\"draft==true\"><i nz-icon nzType=\"hourglass\"></i>暂存</button> -->\r\n <button nz-button nzType=\"primary\" id=\"SAVE\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n </nz-spin>\r\n</form>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormBasicComponent } from './default/index';\r\nimport { FormBasicMainComponent } from './main/index';\r\n\r\nconst components: any[] = [FormBasicComponent, FormBasicMainComponent];\r\n@NgModule({\r\n imports: [CommonModule, ...components],\r\n exports: [...components],\r\n})\r\nexport class FormBasicModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i6","i5"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAesB,YAAY,CAAA;AAiBvB,IAAA,IAAA;AACA,IAAA,WAAA;AACA,IAAA,eAAA;AACA,IAAA,SAAA;AACA,IAAA,GAAA;AACA,IAAA,UAAA;IArBT,OAAO,GAAY,IAAI;AACvB,IAAA,IAAI,GAAG,IAAI,SAAS,CAAC,EAAE,CAAC;IACxB,KAAK,GAAQ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