@ebuilding/biz-comm 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/components/filter/index.d.ts +1 -0
- package/components/filter/src/compare-filter/index.d.ts +44 -0
- package/components/filter/src/default/index.d.ts +41 -0
- package/components/filter/src/index.module.d.ts +8 -0
- package/components/filter/src/public_api.d.ts +3 -0
- package/components/lookup/index.d.ts +1 -0
- package/components/lookup/src/default/index.d.ts +28 -0
- package/components/lookup/src/index.module.d.ts +8 -0
- package/components/lookup/src/public_api.d.ts +2 -0
- package/fesm2022/components.filter.mjs +411 -0
- package/fesm2022/components.filter.mjs.map +1 -0
- package/fesm2022/components.lookup.mjs +161 -0
- package/fesm2022/components.lookup.mjs.map +1 -0
- package/fesm2022/ebuilding-biz-comm.mjs +7 -0
- package/fesm2022/ebuilding-biz-comm.mjs.map +1 -0
- package/fesm2022/other.card.mjs +419 -0
- package/fesm2022/other.card.mjs.map +1 -0
- package/fesm2022/other.control.mjs +176 -0
- package/fesm2022/other.control.mjs.map +1 -0
- package/fesm2022/other.dict.mjs +1181 -0
- package/fesm2022/other.dict.mjs.map +1 -0
- package/fesm2022/other.formula.mjs +558 -0
- package/fesm2022/other.formula.mjs.map +1 -0
- package/fesm2022/other.rule.mjs +735 -0
- package/fesm2022/other.rule.mjs.map +1 -0
- package/fesm2022/other.source.args.mjs +290 -0
- package/fesm2022/other.source.args.mjs.map +1 -0
- package/fesm2022/other.source.field-map.mjs +245 -0
- package/fesm2022/other.source.field-map.mjs.map +1 -0
- package/fesm2022/other.source.filter.mjs +295 -0
- package/fesm2022/other.source.filter.mjs.map +1 -0
- package/fesm2022/other.source.group.mjs +219 -0
- package/fesm2022/other.source.group.mjs.map +1 -0
- package/fesm2022/other.source.mjs +1485 -0
- package/fesm2022/other.source.mjs.map +1 -0
- package/fesm2022/other.source.order.mjs +243 -0
- package/fesm2022/other.source.order.mjs.map +1 -0
- package/fesm2022/other.source.table.mjs +326 -0
- package/fesm2022/other.source.table.mjs.map +1 -0
- package/fesm2022/other.tree.mjs +441 -0
- package/fesm2022/other.tree.mjs.map +1 -0
- package/fesm2022/type.formula.mjs +133 -0
- package/fesm2022/type.formula.mjs.map +1 -0
- package/fesm2022/type.lookup.mjs +256 -0
- package/fesm2022/type.lookup.mjs.map +1 -0
- package/fesm2022/type.mjs +674 -0
- package/fesm2022/type.mjs.map +1 -0
- package/fesm2022/type.tree.mjs +225 -0
- package/fesm2022/type.tree.mjs.map +1 -0
- package/index.d.ts +2 -0
- package/other/card/index.d.ts +1 -0
- package/other/card/src/card-user/index.d.ts +31 -0
- package/other/card/src/card.service.d.ts +28 -0
- package/other/card/src/components/emp/index.d.ts +13 -0
- package/other/card/src/default/index.d.ts +48 -0
- package/other/card/src/index.module.d.ts +9 -0
- package/other/card/src/public_api.d.ts +3 -0
- package/other/control/index.d.ts +1 -0
- package/other/control/src/dict/index.d.ts +26 -0
- package/other/control/src/index.module.d.ts +7 -0
- package/other/control/src/public_api.d.ts +2 -0
- package/other/dict/index.d.ts +1 -0
- package/other/dict/src/field/index.d.ts +45 -0
- package/other/dict/src/field-info/index.d.ts +38 -0
- package/other/dict/src/field-read/index.d.ts +26 -0
- package/other/dict/src/index.module.d.ts +9 -0
- package/other/dict/src/public_api.d.ts +4 -0
- package/other/formula/index.d.ts +1 -0
- package/other/formula/src/default/index.d.ts +33 -0
- package/other/formula/src/form-item/index.d.ts +32 -0
- package/other/formula/src/form-setting/index.d.ts +32 -0
- package/other/formula/src/formula.service.d.ts +20 -0
- package/other/formula/src/index.module.d.ts +10 -0
- package/other/formula/src/public_api.d.ts +5 -0
- package/other/formula/src/rule-event/index.d.ts +23 -0
- package/other/rule/index.d.ts +1 -0
- package/other/rule/src/index.module.d.ts +16 -0
- package/other/rule/src/main/index.component.d.ts +34 -0
- package/other/rule/src/public_api.d.ts +2 -0
- package/other/rule/src/rule-change/index.component.d.ts +9 -0
- package/other/rule/src/rule-change-boolean/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-date/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-item/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-number/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-ref/index.component.d.ts +19 -0
- package/other/rule/src/rule-change-text/index.component.d.ts +13 -0
- package/other/rule/src/rule-change-upload/index.component.d.ts +11 -0
- package/other/rule/src/rule-fixed/index.component.d.ts +13 -0
- package/other/rule/src/service/config.service.d.ts +43 -0
- package/other/rule/src/service/rule.service.d.ts +11 -0
- package/other/source/args/index.d.ts +1 -0
- package/other/source/args/src/basic.d.ts +49 -0
- package/other/source/args/src/default/index.d.ts +24 -0
- package/other/source/args/src/index.module.d.ts +7 -0
- package/other/source/args/src/public_api.d.ts +2 -0
- package/other/source/field-map/index.d.ts +1 -0
- package/other/source/field-map/src/basic.d.ts +39 -0
- package/other/source/field-map/src/default/index.d.ts +26 -0
- package/other/source/field-map/src/index.module.d.ts +7 -0
- package/other/source/field-map/src/public_api.d.ts +2 -0
- package/other/source/filter/index.d.ts +1 -0
- package/other/source/filter/src/basic.d.ts +45 -0
- package/other/source/filter/src/default/index.d.ts +26 -0
- package/other/source/filter/src/index.module.d.ts +8 -0
- package/other/source/filter/src/public_api.d.ts +3 -0
- package/other/source/filter/src/second/index.d.ts +30 -0
- package/other/source/group/index.d.ts +1 -0
- package/other/source/group/src/basic.d.ts +32 -0
- package/other/source/group/src/default/index.d.ts +26 -0
- package/other/source/group/src/index.module.d.ts +7 -0
- package/other/source/group/src/public_api.d.ts +2 -0
- package/other/source/index.d.ts +6 -0
- package/other/source/order/index.d.ts +1 -0
- package/other/source/order/src/basic.d.ts +39 -0
- package/other/source/order/src/default/index.d.ts +26 -0
- package/other/source/order/src/index.module.d.ts +7 -0
- package/other/source/order/src/public_api.d.ts +2 -0
- package/other/source/table/index.d.ts +1 -0
- package/other/source/table/src/basic.d.ts +62 -0
- package/other/source/table/src/default/index.d.ts +26 -0
- package/other/source/table/src/index.module.d.ts +7 -0
- package/other/source/table/src/public_api.d.ts +2 -0
- package/other/tree/index.d.ts +1 -0
- package/other/tree/src/components/form/index.d.ts +17 -0
- package/other/tree/src/components/tree/index.d.ts +19 -0
- package/other/tree/src/default/index.d.ts +18 -0
- package/other/tree/src/index.module.d.ts +9 -0
- package/other/tree/src/public_api.d.ts +4 -0
- package/other/tree/src/treeService.d.ts +59 -0
- package/package.json +96 -0
- package/type/formula/index.d.ts +1 -0
- package/type/formula/src/default/index.d.ts +19 -0
- package/type/formula/src/index.module.d.ts +8 -0
- package/type/formula/src/public_api.d.ts +2 -0
- package/type/index.d.ts +1 -0
- package/type/index.module.d.ts +11 -0
- package/type/lookup/index.d.ts +1 -0
- package/type/lookup/src/default/index.d.ts +31 -0
- package/type/lookup/src/index.module.d.ts +8 -0
- package/type/lookup/src/public_api.d.ts +2 -0
- package/type/tree/index.d.ts +1 -0
- package/type/tree/src/default/index.d.ts +31 -0
- package/type/tree/src/index.module.d.ts +8 -0
- package/type/tree/src/public_api.d.ts +2 -0
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, Directive, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i5 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i6 from '@angular/forms';
|
|
6
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import { FormlyModule } from '@kre-form/core';
|
|
8
|
+
import * as i7 from 'ng-zorro-antd/spin';
|
|
9
|
+
import { NzSpinModule } from 'ng-zorro-antd/spin';
|
|
10
|
+
import { NzEmptyModule } from 'ng-zorro-antd/empty';
|
|
11
|
+
import * as i8 from 'ng-zorro-antd/button';
|
|
12
|
+
import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
13
|
+
import * as i11 from 'ng-zorro-antd/checkbox';
|
|
14
|
+
import { NzCheckboxModule } from 'ng-zorro-antd/checkbox';
|
|
15
|
+
import * as i12 from 'ng-zorro-antd/select';
|
|
16
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
17
|
+
import * as i13 from 'ng-zorro-antd/table';
|
|
18
|
+
import { NzTableModule } from 'ng-zorro-antd/table';
|
|
19
|
+
import * as i15 from '@ebuilding/abc/empty';
|
|
20
|
+
import { GramDeonEmptyModule } from '@ebuilding/abc/empty';
|
|
21
|
+
import * as i14 from '@ebuilding/biz-comm/components/lookup';
|
|
22
|
+
import { GramDeonLookUpModule } from '@ebuilding/biz-comm/components/lookup';
|
|
23
|
+
import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
|
|
24
|
+
import * as i1 from '@delon/theme';
|
|
25
|
+
import * as i2 from 'ng-zorro-antd/message';
|
|
26
|
+
import * as i3 from 'ng-zorro-antd/modal';
|
|
27
|
+
import * as i4 from '@ebuilding/base/components/drawer';
|
|
28
|
+
import * as i9 from 'ng-zorro-antd/core/transition-patch';
|
|
29
|
+
import * as i10 from 'ng-zorro-antd/core/wave';
|
|
30
|
+
|
|
31
|
+
class BasicService {
|
|
32
|
+
http;
|
|
33
|
+
msgSrv;
|
|
34
|
+
modal;
|
|
35
|
+
getApi = `${ModuleAPI.paas}/apaas/source/getDataInfo`;
|
|
36
|
+
saveApi = `${ModuleAPI.paas}/apaas/source/saveData`;
|
|
37
|
+
tableFieldAPI = `${ModuleAPI.paas}/apaas/table/field/listByTable`;
|
|
38
|
+
loading = true;
|
|
39
|
+
config = null;
|
|
40
|
+
btnCloseEvent = new EventEmitter();
|
|
41
|
+
btnSaveEvent = new EventEmitter();
|
|
42
|
+
pageLoadAfter = new EventEmitter();
|
|
43
|
+
tableData = [];
|
|
44
|
+
tableConfig = {
|
|
45
|
+
type: 'table',
|
|
46
|
+
label: '数据字典',
|
|
47
|
+
pageId: '1762302272222490626',
|
|
48
|
+
selectType: 'single',
|
|
49
|
+
isRowData: true,
|
|
50
|
+
};
|
|
51
|
+
constructor(http, msgSrv, modal) {
|
|
52
|
+
this.http = http;
|
|
53
|
+
this.msgSrv = msgSrv;
|
|
54
|
+
this.modal = modal;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 获取页面数据
|
|
58
|
+
*/
|
|
59
|
+
getPageData() {
|
|
60
|
+
if (this.config == null) {
|
|
61
|
+
this.loading = false;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
this.loading = true;
|
|
65
|
+
if (this.config?.getAPI == undefined || this.config?.getAPI == null) {
|
|
66
|
+
this.config['getAPI'] = this.getApi;
|
|
67
|
+
}
|
|
68
|
+
if (this.config?.type == 'add') {
|
|
69
|
+
this.tableData = [];
|
|
70
|
+
this.loading = false;
|
|
71
|
+
this.pageLoadAfter.emit();
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
let parameter = {
|
|
75
|
+
sourceId: this.config.sourceId,
|
|
76
|
+
sourceType: this.config.sourceType,
|
|
77
|
+
};
|
|
78
|
+
this.http.post(this.config.getAPI, parameter).subscribe((res) => {
|
|
79
|
+
if (res && res.success && res.result && Array.isArray(res.result)) {
|
|
80
|
+
res.result.forEach((item) => {
|
|
81
|
+
item['tableInfo'] = { id: item.tableId, name: item.tableName };
|
|
82
|
+
});
|
|
83
|
+
this.tableData = res.result;
|
|
84
|
+
}
|
|
85
|
+
this.loading = false;
|
|
86
|
+
this.pageLoadAfter.emit();
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
addItem() {
|
|
92
|
+
this.tableData = [...this.tableData, {}];
|
|
93
|
+
}
|
|
94
|
+
delItem(i) {
|
|
95
|
+
this.tableData = this.tableData.filter((item, index, object) => {
|
|
96
|
+
return i != index;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
refChange(item) {
|
|
100
|
+
item.izMaster = false;
|
|
101
|
+
item.leftField = null;
|
|
102
|
+
item.rightTable = null;
|
|
103
|
+
item.rightField = null;
|
|
104
|
+
}
|
|
105
|
+
masterChange(item) {
|
|
106
|
+
item.leftField = null;
|
|
107
|
+
item.rightTable = null;
|
|
108
|
+
item.rightField = null;
|
|
109
|
+
}
|
|
110
|
+
rightTableChange(item) {
|
|
111
|
+
item.rightField = null;
|
|
112
|
+
}
|
|
113
|
+
fieldData(e) {
|
|
114
|
+
let findTable = this.tableData.filter((item) => {
|
|
115
|
+
return item.tableCode == e;
|
|
116
|
+
});
|
|
117
|
+
if (findTable && findTable.length > 0) {
|
|
118
|
+
return findTable[0].listField;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 表发生变化
|
|
123
|
+
* @param e
|
|
124
|
+
* @param item
|
|
125
|
+
*/
|
|
126
|
+
tableDataChange(e, item, index) {
|
|
127
|
+
if (e && e.id) {
|
|
128
|
+
item = {
|
|
129
|
+
tableId: e.id,
|
|
130
|
+
tableName: e.name,
|
|
131
|
+
tableCode: e.rowData['f_1623143917420134401'],
|
|
132
|
+
tableInfo: {
|
|
133
|
+
id: e.id,
|
|
134
|
+
name: e.name,
|
|
135
|
+
},
|
|
136
|
+
listField: [],
|
|
137
|
+
};
|
|
138
|
+
this.getFieldListData(item, index);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
this.tableData[index] = {};
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* 获取字段集合
|
|
146
|
+
* @param item
|
|
147
|
+
*/
|
|
148
|
+
getFieldListData(item, index) {
|
|
149
|
+
this.loading = true;
|
|
150
|
+
item['listField'] = [];
|
|
151
|
+
if (item && item.tableId) {
|
|
152
|
+
if (this.config?.tableFieldAPI == undefined || this.config?.tableFieldAPI == null) {
|
|
153
|
+
this.config['tableFieldAPI'] = this.tableFieldAPI;
|
|
154
|
+
}
|
|
155
|
+
this.http.post(`${this.config.tableFieldAPI}/${item.tableId}`).subscribe((res) => {
|
|
156
|
+
if (res.success == true && res.result && Array.isArray(res.result)) {
|
|
157
|
+
item['listField'] = res.result;
|
|
158
|
+
}
|
|
159
|
+
this.tableData[index] = item;
|
|
160
|
+
this.loading = false;
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
this.loading = false;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* 取消-关闭
|
|
169
|
+
*/
|
|
170
|
+
btnClose() {
|
|
171
|
+
this.btnCloseEvent.emit({
|
|
172
|
+
type: 'close',
|
|
173
|
+
data: null,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
btnSaveAfter(e) {
|
|
177
|
+
this.btnSaveEvent.emit({
|
|
178
|
+
type: 'save',
|
|
179
|
+
data: e,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* 保存-关闭
|
|
184
|
+
* @param e
|
|
185
|
+
*/
|
|
186
|
+
btnSave(e) {
|
|
187
|
+
if (this.tableData == null || this.tableData.length < 1) {
|
|
188
|
+
this.msgSrv.warning('必须要有引用表!');
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* 主键
|
|
193
|
+
*/
|
|
194
|
+
let findTable = this.tableData.filter((item) => {
|
|
195
|
+
return item.izMaster == true;
|
|
196
|
+
});
|
|
197
|
+
if (findTable == null || findTable.length != 1) {
|
|
198
|
+
this.msgSrv.warning('主表有且只有一个!');
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
this.modal.confirm({
|
|
202
|
+
nzTitle: '提示',
|
|
203
|
+
nzContent: `当视图配置发生变化时会清理掉配置,您是否要继续?`,
|
|
204
|
+
nzOnOk: () => {
|
|
205
|
+
let listSource = this.tableData.map((item) => {
|
|
206
|
+
return {
|
|
207
|
+
tableCode: item.tableCode,
|
|
208
|
+
joinType: item.joinType,
|
|
209
|
+
leftField: item.leftField,
|
|
210
|
+
rightTable: item.rightTable,
|
|
211
|
+
rightField: item.rightField,
|
|
212
|
+
izMaster: item.izMaster,
|
|
213
|
+
};
|
|
214
|
+
});
|
|
215
|
+
this.loading = true;
|
|
216
|
+
if (this.config?.saveAPI == undefined || this.config?.saveAPI == null) {
|
|
217
|
+
this.config['saveAPI'] = this.saveApi;
|
|
218
|
+
}
|
|
219
|
+
this.http
|
|
220
|
+
.post(this.config.saveAPI, {
|
|
221
|
+
sourceId: this.config.sourceId,
|
|
222
|
+
sourceType: this.config.sourceType,
|
|
223
|
+
listTable: listSource,
|
|
224
|
+
})
|
|
225
|
+
.subscribe((res) => {
|
|
226
|
+
if (res.success) {
|
|
227
|
+
this.msgSrv.success('保存成功!');
|
|
228
|
+
this.btnSaveAfter(e);
|
|
229
|
+
}
|
|
230
|
+
this.loading = false;
|
|
231
|
+
}, () => {
|
|
232
|
+
this.loading = false;
|
|
233
|
+
});
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, deps: [{ token: i1._HttpClient }, { token: i2.NzMessageService }, { token: i3.NzModalService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
238
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: BasicService, isStandalone: true, inputs: { config: "config" }, outputs: { btnCloseEvent: "btnCloseEvent", btnSaveEvent: "btnSaveEvent", pageLoadAfter: "pageLoadAfter" }, ngImport: i0 });
|
|
239
|
+
}
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, decorators: [{
|
|
241
|
+
type: Directive
|
|
242
|
+
}], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzMessageService }, { type: i3.NzModalService }], propDecorators: { config: [{
|
|
243
|
+
type: Input
|
|
244
|
+
}], btnCloseEvent: [{
|
|
245
|
+
type: Output
|
|
246
|
+
}], btnSaveEvent: [{
|
|
247
|
+
type: Output
|
|
248
|
+
}], pageLoadAfter: [{
|
|
249
|
+
type: Output
|
|
250
|
+
}] } });
|
|
251
|
+
|
|
252
|
+
class SourceTableMainComponent extends BasicService {
|
|
253
|
+
http;
|
|
254
|
+
msgSrv;
|
|
255
|
+
modal;
|
|
256
|
+
drawerRef;
|
|
257
|
+
constructor(http, msgSrv, modal, drawerRef) {
|
|
258
|
+
super(http, msgSrv, modal);
|
|
259
|
+
this.http = http;
|
|
260
|
+
this.msgSrv = msgSrv;
|
|
261
|
+
this.modal = modal;
|
|
262
|
+
this.drawerRef = drawerRef;
|
|
263
|
+
}
|
|
264
|
+
ngOnInit() {
|
|
265
|
+
this.getPageData();
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* 保存
|
|
269
|
+
* @param e
|
|
270
|
+
*/
|
|
271
|
+
btnSaveAfter(e) {
|
|
272
|
+
this.drawerRef.close({
|
|
273
|
+
type: 'save',
|
|
274
|
+
data: e,
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* 取消
|
|
279
|
+
*/
|
|
280
|
+
btnClose() {
|
|
281
|
+
this.drawerRef.close({
|
|
282
|
+
type: 'close',
|
|
283
|
+
data: null,
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceTableMainComponent, deps: [{ token: i1._HttpClient }, { token: i2.NzMessageService }, { token: i3.NzModalService }, { token: i4.NzDrawerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
287
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: SourceTableMainComponent, isStandalone: true, selector: "source-table", usesInheritance: true, ngImport: i0, template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-body\">\r\n <nz-table #basicTable class=\"default-table\" [nzShowPagination]=\"false\" [nzData]=\"tableData\" [nzNoResult]=\"noResult\">\r\n <thead>\r\n <tr>\r\n <th nzWidth=\"200px\">\u8868\u540D</th>\r\n <th nzWidth=\"80px\">\u662F\u5426\u4E3B\u8868</th>\r\n <th nzWidth=\"100x\">\u8FDE\u63A5\u65B9\u5F0F</th>\r\n <th nzWidth=\"200px\">leftField</th>\r\n <th>RightTable</th>\r\n <th nzWidth=\"200px\">RightField</th>\r\n <th nzWidth=\"80px\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *ngFor=\"let item of tableData;let index=index\">\r\n <tr cdkDrag>\r\n <td>\r\n <gram-lookup [config]=\"tableConfig\" [data]=\"item.tableInfo\" (valueChange)=\"tableDataChange($event, item,index)\"></gram-lookup>\r\n </td>\r\n <td>\r\n <label nz-checkbox [(ngModel)]=\"item.izMaster\" (ngModelChange)=\"masterChange(item)\"></label>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true\">\r\n <nz-select [(ngModel)]=\"item.joinType\">\r\n <nz-option nzValue=\"INNER\" nzLabel=\"\u5185\u8FDE\u63A5\"></nz-option>\r\n <nz-option nzValue=\"LEFT\" nzLabel=\"\u5DE6\u8FDE\u63A5\"></nz-option>\r\n <nz-option nzValue=\"RIGHT\" nzLabel=\"\u53F3\u8FDE\u63A5\"></nz-option>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true\">\r\n <nz-select [(ngModel)]=\"item.leftField\">\r\n <ng-container *ngFor=\"let field of item.listField\">\r\n <nz-option [nzValue]=\"field.code\" [nzLabel]=\"field.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true\">\r\n <nz-select [(ngModel)]=\"item.rightTable\" (ngModelChange)=\"rightTableChange(item)\">\r\n <ng-container *ngFor=\"let t of tableData\">\r\n <nz-option [nzValue]=\"t.tableCode\" [nzLabel]=\"t.tableName\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true && item.rightTable!!\">\r\n <nz-select [(ngModel)]=\"item.rightField\">\r\n <ng-container *ngFor=\"let t of fieldData(item.rightTable)\">\r\n <nz-option [nzValue]=\"t.code\" [nzLabel]=\"t.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <a (click)=\"delItem(index)\">\u5220\u9664</a>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n <tr *ngIf=\"tableData!! && tableData.length>0\">\r\n <td colspan=\"7\">\r\n <a (click)=\"addItem()\">\u65B0\u589E</a>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </nz-table>\r\n </div>\r\n <div class=\"deon-button\">\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\" (click)=\"btnSave($event)\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>\r\n<ng-template #noResult>\r\n <div class=\"result-empty\">\r\n <gram-empty></gram-empty>\r\n </div>\r\n <div class=\"result-button\">\r\n <a nz-button nzType=\"link\" type=\"button\" (click)=\"addItem()\">+\u6DFB\u52A0</a>\r\n </div>\r\n</ng-template>\r\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-body{display:flex;flex:1;padding:15px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "ngmodule", type: NzSpinModule }, { kind: "component", type: i7.NzSpinComponent, selector: "nz-spin", inputs: ["nzIndicator", "nzSize", "nzTip", "nzDelay", "nzSimple", "nzSpinning"], exportAs: ["nzSpin"] }, { kind: "ngmodule", type: NzEmptyModule }, { kind: "ngmodule", type: NzButtonModule }, { kind: "component", type: i8.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i9.ɵ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: i10.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i11.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i12.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i12.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: NzTableModule }, { kind: "component", type: i13.NzTableComponent, selector: "nz-table", inputs: ["nzTableLayout", "nzShowTotal", "nzItemRender", "nzTitle", "nzFooter", "nzNoResult", "nzPageSizeOptions", "nzVirtualItemSize", "nzVirtualMaxBufferPx", "nzVirtualMinBufferPx", "nzVirtualForTrackBy", "nzLoadingDelay", "nzPageIndex", "nzPageSize", "nzTotal", "nzWidthConfig", "nzData", "nzCustomColumn", "nzPaginationPosition", "nzScroll", "noDataVirtualHeight", "nzPaginationType", "nzFrontPagination", "nzTemplateMode", "nzShowPagination", "nzLoading", "nzOuterBordered", "nzLoadingIndicator", "nzBordered", "nzSize", "nzShowSizeChanger", "nzHideOnSinglePage", "nzShowQuickJumper", "nzSimple"], outputs: ["nzPageSizeChange", "nzPageIndexChange", "nzQueryParams", "nzCurrentPageDataChange", "nzCustomColumnChange"], exportAs: ["nzTable"] }, { kind: "directive", type: i13.NzTableCellDirective, selector: "th:not(.nz-disable-th):not([mat-cell]), td:not(.nz-disable-td):not([mat-cell])" }, { kind: "directive", type: i13.NzThMeasureDirective, selector: "th", inputs: ["nzWidth", "colspan", "colSpan", "rowspan", "rowSpan"] }, { kind: "component", type: i13.NzTheadComponent, selector: "thead:not(.ant-table-thead)", outputs: ["nzSortOrderChange"] }, { kind: "component", type: i13.NzTbodyComponent, selector: "tbody" }, { kind: "directive", type: i13.NzTrDirective, selector: "tr:not([mat-row]):not([mat-header-row]):not([nz-table-measure-row]):not([nzExpand]):not([nz-table-fixed-row])" }, { kind: "ngmodule", type: GramDeonLookUpModule }, { kind: "component", type: i14.GramDeonLookUpComponent, selector: "gram-lookup", inputs: ["placeholder", "config", "data", "noSave"], outputs: ["valueChange"] }, { kind: "ngmodule", type: GramDeonEmptyModule }, { kind: "component", type: i15.GramDeonEmptyComponent, selector: "gram-empty", inputs: ["desc", "state"], outputs: ["emptyClick"] }] });
|
|
288
|
+
}
|
|
289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceTableMainComponent, decorators: [{
|
|
290
|
+
type: Component,
|
|
291
|
+
args: [{ selector: 'source-table', imports: [
|
|
292
|
+
CommonModule,
|
|
293
|
+
FormsModule,
|
|
294
|
+
ReactiveFormsModule,
|
|
295
|
+
FormlyModule,
|
|
296
|
+
NzSpinModule,
|
|
297
|
+
NzEmptyModule,
|
|
298
|
+
NzButtonModule,
|
|
299
|
+
NzCheckboxModule,
|
|
300
|
+
NzSelectModule,
|
|
301
|
+
NzTableModule,
|
|
302
|
+
GramDeonLookUpModule,
|
|
303
|
+
GramDeonEmptyModule
|
|
304
|
+
], template: "<nz-spin [nzSpinning]=\"loading\" nzTip=\"\u62FC\u547D\u52A0\u8F7D\u4E2D...\" class=\"deon-list-spin\">\r\n <div class=\"deon-body\">\r\n <nz-table #basicTable class=\"default-table\" [nzShowPagination]=\"false\" [nzData]=\"tableData\" [nzNoResult]=\"noResult\">\r\n <thead>\r\n <tr>\r\n <th nzWidth=\"200px\">\u8868\u540D</th>\r\n <th nzWidth=\"80px\">\u662F\u5426\u4E3B\u8868</th>\r\n <th nzWidth=\"100x\">\u8FDE\u63A5\u65B9\u5F0F</th>\r\n <th nzWidth=\"200px\">leftField</th>\r\n <th>RightTable</th>\r\n <th nzWidth=\"200px\">RightField</th>\r\n <th nzWidth=\"80px\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *ngFor=\"let item of tableData;let index=index\">\r\n <tr cdkDrag>\r\n <td>\r\n <gram-lookup [config]=\"tableConfig\" [data]=\"item.tableInfo\" (valueChange)=\"tableDataChange($event, item,index)\"></gram-lookup>\r\n </td>\r\n <td>\r\n <label nz-checkbox [(ngModel)]=\"item.izMaster\" (ngModelChange)=\"masterChange(item)\"></label>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true\">\r\n <nz-select [(ngModel)]=\"item.joinType\">\r\n <nz-option nzValue=\"INNER\" nzLabel=\"\u5185\u8FDE\u63A5\"></nz-option>\r\n <nz-option nzValue=\"LEFT\" nzLabel=\"\u5DE6\u8FDE\u63A5\"></nz-option>\r\n <nz-option nzValue=\"RIGHT\" nzLabel=\"\u53F3\u8FDE\u63A5\"></nz-option>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true\">\r\n <nz-select [(ngModel)]=\"item.leftField\">\r\n <ng-container *ngFor=\"let field of item.listField\">\r\n <nz-option [nzValue]=\"field.code\" [nzLabel]=\"field.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true\">\r\n <nz-select [(ngModel)]=\"item.rightTable\" (ngModelChange)=\"rightTableChange(item)\">\r\n <ng-container *ngFor=\"let t of tableData\">\r\n <nz-option [nzValue]=\"t.tableCode\" [nzLabel]=\"t.tableName\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true && item.rightTable!!\">\r\n <nz-select [(ngModel)]=\"item.rightField\">\r\n <ng-container *ngFor=\"let t of fieldData(item.rightTable)\">\r\n <nz-option [nzValue]=\"t.code\" [nzLabel]=\"t.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <a (click)=\"delItem(index)\">\u5220\u9664</a>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n <tr *ngIf=\"tableData!! && tableData.length>0\">\r\n <td colspan=\"7\">\r\n <a (click)=\"addItem()\">\u65B0\u589E</a>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </nz-table>\r\n </div>\r\n <div class=\"deon-button\">\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\" (click)=\"btnSave($event)\" type=\"button\"><i nz-icon nzType=\"save\"></i>\u4FDD\u5B58</button>\r\n </div>\r\n</nz-spin>\r\n<ng-template #noResult>\r\n <div class=\"result-empty\">\r\n <gram-empty></gram-empty>\r\n </div>\r\n <div class=\"result-button\">\r\n <a nz-button nzType=\"link\" type=\"button\" (click)=\"addItem()\">+\u6DFB\u52A0</a>\r\n </div>\r\n</ng-template>\r\n", styles: [":host ::ng-deep{display:flex;flex:1;flex-direction:column;width:100%;height:100%}:host ::ng-deep .deon-body{display:flex;flex:1;padding:15px}\n"] }]
|
|
305
|
+
}], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzMessageService }, { type: i3.NzModalService }, { type: i4.NzDrawerRef }] });
|
|
306
|
+
|
|
307
|
+
const components = [SourceTableMainComponent];
|
|
308
|
+
class SourceTableModule {
|
|
309
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
310
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: SourceTableModule, imports: [SourceTableMainComponent], exports: [SourceTableMainComponent] });
|
|
311
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceTableModule, imports: [components] });
|
|
312
|
+
}
|
|
313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceTableModule, decorators: [{
|
|
314
|
+
type: NgModule,
|
|
315
|
+
args: [{
|
|
316
|
+
imports: [...components],
|
|
317
|
+
exports: [...components]
|
|
318
|
+
}]
|
|
319
|
+
}] });
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Generated bundle index. Do not edit.
|
|
323
|
+
*/
|
|
324
|
+
|
|
325
|
+
export { SourceTableMainComponent, SourceTableModule };
|
|
326
|
+
//# sourceMappingURL=other.source.table.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"other.source.table.mjs","sources":["../../../../packages/biz-comm/other/source/table/src/basic.ts","../../../../packages/biz-comm/other/source/table/src/default/index.ts","../../../../packages/biz-comm/other/source/table/src/default/index.html","../../../../packages/biz-comm/other/source/table/src/index.module.ts","../../../../packages/biz-comm/other/source/table/other.source.table.ts"],"sourcesContent":["import { Directive, Input, Output, EventEmitter } from '@angular/core';\r\nimport { _HttpClient } from '@delon/theme';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzModalService } from 'ng-zorro-antd/modal';\r\nimport { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';\r\n\r\nexport interface sourceConfig {\r\n type?: any;\r\n sourceId: any;\r\n sourceType: string;\r\n getAPI?: string;\r\n saveAPI?: string;\r\n tableFieldAPI?: string;\r\n}\r\n\r\n@Directive()\r\nexport abstract class BasicService {\r\n getApi: any = `${ModuleAPI.paas}/apaas/source/getDataInfo`;\r\n saveApi: any = `${ModuleAPI.paas}/apaas/source/saveData`;\r\n tableFieldAPI: any = `${ModuleAPI.paas}/apaas/table/field/listByTable`;\r\n\r\n loading: boolean = true;\r\n\r\n @Input() config: sourceConfig = null;\r\n\r\n @Output() btnCloseEvent: EventEmitter<any> = new EventEmitter();\r\n\r\n @Output() btnSaveEvent: EventEmitter<any> = new EventEmitter();\r\n\r\n @Output() pageLoadAfter: EventEmitter<any> = new EventEmitter();\r\n\r\n tableData: any[] = [];\r\n\r\n tableConfig: any = {\r\n type: 'table',\r\n label: '数据字典',\r\n pageId: '1762302272222490626',\r\n selectType: 'single',\r\n isRowData: true,\r\n };\r\n\r\n constructor(public http: _HttpClient, public msgSrv: NzMessageService, public modal: NzModalService) { }\r\n\r\n /**\r\n * 获取页面数据\r\n */\r\n getPageData() {\r\n if (this.config == null) {\r\n this.loading = false;\r\n } else {\r\n this.loading = true;\r\n if (this.config?.getAPI == undefined || this.config?.getAPI == null) {\r\n this.config['getAPI'] = this.getApi;\r\n }\r\n if (this.config?.type == 'add') {\r\n this.tableData = [];\r\n this.loading = false;\r\n this.pageLoadAfter.emit();\r\n } else {\r\n let parameter: any = {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n };\r\n this.http.post(this.config.getAPI, parameter).subscribe((res: any) => {\r\n if (res!! && res.success && res.result!! && Array.isArray(res.result)) {\r\n res.result.forEach((item: any) => {\r\n item['tableInfo'] = { id: item.tableId, name: item.tableName };\r\n });\r\n this.tableData = res.result;\r\n }\r\n this.loading = false;\r\n this.pageLoadAfter.emit();\r\n });\r\n }\r\n }\r\n }\r\n\r\n addItem() {\r\n this.tableData = [...this.tableData, {}];\r\n }\r\n\r\n delItem(i: number) {\r\n this.tableData = this.tableData.filter((item: any, index: number, object: any) => {\r\n return i != index;\r\n });\r\n }\r\n\r\n refChange(item: any) {\r\n item.izMaster = false;\r\n item.leftField = null;\r\n item.rightTable = null;\r\n item.rightField = null;\r\n }\r\n\r\n masterChange(item: any) {\r\n item.leftField = null;\r\n item.rightTable = null;\r\n item.rightField = null;\r\n }\r\n\r\n rightTableChange(item: any) {\r\n item.rightField = null;\r\n }\r\n\r\n fieldData(e: any) {\r\n let findTable: any[] = this.tableData.filter((item: any) => {\r\n return item.tableCode == e;\r\n });\r\n if (findTable!! && findTable.length > 0) {\r\n return findTable[0].listField;\r\n }\r\n }\r\n\r\n /**\r\n * 表发生变化\r\n * @param e\r\n * @param item\r\n */\r\n tableDataChange(e: any, item: any, index: any) {\r\n if (e!! && e.id!!) {\r\n item = {\r\n tableId: e.id,\r\n tableName: e.name,\r\n tableCode: e.rowData['f_1623143917420134401'],\r\n tableInfo: {\r\n id: e.id,\r\n name: e.name,\r\n },\r\n listField: [],\r\n };\r\n this.getFieldListData(item, index);\r\n } else {\r\n this.tableData[index] = {};\r\n }\r\n }\r\n\r\n /**\r\n * 获取字段集合\r\n * @param item\r\n */\r\n getFieldListData(item: any, index: any) {\r\n this.loading = true;\r\n item['listField'] = [];\r\n if (item!! && item.tableId!!) {\r\n if (this.config?.tableFieldAPI == undefined || this.config?.tableFieldAPI == null) {\r\n this.config['tableFieldAPI'] = this.tableFieldAPI;\r\n }\r\n\r\n this.http.post(`${this.config.tableFieldAPI}/${item.tableId}`).subscribe((res: any) => {\r\n if (res.success == true && res.result && Array.isArray(res.result)) {\r\n item['listField'] = res.result;\r\n }\r\n this.tableData[index] = item;\r\n this.loading = false;\r\n });\r\n } else {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n /**\r\n * 取消-关闭\r\n */\r\n btnClose() {\r\n this.btnCloseEvent.emit({\r\n type: 'close',\r\n data: null,\r\n });\r\n }\r\n\r\n btnSaveAfter(e: any) {\r\n this.btnSaveEvent.emit({\r\n type: 'save',\r\n data: e,\r\n });\r\n }\r\n\r\n /**\r\n * 保存-关闭\r\n * @param e\r\n */\r\n btnSave(e: any) {\r\n if (this.tableData == null || this.tableData.length < 1) {\r\n this.msgSrv.warning('必须要有引用表!');\r\n return;\r\n }\r\n\r\n /**\r\n * 主键\r\n */\r\n let findTable = this.tableData.filter((item: any) => {\r\n return item.izMaster == true;\r\n });\r\n if (findTable == null || findTable.length != 1) {\r\n this.msgSrv.warning('主表有且只有一个!');\r\n return;\r\n }\r\n this.modal.confirm({\r\n nzTitle: '提示',\r\n nzContent: `当视图配置发生变化时会清理掉配置,您是否要继续?`,\r\n nzOnOk: () => {\r\n let listSource = this.tableData.map((item: any) => {\r\n return {\r\n tableCode: item.tableCode,\r\n joinType: item.joinType,\r\n leftField: item.leftField,\r\n rightTable: item.rightTable,\r\n rightField: item.rightField,\r\n izMaster: item.izMaster,\r\n };\r\n });\r\n this.loading = true;\r\n if (this.config?.saveAPI == undefined || this.config?.saveAPI == null) {\r\n this.config['saveAPI'] = this.saveApi;\r\n }\r\n this.http\r\n .post(this.config.saveAPI, {\r\n sourceId: this.config.sourceId,\r\n sourceType: this.config.sourceType,\r\n listTable: listSource,\r\n })\r\n .subscribe(\r\n (res: any) => {\r\n if (res.success) {\r\n this.msgSrv.success('保存成功!');\r\n this.btnSaveAfter(e);\r\n }\r\n this.loading = false;\r\n },\r\n () => {\r\n this.loading = false;\r\n },\r\n );\r\n },\r\n });\r\n }\r\n}\r\n","import { Component, OnInit } 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 } from '@kre-form/core';\r\nimport { NzSpinModule } from 'ng-zorro-antd/spin';\r\nimport { NzEmptyModule } from 'ng-zorro-antd/empty';\r\nimport { NzButtonModule } from 'ng-zorro-antd/button';\r\nimport { NzCheckboxModule } from 'ng-zorro-antd/checkbox';\r\nimport { NzSelectModule } from 'ng-zorro-antd/select';\r\nimport { NzTableModule } from 'ng-zorro-antd/table';\r\nimport { NzMessageService } from 'ng-zorro-antd/message';\r\nimport { NzModalService } from 'ng-zorro-antd/modal';\r\n\r\nimport { GramDeonEmptyModule } from '@ebuilding/abc/empty';\r\nimport { NzDrawerRef } from '@ebuilding/base/components/drawer';\r\nimport { GramDeonLookUpModule } from '@ebuilding/biz-comm/components/lookup';\r\nimport { BasicService } from \"../basic\";\r\n\r\n@Component({\r\n selector: 'source-table',\r\n templateUrl: './index.html',\r\n styleUrls: ['./index.less'],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n FormlyModule,\r\n NzSpinModule,\r\n NzEmptyModule,\r\n NzButtonModule,\r\n NzCheckboxModule,\r\n NzSelectModule,\r\n NzTableModule,\r\n GramDeonLookUpModule,\r\n GramDeonEmptyModule\r\n ]\r\n})\r\nexport class SourceTableMainComponent extends BasicService implements OnInit {\r\n\r\n constructor(\r\n public override http: _HttpClient,\r\n public override msgSrv: NzMessageService,\r\n public override modal: NzModalService,\r\n public drawerRef: NzDrawerRef<any>\r\n ) {\r\n super(http, msgSrv, modal);\r\n }\r\n\r\n ngOnInit(): void {\r\n this.getPageData();\r\n }\r\n\r\n /**\r\n * 保存\r\n * @param e \r\n */\r\n override btnSaveAfter(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}","<nz-spin [nzSpinning]=\"loading\" nzTip=\"拼命加载中...\" class=\"deon-list-spin\">\r\n <div class=\"deon-body\">\r\n <nz-table #basicTable class=\"default-table\" [nzShowPagination]=\"false\" [nzData]=\"tableData\" [nzNoResult]=\"noResult\">\r\n <thead>\r\n <tr>\r\n <th nzWidth=\"200px\">表名</th>\r\n <th nzWidth=\"80px\">是否主表</th>\r\n <th nzWidth=\"100x\">连接方式</th>\r\n <th nzWidth=\"200px\">leftField</th>\r\n <th>RightTable</th>\r\n <th nzWidth=\"200px\">RightField</th>\r\n <th nzWidth=\"80px\"></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *ngFor=\"let item of tableData;let index=index\">\r\n <tr cdkDrag>\r\n <td>\r\n <gram-lookup [config]=\"tableConfig\" [data]=\"item.tableInfo\" (valueChange)=\"tableDataChange($event, item,index)\"></gram-lookup>\r\n </td>\r\n <td>\r\n <label nz-checkbox [(ngModel)]=\"item.izMaster\" (ngModelChange)=\"masterChange(item)\"></label>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true\">\r\n <nz-select [(ngModel)]=\"item.joinType\">\r\n <nz-option nzValue=\"INNER\" nzLabel=\"内连接\"></nz-option>\r\n <nz-option nzValue=\"LEFT\" nzLabel=\"左连接\"></nz-option>\r\n <nz-option nzValue=\"RIGHT\" nzLabel=\"右连接\"></nz-option>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true\">\r\n <nz-select [(ngModel)]=\"item.leftField\">\r\n <ng-container *ngFor=\"let field of item.listField\">\r\n <nz-option [nzValue]=\"field.code\" [nzLabel]=\"field.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true\">\r\n <nz-select [(ngModel)]=\"item.rightTable\" (ngModelChange)=\"rightTableChange(item)\">\r\n <ng-container *ngFor=\"let t of tableData\">\r\n <nz-option [nzValue]=\"t.tableCode\" [nzLabel]=\"t.tableName\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <ng-container *ngIf=\"item.izMaster != true && item.rightTable!!\">\r\n <nz-select [(ngModel)]=\"item.rightField\">\r\n <ng-container *ngFor=\"let t of fieldData(item.rightTable)\">\r\n <nz-option [nzValue]=\"t.code\" [nzLabel]=\"t.name\"></nz-option>\r\n </ng-container>\r\n </nz-select>\r\n </ng-container>\r\n </td>\r\n <td>\r\n <a (click)=\"delItem(index)\">删除</a>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n <tr *ngIf=\"tableData!! && tableData.length>0\">\r\n <td colspan=\"7\">\r\n <a (click)=\"addItem()\">新增</a>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </nz-table>\r\n </div>\r\n <div class=\"deon-button\">\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\" (click)=\"btnSave($event)\" type=\"button\"><i nz-icon nzType=\"save\"></i>保存</button>\r\n </div>\r\n</nz-spin>\r\n<ng-template #noResult>\r\n <div class=\"result-empty\">\r\n <gram-empty></gram-empty>\r\n </div>\r\n <div class=\"result-button\">\r\n <a nz-button nzType=\"link\" type=\"button\" (click)=\"addItem()\">+添加</a>\r\n </div>\r\n</ng-template>\r\n","import { NgModule } from '@angular/core';\r\nimport { SourceTableMainComponent } from './default/index';\r\n\r\nconst components: any[] = [SourceTableMainComponent];\r\n\r\n@NgModule({\r\n imports: [...components],\r\n exports: [...components]\r\n})\r\nexport class SourceTableModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBsB,YAAY,CAAA;AAyBb,IAAA,IAAA;AAA0B,IAAA,MAAA;AAAiC,IAAA,KAAA;AAxB9E,IAAA,MAAM,GAAQ,CAAG,EAAA,SAAS,CAAC,IAAI,2BAA2B;AAC1D,IAAA,OAAO,GAAQ,CAAG,EAAA,SAAS,CAAC,IAAI,wBAAwB;AACxD,IAAA,aAAa,GAAQ,CAAG,EAAA,SAAS,CAAC,IAAI,gCAAgC;IAEtE,OAAO,GAAY,IAAI;IAEd,MAAM,GAAiB,IAAI;AAE1B,IAAA,aAAa,GAAsB,IAAI,YAAY,EAAE;AAErD,IAAA,YAAY,GAAsB,IAAI,YAAY,EAAE;AAEpD,IAAA,aAAa,GAAsB,IAAI,YAAY,EAAE;IAE/D,SAAS,GAAU,EAAE;AAErB,IAAA,WAAW,GAAQ;AACjB,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,MAAM,EAAE,qBAAqB;AAC7B,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,SAAS,EAAE,IAAI;KAChB;AAED,IAAA,WAAA,CAA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