@ebuilding/biz-comm 3.2.1 → 3.2.3

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.
@@ -14,7 +14,7 @@ import * as i9 from 'ng-zorro-antd/button';
14
14
  import { NzButtonModule } from 'ng-zorro-antd/button';
15
15
  import { GlobalVariable, GlobalUseToPage, CompareConditions } from '@ebuilding/base/shared.util/static';
16
16
  import { ModuleAPI } from '@ebuilding/base/shared.var/shared.constant';
17
- import { zip } from 'rxjs';
17
+ import { zip, timeout, finalize } from 'rxjs';
18
18
  import * as i1 from '@delon/theme';
19
19
  import * as i2 from 'ng-zorro-antd/message';
20
20
  import * as i3 from 'ng-zorro-antd/modal';
@@ -1201,6 +1201,8 @@ let BasicService$1 = class BasicService {
1201
1201
  btnSaveEvent = new EventEmitter();
1202
1202
  pageLoadAfter = new EventEmitter();
1203
1203
  tableData = [];
1204
+ /** 字段请求序号用于忽略快速切换表时晚到的旧响应。 */
1205
+ fieldRequestSequence = 0;
1204
1206
  tableConfig = {
1205
1207
  type: 'table',
1206
1208
  label: '数据字典',
@@ -1235,15 +1237,19 @@ let BasicService$1 = class BasicService {
1235
1237
  sourceId: this.config.sourceId,
1236
1238
  sourceType: this.config.sourceType,
1237
1239
  };
1238
- this.http.post(this.config.getAPI, parameter).subscribe((res) => {
1239
- if (res && res.success && res.result && Array.isArray(res.result)) {
1240
- res.result.forEach((item) => {
1241
- item['tableInfo'] = { id: item.tableId, name: item.tableName };
1242
- });
1243
- this.tableData = res.result;
1244
- }
1240
+ this.http.post(this.config.getAPI, parameter).pipe(timeout(30000), finalize(() => {
1245
1241
  this.loading = false;
1246
1242
  this.pageLoadAfter.emit();
1243
+ })).subscribe({
1244
+ next: (res) => {
1245
+ if (res && res.success && res.result && Array.isArray(res.result)) {
1246
+ res.result.forEach((item) => {
1247
+ item['tableInfo'] = { id: item.tableId, name: item.tableName };
1248
+ });
1249
+ this.tableData = res.result;
1250
+ }
1251
+ },
1252
+ error: () => this.msgSrv.error('读取数据源配置失败,请稍后重试'),
1247
1253
  });
1248
1254
  }
1249
1255
  }
@@ -1295,6 +1301,9 @@ let BasicService$1 = class BasicService {
1295
1301
  },
1296
1302
  listField: [],
1297
1303
  };
1304
+ // 先刷新当前行再异步读取字段,避免整个抽屉被加载遮罩阻塞。
1305
+ this.tableData[index] = item;
1306
+ this.tableData = [...this.tableData];
1298
1307
  this.getFieldListData(item, index);
1299
1308
  }
1300
1309
  else {
@@ -1306,23 +1315,37 @@ let BasicService$1 = class BasicService {
1306
1315
  * @param item
1307
1316
  */
1308
1317
  getFieldListData(item, index) {
1309
- this.loading = true;
1310
1318
  item['listField'] = [];
1311
1319
  if (item && item.tableId) {
1312
1320
  if (this.config?.tableFieldAPI == undefined || this.config?.tableFieldAPI == null) {
1313
1321
  this.config['tableFieldAPI'] = this.tableFieldAPI;
1314
1322
  }
1315
- this.http.post(`${this.config.tableFieldAPI}/${item.tableId}`).subscribe((res) => {
1316
- if (res.success == true && res.result && Array.isArray(res.result)) {
1317
- item['listField'] = res.result;
1323
+ const requestId = ++this.fieldRequestSequence;
1324
+ item['fieldRequestId'] = requestId;
1325
+ item['fieldLoading'] = true;
1326
+ this.tableData[index] = item;
1327
+ this.tableData = [...this.tableData];
1328
+ this.http.post(`${this.config.tableFieldAPI}/${item.tableId}`).pipe(timeout(30000), finalize(() => {
1329
+ const current = this.tableData[index];
1330
+ if (current?.fieldRequestId === requestId) {
1331
+ current.fieldLoading = false;
1332
+ this.tableData = [...this.tableData];
1318
1333
  }
1319
- this.tableData[index] = item;
1320
- this.loading = false;
1334
+ })).subscribe({
1335
+ next: (res) => {
1336
+ const current = this.tableData[index];
1337
+ if (current?.fieldRequestId !== requestId) {
1338
+ return;
1339
+ }
1340
+ current.listField = res?.success === true && Array.isArray(res.result) ? res.result : [];
1341
+ if (res?.success !== true) {
1342
+ this.msgSrv.error(res?.message || '读取数据表字段失败,请重新选择');
1343
+ }
1344
+ this.tableData = [...this.tableData];
1345
+ },
1346
+ error: () => this.msgSrv.error('读取数据表字段超时或失败,请重新选择'),
1321
1347
  });
1322
1348
  }
1323
- else {
1324
- this.loading = false;
1325
- }
1326
1349
  }
1327
1350
  /**
1328
1351
  * 取消-关闭
@@ -1444,7 +1467,7 @@ class SourceTableMainComponent extends BasicService$1 {
1444
1467
  });
1445
1468
  }
1446
1469
  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: i3$1.NzDrawerRef }], target: i0.ɵɵFactoryTarget.Component });
1447
- 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: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.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: i9.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i10.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i11.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i11$1.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"] }] });
1470
+ 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\" [nzLoading]=\"item.fieldLoading\" [nzDisabled]=\"item.fieldLoading\">\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\" [nzLoading]=\"item.fieldLoading\" [nzDisabled]=\"item.fieldLoading\">\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: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.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: i9.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i10.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], nz-icon, [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i11.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i11$1.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"] }] });
1448
1471
  }
1449
1472
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SourceTableMainComponent, decorators: [{
1450
1473
  type: Component,
@@ -1461,7 +1484,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
1461
1484
  NzTableModule,
1462
1485
  GramDeonLookUpModule,
1463
1486
  GramDeonEmptyModule
1464
- ], 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"] }]
1487
+ ], 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\" [nzLoading]=\"item.fieldLoading\" [nzDisabled]=\"item.fieldLoading\">\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\" [nzLoading]=\"item.fieldLoading\" [nzDisabled]=\"item.fieldLoading\">\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"] }]
1465
1488
  }], ctorParameters: () => [{ type: i1._HttpClient }, { type: i2.NzMessageService }, { type: i3.NzModalService }, { type: i3$1.NzDrawerRef }] });
1466
1489
 
1467
1490
  const components$1 = [SourceTableMainComponent];