@bit-sun/business-component 4.0.12-alpha.10 → 4.0.12-alpha.12
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/Functional/SearchSelect/utils.d.ts +2 -0
- package/dist/index.esm.js +323 -275
- package/dist/index.js +324 -276
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/index.md +0 -1
- package/src/components/Functional/SearchSelect/index.less +12 -0
- package/src/components/Functional/SearchSelect/index.tsx +27 -9
- package/src/components/Functional/SearchSelect/utils.ts +34 -1
package/dist/index.esm.js
CHANGED
|
@@ -1059,13 +1059,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1059
1059
|
imgHtml.innerHTML = str;
|
|
1060
1060
|
}
|
|
1061
1061
|
// 测试使用 测试类型缩小 end
|
|
1062
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1062
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1063
1063
|
className: "clomnsImg"
|
|
1064
1064
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1065
1065
|
src: url,
|
|
1066
1066
|
width: "16px",
|
|
1067
1067
|
height: "16px"
|
|
1068
|
-
}, paramsObj)))) : (
|
|
1068
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1069
1069
|
className: "clomnsImg2"
|
|
1070
1070
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1071
1071
|
src: noImg
|
|
@@ -1204,7 +1204,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
save_link.click();
|
|
1206
1206
|
}
|
|
1207
|
-
var
|
|
1207
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1208
1208
|
return data.map(function (item) {
|
|
1209
1209
|
if (!item.name || !item.path) {
|
|
1210
1210
|
return null;
|
|
@@ -1224,7 +1224,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1224
1224
|
authority: item.authority || parentAuthority
|
|
1225
1225
|
});
|
|
1226
1226
|
if (item.routes) {
|
|
1227
|
-
var children =
|
|
1227
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1228
1228
|
// Reduce memory usage
|
|
1229
1229
|
result.children = children;
|
|
1230
1230
|
}
|
|
@@ -1234,7 +1234,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1234
1234
|
return item;
|
|
1235
1235
|
});
|
|
1236
1236
|
};
|
|
1237
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1237
|
+
var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
|
|
1238
1238
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1239
1239
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1240
1240
|
if (backHistoryPath) {
|
|
@@ -1543,7 +1543,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1543
1543
|
// sheepMap是表头字段中英文映射
|
|
1544
1544
|
// sheetCount:表的数量,默认一张
|
|
1545
1545
|
var resolveFile = /*#__PURE__*/function () {
|
|
1546
|
-
var _ref3 = _asyncToGenerator(
|
|
1546
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1547
1547
|
var config,
|
|
1548
1548
|
data,
|
|
1549
1549
|
_args = arguments;
|
|
@@ -1582,7 +1582,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1582
1582
|
}();
|
|
1583
1583
|
//读取文件
|
|
1584
1584
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1585
|
-
var _ref4 = _asyncToGenerator(
|
|
1585
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1586
1586
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1587
1587
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1588
1588
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1675,14 +1675,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1675
1675
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1676
1676
|
|
|
1677
1677
|
// 获取树平行结构
|
|
1678
|
-
var
|
|
1678
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1679
1679
|
var childrenKey = chilKey || 'children';
|
|
1680
1680
|
treeData.forEach(function (el) {
|
|
1681
1681
|
var _el$childrenKey;
|
|
1682
1682
|
result.push(el);
|
|
1683
1683
|
if ((el === null || el === void 0 ? void 0 : el[childrenKey]) && (el === null || el === void 0 ? void 0 : (_el$childrenKey = el[childrenKey]) === null || _el$childrenKey === void 0 ? void 0 : _el$childrenKey.length) > 0) {
|
|
1684
1684
|
// 子级递归
|
|
1685
|
-
|
|
1685
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
1688
|
return result;
|
|
@@ -1959,13 +1959,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1959
1959
|
imgHtml.innerHTML = str;
|
|
1960
1960
|
}
|
|
1961
1961
|
// 测试使用 测试类型缩小 end
|
|
1962
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1962
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1963
1963
|
className: "clomnsImg"
|
|
1964
1964
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1965
1965
|
src: url,
|
|
1966
1966
|
width: "16px",
|
|
1967
1967
|
height: "16px"
|
|
1968
|
-
}, paramsObj)))) : (
|
|
1968
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1969
1969
|
src: noImg
|
|
1970
1970
|
}))));
|
|
1971
1971
|
};
|
|
@@ -2027,7 +2027,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
});
|
|
2029
2029
|
};
|
|
2030
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (
|
|
2030
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2031
2031
|
disabled: disabled,
|
|
2032
2032
|
onChange: function onChange(e) {
|
|
2033
2033
|
var v = e.target.value;
|
|
@@ -2037,7 +2037,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2037
2037
|
width: 170
|
|
2038
2038
|
},
|
|
2039
2039
|
value: inputValue
|
|
2040
|
-
}, inpProps))), type === 'number' && (
|
|
2040
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2041
2041
|
disabled: disabled,
|
|
2042
2042
|
onBlur: function onBlur(e) {
|
|
2043
2043
|
var v = parseFloat(e.target.value);
|
|
@@ -2416,16 +2416,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2416
2416
|
var handleExportBarCode = handleExport;
|
|
2417
2417
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2418
2418
|
var routerMap = {};
|
|
2419
|
-
var
|
|
2419
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2420
2420
|
data.forEach(function (menuItem) {
|
|
2421
2421
|
if (menuItem.children) {
|
|
2422
|
-
|
|
2422
|
+
_flattenMenuData(menuItem.children);
|
|
2423
2423
|
}
|
|
2424
2424
|
// Reduce memory usage
|
|
2425
2425
|
routerMap[menuItem.path] = menuItem;
|
|
2426
2426
|
});
|
|
2427
2427
|
};
|
|
2428
|
-
|
|
2428
|
+
_flattenMenuData(menuData);
|
|
2429
2429
|
return routerMap;
|
|
2430
2430
|
};
|
|
2431
2431
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2568,7 +2568,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2568
2568
|
return request$1(url, parms).then(handleResponseData);
|
|
2569
2569
|
};
|
|
2570
2570
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2571
|
-
var _ref2 = _asyncToGenerator(
|
|
2571
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2572
2572
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2573
2573
|
while (1) switch (_context.prev = _context.next) {
|
|
2574
2574
|
case 0:
|
|
@@ -3242,7 +3242,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3242
3242
|
placement: "bottomLeft"
|
|
3243
3243
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3244
3244
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3245
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3245
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3246
3246
|
trigger: ['click'],
|
|
3247
3247
|
overlay: this.menuList,
|
|
3248
3248
|
placement: "bottomRight"
|
|
@@ -3917,7 +3917,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3917
3917
|
placement: "bottomLeft"
|
|
3918
3918
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3919
3919
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3920
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3920
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3921
3921
|
trigger: ['click'],
|
|
3922
3922
|
overlay: this.menuList,
|
|
3923
3923
|
placement: "bottomRight"
|
|
@@ -4075,7 +4075,7 @@ function ToCDB(str) {
|
|
|
4075
4075
|
return tmp;
|
|
4076
4076
|
}
|
|
4077
4077
|
|
|
4078
|
-
var css_248z$5 = ".search_select_show {\n display: flex;\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_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-cell .ant-table-selection-column .ant-radio,\n.search_select_dropdown_table table tr td.ant-table-selection-column .ant-radio-wrapper {\n display: none;\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 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: hidden;\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 overflow: hidden;\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 {\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";
|
|
4078
|
+
var css_248z$5 = ".search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(150%) !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(141%) !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-cell .ant-table-selection-column .ant-radio,\n.search_select_dropdown_table table tr td.ant-table-selection-column .ant-radio-wrapper {\n display: none;\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 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: hidden;\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 overflow: hidden;\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 {\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";
|
|
4079
4079
|
styleInject(css_248z$5);
|
|
4080
4080
|
|
|
4081
4081
|
var columnsPerRow = 4; // 每行的列数
|
|
@@ -4083,6 +4083,7 @@ var ColSpan = 6; // 查询条件 每行col = 24 /columnsPerRow
|
|
|
4083
4083
|
var handleSourceName = function handleSourceName(sName) {
|
|
4084
4084
|
return sName;
|
|
4085
4085
|
};
|
|
4086
|
+
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4086
4087
|
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4087
4088
|
var totalRows = Math.ceil(list.length / columnsPerRow); // 计算总行数
|
|
4088
4089
|
var lastRowColumns = (list.length + 1) % columnsPerRow; // 计算最后一行的实际列数
|
|
@@ -4123,12 +4124,40 @@ var getTableHeigth = function getTableHeigth(list) {
|
|
|
4123
4124
|
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4124
4125
|
return 411 - totalRows * 10;
|
|
4125
4126
|
};
|
|
4127
|
+
// ------------------------------------------处理样式相关--结束----------------------------------------
|
|
4128
|
+
// ------------------------------------------处理数据相关--开始----------------------------------------
|
|
4129
|
+
var getCurrentSRKs = function getCurrentSRKs(selectMode, labelInValue, value) {
|
|
4130
|
+
return selectMode ? labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4131
|
+
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
4132
|
+
}) : value : labelInValue ? (value === null || value === void 0 ? void 0 : value.value) && [value === null || value === void 0 ? void 0 : value.value] || [] : value && [value] || [];
|
|
4133
|
+
};
|
|
4134
|
+
var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
4135
|
+
// 创建映射对象 用于记录原始选中顺序
|
|
4136
|
+
var orderMap = new Map();
|
|
4137
|
+
currentSRKs.forEach(function (value, index) {
|
|
4138
|
+
orderMap.set(value, index);
|
|
4139
|
+
});
|
|
4140
|
+
// 被选中数据集合,获取之后排序
|
|
4141
|
+
var selectedOption = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4142
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4143
|
+
})) || [];
|
|
4144
|
+
var selectedOptionSort = (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.sort(function (a, b) {
|
|
4145
|
+
var _orderMap$get, _orderMap$get2;
|
|
4146
|
+
return ((_orderMap$get = orderMap.get(a.value)) !== null && _orderMap$get !== void 0 ? _orderMap$get : Infinity) - ((_orderMap$get2 = orderMap.get(b.value)) !== null && _orderMap$get2 !== void 0 ? _orderMap$get2 : Infinity);
|
|
4147
|
+
})) || [];
|
|
4148
|
+
// 未选中数据集合
|
|
4149
|
+
var otherOptions = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4150
|
+
return !(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value));
|
|
4151
|
+
})) || [];
|
|
4152
|
+
return [].concat(_toConsumableArray(selectedOptionSort), _toConsumableArray(otherOptions));
|
|
4153
|
+
};
|
|
4154
|
+
// ------------------------------------------处理数据相关--结束----------------------------------------
|
|
4126
4155
|
|
|
4127
4156
|
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";
|
|
4128
4157
|
|
|
4129
4158
|
var Option$1 = Select.Option;
|
|
4130
4159
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
4131
|
-
var _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
4160
|
+
var _pathname$match, _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
4132
4161
|
var value = props.value,
|
|
4133
4162
|
onChangeTemp = props.onChange,
|
|
4134
4163
|
_props$selectProps = props.selectProps,
|
|
@@ -4190,8 +4219,11 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4190
4219
|
listHeight: 160,
|
|
4191
4220
|
optionLabelProp: "label",
|
|
4192
4221
|
autoClearSearchValue: false,
|
|
4193
|
-
placement: '
|
|
4222
|
+
placement: 'bottomRight'
|
|
4194
4223
|
});
|
|
4224
|
+
var pathname = window.location.href;
|
|
4225
|
+
var pattern = /(action|create|edit|view)/;
|
|
4226
|
+
var isFormPage = ((_pathname$match = pathname.match(pattern)) === null || _pathname$match === void 0 ? void 0 : _pathname$match.length) > 0;
|
|
4195
4227
|
var initPagination = {
|
|
4196
4228
|
showQuickJumper: true,
|
|
4197
4229
|
showSizeChanger: false,
|
|
@@ -4585,6 +4617,19 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4585
4617
|
});
|
|
4586
4618
|
})) : [];
|
|
4587
4619
|
}
|
|
4620
|
+
// 补充搜索项--选中的数据添加到数据源中去
|
|
4621
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
4622
|
+
if ((currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length) && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.some(function (s) {
|
|
4623
|
+
var _source;
|
|
4624
|
+
return !((_source = source) === null || _source === void 0 ? void 0 : _source.find(function (r) {
|
|
4625
|
+
return r.value == s;
|
|
4626
|
+
}));
|
|
4627
|
+
}))) {
|
|
4628
|
+
var selectedOption = items.filter(function (option) {
|
|
4629
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4630
|
+
}) || [];
|
|
4631
|
+
source = (source || []).concat(selectedOption);
|
|
4632
|
+
}
|
|
4588
4633
|
// 数据源 不可以有重复key
|
|
4589
4634
|
source = Array.isArray(source) ? _.uniqBy(source, 'value') : [];
|
|
4590
4635
|
if (callback) {
|
|
@@ -5165,10 +5210,15 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5165
5210
|
setSelectOpen(visible);
|
|
5166
5211
|
// 关闭下拉框 如果首次本身就不展示数据的 没有选中数据-需要清空查询数据源; 首次展示的默认展示
|
|
5167
5212
|
if (!visible && !(value === null || value === void 0 ? void 0 : value.length)) {
|
|
5168
|
-
|
|
5213
|
+
setTimeout(function () {
|
|
5214
|
+
// 延时 是为了避免 执行时候出现下拉框弹两次的问题-可以看到数据源从展示到显示空数据框的问题
|
|
5215
|
+
resetSelectDataSource();
|
|
5216
|
+
}, 200);
|
|
5169
5217
|
}
|
|
5170
5218
|
};
|
|
5171
5219
|
var renderTable = function renderTable(dataSource) {
|
|
5220
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
5221
|
+
var renderSource = getRenderSource(currentSRKs, items);
|
|
5172
5222
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5173
5223
|
className: "search_select_dropdown_table ".concat(!selectMode ? 'search_select_dropdown_table1' : '')
|
|
5174
5224
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
@@ -5178,9 +5228,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5178
5228
|
rowSelection: {
|
|
5179
5229
|
type: 'checkbox',
|
|
5180
5230
|
columnWidth: '24px',
|
|
5181
|
-
selectedRowKeys:
|
|
5182
|
-
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
5183
|
-
}) : value,
|
|
5231
|
+
selectedRowKeys: currentSRKs,
|
|
5184
5232
|
preserveSelectedRowKeys: true,
|
|
5185
5233
|
onChange: function onChange(sks, srs) {
|
|
5186
5234
|
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
@@ -5221,7 +5269,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5221
5269
|
rowSelection: {
|
|
5222
5270
|
type: 'radio',
|
|
5223
5271
|
columnWidth: 0,
|
|
5224
|
-
selectedRowKeys:
|
|
5272
|
+
selectedRowKeys: currentSRKs
|
|
5225
5273
|
},
|
|
5226
5274
|
onRow: function onRow(record, rowKey) {
|
|
5227
5275
|
return {
|
|
@@ -5233,7 +5281,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5233
5281
|
}
|
|
5234
5282
|
}), {}, {
|
|
5235
5283
|
columns: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.renderTableColumns) || [],
|
|
5236
|
-
dataSource:
|
|
5284
|
+
dataSource: renderSource,
|
|
5237
5285
|
size: "middle",
|
|
5238
5286
|
pagination: false,
|
|
5239
5287
|
rowKey: mappingValueField,
|
|
@@ -5316,13 +5364,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5316
5364
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5317
5365
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5318
5366
|
className: 'search_select'
|
|
5319
|
-
}, fieldComponent ? (
|
|
5367
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5320
5368
|
onClick: function onClick() {
|
|
5321
5369
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5322
5370
|
(_fieldComponent$props = fieldComponent.props) === null || _fieldComponent$props === void 0 ? void 0 : (_fieldComponent$props2 = _fieldComponent$props.onClick) === null || _fieldComponent$props2 === void 0 ? void 0 : _fieldComponent$props2.call(_fieldComponent$props);
|
|
5323
5371
|
showModal();
|
|
5324
5372
|
}
|
|
5325
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
5373
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5326
5374
|
title: getShowStr(),
|
|
5327
5375
|
style: {
|
|
5328
5376
|
overflow: 'hidden',
|
|
@@ -5331,7 +5379,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5331
5379
|
},
|
|
5332
5380
|
className: 'search_select_show'
|
|
5333
5381
|
}, getShowStr())) : /*#__PURE__*/React$1.createElement("div", {
|
|
5334
|
-
className: "search_select_show",
|
|
5382
|
+
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
5335
5383
|
id: "search_select_div_".concat(uniqueValue)
|
|
5336
5384
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
5337
5385
|
labelInValue: labelInValue,
|
|
@@ -5349,10 +5397,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5349
5397
|
dropdownRender: function dropdownRender(menu) {
|
|
5350
5398
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5351
5399
|
},
|
|
5352
|
-
notFoundContent: fetching ? (
|
|
5400
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5353
5401
|
size: "small",
|
|
5354
5402
|
className: 'searchSelectSpin'
|
|
5355
|
-
})) : (
|
|
5403
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5356
5404
|
style: {
|
|
5357
5405
|
textAlign: 'center'
|
|
5358
5406
|
}
|
|
@@ -5373,7 +5421,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5373
5421
|
}, /*#__PURE__*/React$1.createElement(SearchOutlined, null))
|
|
5374
5422
|
} : {}), currentSelectProps), {}, {
|
|
5375
5423
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
5376
|
-
return _getPopupContainer && _getPopupContainer(triggerNode)
|
|
5424
|
+
return triggerNode.parentElement || _getPopupContainer && _getPopupContainer(triggerNode);
|
|
5377
5425
|
}
|
|
5378
5426
|
}), items.map(function (item) {
|
|
5379
5427
|
return /*#__PURE__*/React$1.createElement(Option$1, {
|
|
@@ -5383,7 +5431,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5383
5431
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5384
5432
|
filterTxt: searchValue
|
|
5385
5433
|
}));
|
|
5386
|
-
}))), needModalTable && isModalVisible && (
|
|
5434
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5387
5435
|
maskClosable: false,
|
|
5388
5436
|
destroyOnClose: true,
|
|
5389
5437
|
width: "80%",
|
|
@@ -5980,7 +6028,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5980
6028
|
style: {
|
|
5981
6029
|
width: 525
|
|
5982
6030
|
}
|
|
5983
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
6031
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5984
6032
|
checked: !dataSource.some(function (item) {
|
|
5985
6033
|
if (item.hidden) return true;
|
|
5986
6034
|
return false;
|
|
@@ -6018,13 +6066,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6018
6066
|
_this2.onChange(e, item.title);
|
|
6019
6067
|
}
|
|
6020
6068
|
}, item.title);
|
|
6021
|
-
}), !!seatchDataSource.length && (
|
|
6069
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6022
6070
|
style: {
|
|
6023
6071
|
width: '144px'
|
|
6024
6072
|
}
|
|
6025
|
-
})), !seatchDataSource.length && (
|
|
6073
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6026
6074
|
className: 'sort_table_column_all_empty'
|
|
6027
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
6075
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6028
6076
|
className: 'sort_table_column_special'
|
|
6029
6077
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6030
6078
|
className: 'sort_table_column_all'
|
|
@@ -6213,7 +6261,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6213
6261
|
});
|
|
6214
6262
|
};
|
|
6215
6263
|
// 格式化树选择器数据源
|
|
6216
|
-
var
|
|
6264
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6217
6265
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6218
6266
|
return {
|
|
6219
6267
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6223,7 +6271,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6223
6271
|
isLeaf: !haveChildren,
|
|
6224
6272
|
disabled: haveChildren,
|
|
6225
6273
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6226
|
-
return
|
|
6274
|
+
return _mapSearchTree(i, resKeyValue);
|
|
6227
6275
|
}) : []
|
|
6228
6276
|
};
|
|
6229
6277
|
};
|
|
@@ -6232,7 +6280,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6232
6280
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6233
6281
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6234
6282
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6235
|
-
return
|
|
6283
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
6236
6284
|
}) || [];
|
|
6237
6285
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6238
6286
|
};
|
|
@@ -6403,7 +6451,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6403
6451
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6404
6452
|
// FIXME: 特殊业务逻辑
|
|
6405
6453
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6406
|
-
var _ref2 = _asyncToGenerator(
|
|
6454
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6407
6455
|
var result;
|
|
6408
6456
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6409
6457
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6656,7 +6704,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6656
6704
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6657
6705
|
value: text || null,
|
|
6658
6706
|
onChange: function () {
|
|
6659
|
-
var _onChange = _asyncToGenerator(
|
|
6707
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6660
6708
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6661
6709
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6662
6710
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7264,10 +7312,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7264
7312
|
var newColumns = arr.map(function (col) {
|
|
7265
7313
|
return _objectSpread2({}, col);
|
|
7266
7314
|
});
|
|
7267
|
-
var
|
|
7315
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
7268
7316
|
var i = indexArr.shift();
|
|
7269
7317
|
if (indexArr.length > 0) {
|
|
7270
|
-
|
|
7318
|
+
_handleIndex(arr[i].children, indexArr);
|
|
7271
7319
|
} else {
|
|
7272
7320
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7273
7321
|
width: size.width
|
|
@@ -7275,7 +7323,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7275
7323
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7276
7324
|
}
|
|
7277
7325
|
};
|
|
7278
|
-
|
|
7326
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
7279
7327
|
callback(newColumns);
|
|
7280
7328
|
};
|
|
7281
7329
|
};
|
|
@@ -7285,13 +7333,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7285
7333
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7286
7334
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7287
7335
|
};
|
|
7288
|
-
var
|
|
7336
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7289
7337
|
arr.forEach(function (item, index) {
|
|
7290
7338
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7291
7339
|
return i || i === 0;
|
|
7292
7340
|
});
|
|
7293
7341
|
if (noEmptyArray$1(item.children)) {
|
|
7294
|
-
|
|
7342
|
+
_handleColumns(item.children, indexArrInside);
|
|
7295
7343
|
} else {
|
|
7296
7344
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7297
7345
|
item.onHeaderCell = function (column) {
|
|
@@ -7307,14 +7355,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7307
7355
|
handleAntdColumnsSpecialParams(item);
|
|
7308
7356
|
return _objectSpread2({}, item);
|
|
7309
7357
|
});
|
|
7310
|
-
|
|
7358
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
7311
7359
|
return setShowToChooseColumnsCallback(res);
|
|
7312
7360
|
});
|
|
7313
7361
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7314
7362
|
handleAntdColumnsSpecialParams(item);
|
|
7315
7363
|
return _objectSpread2({}, item);
|
|
7316
7364
|
});
|
|
7317
|
-
|
|
7365
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
7318
7366
|
return setShowColumnsCallback(res);
|
|
7319
7367
|
});
|
|
7320
7368
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7325,7 +7373,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7325
7373
|
id: "add_select_div_".concat(uniqueValue)
|
|
7326
7374
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7327
7375
|
onClick: handleShowModal
|
|
7328
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
7376
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7329
7377
|
width: '1200px',
|
|
7330
7378
|
style: {
|
|
7331
7379
|
top: 20
|
|
@@ -8239,7 +8287,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8239
8287
|
});
|
|
8240
8288
|
};
|
|
8241
8289
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8242
|
-
var _ref4 = _asyncToGenerator(
|
|
8290
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8243
8291
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8244
8292
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8245
8293
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8322,10 +8370,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8322
8370
|
var newColumns = arr.map(function (col) {
|
|
8323
8371
|
return _objectSpread2({}, col);
|
|
8324
8372
|
});
|
|
8325
|
-
var
|
|
8373
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8326
8374
|
var i = indexArr.shift();
|
|
8327
8375
|
if (indexArr.length > 0) {
|
|
8328
|
-
|
|
8376
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8329
8377
|
} else {
|
|
8330
8378
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8331
8379
|
width: size.width
|
|
@@ -8333,17 +8381,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8333
8381
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8334
8382
|
}
|
|
8335
8383
|
};
|
|
8336
|
-
|
|
8384
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8337
8385
|
callback(newColumns);
|
|
8338
8386
|
};
|
|
8339
8387
|
};
|
|
8340
|
-
var
|
|
8388
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8341
8389
|
arr.forEach(function (item, index) {
|
|
8342
8390
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8343
8391
|
return i || i === 0;
|
|
8344
8392
|
});
|
|
8345
8393
|
if (noEmptyArray$1(item.children)) {
|
|
8346
|
-
|
|
8394
|
+
_handleColumns(item.children, indexArrInside);
|
|
8347
8395
|
} else {
|
|
8348
8396
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8349
8397
|
item.onHeaderCell = function (column) {
|
|
@@ -8359,7 +8407,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8359
8407
|
handleAntdColumnsSpecialParams(item);
|
|
8360
8408
|
return _objectSpread2({}, item);
|
|
8361
8409
|
});
|
|
8362
|
-
|
|
8410
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8363
8411
|
return setShowColumnsCallback(res);
|
|
8364
8412
|
});
|
|
8365
8413
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8673,7 +8721,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8673
8721
|
});
|
|
8674
8722
|
};
|
|
8675
8723
|
// 格式化树选择器数据源
|
|
8676
|
-
var
|
|
8724
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8677
8725
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8678
8726
|
return {
|
|
8679
8727
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8683,7 +8731,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8683
8731
|
isLeaf: !haveChildren,
|
|
8684
8732
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8685
8733
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8686
|
-
return
|
|
8734
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8687
8735
|
}) : []
|
|
8688
8736
|
};
|
|
8689
8737
|
};
|
|
@@ -8697,7 +8745,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8697
8745
|
disabledJudge = false;
|
|
8698
8746
|
}
|
|
8699
8747
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8700
|
-
return
|
|
8748
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8701
8749
|
}) || [];
|
|
8702
8750
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8703
8751
|
};
|
|
@@ -12747,7 +12795,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12747
12795
|
};
|
|
12748
12796
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12749
12797
|
onClick: handleShowModal
|
|
12750
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
12798
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12751
12799
|
onOk: handleOk,
|
|
12752
12800
|
onCancel: handleCancel,
|
|
12753
12801
|
destroyOnClose: true,
|
|
@@ -12866,7 +12914,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12866
12914
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12867
12915
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12868
12916
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12869
|
-
var
|
|
12917
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12870
12918
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12871
12919
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12872
12920
|
return {
|
|
@@ -12878,7 +12926,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12878
12926
|
isLeaf: !haveChildren,
|
|
12879
12927
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12880
12928
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12881
|
-
return
|
|
12929
|
+
return _mapSearchTree(i);
|
|
12882
12930
|
}) : []
|
|
12883
12931
|
};
|
|
12884
12932
|
};
|
|
@@ -12896,8 +12944,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12896
12944
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12897
12945
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12898
12946
|
headers: headers
|
|
12899
|
-
}).then(
|
|
12900
|
-
var _ref = _asyncToGenerator(
|
|
12947
|
+
}).then(/*#__PURE__*/function () {
|
|
12948
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12901
12949
|
var _ctx$form;
|
|
12902
12950
|
var resData, coverData, data, dataList;
|
|
12903
12951
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12924,7 +12972,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12924
12972
|
case 9:
|
|
12925
12973
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12926
12974
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12927
|
-
return
|
|
12975
|
+
return _mapSearchTree(ites);
|
|
12928
12976
|
}) || [];
|
|
12929
12977
|
case 11:
|
|
12930
12978
|
_context.next = 14;
|
|
@@ -12962,11 +13010,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12962
13010
|
return _formatResult;
|
|
12963
13011
|
}
|
|
12964
13012
|
};
|
|
12965
|
-
var
|
|
13013
|
+
var _parallelData = function parallelData(data, result) {
|
|
12966
13014
|
data.forEach(function (i) {
|
|
12967
13015
|
result.push(i);
|
|
12968
13016
|
if (i[treeChildrenRoom]) {
|
|
12969
|
-
|
|
13017
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
12970
13018
|
}
|
|
12971
13019
|
});
|
|
12972
13020
|
return result;
|
|
@@ -13006,7 +13054,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13006
13054
|
var _ctx$form2;
|
|
13007
13055
|
var handleData = formatData(data);
|
|
13008
13056
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13009
|
-
var parallelTreeData =
|
|
13057
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13010
13058
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13011
13059
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13012
13060
|
onChangeName && onChangeName(dataName);
|
|
@@ -13049,7 +13097,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13049
13097
|
var getShowStr = function getShowStr() {
|
|
13050
13098
|
var isMultiple = multiple || treeCheckable;
|
|
13051
13099
|
var kongValue = '无';
|
|
13052
|
-
var parallelTreeData =
|
|
13100
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13053
13101
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13054
13102
|
if (isMultiple) {
|
|
13055
13103
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13061,7 +13109,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13061
13109
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13062
13110
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13063
13111
|
className: 'tree_search_select'
|
|
13064
|
-
}, isShouldShowStr ? (
|
|
13112
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13065
13113
|
title: getShowStr(),
|
|
13066
13114
|
style: {
|
|
13067
13115
|
overflow: 'hidden',
|
|
@@ -13069,7 +13117,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13069
13117
|
whiteSpace: 'nowrap'
|
|
13070
13118
|
},
|
|
13071
13119
|
className: 'search_select_show'
|
|
13072
|
-
}, getShowStr())) : (
|
|
13120
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13073
13121
|
treeCheckable: treeCheckable,
|
|
13074
13122
|
maxTagCount: maxTagCount,
|
|
13075
13123
|
showSearch: showSearch,
|
|
@@ -13266,7 +13314,7 @@ var index$2 = (function (props) {
|
|
|
13266
13314
|
} : {}
|
|
13267
13315
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13268
13316
|
className: 'status-label-operate'
|
|
13269
|
-
}, item.isDone ? (
|
|
13317
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13270
13318
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13271
13319
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13272
13320
|
style: {
|
|
@@ -14047,7 +14095,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14047
14095
|
style: {
|
|
14048
14096
|
width: 525
|
|
14049
14097
|
}
|
|
14050
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
14098
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14051
14099
|
checked: !dataSource.some(function (item) {
|
|
14052
14100
|
if (item.hidden) return true;
|
|
14053
14101
|
return false;
|
|
@@ -14085,13 +14133,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14085
14133
|
_this2.onChange(e, item.title);
|
|
14086
14134
|
}
|
|
14087
14135
|
}, item.title);
|
|
14088
|
-
}), !!seatchDataSource.length && (
|
|
14136
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14089
14137
|
style: {
|
|
14090
14138
|
width: '144px'
|
|
14091
14139
|
}
|
|
14092
|
-
})), !seatchDataSource.length && (
|
|
14140
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14093
14141
|
className: 'sort_table_column_all_empty'
|
|
14094
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
14142
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14095
14143
|
className: 'sort_table_column_special'
|
|
14096
14144
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14097
14145
|
className: 'sort_table_column_all'
|
|
@@ -14270,10 +14318,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14270
14318
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14271
14319
|
return _objectSpread2({}, col);
|
|
14272
14320
|
});
|
|
14273
|
-
var
|
|
14321
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14274
14322
|
var i = indexArr.shift();
|
|
14275
14323
|
if (indexArr.length > 0) {
|
|
14276
|
-
|
|
14324
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14277
14325
|
} else {
|
|
14278
14326
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14279
14327
|
width: size.width
|
|
@@ -14281,7 +14329,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14281
14329
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14282
14330
|
}
|
|
14283
14331
|
};
|
|
14284
|
-
|
|
14332
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14285
14333
|
_this.setState({
|
|
14286
14334
|
showColumns: _toConsumableArray(newColumns)
|
|
14287
14335
|
});
|
|
@@ -14322,7 +14370,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14322
14370
|
};
|
|
14323
14371
|
setIsResizing(true);
|
|
14324
14372
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14325
|
-
document.addEventListener('mouseup',
|
|
14373
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
14326
14374
|
};
|
|
14327
14375
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14328
14376
|
e.stopPropagation();
|
|
@@ -14338,9 +14386,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14338
14386
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14339
14387
|
}
|
|
14340
14388
|
};
|
|
14341
|
-
var
|
|
14389
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
14342
14390
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
14343
|
-
document.removeEventListener('mouseup',
|
|
14391
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
14344
14392
|
setIsResizing(false);
|
|
14345
14393
|
};
|
|
14346
14394
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -14461,13 +14509,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14461
14509
|
showSummary = summary;
|
|
14462
14510
|
}
|
|
14463
14511
|
}
|
|
14464
|
-
var
|
|
14512
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14465
14513
|
arr.forEach(function (item, index) {
|
|
14466
14514
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14467
14515
|
return i || i === 0;
|
|
14468
14516
|
});
|
|
14469
14517
|
if (noEmptyArray$1(item.children)) {
|
|
14470
|
-
|
|
14518
|
+
_handleColumns(item.children, indexArrInside);
|
|
14471
14519
|
} else {
|
|
14472
14520
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14473
14521
|
item.onHeaderCell = function (column) {
|
|
@@ -14483,7 +14531,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14483
14531
|
handleBssulaColumnsSpecialParams(item);
|
|
14484
14532
|
return _objectSpread2({}, item);
|
|
14485
14533
|
});
|
|
14486
|
-
|
|
14534
|
+
_handleColumns(showCol, []);
|
|
14487
14535
|
if (dynamicColumns.length) {
|
|
14488
14536
|
showCol = this.handledynamicColumns(showCol);
|
|
14489
14537
|
}
|
|
@@ -14524,7 +14572,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14524
14572
|
cell: this.ResizeableTitle
|
|
14525
14573
|
}
|
|
14526
14574
|
}
|
|
14527
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
14575
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14528
14576
|
summary: summary
|
|
14529
14577
|
})));
|
|
14530
14578
|
}
|
|
@@ -14621,10 +14669,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14621
14669
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14622
14670
|
return _objectSpread2({}, col);
|
|
14623
14671
|
});
|
|
14624
|
-
var
|
|
14672
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14625
14673
|
var i = indexArr.shift();
|
|
14626
14674
|
if (indexArr.length > 0) {
|
|
14627
|
-
|
|
14675
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14628
14676
|
} else {
|
|
14629
14677
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14630
14678
|
width: size.width
|
|
@@ -14632,7 +14680,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14632
14680
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14633
14681
|
}
|
|
14634
14682
|
};
|
|
14635
|
-
|
|
14683
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14636
14684
|
_this.setState({
|
|
14637
14685
|
showColumns: _toConsumableArray(newColumns)
|
|
14638
14686
|
});
|
|
@@ -14708,13 +14756,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14708
14756
|
showSummary = summary;
|
|
14709
14757
|
}
|
|
14710
14758
|
}
|
|
14711
|
-
var
|
|
14759
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14712
14760
|
arr.forEach(function (item, index) {
|
|
14713
14761
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14714
14762
|
return i || i === 0;
|
|
14715
14763
|
});
|
|
14716
14764
|
if (noEmptyArray$1(item.children)) {
|
|
14717
|
-
|
|
14765
|
+
_handleColumns(item.children, indexArrInside);
|
|
14718
14766
|
} else {
|
|
14719
14767
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14720
14768
|
item.onHeaderCell = function (column) {
|
|
@@ -14730,7 +14778,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14730
14778
|
handleAntdColumnsSpecialParams(item);
|
|
14731
14779
|
return _objectSpread2({}, item);
|
|
14732
14780
|
});
|
|
14733
|
-
|
|
14781
|
+
_handleColumns(showCol, []);
|
|
14734
14782
|
if (dynamicColumns.length) {
|
|
14735
14783
|
showCol = this.handledynamicColumns(showCol);
|
|
14736
14784
|
}
|
|
@@ -14770,7 +14818,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14770
14818
|
cell: this.ResizeableTitle
|
|
14771
14819
|
}
|
|
14772
14820
|
}
|
|
14773
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
14821
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14774
14822
|
summary: summary
|
|
14775
14823
|
})));
|
|
14776
14824
|
}
|
|
@@ -14830,20 +14878,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14830
14878
|
};
|
|
14831
14879
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14832
14880
|
var routerMap = {};
|
|
14833
|
-
var
|
|
14881
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
14834
14882
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14835
14883
|
data.forEach(function (menuItem) {
|
|
14836
14884
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14837
14885
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14838
14886
|
});
|
|
14839
14887
|
if (newMenuItem.children) {
|
|
14840
|
-
|
|
14888
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
14841
14889
|
}
|
|
14842
14890
|
// Reduce memory usage
|
|
14843
14891
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14844
14892
|
});
|
|
14845
14893
|
};
|
|
14846
|
-
|
|
14894
|
+
_flattenMenuData2(menuData, {});
|
|
14847
14895
|
return routerMap;
|
|
14848
14896
|
};
|
|
14849
14897
|
// mode类型判断
|
|
@@ -15169,7 +15217,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15169
15217
|
display: 'flex',
|
|
15170
15218
|
gap: '8px'
|
|
15171
15219
|
}
|
|
15172
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
15220
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15173
15221
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15174
15222
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15175
15223
|
onClick: function onClick() {
|
|
@@ -15177,7 +15225,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15177
15225
|
},
|
|
15178
15226
|
width: 24,
|
|
15179
15227
|
src: scanning
|
|
15180
|
-
}))) : (
|
|
15228
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15181
15229
|
title: "\u5168\u5C4F"
|
|
15182
15230
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15183
15231
|
onClick: function onClick() {
|
|
@@ -15185,7 +15233,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15185
15233
|
},
|
|
15186
15234
|
width: 24,
|
|
15187
15235
|
src: quanping
|
|
15188
|
-
}))))) : null)), alertProps && (
|
|
15236
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15189
15237
|
}, function (prevProps, nextProps) {
|
|
15190
15238
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15191
15239
|
return false;
|
|
@@ -15270,7 +15318,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15270
15318
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15271
15319
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15272
15320
|
}, item));
|
|
15273
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
15321
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15274
15322
|
}, function (prevProps, nextProps) {
|
|
15275
15323
|
if (prevProps.title !== nextProps.title) {
|
|
15276
15324
|
return false;
|
|
@@ -15910,7 +15958,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15910
15958
|
});
|
|
15911
15959
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15912
15960
|
className: 'sort_table_wrapper'
|
|
15913
|
-
}, visible && (
|
|
15961
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15914
15962
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15915
15963
|
wrapClassName: 'sort_table_wrapper',
|
|
15916
15964
|
width: 810,
|
|
@@ -15961,7 +16009,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15961
16009
|
width: 525,
|
|
15962
16010
|
height: 24
|
|
15963
16011
|
}
|
|
15964
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16012
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15965
16013
|
checked: !dataSource.some(function (item) {
|
|
15966
16014
|
if (item.hidden) return true;
|
|
15967
16015
|
return false;
|
|
@@ -16015,13 +16063,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16015
16063
|
_this2.onChange(e, item.title);
|
|
16016
16064
|
}
|
|
16017
16065
|
}, item.title);
|
|
16018
|
-
}), !!seatchDataSource.length && (
|
|
16066
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16019
16067
|
style: {
|
|
16020
16068
|
width: '144px'
|
|
16021
16069
|
}
|
|
16022
|
-
})), !seatchDataSource.length && (
|
|
16070
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16023
16071
|
className: 'sort_table_column_all_empty'
|
|
16024
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
16072
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16025
16073
|
className: 'sort_table_column_special'
|
|
16026
16074
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16027
16075
|
className: 'sort_table_column_all'
|
|
@@ -16495,7 +16543,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16495
16543
|
});
|
|
16496
16544
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16497
16545
|
className: 'sort_table_wrapper'
|
|
16498
|
-
}, visible && (
|
|
16546
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16499
16547
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16500
16548
|
wrapClassName: 'sort_table_wrapper',
|
|
16501
16549
|
width: 820,
|
|
@@ -16540,7 +16588,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16540
16588
|
style: {
|
|
16541
16589
|
width: 525
|
|
16542
16590
|
}
|
|
16543
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16591
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16544
16592
|
checked: !dataSource.some(function (item) {
|
|
16545
16593
|
if (item.hidden) return true;
|
|
16546
16594
|
return false;
|
|
@@ -16576,11 +16624,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16576
16624
|
_this2.onChange(e, item.name);
|
|
16577
16625
|
}
|
|
16578
16626
|
}, item.label);
|
|
16579
|
-
}), !!newSearchSource.length && (
|
|
16627
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16580
16628
|
style: {
|
|
16581
16629
|
width: '144px'
|
|
16582
16630
|
}
|
|
16583
|
-
})), !newSearchSource.length && (
|
|
16631
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16584
16632
|
className: 'sort_table_column_all_empty'
|
|
16585
16633
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16586
16634
|
className: 'sort_table_content_wrapper'
|
|
@@ -16679,7 +16727,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16679
16727
|
};
|
|
16680
16728
|
setIsResizing(true);
|
|
16681
16729
|
document.addEventListener('mousemove', handleMouseMove);
|
|
16682
|
-
document.addEventListener('mouseup',
|
|
16730
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
16683
16731
|
};
|
|
16684
16732
|
var handleMouseMove = function handleMouseMove(e) {
|
|
16685
16733
|
e.stopPropagation();
|
|
@@ -16695,9 +16743,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16695
16743
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
16696
16744
|
}
|
|
16697
16745
|
};
|
|
16698
|
-
var
|
|
16746
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
16699
16747
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
16700
|
-
document.removeEventListener('mouseup',
|
|
16748
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
16701
16749
|
setIsResizing(false);
|
|
16702
16750
|
};
|
|
16703
16751
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17108,7 +17156,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17108
17156
|
actionsRender = actionsRender.concat([{
|
|
17109
17157
|
type: 'text',
|
|
17110
17158
|
props: {
|
|
17111
|
-
children: (
|
|
17159
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17112
17160
|
request: {
|
|
17113
17161
|
url: (value === null || value === void 0 ? void 0 : (_value$exportConfig2 = value.exportConfig) === null || _value$exportConfig2 === void 0 ? void 0 : _value$exportConfig2.url) || "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$exportConfig3 = value.exportConfig) === null || _value$exportConfig3 === void 0 ? void 0 : _value$exportConfig3.type),
|
|
17114
17162
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17354,7 +17402,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17354
17402
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17355
17403
|
bsTableCode: bsTableCode,
|
|
17356
17404
|
onlyModal: true
|
|
17357
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
17405
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
17358
17406
|
ref: exportTableRef,
|
|
17359
17407
|
setShowColumns: setShowExportColumns,
|
|
17360
17408
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17447,11 +17495,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17447
17495
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17448
17496
|
var resultList = [];
|
|
17449
17497
|
var newRouter = cloneDeep(router);
|
|
17450
|
-
var
|
|
17498
|
+
var _deep = function deep(router) {
|
|
17451
17499
|
if (router && Array.isArray(router)) {
|
|
17452
17500
|
router.forEach(function (item) {
|
|
17453
17501
|
if (item.children && Array.isArray(item.children)) {
|
|
17454
|
-
|
|
17502
|
+
_deep(item.children);
|
|
17455
17503
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17456
17504
|
return d === item.code;
|
|
17457
17505
|
})) {
|
|
@@ -17465,10 +17513,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17465
17513
|
resultList.push(_objectSpread2({}, router));
|
|
17466
17514
|
}
|
|
17467
17515
|
};
|
|
17468
|
-
|
|
17516
|
+
_deep(newRouter);
|
|
17469
17517
|
callBack([].concat(resultList));
|
|
17470
17518
|
};
|
|
17471
|
-
var
|
|
17519
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17472
17520
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17473
17521
|
var _loop = function _loop(i) {
|
|
17474
17522
|
if (routesData[i].hideInMenu) {
|
|
@@ -17482,7 +17530,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17482
17530
|
return 0; // continue
|
|
17483
17531
|
}
|
|
17484
17532
|
if (routesData[i].children) {
|
|
17485
|
-
|
|
17533
|
+
_setMenuTreeData(routesData[i].children);
|
|
17486
17534
|
}
|
|
17487
17535
|
},
|
|
17488
17536
|
_ret;
|
|
@@ -17503,16 +17551,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17503
17551
|
};
|
|
17504
17552
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17505
17553
|
var routerMap = {};
|
|
17506
|
-
var
|
|
17554
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
17507
17555
|
data.forEach(function (menuItem) {
|
|
17508
17556
|
if (menuItem.children) {
|
|
17509
|
-
|
|
17557
|
+
_flattenMenuData(menuItem.children);
|
|
17510
17558
|
}
|
|
17511
17559
|
// Reduce memory usage
|
|
17512
17560
|
routerMap[menuItem.path] = menuItem;
|
|
17513
17561
|
});
|
|
17514
17562
|
};
|
|
17515
|
-
|
|
17563
|
+
_flattenMenuData(menuData);
|
|
17516
17564
|
return routerMap;
|
|
17517
17565
|
};
|
|
17518
17566
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17658,7 +17706,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17658
17706
|
sethomepageData(homepageDataList);
|
|
17659
17707
|
setroutesData(routesDataList);
|
|
17660
17708
|
}, []);
|
|
17661
|
-
var
|
|
17709
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
17662
17710
|
if (!child.hideInMenu && child.children) {
|
|
17663
17711
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17664
17712
|
style: {
|
|
@@ -17668,7 +17716,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17668
17716
|
}, formatMessage({
|
|
17669
17717
|
id: "".concat(child.locale)
|
|
17670
17718
|
})), child.children.map(function (menuItem) {
|
|
17671
|
-
return
|
|
17719
|
+
return _renderChildItem(menuItem);
|
|
17672
17720
|
}));
|
|
17673
17721
|
} else if (!child.hideInMenu && child.path) {
|
|
17674
17722
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17703,7 +17751,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17703
17751
|
className: 'drawerWarp'
|
|
17704
17752
|
}, homepageData && homepageData.filter(function (d) {
|
|
17705
17753
|
return !d.hideInMenu;
|
|
17706
|
-
}).length > 0 && (
|
|
17754
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17707
17755
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17708
17756
|
dataSource: homepageData,
|
|
17709
17757
|
renderItem: function renderItem(child) {
|
|
@@ -17738,7 +17786,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17738
17786
|
bordered: true,
|
|
17739
17787
|
dataSource: item.children,
|
|
17740
17788
|
renderItem: function renderItem(child) {
|
|
17741
|
-
return
|
|
17789
|
+
return _renderChildItem(child);
|
|
17742
17790
|
}
|
|
17743
17791
|
});
|
|
17744
17792
|
})));
|
|
@@ -17798,7 +17846,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17798
17846
|
src: allfunc
|
|
17799
17847
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17800
17848
|
className: 'btnSpan2'
|
|
17801
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
17849
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17802
17850
|
style: {
|
|
17803
17851
|
left: isDrawer ? 140 : 0,
|
|
17804
17852
|
top: 50
|
|
@@ -17844,7 +17892,7 @@ function outLogin(_x) {
|
|
|
17844
17892
|
return _outLogin.apply(this, arguments);
|
|
17845
17893
|
}
|
|
17846
17894
|
function _outLogin() {
|
|
17847
|
-
_outLogin = _asyncToGenerator(
|
|
17895
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17848
17896
|
var res;
|
|
17849
17897
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17850
17898
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17986,7 +18034,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17986
18034
|
});
|
|
17987
18035
|
};
|
|
17988
18036
|
var loginOut = /*#__PURE__*/function () {
|
|
17989
|
-
var _ref2 = _asyncToGenerator(
|
|
18037
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17990
18038
|
var sessionId;
|
|
17991
18039
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17992
18040
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18090,7 +18138,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18090
18138
|
marginRight: '0px'
|
|
18091
18139
|
},
|
|
18092
18140
|
src: './xialajiantou-new.svg'
|
|
18093
|
-
}))))), loginModalParams.visible && (
|
|
18141
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18094
18142
|
};
|
|
18095
18143
|
|
|
18096
18144
|
// -- 查询店铺 --
|
|
@@ -18098,7 +18146,7 @@ function getStoreByName(_x) {
|
|
|
18098
18146
|
return _getStoreByName.apply(this, arguments);
|
|
18099
18147
|
}
|
|
18100
18148
|
function _getStoreByName() {
|
|
18101
|
-
_getStoreByName = _asyncToGenerator(
|
|
18149
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18102
18150
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18103
18151
|
while (1) switch (_context.prev = _context.next) {
|
|
18104
18152
|
case 0:
|
|
@@ -18166,7 +18214,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18166
18214
|
return _fetchUserList.apply(this, arguments);
|
|
18167
18215
|
}
|
|
18168
18216
|
function _fetchUserList() {
|
|
18169
|
-
_fetchUserList = _asyncToGenerator(
|
|
18217
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18170
18218
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18171
18219
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18172
18220
|
case 0:
|
|
@@ -18214,7 +18262,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18214
18262
|
return debounce$1(loadOptions, debounceTimeout);
|
|
18215
18263
|
}, [debounceTimeout, key]);
|
|
18216
18264
|
var changeInput = /*#__PURE__*/function () {
|
|
18217
|
-
var _ref = _asyncToGenerator(
|
|
18265
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18218
18266
|
var res;
|
|
18219
18267
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18220
18268
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18236,7 +18284,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18236
18284
|
};
|
|
18237
18285
|
}();
|
|
18238
18286
|
useEffect(function () {
|
|
18239
|
-
_asyncToGenerator(
|
|
18287
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18240
18288
|
var res;
|
|
18241
18289
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18242
18290
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18401,7 +18449,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18401
18449
|
var resultList = [];
|
|
18402
18450
|
var newRouter = cloneDeep$1(router);
|
|
18403
18451
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18404
|
-
var
|
|
18452
|
+
var _deep = function deep(router) {
|
|
18405
18453
|
if (router && Array.isArray(router)) {
|
|
18406
18454
|
router.forEach(function (item) {
|
|
18407
18455
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18411,7 +18459,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18411
18459
|
d.nameEdit = true;
|
|
18412
18460
|
}
|
|
18413
18461
|
});
|
|
18414
|
-
|
|
18462
|
+
_deep(item.routes);
|
|
18415
18463
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
18416
18464
|
id: "menu.".concat(item.name)
|
|
18417
18465
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18430,7 +18478,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18430
18478
|
}));
|
|
18431
18479
|
}
|
|
18432
18480
|
};
|
|
18433
|
-
|
|
18481
|
+
_deep(newRouter);
|
|
18434
18482
|
setroutesData([].concat(resultList));
|
|
18435
18483
|
};
|
|
18436
18484
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18512,7 +18560,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18512
18560
|
},
|
|
18513
18561
|
title: item.fullPathName
|
|
18514
18562
|
}, renderLineStyl(item.fullPathName));
|
|
18515
|
-
}))))), showSelectStore && (
|
|
18563
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18516
18564
|
employeeCode: employeeCode
|
|
18517
18565
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18518
18566
|
};
|
|
@@ -18527,7 +18575,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18527
18575
|
var TreeNode = Tree.TreeNode;
|
|
18528
18576
|
var Search$2 = Input.Search;
|
|
18529
18577
|
var dataList = [];
|
|
18530
|
-
var
|
|
18578
|
+
var _generateList = function generateList(data) {
|
|
18531
18579
|
for (var i = 0; i < data.length; i++) {
|
|
18532
18580
|
var node = data[i];
|
|
18533
18581
|
var path = node.path,
|
|
@@ -18537,11 +18585,11 @@ var generateList = function generateList(data) {
|
|
|
18537
18585
|
name: name
|
|
18538
18586
|
});
|
|
18539
18587
|
if (node.children) {
|
|
18540
|
-
|
|
18588
|
+
_generateList(node.children);
|
|
18541
18589
|
}
|
|
18542
18590
|
}
|
|
18543
18591
|
};
|
|
18544
|
-
var
|
|
18592
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
18545
18593
|
var parentKey;
|
|
18546
18594
|
for (var i = 0; i < tree.length; i++) {
|
|
18547
18595
|
var node = tree[i];
|
|
@@ -18550,8 +18598,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
18550
18598
|
return item.path === path;
|
|
18551
18599
|
})) {
|
|
18552
18600
|
parentKey = node.path;
|
|
18553
|
-
} else if (
|
|
18554
|
-
parentKey =
|
|
18601
|
+
} else if (_getParentKey(path, node.children)) {
|
|
18602
|
+
parentKey = _getParentKey(path, node.children);
|
|
18555
18603
|
}
|
|
18556
18604
|
}
|
|
18557
18605
|
}
|
|
@@ -18582,7 +18630,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18582
18630
|
var treeData = _this.state.treeData;
|
|
18583
18631
|
var expandedKeys = dataList.map(function (item) {
|
|
18584
18632
|
if (item.name.indexOf(value) > -1) {
|
|
18585
|
-
return
|
|
18633
|
+
return _getParentKey(item.path, treeData);
|
|
18586
18634
|
}
|
|
18587
18635
|
return null;
|
|
18588
18636
|
}).filter(function (item, i, self) {
|
|
@@ -18596,22 +18644,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18596
18644
|
};
|
|
18597
18645
|
_this.getPathList = function (originData) {
|
|
18598
18646
|
var pathList = [];
|
|
18599
|
-
var
|
|
18647
|
+
var _getList = function getList(data) {
|
|
18600
18648
|
if (Array.isArray(data)) {
|
|
18601
18649
|
data.forEach(function (item) {
|
|
18602
18650
|
pathList.push(item.path);
|
|
18603
18651
|
if (item.children) {
|
|
18604
|
-
|
|
18652
|
+
_getList(item.children);
|
|
18605
18653
|
}
|
|
18606
18654
|
});
|
|
18607
18655
|
} else {
|
|
18608
18656
|
pathList.push(data.path);
|
|
18609
18657
|
if (data.children) {
|
|
18610
|
-
|
|
18658
|
+
_getList(data.children);
|
|
18611
18659
|
}
|
|
18612
18660
|
}
|
|
18613
18661
|
};
|
|
18614
|
-
|
|
18662
|
+
_getList(originData);
|
|
18615
18663
|
return pathList;
|
|
18616
18664
|
};
|
|
18617
18665
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18620,18 +18668,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18620
18668
|
customerMenuData = _this$props.customerMenuData,
|
|
18621
18669
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18622
18670
|
var filterItem;
|
|
18623
|
-
var
|
|
18671
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
18624
18672
|
menuData.forEach(function (item) {
|
|
18625
18673
|
if (item.path === path) {
|
|
18626
18674
|
filterItem = _objectSpread2({}, item);
|
|
18627
18675
|
return;
|
|
18628
18676
|
}
|
|
18629
18677
|
if (item.children) {
|
|
18630
|
-
|
|
18678
|
+
_filterMenuItem(item.children);
|
|
18631
18679
|
}
|
|
18632
18680
|
});
|
|
18633
18681
|
};
|
|
18634
|
-
|
|
18682
|
+
_filterMenuItem(treeData);
|
|
18635
18683
|
var addPathList = _this.getPathList(filterItem);
|
|
18636
18684
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18637
18685
|
var isRepet = false;
|
|
@@ -18661,8 +18709,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18661
18709
|
return item.path === '/';
|
|
18662
18710
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18663
18711
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18664
|
-
|
|
18665
|
-
|
|
18712
|
+
_setMenuTreeData(routesData);
|
|
18713
|
+
_generateList(routesData);
|
|
18666
18714
|
this.setState({
|
|
18667
18715
|
treeData: routesData
|
|
18668
18716
|
});
|
|
@@ -18676,16 +18724,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18676
18724
|
expandedKeys = _this$state.expandedKeys,
|
|
18677
18725
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18678
18726
|
treeData = _this$state.treeData;
|
|
18679
|
-
var
|
|
18727
|
+
var _loop = function loop(data) {
|
|
18680
18728
|
return data.map(function (item) {
|
|
18681
18729
|
var index = item.name.indexOf(searchValue);
|
|
18682
18730
|
var beforeStr = item.name.substr(0, index);
|
|
18683
18731
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18684
|
-
var name = index > -1 ? (
|
|
18732
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18685
18733
|
style: {
|
|
18686
18734
|
color: '#f50'
|
|
18687
18735
|
}
|
|
18688
|
-
}, searchValue), afterStr)) : (
|
|
18736
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18689
18737
|
if (item.children && item.children.length) {
|
|
18690
18738
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18691
18739
|
path: item.path,
|
|
@@ -18707,7 +18755,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18707
18755
|
width: 18,
|
|
18708
18756
|
src: arrowRight
|
|
18709
18757
|
}))))
|
|
18710
|
-
},
|
|
18758
|
+
}, _loop(item.children));
|
|
18711
18759
|
}
|
|
18712
18760
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18713
18761
|
path: item.path,
|
|
@@ -18757,7 +18805,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18757
18805
|
onExpand: this.onExpand,
|
|
18758
18806
|
expandedKeys: expandedKeys,
|
|
18759
18807
|
autoExpandParent: autoExpandParent
|
|
18760
|
-
},
|
|
18808
|
+
}, _loop(treeData))));
|
|
18761
18809
|
}
|
|
18762
18810
|
}]);
|
|
18763
18811
|
}(React$1.Component);
|
|
@@ -18790,24 +18838,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18790
18838
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18791
18839
|
var dragObj;
|
|
18792
18840
|
var finalDropItem;
|
|
18793
|
-
var
|
|
18841
|
+
var _loop = function loop(data, path, callback) {
|
|
18794
18842
|
for (var i = 0; i < data.length; i++) {
|
|
18795
18843
|
if (data[i].path === path) {
|
|
18796
18844
|
return callback(data[i], i, data);
|
|
18797
18845
|
}
|
|
18798
18846
|
if (data[i].children) {
|
|
18799
|
-
|
|
18847
|
+
_loop(data[i].children, path, callback);
|
|
18800
18848
|
}
|
|
18801
18849
|
}
|
|
18802
18850
|
};
|
|
18803
18851
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18804
|
-
|
|
18852
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
18805
18853
|
arr.splice(index, 1);
|
|
18806
18854
|
dragObj = item;
|
|
18807
18855
|
});
|
|
18808
18856
|
if (!info.dropToGap) {
|
|
18809
18857
|
// Drop on the content
|
|
18810
|
-
|
|
18858
|
+
_loop(data, dropKey, function (item) {
|
|
18811
18859
|
item.children = item.children || [];
|
|
18812
18860
|
item.children.unshift(dragObj);
|
|
18813
18861
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18818,7 +18866,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18818
18866
|
// Is expanded
|
|
18819
18867
|
dropPosition === 1 // On the bottom gap
|
|
18820
18868
|
) {
|
|
18821
|
-
|
|
18869
|
+
_loop(data, dropKey, function (item) {
|
|
18822
18870
|
item.children = item.children || [];
|
|
18823
18871
|
item.children.unshift(dragObj);
|
|
18824
18872
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18826,7 +18874,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18826
18874
|
} else {
|
|
18827
18875
|
var ar;
|
|
18828
18876
|
var i;
|
|
18829
|
-
|
|
18877
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
18830
18878
|
ar = arr;
|
|
18831
18879
|
i = index;
|
|
18832
18880
|
});
|
|
@@ -18865,17 +18913,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18865
18913
|
title: '编辑名称',
|
|
18866
18914
|
callBack: function callBack(newName) {
|
|
18867
18915
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18868
|
-
var
|
|
18916
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18869
18917
|
oldTreeData.forEach(function (treeItem) {
|
|
18870
18918
|
if (treeItem.path === item.path) {
|
|
18871
18919
|
treeItem.name = newName;
|
|
18872
18920
|
}
|
|
18873
18921
|
if (treeItem.children) {
|
|
18874
|
-
|
|
18922
|
+
_editTreeDataName(treeItem.children);
|
|
18875
18923
|
}
|
|
18876
18924
|
});
|
|
18877
18925
|
};
|
|
18878
|
-
|
|
18926
|
+
_editTreeDataName(oldTreeData);
|
|
18879
18927
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18880
18928
|
_this.setState({
|
|
18881
18929
|
modalInfo: {
|
|
@@ -18920,7 +18968,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18920
18968
|
title: '新增子目录',
|
|
18921
18969
|
callBack: function callBack(newName) {
|
|
18922
18970
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18923
|
-
var
|
|
18971
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
18924
18972
|
oldTreeData.forEach(function (treeItem) {
|
|
18925
18973
|
if (treeItem.path === item.path) {
|
|
18926
18974
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18932,11 +18980,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18932
18980
|
}];
|
|
18933
18981
|
}
|
|
18934
18982
|
if (treeItem.children) {
|
|
18935
|
-
|
|
18983
|
+
_addChildFolder(treeItem.children);
|
|
18936
18984
|
}
|
|
18937
18985
|
});
|
|
18938
18986
|
};
|
|
18939
|
-
|
|
18987
|
+
_addChildFolder(oldTreeData);
|
|
18940
18988
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18941
18989
|
_this.setState({
|
|
18942
18990
|
modalInfo: {
|
|
@@ -18995,7 +19043,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18995
19043
|
var _this$state = this.state,
|
|
18996
19044
|
modalInfo = _this$state.modalInfo,
|
|
18997
19045
|
checkedKeys = _this$state.checkedKeys;
|
|
18998
|
-
var
|
|
19046
|
+
var _loop2 = function loop(data) {
|
|
18999
19047
|
return data.map(function (item) {
|
|
19000
19048
|
if (item.children && item.children.length) {
|
|
19001
19049
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19012,7 +19060,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19012
19060
|
e.stopPropagation();
|
|
19013
19061
|
}
|
|
19014
19062
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19015
|
-
},
|
|
19063
|
+
}, _loop2(item.children));
|
|
19016
19064
|
}
|
|
19017
19065
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19018
19066
|
path: item.path,
|
|
@@ -19091,7 +19139,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19091
19139
|
children: 'children'
|
|
19092
19140
|
},
|
|
19093
19141
|
onDrop: this.onDrop
|
|
19094
|
-
},
|
|
19142
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
19095
19143
|
width: 600,
|
|
19096
19144
|
bodyStyle: {
|
|
19097
19145
|
paddingTop: '32px',
|
|
@@ -19204,7 +19252,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19204
19252
|
pathname: item.path
|
|
19205
19253
|
});
|
|
19206
19254
|
};
|
|
19207
|
-
var
|
|
19255
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
19208
19256
|
return menuData.map(function (item) {
|
|
19209
19257
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
19210
19258
|
style: {
|
|
@@ -19219,7 +19267,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19219
19267
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19220
19268
|
paddingLeft: '4px'
|
|
19221
19269
|
}
|
|
19222
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19270
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
19223
19271
|
});
|
|
19224
19272
|
};
|
|
19225
19273
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19245,7 +19293,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19245
19293
|
style: {
|
|
19246
19294
|
paddingLeft: '5px'
|
|
19247
19295
|
}
|
|
19248
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
19296
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19249
19297
|
style: {
|
|
19250
19298
|
left: isDrawer ? 140 : 0
|
|
19251
19299
|
},
|
|
@@ -19266,7 +19314,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19266
19314
|
visible: isDrawer
|
|
19267
19315
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19268
19316
|
className: 'menu_title_line'
|
|
19269
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19317
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19270
19318
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19271
19319
|
style: {
|
|
19272
19320
|
fontWeight: '600',
|
|
@@ -19340,7 +19388,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19340
19388
|
return item.path === '/';
|
|
19341
19389
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19342
19390
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19343
|
-
|
|
19391
|
+
_setMenuTreeData(routesData);
|
|
19344
19392
|
routesData.forEach(function (item) {
|
|
19345
19393
|
if (item.children) {
|
|
19346
19394
|
routesDataList.push(item);
|
|
@@ -19370,7 +19418,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19370
19418
|
setHeight(clientHeight - 190);
|
|
19371
19419
|
setDrawHeight(clientHeight - 70);
|
|
19372
19420
|
};
|
|
19373
|
-
var
|
|
19421
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
19374
19422
|
if (!child.hideInMenu && child.children) {
|
|
19375
19423
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19376
19424
|
style: {
|
|
@@ -19380,7 +19428,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19380
19428
|
}, formatMessage({
|
|
19381
19429
|
id: "".concat(child.locale)
|
|
19382
19430
|
})), child.children.map(function (menuItem) {
|
|
19383
|
-
return
|
|
19431
|
+
return _renderChildItem(menuItem);
|
|
19384
19432
|
}));
|
|
19385
19433
|
} else if (!child.hideInMenu && child.path) {
|
|
19386
19434
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19522,7 +19570,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19522
19570
|
onMenuClick(e, item);
|
|
19523
19571
|
}
|
|
19524
19572
|
}, item.name);
|
|
19525
|
-
}))), !!SearhData.length ? (
|
|
19573
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19526
19574
|
className: 'search_menu_content'
|
|
19527
19575
|
}, SearhData.map(function (item) {
|
|
19528
19576
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19531,7 +19579,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19531
19579
|
},
|
|
19532
19580
|
key: item.path
|
|
19533
19581
|
}, item.name);
|
|
19534
|
-
}))) : (
|
|
19582
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19535
19583
|
style: {
|
|
19536
19584
|
height: "".concat(rightMenuHeight, "px"),
|
|
19537
19585
|
overflowY: 'scroll',
|
|
@@ -19543,7 +19591,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19543
19591
|
className: 'drawerWarp_right'
|
|
19544
19592
|
}, homepageData && homepageData.filter(function (d) {
|
|
19545
19593
|
return !d.hideInMenu;
|
|
19546
|
-
}).length > 0 && (
|
|
19594
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19547
19595
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19548
19596
|
dataSource: homepageData,
|
|
19549
19597
|
renderItem: function renderItem(child) {
|
|
@@ -19584,7 +19632,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19584
19632
|
bordered: true,
|
|
19585
19633
|
dataSource: item.children,
|
|
19586
19634
|
renderItem: function renderItem(child) {
|
|
19587
|
-
return
|
|
19635
|
+
return _renderChildItem(child);
|
|
19588
19636
|
}
|
|
19589
19637
|
});
|
|
19590
19638
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19742,10 +19790,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19742
19790
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19743
19791
|
var menuKeys = [];
|
|
19744
19792
|
var docsId = [];
|
|
19745
|
-
var
|
|
19793
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19746
19794
|
data.forEach(function (item) {
|
|
19747
19795
|
if (item.children && item.children.length > 0) {
|
|
19748
|
-
|
|
19796
|
+
_getLimitedMenuKeys(item.children);
|
|
19749
19797
|
} else {
|
|
19750
19798
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19751
19799
|
menuKeys.push(originPath);
|
|
@@ -19756,7 +19804,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19756
19804
|
});
|
|
19757
19805
|
};
|
|
19758
19806
|
try {
|
|
19759
|
-
|
|
19807
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
19760
19808
|
} catch (e) {}
|
|
19761
19809
|
return {
|
|
19762
19810
|
menuKeys: menuKeys,
|
|
@@ -19990,10 +20038,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19990
20038
|
return (node.path || '').includes('all-general-documents');
|
|
19991
20039
|
};
|
|
19992
20040
|
// 递归获取树列表
|
|
19993
|
-
var
|
|
20041
|
+
var _getTreeList = function getTreeList(data) {
|
|
19994
20042
|
data.forEach(function (node) {
|
|
19995
20043
|
if (node.routes && node.routes.length > 0) {
|
|
19996
|
-
|
|
20044
|
+
_getTreeList(node.routes);
|
|
19997
20045
|
return;
|
|
19998
20046
|
}
|
|
19999
20047
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20024,7 +20072,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20024
20072
|
}
|
|
20025
20073
|
});
|
|
20026
20074
|
};
|
|
20027
|
-
|
|
20075
|
+
_getTreeList(treeData);
|
|
20028
20076
|
return treeList;
|
|
20029
20077
|
};
|
|
20030
20078
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20653,7 +20701,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20653
20701
|
updateState = _ref8.updateState;
|
|
20654
20702
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20655
20703
|
className: "tab_title_content"
|
|
20656
|
-
}, item.tab, item.key !== '/' && (
|
|
20704
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20657
20705
|
info: item,
|
|
20658
20706
|
operateFun: _this3.operateFun,
|
|
20659
20707
|
listenRouterState: listenRouterState
|
|
@@ -20789,7 +20837,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20789
20837
|
};
|
|
20790
20838
|
}
|
|
20791
20839
|
var OperationsSlot = {
|
|
20792
|
-
left: (
|
|
20840
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20793
20841
|
className: 'tab_left_operate'
|
|
20794
20842
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20795
20843
|
onClick: function onClick() {
|
|
@@ -20805,7 +20853,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20805
20853
|
_this3.setTabNavTransLate(-100);
|
|
20806
20854
|
}
|
|
20807
20855
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20808
|
-
right: (
|
|
20856
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20809
20857
|
style: {
|
|
20810
20858
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20811
20859
|
},
|
|
@@ -20903,7 +20951,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20903
20951
|
onMouseLeave: function onMouseLeave() {
|
|
20904
20952
|
_this3.setShowMenu(false);
|
|
20905
20953
|
}
|
|
20906
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
20954
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20907
20955
|
style: {
|
|
20908
20956
|
position: 'absolute',
|
|
20909
20957
|
top: '14px',
|
|
@@ -20922,7 +20970,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20922
20970
|
postMenuData: function postMenuData(menus) {
|
|
20923
20971
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20924
20972
|
},
|
|
20925
|
-
links: [!this.state.collapse ? (
|
|
20973
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20926
20974
|
ref: this.allFunc,
|
|
20927
20975
|
itemPath: itemPath,
|
|
20928
20976
|
handleClose: this.handleClose,
|
|
@@ -20940,7 +20988,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20940
20988
|
},
|
|
20941
20989
|
menu: {
|
|
20942
20990
|
request: function () {
|
|
20943
|
-
var _request = _asyncToGenerator(
|
|
20991
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20944
20992
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20945
20993
|
while (1) switch (_context.prev = _context.next) {
|
|
20946
20994
|
case 0:
|
|
@@ -21075,7 +21123,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21075
21123
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21076
21124
|
timeFormat = _this$props4.timeFormat,
|
|
21077
21125
|
transparentProps = _this$props4.transparentProps;
|
|
21078
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
21126
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
21079
21127
|
getDictionarySource: getDictionarySource,
|
|
21080
21128
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21081
21129
|
timeFormat: timeFormat
|
|
@@ -21099,12 +21147,12 @@ var index$5 = (function (props) {
|
|
|
21099
21147
|
});
|
|
21100
21148
|
|
|
21101
21149
|
// @ts-nocheck
|
|
21102
|
-
var
|
|
21150
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
21103
21151
|
var result = [];
|
|
21104
21152
|
columns.forEach(function (column) {
|
|
21105
21153
|
if (column.children) {
|
|
21106
21154
|
result.push(column);
|
|
21107
|
-
result.push.apply(result,
|
|
21155
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
21108
21156
|
} else {
|
|
21109
21157
|
result.push(column);
|
|
21110
21158
|
}
|
|
@@ -21113,7 +21161,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
21113
21161
|
};
|
|
21114
21162
|
var convertToRows = function convertToRows(originColumns) {
|
|
21115
21163
|
var maxLevel = 1;
|
|
21116
|
-
var
|
|
21164
|
+
var _traverse = function traverse(column, parent) {
|
|
21117
21165
|
if (parent) {
|
|
21118
21166
|
column.level = parent.level + 1;
|
|
21119
21167
|
if (maxLevel < column.level) {
|
|
@@ -21123,7 +21171,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21123
21171
|
if (column.children) {
|
|
21124
21172
|
var colSpan = 0;
|
|
21125
21173
|
column.children.forEach(function (subColumn) {
|
|
21126
|
-
|
|
21174
|
+
_traverse(subColumn, column);
|
|
21127
21175
|
colSpan += subColumn.colSpan;
|
|
21128
21176
|
});
|
|
21129
21177
|
column.colSpan = colSpan;
|
|
@@ -21133,13 +21181,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21133
21181
|
};
|
|
21134
21182
|
originColumns.forEach(function (column) {
|
|
21135
21183
|
column.level = 1;
|
|
21136
|
-
|
|
21184
|
+
_traverse(column);
|
|
21137
21185
|
});
|
|
21138
21186
|
var rows = [];
|
|
21139
21187
|
for (var i = 0; i < maxLevel; i++) {
|
|
21140
21188
|
rows.push([]);
|
|
21141
21189
|
}
|
|
21142
|
-
var allColumns =
|
|
21190
|
+
var allColumns = _getAllColumns(originColumns);
|
|
21143
21191
|
allColumns.forEach(function (column) {
|
|
21144
21192
|
if (!column.children) {
|
|
21145
21193
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21179,7 +21227,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21179
21227
|
};
|
|
21180
21228
|
var headersToRows = function headersToRows(originColumns) {
|
|
21181
21229
|
var maxLevel = 1;
|
|
21182
|
-
var
|
|
21230
|
+
var _traverse2 = function traverse(column, parent) {
|
|
21183
21231
|
if (parent) {
|
|
21184
21232
|
//计算当前元素属于第几个层级
|
|
21185
21233
|
column.level = parent.level + 1;
|
|
@@ -21192,7 +21240,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21192
21240
|
var colSpan = 0;
|
|
21193
21241
|
column.children.forEach(function (subColumn) {
|
|
21194
21242
|
//进行递归
|
|
21195
|
-
|
|
21243
|
+
_traverse2(subColumn, column);
|
|
21196
21244
|
colSpan += subColumn.colSpan;
|
|
21197
21245
|
});
|
|
21198
21246
|
column.colSpan = colSpan;
|
|
@@ -21202,14 +21250,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21202
21250
|
};
|
|
21203
21251
|
originColumns.forEach(function (column) {
|
|
21204
21252
|
column.level = 1;
|
|
21205
|
-
|
|
21253
|
+
_traverse2(column);
|
|
21206
21254
|
});
|
|
21207
21255
|
var rows = [];
|
|
21208
21256
|
var lastData = [];
|
|
21209
21257
|
for (var i = 0; i < maxLevel; i++) {
|
|
21210
21258
|
rows.push([]);
|
|
21211
21259
|
}
|
|
21212
|
-
var allColumns =
|
|
21260
|
+
var allColumns = _getAllColumns(originColumns);
|
|
21213
21261
|
allColumns.forEach(function (column) {
|
|
21214
21262
|
if (!column.children) {
|
|
21215
21263
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27226,7 +27274,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27226
27274
|
}
|
|
27227
27275
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27228
27276
|
};
|
|
27229
|
-
var
|
|
27277
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
27230
27278
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27231
27279
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27232
27280
|
var children = hightLightData.children,
|
|
@@ -27237,7 +27285,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27237
27285
|
lineEnd = _loc2[2];
|
|
27238
27286
|
if (children) {
|
|
27239
27287
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27240
|
-
return
|
|
27288
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
27241
27289
|
});
|
|
27242
27290
|
}
|
|
27243
27291
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27249,7 +27297,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27249
27297
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27250
27298
|
data.forEach(function (node) {
|
|
27251
27299
|
if (!node) return;
|
|
27252
|
-
node.toggled =
|
|
27300
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
27253
27301
|
node.active = isHightLight(node, highLightLine);
|
|
27254
27302
|
if (node.children) {
|
|
27255
27303
|
if (node.active) {
|
|
@@ -28680,7 +28728,7 @@ var valueType = {
|
|
|
28680
28728
|
};
|
|
28681
28729
|
|
|
28682
28730
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28683
|
-
var _ref = _asyncToGenerator(
|
|
28731
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28684
28732
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28685
28733
|
while (1) switch (_context.prev = _context.next) {
|
|
28686
28734
|
case 0:
|
|
@@ -28748,7 +28796,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28748
28796
|
value: false
|
|
28749
28797
|
}];
|
|
28750
28798
|
var ref = useRef();
|
|
28751
|
-
useMount(
|
|
28799
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28752
28800
|
var _ref$current, source;
|
|
28753
28801
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28754
28802
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28862,7 +28910,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28862
28910
|
source: {
|
|
28863
28911
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28864
28912
|
type: function () {
|
|
28865
|
-
var _type = _asyncToGenerator(
|
|
28913
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28866
28914
|
var form, values, name, relates, source;
|
|
28867
28915
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28868
28916
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29342,7 +29390,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29342
29390
|
source: {
|
|
29343
29391
|
relates: ['choiceType', 'inputType'],
|
|
29344
29392
|
type: function () {
|
|
29345
|
-
var _type2 = _asyncToGenerator(
|
|
29393
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29346
29394
|
var values, name, form, source;
|
|
29347
29395
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29348
29396
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29564,7 +29612,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29564
29612
|
width: 900,
|
|
29565
29613
|
maskClosable: false,
|
|
29566
29614
|
onOk: function () {
|
|
29567
|
-
var _onOk = _asyncToGenerator(
|
|
29615
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29568
29616
|
var _ref$current4, _res$editableStatus;
|
|
29569
29617
|
var res, _res$defaultValue;
|
|
29570
29618
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29636,7 +29684,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29636
29684
|
}()
|
|
29637
29685
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29638
29686
|
ref: ref
|
|
29639
|
-
})), maintainOptionsModal.visible && (
|
|
29687
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29640
29688
|
};
|
|
29641
29689
|
|
|
29642
29690
|
// @ts-nocheck
|
|
@@ -30250,7 +30298,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30250
30298
|
return setVisible(false);
|
|
30251
30299
|
},
|
|
30252
30300
|
className: 'customFieldsDrawer'
|
|
30253
|
-
}, detailTablesSetting.length == 0 && (
|
|
30301
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30254
30302
|
style: {
|
|
30255
30303
|
display: 'flex'
|
|
30256
30304
|
}
|
|
@@ -30259,13 +30307,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30259
30307
|
flex: 1,
|
|
30260
30308
|
width: 500
|
|
30261
30309
|
}
|
|
30262
|
-
}, isEmpty(moduleParams) ? (
|
|
30310
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30263
30311
|
style: {
|
|
30264
30312
|
padding: "10px 0",
|
|
30265
30313
|
fontSize: "16px",
|
|
30266
30314
|
fontWeight: "bolder"
|
|
30267
30315
|
}
|
|
30268
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
30316
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30269
30317
|
style: {
|
|
30270
30318
|
flex: 1
|
|
30271
30319
|
}
|
|
@@ -30274,7 +30322,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30274
30322
|
onRun: onClickRun,
|
|
30275
30323
|
value: jsonEditorVal,
|
|
30276
30324
|
shallowHeight: height
|
|
30277
|
-
})))), detailTablesSetting.length > 0 && (
|
|
30325
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30278
30326
|
defaultActiveKey: activeKey,
|
|
30279
30327
|
onChange: function onChange(v) {
|
|
30280
30328
|
return setActiveKey(v);
|
|
@@ -30291,13 +30339,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30291
30339
|
flex: 1,
|
|
30292
30340
|
width: 500
|
|
30293
30341
|
}
|
|
30294
|
-
}, isEmpty(moduleParams) ? (
|
|
30342
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30295
30343
|
style: {
|
|
30296
30344
|
padding: "10px 0",
|
|
30297
30345
|
fontSize: "16px",
|
|
30298
30346
|
fontWeight: "bolder"
|
|
30299
30347
|
}
|
|
30300
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
30348
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30301
30349
|
style: {
|
|
30302
30350
|
flex: 1
|
|
30303
30351
|
}
|
|
@@ -30319,13 +30367,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30319
30367
|
flex: 1,
|
|
30320
30368
|
width: 500
|
|
30321
30369
|
}
|
|
30322
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
30370
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30323
30371
|
style: {
|
|
30324
30372
|
padding: "10px 0",
|
|
30325
30373
|
fontSize: "16px",
|
|
30326
30374
|
fontWeight: "bolder"
|
|
30327
30375
|
}
|
|
30328
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
30376
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
30329
30377
|
style: {
|
|
30330
30378
|
flex: 1
|
|
30331
30379
|
}
|
|
@@ -30471,7 +30519,7 @@ function getMetaData(_x) {
|
|
|
30471
30519
|
|
|
30472
30520
|
// 获取数据
|
|
30473
30521
|
function _getMetaData() {
|
|
30474
|
-
_getMetaData = _asyncToGenerator(
|
|
30522
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30475
30523
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30476
30524
|
while (1) switch (_context.prev = _context.next) {
|
|
30477
30525
|
case 0:
|
|
@@ -30693,7 +30741,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30693
30741
|
tableState = _useState4[0],
|
|
30694
30742
|
setTableState = _useState4[1];
|
|
30695
30743
|
var handleOpen = /*#__PURE__*/function () {
|
|
30696
|
-
var _ref = _asyncToGenerator(
|
|
30744
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30697
30745
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30698
30746
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30699
30747
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31012,7 +31060,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31012
31060
|
destroyOnClose: true
|
|
31013
31061
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31014
31062
|
ref: queryTableRef
|
|
31015
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
31063
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React$1.createElement(Row, {
|
|
31016
31064
|
justify: "center",
|
|
31017
31065
|
style: {
|
|
31018
31066
|
marginBottom: 30,
|
|
@@ -31128,7 +31176,7 @@ var CustomSelector = (function (props) {
|
|
|
31128
31176
|
var _props$ctx7;
|
|
31129
31177
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31130
31178
|
}
|
|
31131
|
-
})), showType === 'modalTable' && (
|
|
31179
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
31132
31180
|
type: "primary",
|
|
31133
31181
|
style: {
|
|
31134
31182
|
width: '30px',
|
|
@@ -31214,7 +31262,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31214
31262
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31215
31263
|
handSource = _useState2[0],
|
|
31216
31264
|
setHandSource = _useState2[1];
|
|
31217
|
-
useEffect(
|
|
31265
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31218
31266
|
var resData, data;
|
|
31219
31267
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31220
31268
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31366,7 +31414,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31366
31414
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31367
31415
|
}
|
|
31368
31416
|
function _getRegularThresholdRange() {
|
|
31369
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
31417
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31370
31418
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31371
31419
|
while (1) switch (_context.prev = _context.next) {
|
|
31372
31420
|
case 0:
|
|
@@ -31520,7 +31568,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31520
31568
|
};
|
|
31521
31569
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31522
31570
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31523
|
-
var _ref = _asyncToGenerator(
|
|
31571
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31524
31572
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31525
31573
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31526
31574
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32465,7 +32513,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32465
32513
|
isAll: true,
|
|
32466
32514
|
needNameAndCode: true,
|
|
32467
32515
|
notChangeOnSelect: true,
|
|
32468
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32516
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32469
32517
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32470
32518
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32471
32519
|
case 0:
|
|
@@ -32514,7 +32562,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32514
32562
|
isAll: true,
|
|
32515
32563
|
needNameAndCode: true,
|
|
32516
32564
|
notChangeOnSelect: true,
|
|
32517
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32565
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32518
32566
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32519
32567
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32520
32568
|
case 0:
|
|
@@ -32565,7 +32613,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32565
32613
|
isAll: true,
|
|
32566
32614
|
needNameAndCode: true,
|
|
32567
32615
|
notChangeOnSelect: true,
|
|
32568
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32616
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32569
32617
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32570
32618
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32571
32619
|
case 0:
|
|
@@ -34529,7 +34577,7 @@ var App$1 = function App(_ref) {
|
|
|
34529
34577
|
borderRadius: '5px',
|
|
34530
34578
|
cursor: 'pointer'
|
|
34531
34579
|
}
|
|
34532
|
-
}, isStaticNumber ? (
|
|
34580
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34533
34581
|
autoFocus: true,
|
|
34534
34582
|
onClick: function onClick(e) {
|
|
34535
34583
|
return e.stopPropagation();
|
|
@@ -34816,7 +34864,7 @@ function RenderCompItem(props) {
|
|
|
34816
34864
|
dictData = _useState2[0],
|
|
34817
34865
|
setDictData = _useState2[1];
|
|
34818
34866
|
var getDictData = /*#__PURE__*/function () {
|
|
34819
|
-
var _ref = _asyncToGenerator(
|
|
34867
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34820
34868
|
var _data$map;
|
|
34821
34869
|
var data;
|
|
34822
34870
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34858,7 +34906,7 @@ function RenderCompItem(props) {
|
|
|
34858
34906
|
var style2 = {
|
|
34859
34907
|
width: '100px'
|
|
34860
34908
|
};
|
|
34861
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (
|
|
34909
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
|
|
34862
34910
|
disabled: disabled,
|
|
34863
34911
|
allowClear: true,
|
|
34864
34912
|
onClear: function onClear() {
|
|
@@ -34869,7 +34917,7 @@ function RenderCompItem(props) {
|
|
|
34869
34917
|
onBlur: function onBlur(e) {
|
|
34870
34918
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34871
34919
|
}
|
|
34872
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (
|
|
34920
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React$1.createElement(InputNumber, {
|
|
34873
34921
|
disabled: disabled,
|
|
34874
34922
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34875
34923
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34882,7 +34930,7 @@ function RenderCompItem(props) {
|
|
|
34882
34930
|
onChange: function onChange(value) {
|
|
34883
34931
|
handleEdit(ites.code, value);
|
|
34884
34932
|
}
|
|
34885
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (
|
|
34933
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React$1.createElement(DatePicker, {
|
|
34886
34934
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34887
34935
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34888
34936
|
disabled: disabled,
|
|
@@ -34892,7 +34940,7 @@ function RenderCompItem(props) {
|
|
|
34892
34940
|
onChange: function onChange(value, dateString) {
|
|
34893
34941
|
handleEdit(ites.code, dateString);
|
|
34894
34942
|
}
|
|
34895
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
34943
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
34896
34944
|
showTime: true,
|
|
34897
34945
|
disabled: disabled,
|
|
34898
34946
|
defaultValue: ites.defaultValue,
|
|
@@ -34901,7 +34949,7 @@ function RenderCompItem(props) {
|
|
|
34901
34949
|
onChange: function onChange(value, timeString) {
|
|
34902
34950
|
handleEdit(ites.code, timeString);
|
|
34903
34951
|
}
|
|
34904
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
34952
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
|
|
34905
34953
|
disabled: disabled,
|
|
34906
34954
|
defaultChecked: !!ites.defaultValue,
|
|
34907
34955
|
style: style2,
|
|
@@ -34909,7 +34957,7 @@ function RenderCompItem(props) {
|
|
|
34909
34957
|
onChange: function onChange(value) {
|
|
34910
34958
|
handleEdit(ites.code, value);
|
|
34911
34959
|
}
|
|
34912
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (
|
|
34960
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
34913
34961
|
disabled: disabled,
|
|
34914
34962
|
allowClear: true,
|
|
34915
34963
|
showArrow: true
|
|
@@ -34927,7 +34975,7 @@ function RenderCompItem(props) {
|
|
|
34927
34975
|
key: it,
|
|
34928
34976
|
value: it
|
|
34929
34977
|
}, ites.enumeration[it]);
|
|
34930
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (
|
|
34978
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
34931
34979
|
disabled: disabled,
|
|
34932
34980
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34933
34981
|
defaultValue: ites.defaultValue,
|
|
@@ -34937,7 +34985,7 @@ function RenderCompItem(props) {
|
|
|
34937
34985
|
handleEdit(ites.code, value);
|
|
34938
34986
|
},
|
|
34939
34987
|
dictionaryCode: ites.dictionaryCode
|
|
34940
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (
|
|
34988
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34941
34989
|
selectBusinessType: "physicalWarehouse",
|
|
34942
34990
|
selectProps: _objectSpread2({
|
|
34943
34991
|
style: styleCommon,
|
|
@@ -34959,7 +35007,7 @@ function RenderCompItem(props) {
|
|
|
34959
35007
|
getPopupContainer: function getPopupContainer() {
|
|
34960
35008
|
return document.body;
|
|
34961
35009
|
}
|
|
34962
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (
|
|
35010
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34963
35011
|
selectBusinessType: "realWarehouse",
|
|
34964
35012
|
selectProps: _objectSpread2({
|
|
34965
35013
|
style: styleCommon,
|
|
@@ -34981,7 +35029,7 @@ function RenderCompItem(props) {
|
|
|
34981
35029
|
getPopupContainer: function getPopupContainer() {
|
|
34982
35030
|
return document.body;
|
|
34983
35031
|
}
|
|
34984
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (
|
|
35032
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34985
35033
|
selectBusinessType: "virtualWarehouse",
|
|
34986
35034
|
selectProps: _objectSpread2({
|
|
34987
35035
|
style: styleCommon,
|
|
@@ -35003,7 +35051,7 @@ function RenderCompItem(props) {
|
|
|
35003
35051
|
getPopupContainer: function getPopupContainer() {
|
|
35004
35052
|
return document.body;
|
|
35005
35053
|
}
|
|
35006
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (
|
|
35054
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35007
35055
|
selectBusinessType: "channelWarehouse",
|
|
35008
35056
|
selectProps: _objectSpread2({
|
|
35009
35057
|
style: styleCommon,
|
|
@@ -35025,7 +35073,7 @@ function RenderCompItem(props) {
|
|
|
35025
35073
|
getPopupContainer: function getPopupContainer() {
|
|
35026
35074
|
return document.body;
|
|
35027
35075
|
}
|
|
35028
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (
|
|
35076
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35029
35077
|
selectBusinessType: "spuCommodity",
|
|
35030
35078
|
selectProps: _objectSpread2({
|
|
35031
35079
|
style: styleCommon,
|
|
@@ -35046,7 +35094,7 @@ function RenderCompItem(props) {
|
|
|
35046
35094
|
getPopupContainer: function getPopupContainer() {
|
|
35047
35095
|
return document.body;
|
|
35048
35096
|
}
|
|
35049
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (
|
|
35097
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35050
35098
|
selectBusinessType: "skuCommodity",
|
|
35051
35099
|
selectProps: _objectSpread2({
|
|
35052
35100
|
style: styleCommon,
|
|
@@ -35067,13 +35115,13 @@ function RenderCompItem(props) {
|
|
|
35067
35115
|
getPopupContainer: function getPopupContainer() {
|
|
35068
35116
|
return document.body;
|
|
35069
35117
|
}
|
|
35070
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (
|
|
35118
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
35071
35119
|
disabled: disabled,
|
|
35072
35120
|
isAll: true,
|
|
35073
35121
|
needNameAndCode: true,
|
|
35074
35122
|
notChangeOnSelect: true,
|
|
35075
35123
|
initRequestSource: function () {
|
|
35076
|
-
var _initRequestSource = _asyncToGenerator(
|
|
35124
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35077
35125
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35078
35126
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35079
35127
|
case 0:
|
|
@@ -35115,7 +35163,7 @@ function RenderCompItem(props) {
|
|
|
35115
35163
|
getPopupContainer: function getPopupContainer() {
|
|
35116
35164
|
return document.body;
|
|
35117
35165
|
}
|
|
35118
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (
|
|
35166
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35119
35167
|
disabled: disabled,
|
|
35120
35168
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35121
35169
|
businessType: "department",
|
|
@@ -35128,7 +35176,7 @@ function RenderCompItem(props) {
|
|
|
35128
35176
|
getPopupContainer: function getPopupContainer() {
|
|
35129
35177
|
return document.body;
|
|
35130
35178
|
}
|
|
35131
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (
|
|
35179
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35132
35180
|
disabled: disabled,
|
|
35133
35181
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35134
35182
|
businessType: "purchase-organization",
|
|
@@ -35141,7 +35189,7 @@ function RenderCompItem(props) {
|
|
|
35141
35189
|
getPopupContainer: function getPopupContainer() {
|
|
35142
35190
|
return document.body;
|
|
35143
35191
|
}
|
|
35144
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (
|
|
35192
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35145
35193
|
disabled: disabled,
|
|
35146
35194
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35147
35195
|
businessType: "sales-organization",
|
|
@@ -35154,7 +35202,7 @@ function RenderCompItem(props) {
|
|
|
35154
35202
|
getPopupContainer: function getPopupContainer() {
|
|
35155
35203
|
return document.body;
|
|
35156
35204
|
}
|
|
35157
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (
|
|
35205
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35158
35206
|
selectBusinessType: "supplier2",
|
|
35159
35207
|
selectProps: _objectSpread2({
|
|
35160
35208
|
style: styleCommon,
|
|
@@ -35175,7 +35223,7 @@ function RenderCompItem(props) {
|
|
|
35175
35223
|
getPopupContainer: function getPopupContainer() {
|
|
35176
35224
|
return document.body;
|
|
35177
35225
|
}
|
|
35178
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (
|
|
35226
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35179
35227
|
selectBusinessType: "customer2",
|
|
35180
35228
|
selectProps: _objectSpread2({
|
|
35181
35229
|
style: styleCommon,
|
|
@@ -35196,7 +35244,7 @@ function RenderCompItem(props) {
|
|
|
35196
35244
|
getPopupContainer: function getPopupContainer() {
|
|
35197
35245
|
return document.body;
|
|
35198
35246
|
}
|
|
35199
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (
|
|
35247
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35200
35248
|
selectBusinessType: "shopFile2",
|
|
35201
35249
|
selectProps: _objectSpread2({
|
|
35202
35250
|
style: styleCommon,
|
|
@@ -35217,7 +35265,7 @@ function RenderCompItem(props) {
|
|
|
35217
35265
|
getPopupContainer: function getPopupContainer() {
|
|
35218
35266
|
return document.body;
|
|
35219
35267
|
}
|
|
35220
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (
|
|
35268
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35221
35269
|
selectBusinessType: "employee2",
|
|
35222
35270
|
selectProps: _objectSpread2({
|
|
35223
35271
|
style: styleCommon,
|
|
@@ -35238,7 +35286,7 @@ function RenderCompItem(props) {
|
|
|
35238
35286
|
getPopupContainer: function getPopupContainer() {
|
|
35239
35287
|
return document.body;
|
|
35240
35288
|
}
|
|
35241
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (
|
|
35289
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35242
35290
|
disabled: disabled,
|
|
35243
35291
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35244
35292
|
businessType: "stock-organization",
|
|
@@ -35251,7 +35299,7 @@ function RenderCompItem(props) {
|
|
|
35251
35299
|
getPopupContainer: function getPopupContainer() {
|
|
35252
35300
|
return document.body;
|
|
35253
35301
|
}
|
|
35254
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (
|
|
35302
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35255
35303
|
disabled: disabled,
|
|
35256
35304
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35257
35305
|
businessType: "settle-organization",
|
|
@@ -35264,7 +35312,7 @@ function RenderCompItem(props) {
|
|
|
35264
35312
|
getPopupContainer: function getPopupContainer() {
|
|
35265
35313
|
return document.body;
|
|
35266
35314
|
}
|
|
35267
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (
|
|
35315
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35268
35316
|
selectBusinessType: "deliveryMode",
|
|
35269
35317
|
selectProps: _objectSpread2({
|
|
35270
35318
|
style: styleCommon,
|
|
@@ -35285,7 +35333,7 @@ function RenderCompItem(props) {
|
|
|
35285
35333
|
getPopupContainer: function getPopupContainer() {
|
|
35286
35334
|
return document.body;
|
|
35287
35335
|
}
|
|
35288
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (
|
|
35336
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35289
35337
|
selectBusinessType: "role",
|
|
35290
35338
|
selectProps: _objectSpread2({
|
|
35291
35339
|
style: styleCommon,
|
|
@@ -35306,7 +35354,7 @@ function RenderCompItem(props) {
|
|
|
35306
35354
|
getPopupContainer: function getPopupContainer() {
|
|
35307
35355
|
return document.body;
|
|
35308
35356
|
}
|
|
35309
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (
|
|
35357
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35310
35358
|
selectBusinessType: "brand",
|
|
35311
35359
|
selectProps: _objectSpread2({
|
|
35312
35360
|
style: styleCommon,
|
|
@@ -35327,7 +35375,7 @@ function RenderCompItem(props) {
|
|
|
35327
35375
|
getPopupContainer: function getPopupContainer() {
|
|
35328
35376
|
return document.body;
|
|
35329
35377
|
}
|
|
35330
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (
|
|
35378
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35331
35379
|
disabled: disabled,
|
|
35332
35380
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35333
35381
|
businessType: "background-category",
|
|
@@ -35340,7 +35388,7 @@ function RenderCompItem(props) {
|
|
|
35340
35388
|
getPopupContainer: function getPopupContainer() {
|
|
35341
35389
|
return document.body;
|
|
35342
35390
|
}
|
|
35343
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (
|
|
35391
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
35344
35392
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35345
35393
|
style: styleCommon,
|
|
35346
35394
|
placeholder: '请选择'
|
|
@@ -35363,7 +35411,7 @@ function RenderCompItem(props) {
|
|
|
35363
35411
|
onChange: function onChange(value) {
|
|
35364
35412
|
handleEdit(ites.code, value);
|
|
35365
35413
|
}
|
|
35366
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
35414
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
35367
35415
|
style: {
|
|
35368
35416
|
display: 'flex'
|
|
35369
35417
|
}
|
|
@@ -35875,7 +35923,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35875
35923
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35876
35924
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35877
35925
|
}
|
|
35878
|
-
var parallelTreeData =
|
|
35926
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
35879
35927
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35880
35928
|
var _i$key;
|
|
35881
35929
|
return ((i === null || i === void 0 ? void 0 : (_i$key = i.key) === null || _i$key === void 0 ? void 0 : _i$key.indexOf('.')) > -1 ? i.id : i.key) === (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId);
|
|
@@ -36802,13 +36850,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36802
36850
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36803
36851
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36804
36852
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36805
|
-
var list =
|
|
36853
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36806
36854
|
var requiredList = list.filter(function (c) {
|
|
36807
36855
|
return c.required == 1;
|
|
36808
36856
|
}) || []; // 获取对象属性为true的集合
|
|
36809
36857
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36810
36858
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36811
|
-
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ?
|
|
36859
|
+
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ? _coverToParallel(s === null || s === void 0 ? void 0 : (_s$expression2 = s.expression) === null || _s$expression2 === void 0 ? void 0 : _s$expression2.subExpression, [], 'subExpression') : (s === null || s === void 0 ? void 0 : s.expression) && [s === null || s === void 0 ? void 0 : s.expression];
|
|
36812
36860
|
(coverExpressionTree === null || coverExpressionTree === void 0 ? void 0 : coverExpressionTree.length) && (coverExpressionTree === null || coverExpressionTree === void 0 ? void 0 : (_coverExpressionTree$ = coverExpressionTree.forEach) === null || _coverExpressionTree$ === void 0 ? void 0 : _coverExpressionTree$.call(coverExpressionTree, function (e) {
|
|
36813
36861
|
if (requiredList.some(function (r) {
|
|
36814
36862
|
return r.id === e.elementId;
|
|
@@ -37397,7 +37445,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37397
37445
|
style: {
|
|
37398
37446
|
float: 'right'
|
|
37399
37447
|
}
|
|
37400
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
37448
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37401
37449
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37402
37450
|
ruleGroupInfo: {
|
|
37403
37451
|
ruleGroupList: ruleGroupList,
|
|
@@ -37415,7 +37463,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37415
37463
|
callBack: function callBack(newData) {
|
|
37416
37464
|
upDateData(newData);
|
|
37417
37465
|
}
|
|
37418
|
-
}))) : (
|
|
37466
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37419
37467
|
style: {
|
|
37420
37468
|
padding: 20
|
|
37421
37469
|
}
|
|
@@ -37790,4 +37838,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37790
37838
|
}, children));
|
|
37791
37839
|
};
|
|
37792
37840
|
|
|
37793
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|
|
37841
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|