fantasy-ngzorro 1.0.60 → 1.1.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.
@@ -297,6 +297,11 @@
297
297
  reset: 'reset',
298
298
  add: 'add',
299
299
  };
300
+ /** @enum {string} */
301
+ var ButtonSize = {
302
+ normal: 'normal',
303
+ small: 'small',
304
+ };
300
305
  var HdButtonService = /** @class */ (function () {
301
306
  function HdButtonService() {
302
307
  }
@@ -319,6 +324,7 @@
319
324
  function HdButtonComponent() {
320
325
  // 默认default
321
326
  this.type = ButtonType.default;
327
+ this.size = ButtonSize.normal;
322
328
  this.disabled = false;
323
329
  this.clickAction = new core.EventEmitter();
324
330
  this.nzOnConfirm = new core.EventEmitter();
@@ -371,14 +377,15 @@
371
377
  HdButtonComponent.decorators = [
372
378
  { type: core.Component, args: [{
373
379
  selector: 'hd-button',
374
- template: "<nz-content class=\"hd-button-container\">\n <button nz-button [nzType]=\"type\" [disabled]=\"disabled\" [nzLoading]=\"loading\" [class]=\"type==='add'? 'ant-btn-primary' : ''\" (click)=\"innerClickAction($event)\">\n <i nz-icon *ngIf=\"type==='add'\" nzType=\"plus\" style=\"margin-right: 4px;\"></i>\n <!-- \u63D2\u69FD -->\n <ng-content></ng-content>\n </button>\n</nz-content>\n",
375
- styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-button-container{display:inline-block}.hd-button-container button{height:28px;line-height:28px;padding:0 16px!important;border:0;font-size:12px;border-radius:4px}.hd-button-container button[disabled]{background-color:#c8c8c8;color:#fff}.hd-button-container .ant-btn-reset{color:#fff;background:#5d7267}.hd-button-container .ant-btn-reset:hover{background:#72877b}.hd-button-container .ant-btn-default{background:#fff;border-radius:4px;border:1px solid #ced0da;font-size:12px;font-weight:400;color:#2a3634;height:28px;line-height:26px}.hd-button-container .ant-btn-default:hover{color:#12a34f;border:1px solid #12a34f}.hd-button-container .ant-btn-warning{background:#fff;border-radius:4px;border:1px solid #ced0da;font-size:12px;font-weight:400;color:#2a3634;height:28px;line-height:26px}.hd-button-container .ant-btn-warning:hover{color:#f05b24;border:1px solid #f05b24}"]
380
+ template: "<nz-content class=\"hd-button-container\">\n <button nz-button [nzType]=\"type\" [disabled]=\"disabled\" [nzLoading]=\"loading\"\n [class]=\"size==='small'? 'hd-button-small' : '' + type==='add'? 'ant-btn-primary' : ''\"\n (click)=\"innerClickAction($event)\">\n <i nz-icon *ngIf=\"type==='add'\" nzType=\"plus\" style=\"margin-right: 4px;\"></i>\n <!-- \u63D2\u69FD -->\n <ng-content></ng-content>\n </button>\n</nz-content>",
381
+ styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.hd-button-container{display:inline-block}.hd-button-container button{height:28px;line-height:28px;padding:0 16px!important;border:0;font-size:12px;border-radius:4px}.hd-button-container .hd-button-small{padding:0 6px!important}.hd-button-container button[disabled]{background-color:#c8c8c8;color:#fff}.hd-button-container .ant-btn-reset{color:#fff;background:#5d7267}.hd-button-container .ant-btn-reset:hover{background:#72877b}.hd-button-container .ant-btn-default{background:#fff;border-radius:4px;border:1px solid #ced0da;font-size:12px;font-weight:400;color:#2a3634;height:28px;line-height:26px}.hd-button-container .ant-btn-default:hover{color:#12a34f;border:1px solid #12a34f}.hd-button-container .ant-btn-warning{background:#fff;border-radius:4px;border:1px solid #ced0da;font-size:12px;font-weight:400;color:#2a3634;height:28px;line-height:26px}.hd-button-container .ant-btn-warning:hover{color:#f05b24;border:1px solid #f05b24}"]
376
382
  }] }
377
383
  ];
378
384
  /** @nocollapse */
379
385
  HdButtonComponent.ctorParameters = function () { return []; };
380
386
  HdButtonComponent.propDecorators = {
381
387
  type: [{ type: core.Input }],
388
+ size: [{ type: core.Input }],
382
389
  loading: [{ type: core.Input }],
383
390
  disabled: [{ type: core.Input }],
384
391
  clickAction: [{ type: core.Output }],
@@ -398,6 +405,8 @@
398
405
  /** @type {?} */
399
406
  HdButtonComponent.prototype.type;
400
407
  /** @type {?} */
408
+ HdButtonComponent.prototype.size;
409
+ /** @type {?} */
401
410
  HdButtonComponent.prototype.loading;
402
411
  /** @type {?} */
403
412
  HdButtonComponent.prototype.disabled;
@@ -3254,6 +3263,37 @@
3254
3263
  return CommonSessionService;
3255
3264
  }());
3256
3265
 
3266
+ /**
3267
+ * @fileoverview added by tsickle
3268
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3269
+ */
3270
+ /** @type {?} */
3271
+ var ColWidth = {
3272
+ billNumberColWidth: 150,
3273
+ // 单据单号列宽度
3274
+ nameColWidth: 150,
3275
+ // 基本资料名称列宽度
3276
+ codeColWidth: 100,
3277
+ // 基本资料代码列宽度
3278
+ codeNameColWidth: 200,
3279
+ // 用于门店、货主、供应商以“[code]name“格式展示时固定宽度
3280
+ enumColWidth: 100,
3281
+ // 枚举列宽度
3282
+ dateColWidth: 100,
3283
+ // 单个日期
3284
+ dateTimeColWidth: 150,
3285
+ // 单个日期带时间
3286
+ dateRangeWidth: 200,
3287
+ // 日期范围
3288
+ operateColWidth: 150,
3289
+ // 操作列宽度
3290
+ numberColWidth: 100,
3291
+ // 数字列
3292
+ remarkColwidth: 250,
3293
+ // 备注列
3294
+ fixColWidth: 150,
3295
+ };
3296
+
3257
3297
  /**
3258
3298
  * @fileoverview added by tsickle
3259
3299
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -3340,16 +3380,36 @@
3340
3380
  /** @type {?} */
3341
3381
  TableCacheOption.prototype.cols;
3342
3382
  }
3343
- var SetColTreeGrid = /** @class */ (function () {
3344
- function SetColTreeGrid() {
3383
+ // 设置列 树组件对象
3384
+ var
3385
+ // 设置列 树组件对象
3386
+ TreeGrid = /** @class */ (function () {
3387
+ function TreeGrid() {
3388
+ this.title = '';
3389
+ this.key = '';
3390
+ this.disabled = false;
3391
+ this.checked = false;
3392
+ this.selectable = false;
3393
+ this.isLeaf = true;
3394
+ this.expanded = false;
3345
3395
  }
3346
- return SetColTreeGrid;
3396
+ return TreeGrid;
3347
3397
  }());
3348
3398
  if (false) {
3349
3399
  /** @type {?} */
3350
- SetColTreeGrid.prototype.title;
3400
+ TreeGrid.prototype.title;
3401
+ /** @type {?} */
3402
+ TreeGrid.prototype.key;
3403
+ /** @type {?} */
3404
+ TreeGrid.prototype.disabled;
3405
+ /** @type {?} */
3406
+ TreeGrid.prototype.checked;
3407
+ /** @type {?} */
3408
+ TreeGrid.prototype.selectable;
3409
+ /** @type {?} */
3410
+ TreeGrid.prototype.isLeaf;
3351
3411
  /** @type {?} */
3352
- SetColTreeGrid.prototype.key;
3412
+ TreeGrid.prototype.expanded;
3353
3413
  }
3354
3414
 
3355
3415
  /**
@@ -3389,34 +3449,52 @@
3389
3449
  this.showTable = false;
3390
3450
  this.selectColListNodes = [];
3391
3451
  this.selectColListNodesCache = [];
3452
+ this.showListNodes = false;
3453
+ this.isDropdownVisible = false;
3454
+ // 设置列的可见操作数组
3455
+ this.nowListNodes = [];
3456
+ // 设置列的不可见操作数组
3457
+ this.hideListNodes = [];
3458
+ // 点击时需要有临时数组存放两个tree,用于取消时候恢复调整前的状态
3459
+ this.cancelNowListNodes = [];
3460
+ this.cancelHideListNodes = [];
3392
3461
  // 拖拽操作
3393
3462
  this.beforeDrop = (/**
3394
3463
  * @param {?} arg
3395
3464
  * @return {?}
3396
3465
  */
3397
3466
  function (arg) {
3398
- console.log('arg', arg);
3399
- console.log('this.selectColListNodes', _this.selectColListNodes);
3400
- // TODO: 这里要优化代码,拖拽的时候不是双向绑定的值
3401
- // this.selectColListNodesCache = this.moveElementNearby(this.selectColListNodesCache.length > 0 ? this.selectColListNodesCache : [...this.selectColListNodes], arg.dragNode.key, arg.node.key, arg.pos);
3402
- // if (this.selectColListNodesCache && this.selectColListNodesCache.length > 0) {
3403
- // this.tableCacheOption.cols = [];
3404
- // this.selectColListNodesCache.forEach(item => {
3405
- // this.tableCacheOption.cols.push(item.title);
3406
- // delete item.expanded
3407
- // })
3408
- // this.saveTableCacheOption();
3409
- // // this.showTable = false;
3410
- // // this.setCols();
3411
- // // this.dealCols();
3412
- // // this.dealScroll();
3413
- // // this.showTable = true;
3414
- // this.initTable();
3415
- // }
3416
- // setTimeout(() => {
3417
- // console.log('this.selectColListNodes', this.selectColListNodes);
3418
- // }, 3000);
3419
- return rxjs.of(true).pipe(operators.delay(100));
3467
+ if (arg.node.origin.disabled || !arg.dragNode.origin.checked) {
3468
+ return rxjs.of(false);
3469
+ }
3470
+ else {
3471
+ /** @type {?} */
3472
+ var node = new TreeGrid();
3473
+ node.checked = arg.dragNode.origin.checked;
3474
+ node.disabled = arg.dragNode.origin.disabled;
3475
+ node.expanded = arg.dragNode.origin.expanded;
3476
+ node.isLeaf = arg.dragNode.origin.isLeaf;
3477
+ node.key = arg.dragNode.origin.key;
3478
+ node.selectable = arg.dragNode.origin.selectable;
3479
+ node.title = arg.dragNode.origin.title;
3480
+ // 拖拽元素下标
3481
+ /** @type {?} */
3482
+ var dragNodeIndex = _this.nowListNodes.findIndex((/**
3483
+ * @param {?} item
3484
+ * @return {?}
3485
+ */
3486
+ function (item) { return item.title == arg.dragNode.origin.title; }));
3487
+ // 目标位置的下标
3488
+ /** @type {?} */
3489
+ var nodeIndex = _this.nowListNodes.findIndex((/**
3490
+ * @param {?} item
3491
+ * @return {?}
3492
+ */
3493
+ function (item) { return item.title == arg.node.origin.title; })) + (arg.pos === -1 ? 0 : arg.pos);
3494
+ _this.nowListNodes.splice(nodeIndex, 0, node);
3495
+ _this.nowListNodes.splice(nodeIndex >= dragNodeIndex ? dragNodeIndex : dragNodeIndex + 1, 1);
3496
+ return rxjs.of(true).pipe(operators.delay(100));
3497
+ }
3420
3498
  });
3421
3499
  }
3422
3500
  /**
@@ -3460,7 +3538,7 @@
3460
3538
  if (!_this.tableCacheOption.colWidths) {
3461
3539
  _this.tableCacheOption.colWidths = new Map();
3462
3540
  }
3463
- _this.initTable(true);
3541
+ _this.initTable();
3464
3542
  })).catch((/**
3465
3543
  * @param {?} err
3466
3544
  * @return {?}
@@ -3470,49 +3548,94 @@
3470
3548
  _this.tablePageSize = 10;
3471
3549
  _this.tableCacheOption.pageSize = 10;
3472
3550
  _this.tableCacheOption.colWidths = new Map();
3473
- _this.initTable(true);
3551
+ _this.initTable();
3474
3552
  }));
3475
3553
  };
3476
3554
  /**
3477
- * @param {?=} initTree
3478
3555
  * @return {?}
3479
3556
  */
3480
3557
  HdTableComponent.prototype.initTable = /**
3481
- * @param {?=} initTree
3482
3558
  * @return {?}
3483
3559
  */
3484
- function (initTree) {
3485
- if (initTree === void 0) { initTree = false; }
3560
+ function () {
3486
3561
  this.showTable = false;
3487
3562
  if (!this.uuid) {
3488
3563
  throw 'hd-table缺失uuid参数,请使用编辑器插件生成并给hd-table赋予uuid属性';
3489
3564
  }
3490
3565
  if (this.judgeRepeatCols()) {
3491
3566
  this.dealCols();
3492
- this.setCols(initTree);
3567
+ this.setCols();
3493
3568
  this.dealScroll();
3494
3569
  this.dealOperateBtn();
3495
3570
  this.showTable = true;
3496
3571
  }
3497
3572
  };
3573
+ // 设置列点击取消
3574
+ // 设置列点击取消
3575
+ /**
3576
+ * @return {?}
3577
+ */
3578
+ HdTableComponent.prototype.cancelDropdown =
3579
+ // 设置列点击取消
3580
+ /**
3581
+ * @return {?}
3582
+ */
3583
+ function () {
3584
+ this.isDropdownVisible = false;
3585
+ this.hideListNodes = JSON.parse(JSON.stringify(this.cancelHideListNodes));
3586
+ this.nowListNodes = JSON.parse(JSON.stringify(this.cancelNowListNodes));
3587
+ };
3588
+ // 点击触发设置列
3589
+ // 点击触发设置列
3590
+ /**
3591
+ * @return {?}
3592
+ */
3593
+ HdTableComponent.prototype.confirmDropdown =
3594
+ // 点击触发设置列
3595
+ /**
3596
+ * @return {?}
3597
+ */
3598
+ function () {
3599
+ // 临时存放下,取消的时候恢复原来的状态 深拷贝下对象数组
3600
+ this.cancelHideListNodes = JSON.parse(JSON.stringify(this.hideListNodes));
3601
+ this.cancelNowListNodes = JSON.parse(JSON.stringify(this.nowListNodes));
3602
+ this.isDropdownVisible = true;
3603
+ };
3604
+ /**
3605
+ * @return {?}
3606
+ */
3607
+ HdTableComponent.prototype.submitGrids = /**
3608
+ * @return {?}
3609
+ */
3610
+ function () {
3611
+ var _this = this;
3612
+ this.tableCacheOption.cols = [];
3613
+ this.nowListNodes.forEach((/**
3614
+ * @param {?} item
3615
+ * @return {?}
3616
+ */
3617
+ function (item) {
3618
+ _this.tableCacheOption.cols.push(item.title);
3619
+ }));
3620
+ this.saveTableCacheOption();
3621
+ this.initTable();
3622
+ this.isDropdownVisible = false;
3623
+ };
3498
3624
  // 从缓存设置列
3499
3625
  // 从缓存设置列
3500
3626
  /**
3501
- * @param {?=} initTree
3502
3627
  * @return {?}
3503
3628
  */
3504
3629
  HdTableComponent.prototype.setCols =
3505
3630
  // 从缓存设置列
3506
3631
  /**
3507
- * @param {?=} initTree
3508
3632
  * @return {?}
3509
3633
  */
3510
- function (initTree) {
3634
+ function () {
3511
3635
  var _this = this;
3512
- if (initTree === void 0) { initTree = false; }
3513
- if (initTree) {
3514
- this.selectColListNodes = [];
3515
- }
3636
+ this.showListNodes = false;
3637
+ this.nowListNodes = [];
3638
+ this.hideListNodes = [];
3516
3639
  if (this.tableCacheOption.cols) {
3517
3640
  var _a = this.tableColsCache.reduce((/**
3518
3641
  * @param {?} acc
@@ -3546,24 +3669,35 @@
3546
3669
  function (element, index) {
3547
3670
  if (_this.tableCacheOption.cols) {
3548
3671
  element.isShow = _this.tableCacheOption.cols.includes(element.title) ? true : false;
3549
- if (initTree) {
3550
- _this.selectColListNodes.push({
3672
+ if (element.isShow) {
3673
+ _this.nowListNodes.push({
3551
3674
  title: element.title,
3552
3675
  key: element.title,
3676
+ disabled: element.fixed ? true : false,
3677
+ selectable: false,
3553
3678
  checked: _this.tableCacheOption.cols.includes(element.title) ? true : false
3554
3679
  });
3555
3680
  }
3556
- }
3557
- else {
3558
- element.isShow = true;
3559
- if (initTree) {
3560
- _this.selectColListNodes.push({
3681
+ else {
3682
+ _this.hideListNodes.push({
3561
3683
  title: element.title,
3562
3684
  key: element.title,
3563
- checked: true
3685
+ disabled: element.fixed ? true : false,
3686
+ selectable: false,
3687
+ checked: _this.tableCacheOption.cols.includes(element.title) ? true : false
3564
3688
  });
3565
3689
  }
3566
3690
  }
3691
+ else {
3692
+ element.isShow = true;
3693
+ _this.nowListNodes.push({
3694
+ title: element.title,
3695
+ key: element.title,
3696
+ checked: true,
3697
+ selectable: false,
3698
+ disabled: element.fixed ? true : false
3699
+ });
3700
+ }
3567
3701
  }));
3568
3702
  // 调整列宽为缓存宽度
3569
3703
  if (this.tableCacheOption && this.tableCacheOption.colWidths && this.tableCacheOption.colWidths.size !== 0) {
@@ -3578,10 +3712,12 @@
3578
3712
  }));
3579
3713
  }
3580
3714
  this.dealCols();
3581
- // console.log('this.tableColsCache', this.tableColsCache);
3582
- // console.log('this.selectColListNodes', this.selectColListNodes);
3583
- // console.log('this.tableCacheOption.cols', this.tableCacheOption.cols);
3584
- // console.log('this.tableCols', this.tableCols);
3715
+ setTimeout((/**
3716
+ * @return {?}
3717
+ */
3718
+ function () {
3719
+ _this.showListNodes = true;
3720
+ }), 0);
3585
3721
  };
3586
3722
  /**
3587
3723
  * @param {?} arr
@@ -3614,9 +3750,6 @@
3614
3750
  function (item) { return item.title === elementToMoveTitle; }));
3615
3751
  /** @type {?} */
3616
3752
  var newIndex = pos < 0 ? (targetIndex + pos) : targetIndex;
3617
- console.log('elementIndex', elementIndex);
3618
- console.log('targetIndex', targetIndex);
3619
- console.log('newIndex', newIndex);
3620
3753
  // 移除目标元素,并插入到新的位置
3621
3754
  /** @type {?} */
3622
3755
  var removedElement = tmpArray.splice(elementIndex, 1);
@@ -3636,13 +3769,112 @@
3636
3769
  * @return {?}
3637
3770
  */
3638
3771
  function (event) {
3639
- this.tableCacheOption.cols = event.keys;
3640
- this.saveTableCacheOption();
3641
- this.showTable = false;
3642
- this.setCols();
3643
- this.dealCols();
3644
- this.dealScroll();
3645
- this.showTable = true;
3772
+ // 勾选只有在hideListNodes,取消勾选只有在nowListNodes
3773
+ if (event.node.origin.checked) {
3774
+ /** @type {?} */
3775
+ var node = new TreeGrid();
3776
+ node = this.hideListNodes.find((/**
3777
+ * @param {?} item
3778
+ * @return {?}
3779
+ */
3780
+ function (item) {
3781
+ return item.title === event.node.origin.title;
3782
+ }));
3783
+ node.checked = true;
3784
+ // 找到第一个fixed属性为right的title,找到插入元素的位置
3785
+ /** @type {?} */
3786
+ var title_1 = null;
3787
+ for (var i = this.tableColsCache.length - 1; i >= 0; i--) {
3788
+ if (this.tableColsCache[i].fixed === 'right') {
3789
+ title_1 = this.tableColsCache[i].title;
3790
+ break;
3791
+ }
3792
+ }
3793
+ /** @type {?} */
3794
+ var temporaryNodeList = this.nowListNodes.slice(0);
3795
+ if (!title_1) {
3796
+ temporaryNodeList.push(node);
3797
+ }
3798
+ else {
3799
+ /** @type {?} */
3800
+ var index = this.nowListNodes.findIndex((/**
3801
+ * @param {?} node
3802
+ * @return {?}
3803
+ */
3804
+ function (node) { return node.title === title_1; }));
3805
+ temporaryNodeList.splice(index, 0, node);
3806
+ }
3807
+ this.nowListNodes = temporaryNodeList;
3808
+ this.hideListNodes = this.hideListNodes.filter((/**
3809
+ * @param {?} item
3810
+ * @return {?}
3811
+ */
3812
+ function (item) {
3813
+ return item.title !== event.node.origin.title;
3814
+ }));
3815
+ }
3816
+ else {
3817
+ if (this.hideListNodes.length === 0 && this.tableCacheOption && this.tableCacheOption.cols) {
3818
+ this.hideListNodes = this.getHideListNodes();
3819
+ }
3820
+ else {
3821
+ /** @type {?} */
3822
+ var temporaryNodeList_1 = this.hideListNodes.slice(0);
3823
+ this.nowListNodes.forEach((/**
3824
+ * @param {?} item
3825
+ * @return {?}
3826
+ */
3827
+ function (item) {
3828
+ if (item.title === event.node.origin.title) {
3829
+ /** @type {?} */
3830
+ var innerItem = JSON.parse(JSON.stringify(item));
3831
+ innerItem.checked = true;
3832
+ temporaryNodeList_1.push(item);
3833
+ }
3834
+ }));
3835
+ this.hideListNodes = temporaryNodeList_1;
3836
+ }
3837
+ // 为了防止未选择的数组顺序因为push方法而改变,通过初始数据获取显示的字段列表
3838
+ this.nowListNodes = this.nowListNodes.filter((/**
3839
+ * @param {?} item
3840
+ * @return {?}
3841
+ */
3842
+ function (item) {
3843
+ return item.title !== event.node.origin.title;
3844
+ }));
3845
+ }
3846
+ };
3847
+ // 防止未选择的数组顺序因为push方法而改变,从初始数据获取隐藏未显示的字段列表
3848
+ // 防止未选择的数组顺序因为push方法而改变,从初始数据获取隐藏未显示的字段列表
3849
+ /**
3850
+ * @return {?}
3851
+ */
3852
+ HdTableComponent.prototype.getHideListNodes =
3853
+ // 防止未选择的数组顺序因为push方法而改变,从初始数据获取隐藏未显示的字段列表
3854
+ /**
3855
+ * @return {?}
3856
+ */
3857
+ function () {
3858
+ var _this = this;
3859
+ /** @type {?} */
3860
+ var temporaryNodeList = [];
3861
+ // 从tableColsCache里面找没有在storage里面出现的字段,组成hideList
3862
+ this.tableColsCache.forEach((/**
3863
+ * @param {?} item
3864
+ * @return {?}
3865
+ */
3866
+ function (item) {
3867
+ if (!_this.tableCacheOption.cols.includes(item.title)) {
3868
+ /** @type {?} */
3869
+ var nodeItem = new TreeGrid();
3870
+ nodeItem.title = item.title;
3871
+ nodeItem.key = item.title;
3872
+ nodeItem.disabled = item.fixed ? true : false;
3873
+ nodeItem.checked = false;
3874
+ temporaryNodeList.push(nodeItem);
3875
+ }
3876
+ }));
3877
+ return temporaryNodeList;
3646
3878
  };
3647
3879
  /**
3648
3880
  * @return {?}
@@ -3676,8 +3908,6 @@
3676
3908
  if (!this.tableColsCache || this.tableColsCache.length === 0) {
3677
3909
  // 缓存一下表格的数据
3678
3910
  this.tableColsCache = __spread(this.tableCols);
3679
- console.log('dealCols里面的tableCols', this.tableCols);
3680
- console.log('dealCols里面的缓存', this.tableColsCache);
3681
3911
  }
3682
3912
  };
3683
3913
  /**
@@ -3794,6 +4024,9 @@
3794
4024
  * @return {?}
3795
4025
  */
3796
4026
  function (item) {
4027
+ if (!item.width) {
4028
+ item.width = ColWidth.fixColWidth;
4029
+ }
3797
4030
  if (item.isShow) {
3798
4031
  item.fixedWidth = colWidth;
3799
4032
  colWidth += item.width;
@@ -3974,8 +4207,8 @@
3974
4207
  HdTableComponent.decorators = [
3975
4208
  { type: core.Component, args: [{
3976
4209
  selector: 'hd-table',
3977
- template: "<ng-container>\n <hd-button-group>\n <ng-template #buttonGroupLeft>\n <ng-container *ngTemplateOutlet=\"tableLeftButton\"></ng-container>\n </ng-template>\n <ng-template #buttonGroupRight>\n <ng-container *ngTemplateOutlet=\"tableRightButton\"></ng-container>\n <!-- <hd-button type=\"primary\" (clickAction)=\"setCols()\">\u8BBE\u7F6E\u5217</hd-button> -->\n <!-- <hd-button type=\"primary\" nz-dropdown nzTrigger=\"click\" [nzDropdownMenu]=\"menu\" (clickAction)=\"setCols()\">\u8BBE\u7F6E\u5217\n </hd-button> -->\n <a nz-dropdown nzTrigger=\"click\" [nzDropdownMenu]=\"menu\">\n \u8BBE\u7F6E\u5217\n <i nz-icon nzType=\"down\"></i>\n </a>\n <nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <div style=\"max-height: 400px ;overflow-y: scroll;\">\n <div nz-menu style=\"padding: 5px 10px;\">\n <nz-tree [nzData]=\"selectColListNodes\" nzCheckable nzDraggable nzBlockNode nzShowExpand=\"false\"\n (nzCheckBoxChange)=\"checkAction($event)\" [nzBeforeDrop]=\"beforeDrop\">\n </nz-tree>\n </div>\n </div>\n </nz-dropdown-menu>\n </ng-template>\n </hd-button-group>\n <hd-space type=\"row\" size=\"12\"></hd-space>\n <ng-container *ngTemplateOutlet=\"tableTotal\"></ng-container>\n <hd-space *ngIf=\"tableTotal\" type=\"row\" size=\"12\"></hd-space>\n <nz-table *ngIf=\"showTable\" #hdTable class=\"hd-table-container\" [nzScroll]=\"scroll\" nzShowSizeChanger\n nzShowSizeChanger nzShowQuickJumper nzFrontPagination=\"false\" nzSize=\"middle\" [nzData]=\"tableData.content\"\n [nzTotal]=\"tableData.totalElements\" [(nzPageIndex)]=\"tablePageIndex\" [nzLoading]=\"tableLoading\"\n [nzPageSizeOptions]=\"[ 10, 50, 100, 200 ]\" [(nzPageSize)]=\"tablePageSize\" (nzPageSizeChange)=\"search(true)\"\n (nzPageIndexChange)=\"search(false)\" (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\"\n [nzShowTotal]=\"tableTotalTemplate\">\n <thead>\n <tr>\n <th nzWidth=\"40px\" nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\"\n [nzIndeterminate]=\"isIndeterminate\" (nzCheckedChange)=\"checkAll($event)\"></th>\n <ng-container *ngFor=\"let col of tableCols\">\n <th *ngIf=\"col.isShow\" [nzWidth]=\"col.width + 'px'\" [nzAlign]=\"col.align\"\n [nzLeft]=\"col.fixed === 'left' ? col.fixedWidth + 'px' : null\"\n [nzRight]=\"col.fixed === 'right' ? 0 + 'px' : null\" nz-resizable nzBounds=\"window\"\n (nzResizeEnd)=\"onResize($event, col.title)\">\n {{ col.title }}\n <nz-resize-handle nzDirection=\"right\">\n <div class=\"resize-trigger\"></div>\n </nz-resize-handle>\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let data of hdTable.data;index as i\">\n <td nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\"\n (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngFor=\"let col of tableCols\">\n <td *ngIf=\"col.isShow\" [ngStyle]=\"{'max-width': col.width + 'px'}\" [nzAlign]=\"col.align\"\n [nzLeft]=\"col.fixed === 'left' ? col.fixedWidth + 'px' : null\"\n [nzRight]=\"col.fixed === 'right' ? 0 + 'px' : null\">\n <ng-container *ngIf=\"col.title === '\u64CD\u4F5C';else notOperateTemplate\">\n <div class=\"common-btn-group\">\n <ng-container *ngFor=\"let btn of col.btnList\">\n <ng-container *ngIf=\"!btn.showConfirm;else showConfirmTemplate\">\n <a *ngIf=\"btn.permission ? btn.permission(data) : true\"\n [class]=\"btn.name === '\u5220\u9664' ? 'common-danger-btn': ''\"\n (click)=\"triggerEvent(btn.click || null, data)\">{{ btn.name }}</a>\n </ng-container>\n <ng-template #showConfirmTemplate>\n <a *ngIf=\"btn.permission ? btn.permission(data) : true\"\n [class]=\"btn.name === '\u5220\u9664' ? 'common-danger-btn': ''\" nz-popconfirm\n [nzPopconfirmTitle]=\"'\u786E\u8BA4\u8981' + btn.name + '\u5417?'\"\n (nzOnConfirm)=\"triggerEvent(btn.click || null, data)\">{{\n btn.name }}</a>\n </ng-template>\n </ng-container>\n </div>\n </ng-container>\n <ng-template #notOperateTemplate>\n <ng-container *ngIf=\"col.name === 'state';else otherTemplate\">\n <hd-status [status]=\"data['state']\">{{ col.render ? col.render(data) : data['state'] }}\n </hd-status>\n </ng-container>\n <ng-template #otherTemplate>\n <ng-container *ngIf=\"col.click;else noClickTemplate\">\n <ng-container\n *ngIf=\"!isTextOverflow(col.render ? col.render(data) : data[col.name], col.width);else overflowTemplate\">\n <a [ngStyle]=\"{'color': col?.color ? col.color : null}\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ col.render ? col.render(data) :\n data[col.name]}}</a>\n </ng-container>\n <ng-template #overflowTemplate>\n <a [ngStyle]=\"{'color': col?.color ? col.color : null}\" nz-tooltip\n [nzTooltipTitle]=\"col.render ? col.render(data) : data[col.name]\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ col.render ? col.render(data) :\n data[col.name]}}</a>\n </ng-template>\n </ng-container>\n <ng-template #noClickTemplate>\n <ng-container\n *ngIf=\"!isTextOverflow(col.render ? col.render(data) : data[col.name], col.width);else overflowTemplate\">\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\">{{ col.render ? col.render(data) :\n data[col.name]}}</span>\n </ng-container>\n <ng-template #overflowTemplate>\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\" nz-tooltip\n [nzTooltipTitle]=\"col.render ? col.render(data) : data[col.name]\">\n {{ col.render ? col.render(data) : data[col.name]}}</span>\n </ng-template>\n </ng-template>\n </ng-template>\n </ng-template>\n </td>\n </ng-container>\n </tr>\n <!-- \u5408\u8BA1\u6240\u6709\u6570\u636E\u533A\u57DF \u9700\u8981\u540E\u7AEF\u63A5\u53E3\u914D\u5408 -->\n <tr *ngIf=\"showTableTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let tableTotalOption of tableTotalOptionList\">\n <td>{{ tableTotalOption }}</td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #tableTotalTemplate>\n \u5171 {{tableData.totalElements}} \u6761\u6570\u636E\n </ng-template>\n </nz-table>\n</ng-container>",
3978
- styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.nz-resizable-preview{position:absolute;top:0;left:0;z-index:8;border:1px dashed #d1d1d1}.nz-resizable-handle{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:9}.nz-resizable-handle-top{width:100%;height:10px;top:-5px;left:0}.nz-resizable-handle-right{width:10px;height:100%;top:0;right:-5px}.nz-resizable-handle-bottom{width:100%;height:10px;bottom:-5px;left:0}.nz-resizable-handle-left{width:10px;height:100%;top:0;left:-5px}.nz-resizable-handle-topRight{width:20px;height:20px;top:-5px;right:-5px;z-index:10}.nz-resizable-handle-bottomRight{width:20px;height:20px;right:-5px;bottom:-5px;z-index:10}.nz-resizable-handle-bottomLeft{width:20px;height:20px;bottom:-5px;left:-5px;z-index:10}.nz-resizable-handle-topLeft{width:20px;height:20px;top:-5px;left:-5px;z-index:10}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottom,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-top{cursor:row-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-left,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-right{cursor:col-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomRight,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topLeft{cursor:nwse-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomLeft,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topRight{cursor:nesw-resize}.hd-table-container ::ng-deep .ant-pagination-options-quick-jumper input{border-radius:2px;border:1px solid #d9d9d9}.hd-table-container ::ng-deep .ant-pagination-options .ant-select-selection{border-radius:2px}.hd-table-container ::ng-deep .ant-table-thead>tr>th{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}.resize-trigger{height:15px;background:#e8e8e8;position:absolute}.nz-resizable-preview{border-width:0 1px 0 0}"]
4210
+ template: "<ng-container>\n <hd-button-group>\n <ng-template #buttonGroupLeft>\n <ng-container *ngTemplateOutlet=\"tableLeftButton\"></ng-container>\n </ng-template>\n <ng-template #buttonGroupRight>\n <ng-container *ngTemplateOutlet=\"tableRightButton\"></ng-container>\n <hd-button type=\"primary\" nz-dropdown nzTrigger=\"click\" [nzDropdownMenu]=\"menu\" (clickAction)=\"confirmDropdown()\"\n [nzVisible]=\"isDropdownVisible\">\u8BBE\u7F6E\u5217</hd-button>\n <nz-dropdown-menu #menu=\"nzDropdownMenu\">\n <div style=\"max-height: 400px;overflow-y: scroll;\">\n <div nz-menu style=\"padding: 5px 10px;\">\n <nz-tree *ngIf=\"showListNodes\" [nzData]=\"nowListNodes\" nzCheckable nzDraggable nzBlockNode\n nzShowExpand=\"false\" (nzCheckBoxChange)=\"checkAction($event)\" [nzBeforeDrop]=\"beforeDrop\">\n </nz-tree>\n </div>\n <div *ngIf=\"showListNodes && hideListNodes.length > 0\" nz-menu style=\"padding: 5px 10px;\">\n <nz-tree *ngIf=\"showListNodes\" [nzData]=\"hideListNodes\" nzCheckable nzShowExpand=\"false\"\n (nzCheckBoxChange)=\"checkAction($event)\">\n </nz-tree>\n </div>\n </div>\n <div style=\"text-align: right;background: #fff;padding: 4px;\">\n <hd-button style=\"margin-right: 4px;\" type=\"default\" size=\"small\" (clickAction)=\"cancelDropdown()\">\u53D6\u6D88\n </hd-button>\n <hd-button type=\"primary\" size=\"small\" (clickAction)=\"submitGrids()\">\u5B8C\u6210</hd-button>\n </div>\n </nz-dropdown-menu>\n </ng-template>\n </hd-button-group>\n <hd-space type=\"row\" size=\"12\"></hd-space>\n <ng-container *ngTemplateOutlet=\"tableTotal\"></ng-container>\n <hd-space *ngIf=\"tableTotal\" type=\"row\" size=\"12\"></hd-space>\n <nz-table *ngIf=\"showTable\" #hdTable class=\"hd-table-container\" [nzScroll]=\"scroll\" nzShowSizeChanger\n nzShowSizeChanger nzShowQuickJumper nzFrontPagination=\"false\" nzSize=\"middle\" [nzData]=\"tableData.content\"\n [nzTotal]=\"tableData.totalElements\" [(nzPageIndex)]=\"tablePageIndex\" [nzLoading]=\"tableLoading\"\n [nzPageSizeOptions]=\"[ 10, 50, 100, 200 ]\" [(nzPageSize)]=\"tablePageSize\" (nzPageSizeChange)=\"search(true)\"\n (nzPageIndexChange)=\"search(false)\" (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\"\n [nzShowTotal]=\"tableTotalTemplate\">\n <thead>\n <tr>\n <th nzWidth=\"40px\" nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\"\n [nzIndeterminate]=\"isIndeterminate\" (nzCheckedChange)=\"checkAll($event)\"></th>\n <ng-container *ngFor=\"let col of tableCols\">\n <th *ngIf=\"col.isShow\" [nzWidth]=\"col.width + 'px'\" [nzAlign]=\"col.align\"\n [nzLeft]=\"col.fixed === 'left' ? col.fixedWidth + 'px' : null\"\n [nzRight]=\"col.fixed === 'right' ? 0 + 'px' : null\" nz-resizable nzBounds=\"window\"\n (nzResizeEnd)=\"onResize($event, col.title)\">\n {{ col.title }}\n <nz-resize-handle nzDirection=\"right\">\n <div class=\"resize-trigger\"></div>\n </nz-resize-handle>\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let data of hdTable.data;index as i\">\n <td nzLeft=\"0px\" *ngIf=\"showSelected\" nzShowCheckbox [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\"\n (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngFor=\"let col of tableCols\">\n <td *ngIf=\"col.isShow\" [ngStyle]=\"{'max-width': col.width + 'px'}\" [nzAlign]=\"col.align\"\n [nzLeft]=\"col.fixed === 'left' ? col.fixedWidth + 'px' : null\"\n [nzRight]=\"col.fixed === 'right' ? 0 + 'px' : null\">\n <ng-container *ngIf=\"col.title === '\u64CD\u4F5C';else notOperateTemplate\">\n <div class=\"common-btn-group\">\n <ng-container *ngFor=\"let btn of col.btnList\">\n <ng-container *ngIf=\"!btn.showConfirm;else showConfirmTemplate\">\n <a *ngIf=\"btn.permission ? btn.permission(data) : true\"\n [class]=\"btn.name === '\u5220\u9664' ? 'common-danger-btn': ''\"\n (click)=\"triggerEvent(btn.click || null, data)\">{{ btn.name }}</a>\n </ng-container>\n <ng-template #showConfirmTemplate>\n <a *ngIf=\"btn.permission ? btn.permission(data) : true\"\n [class]=\"btn.name === '\u5220\u9664' ? 'common-danger-btn': ''\" nz-popconfirm\n [nzPopconfirmTitle]=\"'\u786E\u8BA4\u8981' + btn.name + '\u5417?'\"\n (nzOnConfirm)=\"triggerEvent(btn.click || null, data)\">{{\n btn.name }}</a>\n </ng-template>\n </ng-container>\n </div>\n </ng-container>\n <ng-template #notOperateTemplate>\n <ng-container *ngIf=\"col.name === 'state';else otherTemplate\">\n <hd-status [status]=\"data['state']\">{{ col.render ? col.render(data) : data['state'] }}\n </hd-status>\n </ng-container>\n <ng-template #otherTemplate>\n <ng-container *ngIf=\"col.click;else noClickTemplate\">\n <ng-container\n *ngIf=\"!isTextOverflow(col.render ? col.render(data) : data[col.name], col.width);else overflowTemplate\">\n <a [ngStyle]=\"{'color': col?.color ? col.color : null}\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ col.render ? col.render(data) :\n data[col.name]}}</a>\n </ng-container>\n <ng-template #overflowTemplate>\n <a [ngStyle]=\"{'color': col?.color ? col.color : null}\" nz-tooltip\n [nzTooltipTitle]=\"col.render ? col.render(data) : data[col.name]\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ col.render ? col.render(data) :\n data[col.name]}}</a>\n </ng-template>\n </ng-container>\n <ng-template #noClickTemplate>\n <ng-container\n *ngIf=\"!isTextOverflow(col.render ? col.render(data) : data[col.name], col.width);else overflowTemplate\">\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\">{{ col.render ? col.render(data) :\n data[col.name]}}</span>\n </ng-container>\n <ng-template #overflowTemplate>\n <span [ngStyle]=\"{'color': col?.color ? col.color : null}\" nz-tooltip\n [nzTooltipTitle]=\"col.render ? col.render(data) : data[col.name]\">\n {{ col.render ? col.render(data) : data[col.name]}}</span>\n </ng-template>\n </ng-template>\n </ng-template>\n </ng-template>\n </td>\n </ng-container>\n </tr>\n <!-- \u5408\u8BA1\u6240\u6709\u6570\u636E\u533A\u57DF \u9700\u8981\u540E\u7AEF\u63A5\u53E3\u914D\u5408 -->\n <tr *ngIf=\"showTableTotal\" class=\"hd-table-total\">\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let tableTotalOption of tableTotalOptionList\">\n <td>{{ tableTotalOption }}</td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #tableTotalTemplate>\n \u5171 {{tableData.totalElements}} \u6761\u6570\u636E\n </ng-template>\n </nz-table>\n</ng-container>",
4211
+ styles: ["::ng-deep .common-btn-group>a{font-size:12px;font-weight:400;color:#12a34f!important;white-space:nowrap}::ng-deep .common-btn-group .common-danger-btn:hover{color:#f05b24!important}::ng-deep .common-btn-group>a:hover{color:#20bd62!important}::ng-deep .common-btn-group>a:not(:last-child)::after{content:'';margin:0 2px}::ng-deep .common-billNumber>a{color:#3b77e3}button{box-shadow:unset;text-shadow:unset;padding:0 6px!important}::ng-deep .ant-form-item-label>label{color:#4b504e}::ng-deep .ant-input-number-input{height:28px}::ng-deep .ant-input-number{height:28px}textarea.ant-input{height:auto;min-height:28px}::ng-deep .ant-select-selection--multiple{min-height:28px}::ng-deep .ant-select-selection__rendered>ul>li{height:22px!important;margin-top:3px!important;line-height:22px!important}::ng-deep .ant-advanced-search-form .ant-form-item{margin-bottom:0!important}::ng-deep .ant-select-selection--single{height:28px!important}::ng-deep .ant-input{height:28px}::ng-deep .ant-input[disabled]:hover{border-color:#d9d9d9!important}::ng-deep .ant-select-selection__rendered{line-height:28px!important}::ng-deep .ant-calendar-range-picker-input{text-align:left!important}::ng-deep .ant-calendar-picker{width:100%!important}::ng-deep .ant-row{margin-right:0!important;margin-left:0!important}::ng-deep .ant-col-6{padding-left:12px;padding-right:12px}::ng-deep .ant-col-12{padding-left:12px;padding-right:12px}::ng-deep .ant-col-18{padding-left:12px;padding-right:12px}::ng-deep .ant-col-24{padding-left:12px;padding-right:12px}::ng-deep .ant-alert-info{background-color:#f5f8f6;border:1px solid #cfe3d4}:host ::ng-deep th{background:#f5f8f6!important;font-weight:700!important;white-space:nowrap;font-size:12px;font-family:PingFangSC-Medium,PingFang SC;color:#2a3634;padding:8px!important;box-sizing:border-box}:host ::ng-deep td{font-weight:400;font-style:normal;font-size:12px;color:#2a3634;text-align:left;white-space:nowrap;padding:8px!important;box-sizing:border-box}::ng-deep .ant-pagination-options{display:inline-flex;align-items:center}::ng-deep .ant-time-picker{width:100%}.nz-resizable-preview{position:absolute;top:0;left:0;z-index:8;border:1px dashed #d1d1d1}.nz-resizable-handle{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:9}.nz-resizable-handle-top{width:100%;height:10px;top:-5px;left:0}.nz-resizable-handle-right{width:10px;height:100%;top:0;right:-5px}.nz-resizable-handle-bottom{width:100%;height:10px;bottom:-5px;left:0}.nz-resizable-handle-left{width:10px;height:100%;top:0;left:-5px}.nz-resizable-handle-topRight{width:20px;height:20px;top:-5px;right:-5px;z-index:10}.nz-resizable-handle-bottomRight{width:20px;height:20px;right:-5px;bottom:-5px;z-index:10}.nz-resizable-handle-bottomLeft{width:20px;height:20px;bottom:-5px;left:-5px;z-index:10}.nz-resizable-handle-topLeft{width:20px;height:20px;top:-5px;left:-5px;z-index:10}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottom,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-top{cursor:row-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-left,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-right{cursor:col-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomRight,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topLeft{cursor:nwse-resize}.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-bottomLeft,.nz-resizable:not(.nz-resizable-resizing) .nz-resizable-handle-topRight{cursor:nesw-resize}.hd-table-container ::ng-deep .ant-pagination-options-quick-jumper input{border-radius:2px;border:1px solid #d9d9d9}.hd-table-container ::ng-deep .ant-pagination-options .ant-select-selection{border-radius:2px}.hd-table-container ::ng-deep .ant-table-thead>tr>th{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}.resize-trigger{height:15px;background:#e8e8e8;position:absolute}.nz-resizable-preview{border-width:0 1px 0 0}::ng-deep .ant-dropdown-menu{border-radius:0}::ng-deep .ant-dropdown{margin-top:8px!important}"]
3979
4212
  }] }
3980
4213
  ];
3981
4214
  /** @nocollapse */
@@ -4082,6 +4315,18 @@
4082
4315
  /** @type {?} */
4083
4316
  HdTableComponent.prototype.selectColListNodesCache;
4084
4317
  /** @type {?} */
4318
+ HdTableComponent.prototype.showListNodes;
4319
+ /** @type {?} */
4320
+ HdTableComponent.prototype.isDropdownVisible;
4321
+ /** @type {?} */
4322
+ HdTableComponent.prototype.nowListNodes;
4323
+ /** @type {?} */
4324
+ HdTableComponent.prototype.hideListNodes;
4325
+ /** @type {?} */
4326
+ HdTableComponent.prototype.cancelNowListNodes;
4327
+ /** @type {?} */
4328
+ HdTableComponent.prototype.cancelHideListNodes;
4329
+ /** @type {?} */
4085
4330
  HdTableComponent.prototype.beforeDrop;
4086
4331
  /**
4087
4332
  * @type {?}
@@ -4758,6 +5003,7 @@
4758
5003
  arrayToSelectOptionList: (ɵ2)
4759
5004
  };
4760
5005
 
5006
+ exports.ButtonSize = ButtonSize;
4761
5007
  exports.ButtonType = ButtonType;
4762
5008
  exports.ColorOption = ColorOption;
4763
5009
  exports.ExplainOption = ExplainOption;