@bit-sun/business-component 4.2.1-alpha.4-aiwei → 4.2.1-alpha.5-aiwei
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/index.esm.js
CHANGED
|
@@ -5514,6 +5514,12 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5514
5514
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5515
5515
|
modalSearched = _useState44[0],
|
|
5516
5516
|
setModalSearched = _useState44[1];
|
|
5517
|
+
var _useState45 = useState(undefined),
|
|
5518
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
5519
|
+
overScrollY = _useState46[0],
|
|
5520
|
+
setOverScrollY = _useState46[1];
|
|
5521
|
+
var topFormRef = useRef(null);
|
|
5522
|
+
var bottomWrapRef = useRef(null);
|
|
5517
5523
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5518
5524
|
setItems(list);
|
|
5519
5525
|
setItemsTotal(total);
|
|
@@ -5749,6 +5755,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5749
5755
|
setSearchValue('');
|
|
5750
5756
|
setModalSearched(false);
|
|
5751
5757
|
setIsModalVisible(true);
|
|
5758
|
+
setTimeout(function () {
|
|
5759
|
+
return computeScrollY();
|
|
5760
|
+
}, 0);
|
|
5752
5761
|
// 回显
|
|
5753
5762
|
if (value) {
|
|
5754
5763
|
if (selectMode) {
|
|
@@ -5865,6 +5874,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5865
5874
|
var handleCancel = function handleCancel() {
|
|
5866
5875
|
clearModalTable();
|
|
5867
5876
|
setIsModalVisible(false);
|
|
5877
|
+
setOverScrollY(undefined);
|
|
5868
5878
|
};
|
|
5869
5879
|
var refreshItems = function refreshItems() {
|
|
5870
5880
|
// 查看是否存在关联值 如果有关联值 就查询 没有就不能查询
|
|
@@ -5902,6 +5912,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5902
5912
|
};
|
|
5903
5913
|
var toggleCollapsed = function toggleCollapsed() {
|
|
5904
5914
|
setCollapsed(!collapsed);
|
|
5915
|
+
setTimeout(function () {
|
|
5916
|
+
return computeScrollY();
|
|
5917
|
+
}, 0);
|
|
5905
5918
|
};
|
|
5906
5919
|
var handleTableChange = function handleTableChange(pagination) {
|
|
5907
5920
|
getData(_objectSpread2(_objectSpread2({}, tableFormParams), {}, {
|
|
@@ -6181,12 +6194,12 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6181
6194
|
};
|
|
6182
6195
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6183
6196
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
6184
|
-
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28;
|
|
6185
|
-
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6197
|
+
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28;
|
|
6198
|
+
var oSY = overScrollY || "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6186
6199
|
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
6187
6200
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6188
6201
|
style: {
|
|
6189
|
-
height:
|
|
6202
|
+
height: 'auto'
|
|
6190
6203
|
}
|
|
6191
6204
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
6192
6205
|
bordered: true,
|
|
@@ -6465,7 +6478,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6465
6478
|
}, (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalProps) || {}), /*#__PURE__*/React$1.createElement("div", {
|
|
6466
6479
|
className: 'search_select_wrapper'
|
|
6467
6480
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
6468
|
-
className: 'search_select_wrapper_topForm'
|
|
6481
|
+
className: 'search_select_wrapper_topForm',
|
|
6482
|
+
ref: topFormRef
|
|
6469
6483
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
6470
6484
|
className: 'select_list_columns'
|
|
6471
6485
|
}, /*#__PURE__*/React$1.createElement(Form, {
|
|
@@ -6502,7 +6516,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6502
6516
|
},
|
|
6503
6517
|
src: zhankaitiaojian
|
|
6504
6518
|
}) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null)))))))), /*#__PURE__*/React$1.createElement("div", {
|
|
6505
|
-
className: 'search_select_wrapper_bottomTable'
|
|
6519
|
+
className: 'search_select_wrapper_bottomTable',
|
|
6520
|
+
ref: bottomWrapRef
|
|
6506
6521
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
6507
6522
|
className: selectMode ? 'search_select_wrapper_bottomTable_wrapLeft2' : 'search_select_wrapper_bottomTable_wrapLeft1'
|
|
6508
6523
|
}, /*#__PURE__*/React$1.createElement(Tabs, {
|
|
@@ -6518,6 +6533,32 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6518
6533
|
}, "\u6E05\u7A7A\u5DF2\u9009")
|
|
6519
6534
|
})) : null)))));
|
|
6520
6535
|
});
|
|
6536
|
+
var computeScrollY = function computeScrollY() {
|
|
6537
|
+
try {
|
|
6538
|
+
var _topFormRef$current, _bottomWrapRef$curren;
|
|
6539
|
+
var bodyEl = document.querySelector('.search_select_modal_wrapper .ant-modal-body');
|
|
6540
|
+
var bodyH = (bodyEl === null || bodyEl === void 0 ? void 0 : bodyEl.clientHeight) || 0;
|
|
6541
|
+
var topH = ((_topFormRef$current = topFormRef.current) === null || _topFormRef$current === void 0 ? void 0 : _topFormRef$current.clientHeight) || 0;
|
|
6542
|
+
var navEl = (_bottomWrapRef$curren = bottomWrapRef.current) === null || _bottomWrapRef$curren === void 0 ? void 0 : _bottomWrapRef$curren.querySelector('.ant-tabs-nav');
|
|
6543
|
+
var navH = (navEl === null || navEl === void 0 ? void 0 : navEl.offsetHeight) || 0;
|
|
6544
|
+
var extra = 30; // paddings/margins buffer
|
|
6545
|
+
var tableH = Math.max(160, bodyH - topH - navH - extra);
|
|
6546
|
+
setOverScrollY(tableH);
|
|
6547
|
+
} catch (e) {
|
|
6548
|
+
// ignore
|
|
6549
|
+
}
|
|
6550
|
+
};
|
|
6551
|
+
useEffect(function () {
|
|
6552
|
+
if (!isModalVisible) return;
|
|
6553
|
+
computeScrollY();
|
|
6554
|
+
var onResize = function onResize() {
|
|
6555
|
+
return computeScrollY();
|
|
6556
|
+
};
|
|
6557
|
+
window.addEventListener('resize', onResize);
|
|
6558
|
+
return function () {
|
|
6559
|
+
window.removeEventListener('resize', onResize);
|
|
6560
|
+
};
|
|
6561
|
+
}, [isModalVisible, collapsed, tableData, tablePagination]);
|
|
6521
6562
|
|
|
6522
6563
|
var css_248z$8 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper_select_quick {\n margin: 0;\n}\n.react-resizable {\n position: relative;\n background-clip: padding-box;\n}\n.react-resizable-handle {\n position: absolute;\n width: 10px;\n height: 100%;\n bottom: 0;\n right: -5px;\n cursor: col-resize;\n z-index: 1;\n}\n";
|
|
6523
6564
|
styleInject(css_248z$8);
|
|
@@ -11342,6 +11383,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11342
11383
|
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11343
11384
|
'qp-status-eq': 1
|
|
11344
11385
|
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11386
|
+
var _x$, _x$$data$, _x$$data$$channelInfo;
|
|
11387
|
+
debugger;
|
|
11388
|
+
// 战区限制一级数据
|
|
11389
|
+
var newData1 = [];
|
|
11390
|
+
(_x$ = x[0]) === null || _x$ === void 0 ? void 0 : (_x$$data$ = _x$.data[0]) === null || _x$$data$ === void 0 ? void 0 : (_x$$data$$channelInfo = _x$$data$.channelInfoSon) === null || _x$$data$$channelInfo === void 0 ? void 0 : _x$$data$$channelInfo.forEach(function (item) {
|
|
11391
|
+
newData1.push({
|
|
11392
|
+
code: item.code,
|
|
11393
|
+
name: item.name
|
|
11394
|
+
});
|
|
11395
|
+
});
|
|
11396
|
+
x[0].data = newData1;
|
|
11345
11397
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11346
11398
|
return data['parentCode'] === '0';
|
|
11347
11399
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -11467,7 +11519,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11467
11519
|
},
|
|
11468
11520
|
width: 100
|
|
11469
11521
|
}, {
|
|
11470
|
-
title: '
|
|
11522
|
+
title: '战区',
|
|
11471
11523
|
dataIndex: 'channelName',
|
|
11472
11524
|
defaultSort: 4,
|
|
11473
11525
|
width: 100
|
|
@@ -11550,7 +11602,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11550
11602
|
}, {
|
|
11551
11603
|
name: 'qp-channelCode-in',
|
|
11552
11604
|
type: 'treeSelect',
|
|
11553
|
-
label: '
|
|
11605
|
+
label: '战区',
|
|
11554
11606
|
field: {
|
|
11555
11607
|
type: 'treeSelect',
|
|
11556
11608
|
props: {
|
|
@@ -11586,7 +11638,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11586
11638
|
'qp-isMain-eq': 1,
|
|
11587
11639
|
'qp-type-in': '1,2'
|
|
11588
11640
|
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11641
|
+
var _x$2, _x$2$data$, _x$2$data$$channelInf;
|
|
11589
11642
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11643
|
+
var newData1 = [];
|
|
11644
|
+
(_x$2 = x[1]) === null || _x$2 === void 0 ? void 0 : (_x$2$data$ = _x$2.data[0]) === null || _x$2$data$ === void 0 ? void 0 : (_x$2$data$$channelInf = _x$2$data$.channelInfoSon) === null || _x$2$data$$channelInf === void 0 ? void 0 : _x$2$data$$channelInf.forEach(function (item) {
|
|
11645
|
+
newData1.push({
|
|
11646
|
+
code: item.code,
|
|
11647
|
+
name: item.name
|
|
11648
|
+
});
|
|
11649
|
+
});
|
|
11650
|
+
x[1].data = newData1;
|
|
11590
11651
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11591
11652
|
return data['parentCode'] === '0';
|
|
11592
11653
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12389,6 +12450,15 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12389
12450
|
currentPage: 1,
|
|
12390
12451
|
'ctl-withAuth': true
|
|
12391
12452
|
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
|
|
12453
|
+
var _x$3, _x$3$data$, _x$3$data$$channelInf;
|
|
12454
|
+
var newData1 = [];
|
|
12455
|
+
(_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
|
|
12456
|
+
newData1.push({
|
|
12457
|
+
code: item.code,
|
|
12458
|
+
name: item.name
|
|
12459
|
+
});
|
|
12460
|
+
});
|
|
12461
|
+
x[1].data = newData1;
|
|
12392
12462
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12393
12463
|
return data['parentCode'] === '0';
|
|
12394
12464
|
}; // 所属销售渠道 树节点不能点判断
|
package/dist/index.js
CHANGED
|
@@ -4825,7 +4825,7 @@ function ToCDB$1(selectStr) {
|
|
|
4825
4825
|
return tmp;
|
|
4826
4826
|
}
|
|
4827
4827
|
|
|
4828
|
-
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow:
|
|
4828
|
+
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: auto;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapRight .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4829
4829
|
styleInject(css_248z$6);
|
|
4830
4830
|
|
|
4831
4831
|
var zhankaitiaojian = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -11365,6 +11365,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11365
11365
|
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
11366
11366
|
'qp-status-eq': 1
|
|
11367
11367
|
}, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
|
|
11368
|
+
var _x$, _x$$data$, _x$$data$$channelInfo;
|
|
11369
|
+
debugger;
|
|
11370
|
+
// 战区限制一级数据
|
|
11371
|
+
var newData1 = [];
|
|
11372
|
+
(_x$ = x[0]) === null || _x$ === void 0 ? void 0 : (_x$$data$ = _x$.data[0]) === null || _x$$data$ === void 0 ? void 0 : (_x$$data$$channelInfo = _x$$data$.channelInfoSon) === null || _x$$data$$channelInfo === void 0 ? void 0 : _x$$data$$channelInfo.forEach(function (item) {
|
|
11373
|
+
newData1.push({
|
|
11374
|
+
code: item.code,
|
|
11375
|
+
name: item.name
|
|
11376
|
+
});
|
|
11377
|
+
});
|
|
11378
|
+
x[0].data = newData1;
|
|
11368
11379
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11369
11380
|
return data['parentCode'] === '0';
|
|
11370
11381
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -11490,7 +11501,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11490
11501
|
},
|
|
11491
11502
|
width: 100
|
|
11492
11503
|
}, {
|
|
11493
|
-
title: '
|
|
11504
|
+
title: '战区',
|
|
11494
11505
|
dataIndex: 'channelName',
|
|
11495
11506
|
defaultSort: 4,
|
|
11496
11507
|
width: 100
|
|
@@ -11573,7 +11584,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11573
11584
|
}, {
|
|
11574
11585
|
name: 'qp-channelCode-in',
|
|
11575
11586
|
type: 'treeSelect',
|
|
11576
|
-
label: '
|
|
11587
|
+
label: '战区',
|
|
11577
11588
|
field: {
|
|
11578
11589
|
type: 'treeSelect',
|
|
11579
11590
|
props: {
|
|
@@ -11609,7 +11620,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11609
11620
|
'qp-isMain-eq': 1,
|
|
11610
11621
|
'qp-type-in': '1,2'
|
|
11611
11622
|
}, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
|
|
11623
|
+
var _x$2, _x$2$data$, _x$2$data$$channelInf;
|
|
11612
11624
|
formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
|
|
11625
|
+
var newData1 = [];
|
|
11626
|
+
(_x$2 = x[1]) === null || _x$2 === void 0 ? void 0 : (_x$2$data$ = _x$2.data[0]) === null || _x$2$data$ === void 0 ? void 0 : (_x$2$data$$channelInf = _x$2$data$.channelInfoSon) === null || _x$2$data$$channelInf === void 0 ? void 0 : _x$2$data$$channelInf.forEach(function (item) {
|
|
11627
|
+
newData1.push({
|
|
11628
|
+
code: item.code,
|
|
11629
|
+
name: item.name
|
|
11630
|
+
});
|
|
11631
|
+
});
|
|
11632
|
+
x[1].data = newData1;
|
|
11613
11633
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11614
11634
|
return data['parentCode'] === '0';
|
|
11615
11635
|
}; // 所属销售渠道 树节点不能点判断
|
|
@@ -12412,6 +12432,15 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12412
12432
|
currentPage: 1,
|
|
12413
12433
|
'ctl-withAuth': true
|
|
12414
12434
|
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
|
|
12435
|
+
var _x$3, _x$3$data$, _x$3$data$$channelInf;
|
|
12436
|
+
var newData1 = [];
|
|
12437
|
+
(_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
|
|
12438
|
+
newData1.push({
|
|
12439
|
+
code: item.code,
|
|
12440
|
+
name: item.name
|
|
12441
|
+
});
|
|
12442
|
+
});
|
|
12443
|
+
x[1].data = newData1;
|
|
12415
12444
|
var channelDisabledJude = function channelDisabledJude(data) {
|
|
12416
12445
|
return data['parentCode'] === '0';
|
|
12417
12446
|
}; // 所属销售渠道 树节点不能点判断
|
package/package.json
CHANGED
|
@@ -1351,6 +1351,16 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1351
1351
|
'qp-status-eq': 1,
|
|
1352
1352
|
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1353
1353
|
]).then((x: any)=>{
|
|
1354
|
+
debugger
|
|
1355
|
+
// 战区限制一级数据
|
|
1356
|
+
const newData1 = [];
|
|
1357
|
+
x[0]?.data[0]?.channelInfoSon?.forEach((item: any) => {
|
|
1358
|
+
newData1.push({
|
|
1359
|
+
code: item.code,
|
|
1360
|
+
name: item.name
|
|
1361
|
+
})
|
|
1362
|
+
})
|
|
1363
|
+
x[0].data = newData1;
|
|
1354
1364
|
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1355
1365
|
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
1356
1366
|
formatTreeDataSource(x, 0, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
@@ -1452,7 +1462,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1452
1462
|
width: 100,
|
|
1453
1463
|
},
|
|
1454
1464
|
{
|
|
1455
|
-
title: '
|
|
1465
|
+
title: '战区',
|
|
1456
1466
|
dataIndex: 'channelName',
|
|
1457
1467
|
defaultSort: 4,
|
|
1458
1468
|
width: 100,
|
|
@@ -1529,7 +1539,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1529
1539
|
},
|
|
1530
1540
|
} },
|
|
1531
1541
|
{
|
|
1532
|
-
name: 'qp-channelCode-in', type: 'treeSelect', label: '
|
|
1542
|
+
name: 'qp-channelCode-in', type: 'treeSelect', label: '战区', field: {
|
|
1533
1543
|
type: 'treeSelect',
|
|
1534
1544
|
props: {
|
|
1535
1545
|
multiple: true,
|
|
@@ -1559,6 +1569,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
1559
1569
|
},getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
|
|
1560
1570
|
]).then((x: any)=>{
|
|
1561
1571
|
formatSource(x,0, 2, tableSearchForm,['groupCode','groupName']);
|
|
1572
|
+
const newData1: any[] = [];
|
|
1573
|
+
x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
|
|
1574
|
+
newData1.push({ code: item.code, name: item.name })
|
|
1575
|
+
});
|
|
1576
|
+
x[1].data = newData1;
|
|
1562
1577
|
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
1563
1578
|
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
|
|
1564
1579
|
})
|
|
@@ -2307,6 +2322,11 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
|
|
|
2307
2322
|
'ctl-withAuth': true,
|
|
2308
2323
|
},getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
|
|
2309
2324
|
]).then((x: any)=>{
|
|
2325
|
+
const newData1: any[] = [];
|
|
2326
|
+
x[1]?.data[0]?.channelInfoSon?.forEach((item: any) => {
|
|
2327
|
+
newData1.push({ code: item.code, name: item.name })
|
|
2328
|
+
});
|
|
2329
|
+
x[1].data = newData1;
|
|
2310
2330
|
const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
|
|
2311
2331
|
const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
|
|
2312
2332
|
formatSource(x,0, 3, tableSearchForm);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import React, { useState, useEffect, forwardRef, useImperativeHandle } from 'react';
|
|
2
|
+
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef } from 'react';
|
|
3
3
|
import { useDebounceFn } from 'ahooks';
|
|
4
4
|
import { Input, Button, Modal, Select, Divider, message, Spin, Form, Table, Checkbox, TreeSelect, Tooltip, Tag, Row, Col, Space, Tabs, Empty, DatePicker } from 'antd';
|
|
5
5
|
import { SearchOutlined, CopyOutlined, CaretLeftOutlined } from '@ant-design/icons';
|
|
@@ -148,6 +148,10 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
148
148
|
const [tableShowColumns, setTabletShowColumns] = useState(handleTableColumns(modalTableProps?.tableColumns)); // 默认展示表头-modalTableProps?.tableColumns
|
|
149
149
|
const [confirmLoading, setConfirmLoading] = useState(false);
|
|
150
150
|
const [modalSearched, setModalSearched]=useState(false);
|
|
151
|
+
const [overScrollY, setOverScrollY] = useState<number | undefined>(undefined);
|
|
152
|
+
|
|
153
|
+
const topFormRef = useRef<HTMLDivElement>(null);
|
|
154
|
+
const bottomWrapRef = useRef<HTMLDivElement>(null);
|
|
151
155
|
|
|
152
156
|
const setSelectDataSource = (list,total: number) => {
|
|
153
157
|
setItems(list);
|
|
@@ -370,6 +374,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
370
374
|
setModalSearched(false);
|
|
371
375
|
|
|
372
376
|
setIsModalVisible(true);
|
|
377
|
+
setTimeout(() => computeScrollY(), 0);
|
|
373
378
|
// 回显
|
|
374
379
|
if (value) {
|
|
375
380
|
if (selectMode) {
|
|
@@ -456,6 +461,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
456
461
|
const handleCancel = () => {
|
|
457
462
|
clearModalTable();
|
|
458
463
|
setIsModalVisible(false);
|
|
464
|
+
setOverScrollY(undefined);
|
|
459
465
|
};
|
|
460
466
|
|
|
461
467
|
const refreshItems = () => {
|
|
@@ -492,6 +498,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
492
498
|
|
|
493
499
|
const toggleCollapsed = () => {
|
|
494
500
|
setCollapsed(!collapsed);
|
|
501
|
+
setTimeout(() => computeScrollY(), 0);
|
|
495
502
|
};
|
|
496
503
|
|
|
497
504
|
const handleTableChange = (pagination) => {
|
|
@@ -712,11 +719,11 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
712
719
|
|
|
713
720
|
const renderShowTable = (tableList, type) => {
|
|
714
721
|
const tableBoxHeighth = getTableHeigth(modalTableProps?.tableSearchForm);
|
|
715
|
-
const x = tableList?.length ? 82 : 28;
|
|
716
|
-
const oSY = `calc(100vh - ${tableBoxHeighth}px - ${x}px)`;
|
|
722
|
+
const x = tableList?.length ? 82 : 28;
|
|
723
|
+
const oSY = overScrollY || `calc(100vh - ${tableBoxHeighth}px - ${x}px)`;
|
|
717
724
|
const mTB = `calc(50vh - ${tableBoxHeighth/2}px - ${x/2}px - 40px)`
|
|
718
725
|
return (
|
|
719
|
-
<div style={{ height:
|
|
726
|
+
<div style={{ height: 'auto' }}>
|
|
720
727
|
<Table
|
|
721
728
|
bordered
|
|
722
729
|
size="middle"
|
|
@@ -954,7 +961,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
954
961
|
{...(modalTableProps?.modalProps || {})}
|
|
955
962
|
>
|
|
956
963
|
<div className={'search_select_wrapper'}>
|
|
957
|
-
<div className={'search_select_wrapper_topForm'}>
|
|
964
|
+
<div className={'search_select_wrapper_topForm'} ref={topFormRef}>
|
|
958
965
|
<div className={'select_list_columns'}>
|
|
959
966
|
<Form form={form} layout={'horizontal'} colon={false} key="modalForm">
|
|
960
967
|
<Row>
|
|
@@ -985,7 +992,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
985
992
|
</div>
|
|
986
993
|
</div>
|
|
987
994
|
|
|
988
|
-
<div className={'search_select_wrapper_bottomTable'}>
|
|
995
|
+
<div className={'search_select_wrapper_bottomTable'} ref={bottomWrapRef}>
|
|
989
996
|
<div className={selectMode ?'search_select_wrapper_bottomTable_wrapLeft2':'search_select_wrapper_bottomTable_wrapLeft1'}><Tabs items={tabsItems1} /></div>
|
|
990
997
|
{selectMode ? <div className={'search_select_wrapper_bottomTable_wrapRight'}><Tabs items={tabsItems2} tabBarExtraContent={<span onClick={()=> onChangeSelectedKeys([], [])}>清空已选</span>} /></div> : null}
|
|
991
998
|
</div>
|
|
@@ -997,3 +1004,27 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
997
1004
|
});
|
|
998
1005
|
|
|
999
1006
|
export default SearchSelect;
|
|
1007
|
+
const computeScrollY = () => {
|
|
1008
|
+
try {
|
|
1009
|
+
const bodyEl = document.querySelector('.search_select_modal_wrapper .ant-modal-body') as HTMLElement | null;
|
|
1010
|
+
const bodyH = bodyEl?.clientHeight || 0;
|
|
1011
|
+
const topH = topFormRef.current?.clientHeight || 0;
|
|
1012
|
+
const navEl = bottomWrapRef.current?.querySelector('.ant-tabs-nav') as HTMLElement | null;
|
|
1013
|
+
const navH = navEl?.offsetHeight || 0;
|
|
1014
|
+
const extra = 30; // paddings/margins buffer
|
|
1015
|
+
const tableH = Math.max(160, bodyH - topH - navH - extra);
|
|
1016
|
+
setOverScrollY(tableH);
|
|
1017
|
+
} catch (e) {
|
|
1018
|
+
// ignore
|
|
1019
|
+
}
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
useEffect(() => {
|
|
1023
|
+
if (!isModalVisible) return;
|
|
1024
|
+
computeScrollY();
|
|
1025
|
+
const onResize = () => computeScrollY();
|
|
1026
|
+
window.addEventListener('resize', onResize);
|
|
1027
|
+
return () => {
|
|
1028
|
+
window.removeEventListener('resize', onResize);
|
|
1029
|
+
};
|
|
1030
|
+
}, [isModalVisible, collapsed, tableData, tablePagination]);
|