@bit-sun/business-component 3.1.1 → 3.1.2
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/dist/components/Business/BsSulaQueryTable/setting.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +2 -1
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -0
- package/dist/index.esm.js +160 -102
- package/dist/index.js +160 -102
- package/package.json +1 -1
- package/src/components/Business/BsLayouts/index.tsx +1 -1
- package/src/components/Business/BsSulaQueryTable/index.less +7 -1
- package/src/components/Business/BsSulaQueryTable/setting.tsx +5 -0
- package/src/components/Business/columnSettingTable/columnSetting.tsx +63 -14
- package/src/components/Business/columnSettingTable/index.less +7 -1
- package/src/components/Business/columnSettingTable/index.tsx +3 -12
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +2 -12
- package/src/components/Business/columnSettingTable/utils.tsx +18 -1
- package/src/components/Functional/BillEntry/index.tsx +44 -45
|
@@ -24,7 +24,7 @@ declare class SortableTable extends React.Component<SortTableProps> {
|
|
|
24
24
|
dataIndex: string;
|
|
25
25
|
className: string;
|
|
26
26
|
width: number;
|
|
27
|
-
render
|
|
27
|
+
render: (text: any, record: any) => React.JSX.Element;
|
|
28
28
|
} | {
|
|
29
29
|
title: string;
|
|
30
30
|
dataIndex: string;
|
|
@@ -47,6 +47,7 @@ declare class SortableTable extends React.Component<SortTableProps> {
|
|
|
47
47
|
DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
|
|
48
48
|
onChange: (e: any, title: any) => void;
|
|
49
49
|
handleReset: () => void;
|
|
50
|
+
handleResetSetting: () => void;
|
|
50
51
|
onSearch: (e: any) => void;
|
|
51
52
|
onSearchSort: (e: any) => void;
|
|
52
53
|
getConfigFromlocalstorage: () => any;
|
|
@@ -7,3 +7,4 @@ import React from 'react';
|
|
|
7
7
|
export declare const noEmptyArray: (arr: any[]) => boolean;
|
|
8
8
|
export declare const getItemDefaultWidth: (item: any) => number;
|
|
9
9
|
export declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
|
|
10
|
+
export declare const getShowColumns: (originColumns: any[], configs: any[]) => any[];
|
package/dist/index.esm.js
CHANGED
|
@@ -5464,6 +5464,21 @@ var getItemDefaultWidth$2 = function getItemDefaultWidth(item) {
|
|
|
5464
5464
|
}
|
|
5465
5465
|
return defaultWidth;
|
|
5466
5466
|
};
|
|
5467
|
+
var getShowColumns = function getShowColumns(originColumns, configs) {
|
|
5468
|
+
var showColumns = [];
|
|
5469
|
+
if (configs.length) {
|
|
5470
|
+
configs.forEach(function (config) {
|
|
5471
|
+
var inner = originColumns.filter(function (innerItem) {
|
|
5472
|
+
return innerItem.dataIndex && innerItem.dataIndex === config.dataIndex || innerItem.key && innerItem.key === config.key;
|
|
5473
|
+
})[0];
|
|
5474
|
+
inner && showColumns.push(_objectSpread2(_objectSpread2({}, inner), config));
|
|
5475
|
+
});
|
|
5476
|
+
}
|
|
5477
|
+
if (showColumns.length) return showColumns;
|
|
5478
|
+
return (originColumns || []).filter(function (item) {
|
|
5479
|
+
return !item.hidden;
|
|
5480
|
+
});
|
|
5481
|
+
};
|
|
5467
5482
|
|
|
5468
5483
|
// 下拉框数据源
|
|
5469
5484
|
// 情况①:每条记录下拉框数据不同----查询接口每条记录返回字段,前后端约定好,用dataSourceCode记录
|
|
@@ -6989,23 +7004,21 @@ var InputElement = function InputElement(_ref) {
|
|
|
6989
7004
|
}, text);
|
|
6990
7005
|
},
|
|
6991
7006
|
dataIndex: 'name'
|
|
6992
|
-
},
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
}
|
|
7008
|
-
}, {
|
|
7007
|
+
},
|
|
7008
|
+
// {
|
|
7009
|
+
// title: '图片',
|
|
7010
|
+
// dataIndex: 'itemUrl',
|
|
7011
|
+
// width: 200,
|
|
7012
|
+
// ellipsis: {
|
|
7013
|
+
// showTitle: false,
|
|
7014
|
+
// },
|
|
7015
|
+
// render: (text: any,record: any) => (
|
|
7016
|
+
// <Tooltip placement="topLeft" title={text}>
|
|
7017
|
+
// {tableColumnsImage(getSkuImg(record),{ width: 28, height: 28 })}
|
|
7018
|
+
// </Tooltip>
|
|
7019
|
+
// ),
|
|
7020
|
+
// },
|
|
7021
|
+
{
|
|
7009
7022
|
title: '国际条码',
|
|
7010
7023
|
width: 100,
|
|
7011
7024
|
ellipsis: {
|
|
@@ -7111,16 +7124,14 @@ var InputElement = function InputElement(_ref) {
|
|
|
7111
7124
|
// dom1.select(text);
|
|
7112
7125
|
// }}
|
|
7113
7126
|
onKeyDown: function onKeyDown(e) {
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
// document.getElementById("first-query")?.focus()
|
|
7117
|
-
// }
|
|
7127
|
+
var _e$target, _e$target$parentNode;
|
|
7128
|
+
var currentLineDom = (_e$target = e.target) === null || _e$target === void 0 ? void 0 : (_e$target$parentNode = _e$target.parentNode) === null || _e$target$parentNode === void 0 ? void 0 : _e$target$parentNode.parentNode;
|
|
7118
7129
|
if (e.keyCode === 8 && e.ctrlKey && index) {
|
|
7119
|
-
var
|
|
7130
|
+
var _currentLineDom$getEl;
|
|
7120
7131
|
message$1.success('删除当前行');
|
|
7121
7132
|
e.stopPropagation();
|
|
7122
7133
|
e.preventDefault();
|
|
7123
|
-
var dom = (
|
|
7134
|
+
var dom = currentLineDom === null || currentLineDom === void 0 ? void 0 : (_currentLineDom$getEl = currentLineDom.getElementsByTagName('input')) === null || _currentLineDom$getEl === void 0 ? void 0 : _currentLineDom$getEl[currentIndex];
|
|
7124
7135
|
if (dom) {
|
|
7125
7136
|
dom.select();
|
|
7126
7137
|
dom.focus();
|
|
@@ -7142,11 +7153,10 @@ var InputElement = function InputElement(_ref) {
|
|
|
7142
7153
|
}
|
|
7143
7154
|
}
|
|
7144
7155
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7145
|
-
var _e$nativeEvent$path$2;
|
|
7146
7156
|
// 左滑动
|
|
7147
7157
|
e.stopPropagation();
|
|
7148
7158
|
e.preventDefault();
|
|
7149
|
-
var _dom2 =
|
|
7159
|
+
var _dom2 = currentLineDom === null || currentLineDom === void 0 ? void 0 : currentLineDom.getElementsByTagName('input')[currentIndex - 1];
|
|
7150
7160
|
if (_dom2) {
|
|
7151
7161
|
_dom2.select();
|
|
7152
7162
|
_dom2.focus();
|
|
@@ -7155,11 +7165,10 @@ var InputElement = function InputElement(_ref) {
|
|
|
7155
7165
|
_dom2 = null;
|
|
7156
7166
|
}
|
|
7157
7167
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7158
|
-
var _e$nativeEvent$path$3;
|
|
7159
7168
|
// 右滑
|
|
7160
7169
|
e.stopPropagation();
|
|
7161
7170
|
e.preventDefault();
|
|
7162
|
-
var _dom3 =
|
|
7171
|
+
var _dom3 = currentLineDom === null || currentLineDom === void 0 ? void 0 : currentLineDom.getElementsByTagName('input')[currentIndex + 1];
|
|
7163
7172
|
if (_dom3) {
|
|
7164
7173
|
_dom3.select();
|
|
7165
7174
|
_dom3.focus();
|
|
@@ -7168,11 +7177,12 @@ var InputElement = function InputElement(_ref) {
|
|
|
7168
7177
|
_dom3 = null;
|
|
7169
7178
|
}
|
|
7170
7179
|
if (e.keyCode === 40) {
|
|
7171
|
-
var
|
|
7180
|
+
var _parentDom$children, _parentDom$children2;
|
|
7172
7181
|
// 向下
|
|
7173
7182
|
e.stopPropagation();
|
|
7174
7183
|
e.preventDefault();
|
|
7175
|
-
var
|
|
7184
|
+
var parentDom = currentLineDom === null || currentLineDom === void 0 ? void 0 : currentLineDom.parentNode;
|
|
7185
|
+
var _dom4 = parentDom === null || parentDom === void 0 ? void 0 : (_parentDom$children = parentDom.children) === null || _parentDom$children === void 0 ? void 0 : (_parentDom$children2 = _parentDom$children[index + 2]) === null || _parentDom$children2 === void 0 ? void 0 : _parentDom$children2.getElementsByTagName('input')[currentIndex];
|
|
7176
7186
|
if (_dom4) {
|
|
7177
7187
|
_dom4.select();
|
|
7178
7188
|
_dom4.focus();
|
|
@@ -7180,10 +7190,11 @@ var InputElement = function InputElement(_ref) {
|
|
|
7180
7190
|
}
|
|
7181
7191
|
_dom4 = null;
|
|
7182
7192
|
} else if (e.keyCode === 38) {
|
|
7183
|
-
var
|
|
7193
|
+
var _parentDom$children3, _parentDom$children3$;
|
|
7184
7194
|
e.stopPropagation();
|
|
7185
7195
|
e.preventDefault();
|
|
7186
|
-
var
|
|
7196
|
+
var _parentDom = currentLineDom === null || currentLineDom === void 0 ? void 0 : currentLineDom.parentNode;
|
|
7197
|
+
var dom1 = _parentDom === null || _parentDom === void 0 ? void 0 : (_parentDom$children3 = _parentDom.children) === null || _parentDom$children3 === void 0 ? void 0 : (_parentDom$children3$ = _parentDom$children3[index]) === null || _parentDom$children3$ === void 0 ? void 0 : _parentDom$children3$.getElementsByTagName('input')[currentIndex];
|
|
7187
7198
|
if (dom1) {
|
|
7188
7199
|
// dom1.value=""
|
|
7189
7200
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7216,16 +7227,14 @@ var InputElement = function InputElement(_ref) {
|
|
|
7216
7227
|
setData(newData);
|
|
7217
7228
|
},
|
|
7218
7229
|
onKeyDown: function onKeyDown(e) {
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
// document.getElementById("first-query")?.focus()
|
|
7222
|
-
// }
|
|
7230
|
+
var _e$target2, _e$target2$parentNode, _e$target2$parentNode2, _e$target2$parentNode3;
|
|
7231
|
+
var currentLineDom = (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : (_e$target2$parentNode = _e$target2.parentNode) === null || _e$target2$parentNode === void 0 ? void 0 : (_e$target2$parentNode2 = _e$target2$parentNode.parentNode) === null || _e$target2$parentNode2 === void 0 ? void 0 : (_e$target2$parentNode3 = _e$target2$parentNode2.parentNode) === null || _e$target2$parentNode3 === void 0 ? void 0 : _e$target2$parentNode3.parentNode;
|
|
7223
7232
|
if (e.keyCode === 8 && e.ctrlKey && index) {
|
|
7224
|
-
var
|
|
7233
|
+
var _currentLineDom$getEl2;
|
|
7225
7234
|
message$1.success('删除当前行');
|
|
7226
7235
|
e.stopPropagation();
|
|
7227
7236
|
e.preventDefault();
|
|
7228
|
-
var dom = (
|
|
7237
|
+
var dom = currentLineDom === null || currentLineDom === void 0 ? void 0 : (_currentLineDom$getEl2 = currentLineDom.getElementsByTagName('input')) === null || _currentLineDom$getEl2 === void 0 ? void 0 : _currentLineDom$getEl2[currentIndex];
|
|
7229
7238
|
if (dom) {
|
|
7230
7239
|
dom.select();
|
|
7231
7240
|
dom.focus();
|
|
@@ -7237,11 +7246,10 @@ var InputElement = function InputElement(_ref) {
|
|
|
7237
7246
|
}));
|
|
7238
7247
|
}
|
|
7239
7248
|
if (e.keyCode === 37 && e.shiftKey) {
|
|
7240
|
-
var _e$nativeEvent$path$7;
|
|
7241
7249
|
// 左滑动
|
|
7242
7250
|
e.stopPropagation();
|
|
7243
7251
|
e.preventDefault();
|
|
7244
|
-
var _dom5 =
|
|
7252
|
+
var _dom5 = currentLineDom === null || currentLineDom === void 0 ? void 0 : currentLineDom.getElementsByTagName('input')[currentIndex - 1];
|
|
7245
7253
|
if (_dom5) {
|
|
7246
7254
|
_dom5.select();
|
|
7247
7255
|
_dom5.focus();
|
|
@@ -7250,11 +7258,10 @@ var InputElement = function InputElement(_ref) {
|
|
|
7250
7258
|
_dom5 = null;
|
|
7251
7259
|
}
|
|
7252
7260
|
if (e.keyCode === 39 && e.shiftKey) {
|
|
7253
|
-
var _e$nativeEvent$path$8;
|
|
7254
7261
|
// 右滑
|
|
7255
7262
|
e.stopPropagation();
|
|
7256
7263
|
e.preventDefault();
|
|
7257
|
-
var _dom6 =
|
|
7264
|
+
var _dom6 = currentLineDom === null || currentLineDom === void 0 ? void 0 : currentLineDom.getElementsByTagName('input')[currentIndex + 1];
|
|
7258
7265
|
if (_dom6) {
|
|
7259
7266
|
_dom6.select();
|
|
7260
7267
|
_dom6.focus();
|
|
@@ -7263,11 +7270,12 @@ var InputElement = function InputElement(_ref) {
|
|
|
7263
7270
|
_dom6 = null;
|
|
7264
7271
|
}
|
|
7265
7272
|
if (e.keyCode === 40) {
|
|
7266
|
-
var
|
|
7273
|
+
var _parentDom$children4, _parentDom$children5;
|
|
7267
7274
|
// 向下
|
|
7268
7275
|
e.stopPropagation();
|
|
7269
7276
|
e.preventDefault();
|
|
7270
|
-
var
|
|
7277
|
+
var parentDom = currentLineDom === null || currentLineDom === void 0 ? void 0 : currentLineDom.parentNode;
|
|
7278
|
+
var _dom7 = parentDom === null || parentDom === void 0 ? void 0 : (_parentDom$children4 = parentDom.children) === null || _parentDom$children4 === void 0 ? void 0 : (_parentDom$children5 = _parentDom$children4[index + 2]) === null || _parentDom$children5 === void 0 ? void 0 : _parentDom$children5.getElementsByTagName('input')[currentIndex];
|
|
7271
7279
|
if (_dom7) {
|
|
7272
7280
|
_dom7.select();
|
|
7273
7281
|
_dom7.focus();
|
|
@@ -7275,10 +7283,11 @@ var InputElement = function InputElement(_ref) {
|
|
|
7275
7283
|
}
|
|
7276
7284
|
_dom7 = null;
|
|
7277
7285
|
} else if (e.keyCode === 38) {
|
|
7278
|
-
var
|
|
7286
|
+
var _parentDom2$children, _parentDom2$children$;
|
|
7279
7287
|
e.stopPropagation();
|
|
7280
7288
|
e.preventDefault();
|
|
7281
|
-
var
|
|
7289
|
+
var _parentDom2 = currentLineDom === null || currentLineDom === void 0 ? void 0 : currentLineDom.parentNode;
|
|
7290
|
+
var dom1 = _parentDom2 === null || _parentDom2 === void 0 ? void 0 : (_parentDom2$children = _parentDom2.children) === null || _parentDom2$children === void 0 ? void 0 : (_parentDom2$children$ = _parentDom2$children[index]) === null || _parentDom2$children$ === void 0 ? void 0 : _parentDom2$children$.getElementsByTagName('input')[currentIndex];
|
|
7282
7291
|
if (dom1) {
|
|
7283
7292
|
// dom1.value=""
|
|
7284
7293
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -7344,23 +7353,21 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
7344
7353
|
}, text);
|
|
7345
7354
|
},
|
|
7346
7355
|
dataIndex: 'name'
|
|
7347
|
-
},
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
}
|
|
7363
|
-
}, {
|
|
7356
|
+
},
|
|
7357
|
+
// {
|
|
7358
|
+
// title: '图片',
|
|
7359
|
+
// dataIndex: 'itemUrl',
|
|
7360
|
+
// width: 200,
|
|
7361
|
+
// ellipsis: {
|
|
7362
|
+
// showTitle: false,
|
|
7363
|
+
// },
|
|
7364
|
+
// render: (text: any,record: any) => (
|
|
7365
|
+
// <Tooltip placement="topLeft" title={text}>
|
|
7366
|
+
// {tableColumnsImage(getSkuImg(record),{ width: 28, height: 28 })}
|
|
7367
|
+
// </Tooltip>
|
|
7368
|
+
// ),
|
|
7369
|
+
// },
|
|
7370
|
+
{
|
|
7364
7371
|
title: '单位',
|
|
7365
7372
|
dataIndex: 'selectUnitCode',
|
|
7366
7373
|
width: 100,
|
|
@@ -7562,7 +7569,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
7562
7569
|
_context.next = 6;
|
|
7563
7570
|
break;
|
|
7564
7571
|
}
|
|
7565
|
-
message$1.warning('
|
|
7572
|
+
message$1.warning('录入商品不存在');
|
|
7566
7573
|
return _context.abrupt("return");
|
|
7567
7574
|
case 6:
|
|
7568
7575
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
@@ -7704,6 +7711,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
7704
7711
|
},
|
|
7705
7712
|
ref: tableRef,
|
|
7706
7713
|
dataSource: data,
|
|
7714
|
+
key: data.length,
|
|
7707
7715
|
columns: showSelectedCol,
|
|
7708
7716
|
pagination: false,
|
|
7709
7717
|
rowClassName: 'row-class'
|
|
@@ -12191,7 +12199,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
12191
12199
|
})));
|
|
12192
12200
|
};
|
|
12193
12201
|
|
|
12194
|
-
var css_248z$b = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width:
|
|
12202
|
+
var css_248z$b = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn:first-child {\n margin-right: 524px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 36px !important;\n line-height: 36px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.global_tab_nav_style {\n top: 2px !important;\n}\n.row-dragging {\n background: #fafafa;\n border: 1px solid #ccc;\n z-index: 10000;\n}\n.row-dragging td {\n padding: 7px 16px;\n display: none;\n}\n.row-dragging td:first-child {\n display: inline-block;\n}\n.row-dragging .drag-visible {\n visibility: visible;\n}\n";
|
|
12195
12203
|
styleInject(css_248z$b);
|
|
12196
12204
|
|
|
12197
12205
|
var _excluded$8 = ["className", "style"];
|
|
@@ -12229,7 +12237,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12229
12237
|
tableCode = _this$props.tableCode,
|
|
12230
12238
|
appRequestConfig = _this$props.appRequestConfig;
|
|
12231
12239
|
if (!tableCode) return;
|
|
12232
|
-
var configvalue = config.map(function (item) {
|
|
12240
|
+
var configvalue = config ? config.map(function (item) {
|
|
12233
12241
|
return {
|
|
12234
12242
|
key: item.key,
|
|
12235
12243
|
dataIndex: item.dataIndex,
|
|
@@ -12237,13 +12245,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12237
12245
|
hidden: item.hidden,
|
|
12238
12246
|
fixed: item.fixed
|
|
12239
12247
|
};
|
|
12240
|
-
});
|
|
12248
|
+
}) : '';
|
|
12241
12249
|
requestUtil({
|
|
12242
12250
|
url: handleRequestUrl('/user', '/appConfig/saveUserOrder', appRequestConfig),
|
|
12243
12251
|
method: 'POST',
|
|
12244
12252
|
data: {
|
|
12245
12253
|
"code": tableCode,
|
|
12246
|
-
"detail": JSON.stringify(configvalue)
|
|
12254
|
+
"detail": configvalue ? JSON.stringify(configvalue) : ''
|
|
12247
12255
|
}
|
|
12248
12256
|
}).then(function (res) {
|
|
12249
12257
|
if (judgeIsRequestSuccess(res === null || res === void 0 ? void 0 : res.data)) {
|
|
@@ -12254,20 +12262,45 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12254
12262
|
});
|
|
12255
12263
|
};
|
|
12256
12264
|
_this.patchConfigToLocalstorage = function (configvalue, tableCode) {
|
|
12265
|
+
var _this$props2 = _this.props,
|
|
12266
|
+
setShowColumns = _this$props2.setShowColumns,
|
|
12267
|
+
_this$props2$datasour = _this$props2.datasource,
|
|
12268
|
+
datasource = _this$props2$datasour === void 0 ? [] : _this$props2$datasour;
|
|
12269
|
+
var sortDataSource = _this.state.sortDataSource;
|
|
12257
12270
|
var config = localStorage.getItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION) || '[]';
|
|
12258
12271
|
var configArray = JSON.parse(config);
|
|
12259
12272
|
var currentSetting = configArray.filter(function (item) {
|
|
12260
12273
|
return item.code === tableCode;
|
|
12261
12274
|
});
|
|
12262
12275
|
if (currentSetting.length) {
|
|
12263
|
-
currentSetting[0].detail = JSON.stringify(configvalue);
|
|
12276
|
+
currentSetting[0].detail = configvalue ? JSON.stringify(configvalue) : '';
|
|
12264
12277
|
} else {
|
|
12265
12278
|
configArray.push({
|
|
12266
12279
|
"code": tableCode,
|
|
12267
|
-
"detail": JSON.stringify(configvalue)
|
|
12280
|
+
"detail": configvalue ? JSON.stringify(configvalue) : ''
|
|
12268
12281
|
});
|
|
12269
12282
|
}
|
|
12270
12283
|
localStorage.setItem(ENUM.BROWSER_CACHE.COLUMN_CONDITION, JSON.stringify(configArray));
|
|
12284
|
+
_this.setState({
|
|
12285
|
+
visible: false
|
|
12286
|
+
});
|
|
12287
|
+
if (configvalue) {
|
|
12288
|
+
setShowColumns(_toConsumableArray(sortDataSource));
|
|
12289
|
+
} else {
|
|
12290
|
+
_this.setState({
|
|
12291
|
+
dataSource: _toConsumableArray(datasource.map(function (item) {
|
|
12292
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
12293
|
+
hidden: false
|
|
12294
|
+
});
|
|
12295
|
+
})),
|
|
12296
|
+
sortDataSource: _toConsumableArray(datasource.map(function (item) {
|
|
12297
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
12298
|
+
hidden: false
|
|
12299
|
+
});
|
|
12300
|
+
}))
|
|
12301
|
+
});
|
|
12302
|
+
setShowColumns(_toConsumableArray(datasource));
|
|
12303
|
+
}
|
|
12271
12304
|
};
|
|
12272
12305
|
_this.setInitValue = function (datasource) {
|
|
12273
12306
|
var _this$props$showColum = _this.props.showColumns,
|
|
@@ -12319,7 +12352,20 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12319
12352
|
title: '列名称',
|
|
12320
12353
|
dataIndex: 'title',
|
|
12321
12354
|
className: 'drag-visible',
|
|
12322
|
-
width: 100
|
|
12355
|
+
width: 100,
|
|
12356
|
+
render: function render(text, record) {
|
|
12357
|
+
return /*#__PURE__*/React$1.createElement("span", {
|
|
12358
|
+
style: {
|
|
12359
|
+
width: '100%',
|
|
12360
|
+
height: '36px',
|
|
12361
|
+
lineHeight: '36px',
|
|
12362
|
+
overflow: 'hidden',
|
|
12363
|
+
textOverflow: 'ellipsis',
|
|
12364
|
+
whiteSpace: 'nowrap'
|
|
12365
|
+
},
|
|
12366
|
+
title: text
|
|
12367
|
+
}, text);
|
|
12368
|
+
}
|
|
12323
12369
|
}, {
|
|
12324
12370
|
title: '列首',
|
|
12325
12371
|
dataIndex: 'fixedLeft',
|
|
@@ -12538,9 +12584,9 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12538
12584
|
var oldIndex = _ref.oldIndex,
|
|
12539
12585
|
newIndex = _ref.newIndex;
|
|
12540
12586
|
var sortDataSource = _this.state.sortDataSource;
|
|
12541
|
-
var _this$
|
|
12542
|
-
value = _this$
|
|
12543
|
-
setValue = _this$
|
|
12587
|
+
var _this$props3 = _this.props,
|
|
12588
|
+
value = _this$props3.value,
|
|
12589
|
+
setValue = _this$props3.setValue;
|
|
12544
12590
|
// if (sortDataSource[oldIndex]['fixed']) {
|
|
12545
12591
|
// message.warning('固定列不可移动');
|
|
12546
12592
|
// return;
|
|
@@ -12636,6 +12682,9 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12636
12682
|
datasource = _this$props$datasourc2 === void 0 ? [] : _this$props$datasourc2;
|
|
12637
12683
|
_this.setInitValue(datasource);
|
|
12638
12684
|
};
|
|
12685
|
+
_this.handleResetSetting = function () {
|
|
12686
|
+
_this.patchUserColumnConfig('');
|
|
12687
|
+
};
|
|
12639
12688
|
_this.onSearch = function (e) {
|
|
12640
12689
|
_this.setState({
|
|
12641
12690
|
searchDataSource: e.target.value
|
|
@@ -12665,8 +12714,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12665
12714
|
return _createClass(SortableTable, [{
|
|
12666
12715
|
key: "componentWillReceiveProps",
|
|
12667
12716
|
value: function componentWillReceiveProps(nextProps) {
|
|
12668
|
-
var _this$
|
|
12669
|
-
if (this.isColumnsChange((_this$
|
|
12717
|
+
var _this$props4;
|
|
12718
|
+
if (this.isColumnsChange((_this$props4 = this.props) === null || _this$props4 === void 0 ? void 0 : _this$props4.datasource, nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource)) {
|
|
12670
12719
|
this.setInitValue((nextProps === null || nextProps === void 0 ? void 0 : nextProps.datasource) || []);
|
|
12671
12720
|
}
|
|
12672
12721
|
}
|
|
@@ -12700,17 +12749,31 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12700
12749
|
visible: visible,
|
|
12701
12750
|
onOk: this.handleOk,
|
|
12702
12751
|
onCancel: this.handleCancel,
|
|
12703
|
-
footer: [/*#__PURE__*/React$1.createElement(Button, {
|
|
12752
|
+
footer: [/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, {
|
|
12704
12753
|
key: "back",
|
|
12705
|
-
onClick: this.handleReset
|
|
12754
|
+
onClick: this.handleReset,
|
|
12755
|
+
style: {
|
|
12756
|
+
marginRight: 0
|
|
12757
|
+
}
|
|
12706
12758
|
}, "\u6062\u590D\u9ED8\u8BA4"), /*#__PURE__*/React$1.createElement(Button, {
|
|
12759
|
+
key: "back",
|
|
12760
|
+
onClick: this.handleResetSetting
|
|
12761
|
+
}, "\u91CD\u7F6E\u8BBE\u7F6E"), /*#__PURE__*/React$1.createElement("span", {
|
|
12762
|
+
style: {
|
|
12763
|
+
fontSize: '12px',
|
|
12764
|
+
color: '8A8F8D'
|
|
12765
|
+
}
|
|
12766
|
+
}, "\uFF08\u5217\u8868\u5B57\u6BB5\u53D8\u66F4\u4F1A\u5F71\u54CD\u5217\u8BBE\u7F6E\u529F\u80FD\uFF0C\u53D8\u66F4\u540E\u8BF7\u70B9\u51FB\u91CD\u7F6E\u7136\u540E\u91CD\u65B0\u8BBE\u7F6E\uFF09")), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, {
|
|
12707
12767
|
key: "submit",
|
|
12708
|
-
onClick: this.
|
|
12768
|
+
onClick: this.handleCancel,
|
|
12769
|
+
style: {
|
|
12770
|
+
marginRight: 0
|
|
12771
|
+
}
|
|
12709
12772
|
}, "\u53D6\u6D88"), /*#__PURE__*/React$1.createElement(Button, {
|
|
12710
12773
|
key: "submit",
|
|
12711
12774
|
type: "primary",
|
|
12712
12775
|
onClick: this.handleOk
|
|
12713
|
-
}, "\u786E\u8BA4")]
|
|
12776
|
+
}, "\u786E\u8BA4"))]
|
|
12714
12777
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
12715
12778
|
className: 'sort_table'
|
|
12716
12779
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -12851,16 +12914,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
12851
12914
|
_this.setInitialShowColumn = function (columns) {
|
|
12852
12915
|
// 获取当前列表定义数据
|
|
12853
12916
|
var columnConfig = _this.getConfigFromlocalstorage();
|
|
12854
|
-
var showColumns =
|
|
12855
|
-
var inner = columns.filter(function (innerItem) {
|
|
12856
|
-
return innerItem.dataIndex && innerItem.dataIndex === item.dataIndex || innerItem.key && innerItem.key === item.key;
|
|
12857
|
-
})[0];
|
|
12858
|
-
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
12859
|
-
}).filter(function (item) {
|
|
12860
|
-
return !item.hidden;
|
|
12861
|
-
}) : (columns || []).filter(function (item) {
|
|
12862
|
-
return !item.hidden;
|
|
12863
|
-
});
|
|
12917
|
+
var showColumns = getShowColumns(columns, columnConfig);
|
|
12864
12918
|
_this.setState({
|
|
12865
12919
|
showColumns: showColumns
|
|
12866
12920
|
});
|
|
@@ -13097,16 +13151,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13097
13151
|
_this.setInitialShowColumn = function (columns) {
|
|
13098
13152
|
// 获取当前列表定义数据
|
|
13099
13153
|
var columnConfig = _this.getConfigFromlocalstorage();
|
|
13100
|
-
var showColumns =
|
|
13101
|
-
var inner = columns.filter(function (innerItem) {
|
|
13102
|
-
return innerItem.dataIndex && innerItem.dataIndex === item.dataIndex || innerItem.key && innerItem.key === item.key;
|
|
13103
|
-
})[0];
|
|
13104
|
-
return _objectSpread2(_objectSpread2({}, inner), item);
|
|
13105
|
-
}).filter(function (item) {
|
|
13106
|
-
return !item.hidden;
|
|
13107
|
-
}) : (columns || []).filter(function (item) {
|
|
13108
|
-
return !item.hidden;
|
|
13109
|
-
});
|
|
13154
|
+
var showColumns = getShowColumns(columns, columnConfig);
|
|
13110
13155
|
_this.setState({
|
|
13111
13156
|
showColumns: showColumns
|
|
13112
13157
|
});
|
|
@@ -13841,7 +13886,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
13841
13886
|
return true;
|
|
13842
13887
|
});
|
|
13843
13888
|
|
|
13844
|
-
var css_248z$f = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width:
|
|
13889
|
+
var css_248z$f = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 10px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper div.ant-modal-header {\n width: 820px;\n height: 64px;\n background: #ffffff;\n padding: 20px;\n border: 0px;\n}\n.sort_table_wrapper div.ant-modal-header div.ant-modal-title {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 24px;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 0 20px !important;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 32px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n height: 70px;\n border: 0;\n padding: 20px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 34px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 14px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 36px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 36px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 36px !important;\n line-height: 36px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 34px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n";
|
|
13845
13890
|
styleInject(css_248z$f);
|
|
13846
13891
|
|
|
13847
13892
|
var _excluded$e = ["className", "style"];
|
|
@@ -14004,7 +14049,20 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
14004
14049
|
title: '列名称',
|
|
14005
14050
|
dataIndex: 'title',
|
|
14006
14051
|
className: 'drag-visible',
|
|
14007
|
-
width: 100
|
|
14052
|
+
width: 100,
|
|
14053
|
+
render: function render(text, record) {
|
|
14054
|
+
return /*#__PURE__*/React$1.createElement("span", {
|
|
14055
|
+
style: {
|
|
14056
|
+
width: '100%',
|
|
14057
|
+
height: '36px',
|
|
14058
|
+
lineHeight: '36px',
|
|
14059
|
+
overflow: 'hidden',
|
|
14060
|
+
textOverflow: 'ellipsis',
|
|
14061
|
+
whiteSpace: 'nowrap'
|
|
14062
|
+
},
|
|
14063
|
+
title: text
|
|
14064
|
+
}, text);
|
|
14065
|
+
}
|
|
14008
14066
|
}, {
|
|
14009
14067
|
title: '列首',
|
|
14010
14068
|
dataIndex: 'fixedLeft',
|
|
@@ -18373,7 +18431,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
18373
18431
|
});
|
|
18374
18432
|
return;
|
|
18375
18433
|
}
|
|
18376
|
-
if (node.path === '/' || getLimitedMenuPath(node) || getGenerateDocs(node)) {
|
|
18434
|
+
if (node.path === '/' || getLimitedMenuPath(node) || getGenerateDocs(node) || node.noAuth) {
|
|
18377
18435
|
treeList.push({
|
|
18378
18436
|
tab: node.locale,
|
|
18379
18437
|
key: node.path,
|