fantasy-ngzorro 1.5.4 → 1.5.6
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/bundles/fantasy-ngzorro.umd.js +144 -80
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-detail-lines/hd-detail-lines.component.js +2 -2
- package/esm2015/hd-table/hd-table.component.js +164 -102
- package/esm5/hd-detail-lines/hd-detail-lines.component.js +2 -2
- package/esm5/hd-table/hd-table.component.js +153 -89
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +155 -93
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +144 -80
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table.component.d.ts +9 -7
- package/package.json +1 -1
|
@@ -902,7 +902,7 @@
|
|
|
902
902
|
HdDetailLinesComponent.decorators = [
|
|
903
903
|
{ type: core.Component, args: [{
|
|
904
904
|
selector: 'hd-detail-lines',
|
|
905
|
-
template: "<ng-container>\n <nz-table #hdTable [nzScroll]=\"scroll\" class=\"hd-table-container\" nzShowSizeChanger\n [nzFrontPagination]=\"hdFrontPagination\" [nzShowQuickJumper]=\"hdFrontPagination\" [nzShowTotal]=\"tableTotalTemplate\"\n nzSize=\"middle\" [nzData]=\"lines\" [nzLoading]=\"tableLoading\" [nzPageSizeOptions]=\"[ 10, 50, 100, 200 ]\"\n (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\">\n <thead>\n <tr>\n <th *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\"\n [nzIndeterminate]=\"isIndeterminate\" (nzCheckedChange)=\"checkAll($event)\"></th>\n <ng-container *ngTemplateOutlet=\"detailLineHead\"></ng-container>\n </tr>\n </thead>\n <tbody *ngIf=\"!allowDrop;else allowDropTemplate\">\n <tr *ngFor=\"let data of hdTable.data;index as i\">\n <td *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox\n [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\" (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngTemplateOutlet=\"detailLineBody;context:{$implicit: data, index: i}\"></ng-container>\n </tr>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal
|
|
905
|
+
template: "<ng-container>\n <nz-table #hdTable [nzScroll]=\"scroll\" class=\"hd-table-container\" nzShowSizeChanger\n [nzFrontPagination]=\"hdFrontPagination\" [nzShowQuickJumper]=\"hdFrontPagination\" [nzShowTotal]=\"tableTotalTemplate\"\n nzSize=\"middle\" [nzData]=\"lines\" [nzLoading]=\"tableLoading\" [nzPageSizeOptions]=\"[ 10, 50, 100, 200 ]\"\n (nzCurrentPageDataChange)=\"showSelected ? currentPageDataChange($event) : null\">\n <thead>\n <tr>\n <th *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox [(nzChecked)]=\"isAllDisplayDataChecked\"\n [nzIndeterminate]=\"isIndeterminate\" (nzCheckedChange)=\"checkAll($event)\"></th>\n <ng-container *ngTemplateOutlet=\"detailLineHead\"></ng-container>\n </tr>\n </thead>\n <tbody *ngIf=\"!allowDrop;else allowDropTemplate\">\n <tr *ngFor=\"let data of hdTable.data;index as i\">\n <td *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox\n [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\" (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngTemplateOutlet=\"detailLineBody;context:{$implicit: data, index: i}\"></ng-container>\n </tr>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td *ngIf=\"showSelected\"></td>\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td *ngIf=\"!totalOption.isHide\" [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{\n (totalOption.value || totalOption.value ===\n 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value,2).toFixed(2)) : '' }} </td>\n </ng-container>\n </tr>\n </tbody>\n <ng-template #allowDropTemplate>\n <tbody cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <tr *ngFor=\"let data of hdTable.data;index as i\" cdkDrag>\n <td *ngIf=\"showSelected\" nzWidth=\"40px\" nzLeft=\"0px\" nzShowCheckbox\n [(nzChecked)]=\"mapOfCheckedId[data[selectField]]\" (nzCheckedChange)=\"refreshStatus($event, data)\"></td>\n <ng-container *ngTemplateOutlet=\"detailLineBody;context:{$implicit: data, index: i}\"></ng-container>\n </tr>\n <!-- \u5408\u8BA1\u533A\u57DF -->\n <tr *ngIf=\"showTotal\" class=\"hd-table-total\">\n <td *ngIf=\"showSelected\"></td>\n <td>\u5408\u8BA1</td>\n <ng-container *ngFor=\"let totalOption of totalOptionList\">\n <td *ngIf=\"!totalOption.isHide\" [nzAlign]=\"totalOption.align ? totalOption.align : 'left'\">{{\n (totalOption.value || totalOption.value\n === 0) ? (((totalOption.value % 1 === 0) && !totalOption.showDecimal ) ? totalOption.value :\n LodashRound(totalOption.value,2).toFixed(2)) : '' }} </td>\n </ng-container>\n </tr>\n </tbody>\n </ng-template>\n <ng-template #tableTotalTemplate>\n \u5171 {{lines.length}} \u6761\u6570\u636E\n </ng-template>\n </nz-table>\n</ng-container>\n",
|
|
906
906
|
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%}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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}.hd-table-container ::ng-deep .ant-table-tbody>tr>td{border-bottom:1px solid #ecf1ed}.hd-table-container ::ng-deep .hd-table-total>td{border:0!important}"]
|
|
907
907
|
}] }
|
|
908
908
|
];
|
|
@@ -4872,7 +4872,7 @@
|
|
|
4872
4872
|
this.tableCols = [];
|
|
4873
4873
|
this.showSelected = false;
|
|
4874
4874
|
this.showOperateColWarpButton = false;
|
|
4875
|
-
this.selectField =
|
|
4875
|
+
this.selectField = "billNumber";
|
|
4876
4876
|
// 合计区域
|
|
4877
4877
|
this.showTableTotal = false;
|
|
4878
4878
|
this.sortEvent = new core.EventEmitter();
|
|
@@ -4913,15 +4913,18 @@
|
|
|
4913
4913
|
this.cancelHideListNodes = [];
|
|
4914
4914
|
this.showDetail = false;
|
|
4915
4915
|
this.localforage = null;
|
|
4916
|
-
this.localtionTmp =
|
|
4916
|
+
this.localtionTmp = "";
|
|
4917
4917
|
this.isFirstEntrySearchLocal = true;
|
|
4918
|
+
this.isCrossPageSelectLocal = false;
|
|
4918
4919
|
// 拖拽操作
|
|
4919
4920
|
this.beforeDrop = (/**
|
|
4920
4921
|
* @param {?} arg
|
|
4921
4922
|
* @return {?}
|
|
4922
4923
|
*/
|
|
4923
4924
|
function (arg) {
|
|
4924
|
-
if (arg.node.origin.disabled ||
|
|
4925
|
+
if (arg.node.origin.disabled ||
|
|
4926
|
+
!arg.dragNode.origin.checked ||
|
|
4927
|
+
arg.pos === 0) {
|
|
4925
4928
|
return rxjs.of(false);
|
|
4926
4929
|
}
|
|
4927
4930
|
else {
|
|
@@ -4940,14 +4943,18 @@
|
|
|
4940
4943
|
* @param {?} item
|
|
4941
4944
|
* @return {?}
|
|
4942
4945
|
*/
|
|
4943
|
-
function (item) {
|
|
4946
|
+
function (item) {
|
|
4947
|
+
return item.title == arg.dragNode.origin.title;
|
|
4948
|
+
}));
|
|
4944
4949
|
// 目标位置的下标
|
|
4945
4950
|
/** @type {?} */
|
|
4946
4951
|
var nodeIndex = _this.nowListNodes.findIndex((/**
|
|
4947
4952
|
* @param {?} item
|
|
4948
4953
|
* @return {?}
|
|
4949
4954
|
*/
|
|
4950
|
-
function (item) {
|
|
4955
|
+
function (item) {
|
|
4956
|
+
return item.title == arg.node.origin.title;
|
|
4957
|
+
})) + (arg.pos === -1 ? 0 : arg.pos);
|
|
4951
4958
|
_this.nowListNodes.splice(nodeIndex, 0, node);
|
|
4952
4959
|
_this.nowListNodes.splice(nodeIndex >= dragNodeIndex ? dragNodeIndex : dragNodeIndex + 1, 1);
|
|
4953
4960
|
return rxjs.of(true).pipe(operators.delay(100));
|
|
@@ -4955,11 +4962,11 @@
|
|
|
4955
4962
|
});
|
|
4956
4963
|
this.localforage = localforage.createInstance({
|
|
4957
4964
|
driver: localforage.INDEXEDDB,
|
|
4958
|
-
name:
|
|
4965
|
+
name: "hd-fscm",
|
|
4959
4966
|
// 设置存储库的名称
|
|
4960
4967
|
version: 1.0,
|
|
4961
4968
|
// 设置存储库的版本
|
|
4962
|
-
storeName:
|
|
4969
|
+
storeName: "hd-fscm-store",
|
|
4963
4970
|
});
|
|
4964
4971
|
}
|
|
4965
4972
|
/**
|
|
@@ -4973,33 +4980,39 @@
|
|
|
4973
4980
|
if (this.isFirstEntrySearch === false) {
|
|
4974
4981
|
this.isFirstEntrySearchLocal = this.isFirstEntrySearch;
|
|
4975
4982
|
}
|
|
4983
|
+
if (this.isCrossPageSelect === true) {
|
|
4984
|
+
this.isCrossPageSelectLocal = this.isCrossPageSelect;
|
|
4985
|
+
}
|
|
4976
4986
|
this.localtionTmp = location.pathname;
|
|
4977
4987
|
if (this.localtionTmp) {
|
|
4978
4988
|
this.localtionTmp = this.localtionTmp.replace(/\//g, "_");
|
|
4979
4989
|
}
|
|
4980
|
-
this.userSession = this.commonSessionService.getSession(
|
|
4990
|
+
this.userSession = this.commonSessionService.getSession("__jy_authorization_session__");
|
|
4981
4991
|
// 用于开发环境调试
|
|
4982
4992
|
if (!this.userSession) {
|
|
4983
4993
|
this.userSession = {
|
|
4984
|
-
userCode:
|
|
4994
|
+
userCode: "dev",
|
|
4985
4995
|
};
|
|
4986
4996
|
}
|
|
4987
4997
|
this.deleteHideItem();
|
|
4988
4998
|
if (!this.tableCols || this.tableCols.length === 0) {
|
|
4989
4999
|
return;
|
|
4990
5000
|
}
|
|
4991
|
-
this.localforage
|
|
5001
|
+
this.localforage
|
|
5002
|
+
.ready()
|
|
5003
|
+
.then((/**
|
|
4992
5004
|
* @return {?}
|
|
4993
5005
|
*/
|
|
4994
5006
|
function () {
|
|
4995
5007
|
_this.getInitLocalforage();
|
|
4996
|
-
}))
|
|
5008
|
+
}))
|
|
5009
|
+
.catch((/**
|
|
4997
5010
|
* @param {?} e
|
|
4998
5011
|
* @return {?}
|
|
4999
5012
|
*/
|
|
5000
5013
|
function (e) {
|
|
5001
|
-
console.log(
|
|
5002
|
-
throw
|
|
5014
|
+
console.log("localforage加载异常step1", e);
|
|
5015
|
+
throw "localforage加载异常";
|
|
5003
5016
|
}));
|
|
5004
5017
|
};
|
|
5005
5018
|
/**
|
|
@@ -5013,31 +5026,43 @@
|
|
|
5013
5026
|
function (changes) {
|
|
5014
5027
|
var _this = this;
|
|
5015
5028
|
// 数据改变时,重置勾选状态
|
|
5016
|
-
if (changes &&
|
|
5017
|
-
|
|
5018
|
-
|
|
5029
|
+
if (changes &&
|
|
5030
|
+
changes["tableData"] &&
|
|
5031
|
+
changes["tableData"]["currentValue"] &&
|
|
5032
|
+
changes["tableData"]["previousValue"]) {
|
|
5033
|
+
if (changes["tableData"]["currentValue"]["pageSize"] !==
|
|
5034
|
+
changes["tableData"]["previousValue"]["pageSize"] ||
|
|
5035
|
+
changes["tableData"]["currentValue"]["pageNumber"] !==
|
|
5036
|
+
changes["tableData"]["previousValue"]["pageNumber"]) {
|
|
5019
5037
|
return;
|
|
5020
5038
|
}
|
|
5021
|
-
this.
|
|
5039
|
+
if (!this.isCrossPageSelectLocal) {
|
|
5040
|
+
this.resetStatus();
|
|
5041
|
+
}
|
|
5022
5042
|
}
|
|
5023
|
-
if (changes[
|
|
5024
|
-
|
|
5043
|
+
if (changes["tableCols"] &&
|
|
5044
|
+
JSON.stringify(changes["tableCols"].currentValue) !==
|
|
5045
|
+
JSON.stringify(changes["tableCols"].previousValue) &&
|
|
5046
|
+
changes["tableCols"].previousValue !== undefined) {
|
|
5025
5047
|
this.deleteHideItem();
|
|
5026
5048
|
if (!this.tableCols || this.tableCols.length === 0) {
|
|
5027
5049
|
return;
|
|
5028
5050
|
}
|
|
5029
|
-
this.localforage
|
|
5051
|
+
this.localforage
|
|
5052
|
+
.ready()
|
|
5053
|
+
.then((/**
|
|
5030
5054
|
* @return {?}
|
|
5031
5055
|
*/
|
|
5032
5056
|
function () {
|
|
5033
5057
|
_this.getInitLocalforage();
|
|
5034
|
-
}))
|
|
5058
|
+
}))
|
|
5059
|
+
.catch((/**
|
|
5035
5060
|
* @param {?} e
|
|
5036
5061
|
* @return {?}
|
|
5037
5062
|
*/
|
|
5038
5063
|
function (e) {
|
|
5039
|
-
console.log(
|
|
5040
|
-
throw
|
|
5064
|
+
console.log("localforage加载异常step2", e);
|
|
5065
|
+
throw "localforage加载异常";
|
|
5041
5066
|
}));
|
|
5042
5067
|
}
|
|
5043
5068
|
};
|
|
@@ -5055,7 +5080,7 @@
|
|
|
5055
5080
|
*/
|
|
5056
5081
|
function (item) {
|
|
5057
5082
|
// 如果对象没有 isShow 属性,则默认为 true,保留该对象
|
|
5058
|
-
if (!item.hasOwnProperty(
|
|
5083
|
+
if (!item.hasOwnProperty("isShow")) {
|
|
5059
5084
|
return true;
|
|
5060
5085
|
}
|
|
5061
5086
|
// 如果对象有 isShow 属性,则检查其值是否为 true
|
|
@@ -5082,14 +5107,22 @@
|
|
|
5082
5107
|
function () {
|
|
5083
5108
|
var _this = this;
|
|
5084
5109
|
// 首先获取当前hd-table存储的数据 如果没有,则初始化下当前的数据
|
|
5085
|
-
this.localforage
|
|
5110
|
+
this.localforage
|
|
5111
|
+
.getItem("hd-table_" +
|
|
5112
|
+
this.userSession.userCode +
|
|
5113
|
+
"_" +
|
|
5114
|
+
this.localtionTmp +
|
|
5115
|
+
"_" +
|
|
5116
|
+
this.uuid)
|
|
5117
|
+
.then((/**
|
|
5086
5118
|
* @param {?} value
|
|
5087
5119
|
* @return {?}
|
|
5088
5120
|
*/
|
|
5089
5121
|
function (value) {
|
|
5090
5122
|
if (value) {
|
|
5091
5123
|
_this.tableCacheOption = value;
|
|
5092
|
-
if (_this.tableCacheOption.pageSize &&
|
|
5124
|
+
if (_this.tableCacheOption.pageSize &&
|
|
5125
|
+
_this.tableCacheOption.pageSize > 10) {
|
|
5093
5126
|
_this.tablePageSize = _this.tableCacheOption.pageSize;
|
|
5094
5127
|
_this.tablePageSizeChange.emit(_this.tablePageSize);
|
|
5095
5128
|
}
|
|
@@ -5108,7 +5141,8 @@
|
|
|
5108
5141
|
_this.isFirstEntrySearchLocal = true;
|
|
5109
5142
|
}
|
|
5110
5143
|
_this.initTable();
|
|
5111
|
-
}))
|
|
5144
|
+
}))
|
|
5145
|
+
.catch((/**
|
|
5112
5146
|
* @param {?} err
|
|
5113
5147
|
* @return {?}
|
|
5114
5148
|
*/
|
|
@@ -5127,7 +5161,7 @@
|
|
|
5127
5161
|
function () {
|
|
5128
5162
|
this.showTable = false;
|
|
5129
5163
|
if (!this.uuid) {
|
|
5130
|
-
throw
|
|
5164
|
+
throw "hd-table缺失uuid参数,请使用编辑器插件生成并给hd-table赋予uuid属性";
|
|
5131
5165
|
}
|
|
5132
5166
|
if (this.judgeRepeatCols()) {
|
|
5133
5167
|
this.dealCols();
|
|
@@ -5224,7 +5258,8 @@
|
|
|
5224
5258
|
* @return {?}
|
|
5225
5259
|
*/
|
|
5226
5260
|
function (a, b) {
|
|
5227
|
-
return _this.tableCacheOption.cols.indexOf(a.title) -
|
|
5261
|
+
return (_this.tableCacheOption.cols.indexOf(a.title) -
|
|
5262
|
+
_this.tableCacheOption.cols.indexOf(b.title));
|
|
5228
5263
|
}));
|
|
5229
5264
|
this.tableCols = incols.concat(notIncols);
|
|
5230
5265
|
}
|
|
@@ -5235,14 +5270,18 @@
|
|
|
5235
5270
|
*/
|
|
5236
5271
|
function (element, index) {
|
|
5237
5272
|
if (_this.tableCacheOption && _this.tableCacheOption.cols) {
|
|
5238
|
-
element.isShow = _this.tableCacheOption.cols.includes(element.title)
|
|
5273
|
+
element.isShow = _this.tableCacheOption.cols.includes(element.title)
|
|
5274
|
+
? true
|
|
5275
|
+
: false;
|
|
5239
5276
|
if (element.isShow) {
|
|
5240
5277
|
_this.nowListNodes.push({
|
|
5241
5278
|
title: element.title,
|
|
5242
5279
|
key: element.title,
|
|
5243
5280
|
disabled: element.fixed ? true : false,
|
|
5244
5281
|
// selectable: false,
|
|
5245
|
-
checked: _this.tableCacheOption.cols.includes(element.title)
|
|
5282
|
+
checked: _this.tableCacheOption.cols.includes(element.title)
|
|
5283
|
+
? true
|
|
5284
|
+
: false,
|
|
5246
5285
|
});
|
|
5247
5286
|
}
|
|
5248
5287
|
else {
|
|
@@ -5251,7 +5290,9 @@
|
|
|
5251
5290
|
key: element.title,
|
|
5252
5291
|
disabled: element.fixed ? true : false,
|
|
5253
5292
|
// selectable: false,
|
|
5254
|
-
checked: _this.tableCacheOption.cols.includes(element.title)
|
|
5293
|
+
checked: _this.tableCacheOption.cols.includes(element.title)
|
|
5294
|
+
? true
|
|
5295
|
+
: false,
|
|
5255
5296
|
});
|
|
5256
5297
|
}
|
|
5257
5298
|
}
|
|
@@ -5262,12 +5303,14 @@
|
|
|
5262
5303
|
key: element.title,
|
|
5263
5304
|
checked: true,
|
|
5264
5305
|
// selectable: false,
|
|
5265
|
-
disabled: element.fixed ? true : false
|
|
5306
|
+
disabled: element.fixed ? true : false,
|
|
5266
5307
|
});
|
|
5267
5308
|
}
|
|
5268
5309
|
}));
|
|
5269
5310
|
// 调整列宽为缓存宽度
|
|
5270
|
-
if (this.tableCacheOption &&
|
|
5311
|
+
if (this.tableCacheOption &&
|
|
5312
|
+
this.tableCacheOption.colWidths &&
|
|
5313
|
+
this.tableCacheOption.colWidths.size !== 0) {
|
|
5271
5314
|
this.tableCols.forEach((/**
|
|
5272
5315
|
* @param {?} col
|
|
5273
5316
|
* @return {?}
|
|
@@ -5316,7 +5359,7 @@
|
|
|
5316
5359
|
*/
|
|
5317
5360
|
function (item) { return item.title === elementToMoveTitle; }));
|
|
5318
5361
|
/** @type {?} */
|
|
5319
|
-
var newIndex = pos < 0 ?
|
|
5362
|
+
var newIndex = pos < 0 ? targetIndex + pos : targetIndex;
|
|
5320
5363
|
// 移除目标元素,并插入到新的位置
|
|
5321
5364
|
/** @type {?} */
|
|
5322
5365
|
var removedElement = tmpArray.splice(elementIndex, 1);
|
|
@@ -5352,7 +5395,7 @@
|
|
|
5352
5395
|
/** @type {?} */
|
|
5353
5396
|
var title_1 = null;
|
|
5354
5397
|
for (var i = this.tableColsCache.length - 1; i >= 0; i--) {
|
|
5355
|
-
if (this.tableColsCache[i].fixed ===
|
|
5398
|
+
if (this.tableColsCache[i].fixed === "right") {
|
|
5356
5399
|
title_1 = this.tableColsCache[i].title;
|
|
5357
5400
|
break;
|
|
5358
5401
|
}
|
|
@@ -5455,16 +5498,16 @@
|
|
|
5455
5498
|
*/
|
|
5456
5499
|
function (item) {
|
|
5457
5500
|
/** @type {?} */
|
|
5458
|
-
var span = document.createElement(
|
|
5459
|
-
span.style.visibility =
|
|
5460
|
-
span.style.position =
|
|
5461
|
-
span.style.whiteSpace =
|
|
5462
|
-
span.style.fontSize =
|
|
5463
|
-
span.style.display =
|
|
5501
|
+
var span = document.createElement("span");
|
|
5502
|
+
span.style.visibility = "hidden";
|
|
5503
|
+
span.style.position = "absolute";
|
|
5504
|
+
span.style.whiteSpace = "nowrap";
|
|
5505
|
+
span.style.fontSize = "12px";
|
|
5506
|
+
span.style.display = "inline-block"; // 将样式修改为 inline-block
|
|
5464
5507
|
span.innerText = item.title;
|
|
5465
5508
|
document.body.appendChild(span);
|
|
5466
5509
|
item.minWidth = span.offsetWidth + 16;
|
|
5467
|
-
span.style.display =
|
|
5510
|
+
span.style.display = "none";
|
|
5468
5511
|
document.body.removeChild(span);
|
|
5469
5512
|
}));
|
|
5470
5513
|
}
|
|
@@ -5474,13 +5517,13 @@
|
|
|
5474
5517
|
* @param {?} col
|
|
5475
5518
|
* @return {?}
|
|
5476
5519
|
*/
|
|
5477
|
-
function (col) { return col.fixed ===
|
|
5520
|
+
function (col) { return col.fixed === "left"; }));
|
|
5478
5521
|
/** @type {?} */
|
|
5479
5522
|
var rightFixedCols = this.tableCols.filter((/**
|
|
5480
5523
|
* @param {?} col
|
|
5481
5524
|
* @return {?}
|
|
5482
5525
|
*/
|
|
5483
|
-
function (col) { return col.fixed ===
|
|
5526
|
+
function (col) { return col.fixed === "right"; }));
|
|
5484
5527
|
/** @type {?} */
|
|
5485
5528
|
var normalCols = this.tableCols.filter((/**
|
|
5486
5529
|
* @param {?} col
|
|
@@ -5502,7 +5545,12 @@
|
|
|
5502
5545
|
* @return {?}
|
|
5503
5546
|
*/
|
|
5504
5547
|
function () {
|
|
5505
|
-
this.localforage.setItem(
|
|
5548
|
+
this.localforage.setItem("hd-table_" +
|
|
5549
|
+
this.userSession.userCode +
|
|
5550
|
+
"_" +
|
|
5551
|
+
this.localtionTmp +
|
|
5552
|
+
"_" +
|
|
5553
|
+
this.uuid, this.tableCacheOption);
|
|
5506
5554
|
};
|
|
5507
5555
|
/**
|
|
5508
5556
|
* @return {?}
|
|
@@ -5546,7 +5594,9 @@
|
|
|
5546
5594
|
* @param {?} e
|
|
5547
5595
|
* @return {?}
|
|
5548
5596
|
*/
|
|
5549
|
-
function (e) {
|
|
5597
|
+
function (e) {
|
|
5598
|
+
return e.title === col.title ? __assign({}, e, { width: tempWidth }) : e;
|
|
5599
|
+
}));
|
|
5550
5600
|
this.dealScroll();
|
|
5551
5601
|
};
|
|
5552
5602
|
/**
|
|
@@ -5561,10 +5611,10 @@
|
|
|
5561
5611
|
* @param {?} col
|
|
5562
5612
|
* @return {?}
|
|
5563
5613
|
*/
|
|
5564
|
-
function (col) { return col.title ===
|
|
5614
|
+
function (col) { return col.title === "操作"; })) || null;
|
|
5565
5615
|
if (operateCol) {
|
|
5566
5616
|
/** @type {?} */
|
|
5567
|
-
var textStr_1 =
|
|
5617
|
+
var textStr_1 = "";
|
|
5568
5618
|
operateCol.btnList.forEach((/**
|
|
5569
5619
|
* @param {?} btn
|
|
5570
5620
|
* @return {?}
|
|
@@ -5575,20 +5625,23 @@
|
|
|
5575
5625
|
}
|
|
5576
5626
|
}));
|
|
5577
5627
|
/** @type {?} */
|
|
5578
|
-
var span = document.createElement(
|
|
5579
|
-
span.style.visibility =
|
|
5580
|
-
span.style.position =
|
|
5581
|
-
span.style.whiteSpace =
|
|
5582
|
-
span.style.fontSize =
|
|
5583
|
-
span.style.display =
|
|
5628
|
+
var span = document.createElement("a");
|
|
5629
|
+
span.style.visibility = "hidden";
|
|
5630
|
+
span.style.position = "absolute";
|
|
5631
|
+
span.style.whiteSpace = "nowrap";
|
|
5632
|
+
span.style.fontSize = "12px";
|
|
5633
|
+
span.style.display = "inline-block"; // 将样式修改为 inline-block
|
|
5584
5634
|
span.innerText = textStr_1;
|
|
5585
5635
|
document.body.appendChild(span);
|
|
5586
|
-
operateCol.width =
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5636
|
+
operateCol.width =
|
|
5637
|
+
span.offsetWidth +
|
|
5638
|
+
(operateCol.btnList.filter((/**
|
|
5639
|
+
* @param {?} item
|
|
5640
|
+
* @return {?}
|
|
5641
|
+
*/
|
|
5642
|
+
function (item) { return !item.isRepeat; })).length - 1) * 4 +
|
|
5643
|
+
16;
|
|
5644
|
+
span.style.display = "none";
|
|
5592
5645
|
document.body.removeChild(span);
|
|
5593
5646
|
}
|
|
5594
5647
|
};
|
|
@@ -5634,14 +5687,14 @@
|
|
|
5634
5687
|
}));
|
|
5635
5688
|
if (this.tableTotal) {
|
|
5636
5689
|
this.scroll = {
|
|
5637
|
-
x:
|
|
5638
|
-
y:
|
|
5690
|
+
x: "1px",
|
|
5691
|
+
y: "calc(100vh - 180px)",
|
|
5639
5692
|
};
|
|
5640
5693
|
}
|
|
5641
5694
|
else {
|
|
5642
5695
|
this.scroll = {
|
|
5643
|
-
x:
|
|
5644
|
-
y:
|
|
5696
|
+
x: "1px",
|
|
5697
|
+
y: "calc(100vh - 140px)",
|
|
5645
5698
|
};
|
|
5646
5699
|
}
|
|
5647
5700
|
};
|
|
@@ -5662,18 +5715,18 @@
|
|
|
5662
5715
|
return cachedWidth + 15 >= maxWidth;
|
|
5663
5716
|
}
|
|
5664
5717
|
/** @type {?} */
|
|
5665
|
-
var span = document.createElement(
|
|
5666
|
-
span.style.visibility =
|
|
5667
|
-
span.style.position =
|
|
5668
|
-
span.style.whiteSpace =
|
|
5669
|
-
span.style.fontSize =
|
|
5670
|
-
span.style.display =
|
|
5718
|
+
var span = document.createElement("span");
|
|
5719
|
+
span.style.visibility = "hidden";
|
|
5720
|
+
span.style.position = "absolute";
|
|
5721
|
+
span.style.whiteSpace = "nowrap";
|
|
5722
|
+
span.style.fontSize = "12px";
|
|
5723
|
+
span.style.display = "inline-block"; // 将样式修改为 inline-block
|
|
5671
5724
|
span.innerText = text;
|
|
5672
5725
|
document.body.appendChild(span);
|
|
5673
5726
|
/** @type {?} */
|
|
5674
5727
|
var isOverflow = span.offsetWidth + 15 >= maxWidth;
|
|
5675
5728
|
this.textWidthCache[text] = span.offsetWidth;
|
|
5676
|
-
span.style.display =
|
|
5729
|
+
span.style.display = "none";
|
|
5677
5730
|
document.body.removeChild(span);
|
|
5678
5731
|
return isOverflow;
|
|
5679
5732
|
};
|
|
@@ -5692,7 +5745,9 @@
|
|
|
5692
5745
|
function ($event) {
|
|
5693
5746
|
this.listOfDisplayData = $event;
|
|
5694
5747
|
this.refreshStatus();
|
|
5695
|
-
this.
|
|
5748
|
+
if (!this.isCrossPageSelectLocal) {
|
|
5749
|
+
this.resetStatus();
|
|
5750
|
+
}
|
|
5696
5751
|
};
|
|
5697
5752
|
/**
|
|
5698
5753
|
* @param {?} reset
|
|
@@ -5743,10 +5798,12 @@
|
|
|
5743
5798
|
if (event === void 0) { event = false; }
|
|
5744
5799
|
if (data === void 0) { data = null; }
|
|
5745
5800
|
if (event && data) {
|
|
5746
|
-
!this.mapOfCheckList[data[this.selectField]] &&
|
|
5801
|
+
!this.mapOfCheckList[data[this.selectField]] &&
|
|
5802
|
+
(this.mapOfCheckList[data[this.selectField]] = data);
|
|
5747
5803
|
}
|
|
5748
5804
|
else if (!event && data) {
|
|
5749
|
-
this.mapOfCheckList[data[this.selectField]] &&
|
|
5805
|
+
this.mapOfCheckList[data[this.selectField]] &&
|
|
5806
|
+
delete this.mapOfCheckList[data[this.selectField]];
|
|
5750
5807
|
}
|
|
5751
5808
|
this.isAllDisplayDataChecked = this.listOfDisplayData.every((/**
|
|
5752
5809
|
* @param {?} item
|
|
@@ -5786,10 +5843,12 @@
|
|
|
5786
5843
|
*/
|
|
5787
5844
|
function (item) {
|
|
5788
5845
|
if (value) {
|
|
5789
|
-
!_this.mapOfCheckList[item[_this.selectField]] &&
|
|
5846
|
+
!_this.mapOfCheckList[item[_this.selectField]] &&
|
|
5847
|
+
(_this.mapOfCheckList[item[_this.selectField]] = item);
|
|
5790
5848
|
}
|
|
5791
5849
|
else {
|
|
5792
|
-
_this.mapOfCheckList[item[_this.selectField]] &&
|
|
5850
|
+
_this.mapOfCheckList[item[_this.selectField]] &&
|
|
5851
|
+
delete _this.mapOfCheckList[item[_this.selectField]];
|
|
5793
5852
|
}
|
|
5794
5853
|
_this.mapOfCheckedId[item[_this.selectField]] = value;
|
|
5795
5854
|
}));
|
|
@@ -5808,12 +5867,12 @@
|
|
|
5808
5867
|
return str;
|
|
5809
5868
|
}
|
|
5810
5869
|
else {
|
|
5811
|
-
return
|
|
5870
|
+
return "<空>";
|
|
5812
5871
|
}
|
|
5813
5872
|
};
|
|
5814
5873
|
HdTableComponent.decorators = [
|
|
5815
5874
|
{ type: core.Component, args: [{
|
|
5816
|
-
selector:
|
|
5875
|
+
selector: "hd-table",
|
|
5817
5876
|
template: "<ng-container>\n <hd-button-group>\n <ng-template #buttonGroupLeft>\n <ng-container *ngTemplateOutlet=\"tableLeftButton\"></ng-container>\n <hd-button *ngIf=\"showOperateColWarpButton\" type=\"default\" (click)=\"showDetail = !showDetail\">{{showDetail ?\n '\u7F29\u7565\u663E\u793A': '\u5C55\u5F00\u663E\u793A'}}</hd-button>\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 *ngIf=\"showListNodes && nowListNodes.length > 0\" 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 [nzTreeTemplate]=\"nzTreeTemplate\">\n </nz-tree>\n <ng-template #nzTreeTemplate let-node>\n <span\n class=\"ng-tns-c31-110 draggable ng-star-inserted ant-tree-node-content-wrapper ant-tree-node-content-wrapper-close\"\n [title]=\"node.key\" draggable=\"true\" aria-grabbed=\"true\">\n <span class=\"ant-tree-title\">\n <div class=\"hd-table-tree-node\">\n <span>{{node.key}}</span>\n <div *ngIf=\"!node.origin.disabled\" class=\"hd-table-tree-node-img\">\n <i nz-icon nzType=\"caret-up\" nzTheme=\"outline\"></i>\n <i nz-icon nzType=\"caret-down\" nzTheme=\"outline\"></i>\n </div>\n </div>\n </span>\n </span>\n </ng-template>\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 (nzSortChange)=\"sort($event)\" nzSingleSort>\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\" nzPreview\n (nzResizeEnd)=\"onResize($event, col)\" [nzShowSort]=\"col.canSort\" [nzSortKey]=\"col.name\">\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 [ngClass]=\"(col.canWarp && showDetail) ? 'common-td-wrap' : ''\">\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']\">{{ judgeColEmpty(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': judgeColEmpty(col.render ? col.render(data) :data[col.name]) === '<\u7A7A>' ? '#2A3634' : (col?.color ? col.color : null)}\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ judgeColEmpty(col.render ? col.render(data) :\n data[col.name])}}</a>\n </ng-container>\n <ng-template #overflowTemplate>\n <a [ngStyle]=\"{'color': judgeColEmpty(col.render ? col.render(data) :data[col.name]) === '<\u7A7A>' ? '#2A3634' : (col?.color ? col.color : null)}\" nz-tooltip\n [nzTooltipTitle]=\"col.render ? col.render(data) : data[col.name]\"\n (click)=\"triggerEvent(col.click || null, data)\">{{ judgeColEmpty(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}\">{{ judgeColEmpty(col.render ?\n 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 {{ judgeColEmpty(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>\n",
|
|
5818
5877
|
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%}.ant-input-number-disabled,.ant-input[disabled],.ant-select-disabled{color:#4b504e}.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{height:100%}.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;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}::ng-deep .ant-dropdown-menu{border-radius:0}::ng-deep .ant-dropdown{margin-top:8px!important}.common-td-wrap{white-space:normal!important;word-break:break-all}.nz-resizable-preview{border-width:0 1px 0 0}.resize-trigger{width:10px;height:15px;position:relative;top:calc((100% - 15px)/ 2)}.resize-trigger::after{position:absolute;top:calc((100% - 15px)/ 2);left:0;background:#d5d5d5;content:'';width:1px;height:15px;z-index:1}.nz-resizable-handle-right{position:absolute;width:10px;top:0;right:-5px;z-index:inherit}.hd-table-tree-node{display:inline-flex;align-items:center;padding-right:10px}.hd-table-tree-node .hd-table-tree-node-img{display:flex;flex-direction:column;position:absolute;right:0;margin-top:-2.5px}.hd-table-tree-node .hd-table-tree-node-img i{opacity:.3}.hd-table-tree-node .hd-table-tree-node-img i:last-child{margin-top:-5px}img{width:20px;height:20px}.ant-table-th-left-sticky{z-index:2}::ng-deep .ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters>:not(.ant-table-column-sorter){position:unset}"]
|
|
5819
5878
|
}] }
|
|
@@ -5839,6 +5898,7 @@
|
|
|
5839
5898
|
tablePageIndex: [{ type: core.Input }],
|
|
5840
5899
|
tablePageSize: [{ type: core.Input }],
|
|
5841
5900
|
isFirstEntrySearch: [{ type: core.Input }],
|
|
5901
|
+
isCrossPageSelect: [{ type: core.Input }],
|
|
5842
5902
|
tablePageIndexChange: [{ type: core.Output }],
|
|
5843
5903
|
tablePageSizeChange: [{ type: core.Output }],
|
|
5844
5904
|
tablePageSizeChangeEvent: [{ type: core.Output }],
|
|
@@ -5892,6 +5952,8 @@
|
|
|
5892
5952
|
/** @type {?} */
|
|
5893
5953
|
HdTableComponent.prototype.isFirstEntrySearch;
|
|
5894
5954
|
/** @type {?} */
|
|
5955
|
+
HdTableComponent.prototype.isCrossPageSelect;
|
|
5956
|
+
/** @type {?} */
|
|
5895
5957
|
HdTableComponent.prototype.tablePageIndexChange;
|
|
5896
5958
|
/** @type {?} */
|
|
5897
5959
|
HdTableComponent.prototype.tablePageSizeChange;
|
|
@@ -5959,6 +6021,8 @@
|
|
|
5959
6021
|
/** @type {?} */
|
|
5960
6022
|
HdTableComponent.prototype.isFirstEntrySearchLocal;
|
|
5961
6023
|
/** @type {?} */
|
|
6024
|
+
HdTableComponent.prototype.isCrossPageSelectLocal;
|
|
6025
|
+
/** @type {?} */
|
|
5962
6026
|
HdTableComponent.prototype.beforeDrop;
|
|
5963
6027
|
/**
|
|
5964
6028
|
* @type {?}
|