@bit-sun/business-component 4.0.12-alpha.2 → 4.0.12-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +4 -0
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -0
- package/dist/index.esm.js +757 -430
- package/dist/index.js +757 -430
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/index.md +113 -20
- package/src/components/Business/BsSulaQueryTable/index.tsx +109 -7
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +15 -1
- package/src/components/Business/SearchSelect/index.md +0 -1
- package/src/components/Business/SearchSelect/index.tsx +4 -1
- package/src/components/Business/columnSettingTable/components/TableSumComponent.tsx +25 -0
- package/src/components/Business/columnSettingTable/components/style.less +25 -0
- package/src/components/Business/columnSettingTable/index.less +1 -1
- package/src/components/Business/columnSettingTable/index.md +5 -8
- package/src/components/Business/columnSettingTable/index.tsx +8 -2
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +122 -12
- package/src/components/Functional/SearchSelect/index.less +40 -1
- package/src/components/Functional/SearchSelect/index.tsx +67 -22
- package/src/components/Functional/SearchSelect/utils.ts +39 -3
- package/src/styles/bsDefault.less +0 -1
package/dist/index.js
CHANGED
|
@@ -1082,13 +1082,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1082
1082
|
imgHtml.innerHTML = str;
|
|
1083
1083
|
}
|
|
1084
1084
|
// 测试使用 测试类型缩小 end
|
|
1085
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (
|
|
1085
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1086
1086
|
className: "clomnsImg"
|
|
1087
1087
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1088
1088
|
src: url,
|
|
1089
1089
|
width: "16px",
|
|
1090
1090
|
height: "16px"
|
|
1091
|
-
}, paramsObj)))) : (
|
|
1091
|
+
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1092
1092
|
className: "clomnsImg2"
|
|
1093
1093
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1094
1094
|
src: noImg
|
|
@@ -1227,7 +1227,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
save_link.click();
|
|
1229
1229
|
}
|
|
1230
|
-
var
|
|
1230
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1231
1231
|
return data.map(function (item) {
|
|
1232
1232
|
if (!item.name || !item.path) {
|
|
1233
1233
|
return null;
|
|
@@ -1247,7 +1247,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1247
1247
|
authority: item.authority || parentAuthority
|
|
1248
1248
|
});
|
|
1249
1249
|
if (item.routes) {
|
|
1250
|
-
var children =
|
|
1250
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1251
1251
|
// Reduce memory usage
|
|
1252
1252
|
result.children = children;
|
|
1253
1253
|
}
|
|
@@ -1257,7 +1257,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1257
1257
|
return item;
|
|
1258
1258
|
});
|
|
1259
1259
|
};
|
|
1260
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1260
|
+
var memoizeOneFormatter = memoizeOne__default['default'](_formatter, isEqual__default['default']);
|
|
1261
1261
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1262
1262
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1263
1263
|
if (backHistoryPath) {
|
|
@@ -1566,7 +1566,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1566
1566
|
// sheepMap是表头字段中英文映射
|
|
1567
1567
|
// sheetCount:表的数量,默认一张
|
|
1568
1568
|
var resolveFile = /*#__PURE__*/function () {
|
|
1569
|
-
var _ref3 = _asyncToGenerator(
|
|
1569
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1570
1570
|
var config,
|
|
1571
1571
|
data,
|
|
1572
1572
|
_args = arguments;
|
|
@@ -1605,7 +1605,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1605
1605
|
}();
|
|
1606
1606
|
//读取文件
|
|
1607
1607
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1608
|
-
var _ref4 = _asyncToGenerator(
|
|
1608
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1609
1609
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1610
1610
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1611
1611
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1698,14 +1698,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1698
1698
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1699
1699
|
|
|
1700
1700
|
// 获取树平行结构
|
|
1701
|
-
var
|
|
1701
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1702
1702
|
var childrenKey = chilKey || 'children';
|
|
1703
1703
|
treeData.forEach(function (el) {
|
|
1704
1704
|
var _el$childrenKey;
|
|
1705
1705
|
result.push(el);
|
|
1706
1706
|
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) {
|
|
1707
1707
|
// 子级递归
|
|
1708
|
-
|
|
1708
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
1711
|
return result;
|
|
@@ -1982,13 +1982,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1982
1982
|
imgHtml.innerHTML = str;
|
|
1983
1983
|
}
|
|
1984
1984
|
// 测试使用 测试类型缩小 end
|
|
1985
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (
|
|
1985
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1986
1986
|
className: "clomnsImg"
|
|
1987
1987
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1988
1988
|
src: url,
|
|
1989
1989
|
width: "16px",
|
|
1990
1990
|
height: "16px"
|
|
1991
|
-
}, paramsObj)))) : (
|
|
1991
|
+
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1992
1992
|
src: noImg
|
|
1993
1993
|
}))));
|
|
1994
1994
|
};
|
|
@@ -2050,7 +2050,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2050
2050
|
}
|
|
2051
2051
|
});
|
|
2052
2052
|
};
|
|
2053
|
-
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (
|
|
2053
|
+
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (/*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2054
2054
|
disabled: disabled,
|
|
2055
2055
|
onChange: function onChange(e) {
|
|
2056
2056
|
var v = e.target.value;
|
|
@@ -2060,7 +2060,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2060
2060
|
width: 170
|
|
2061
2061
|
},
|
|
2062
2062
|
value: inputValue
|
|
2063
|
-
}, inpProps))), type === 'number' && (
|
|
2063
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2064
2064
|
disabled: disabled,
|
|
2065
2065
|
onBlur: function onBlur(e) {
|
|
2066
2066
|
var v = parseFloat(e.target.value);
|
|
@@ -2439,16 +2439,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2439
2439
|
var handleExportBarCode = handleExport;
|
|
2440
2440
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2441
2441
|
var routerMap = {};
|
|
2442
|
-
var
|
|
2442
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2443
2443
|
data.forEach(function (menuItem) {
|
|
2444
2444
|
if (menuItem.children) {
|
|
2445
|
-
|
|
2445
|
+
_flattenMenuData(menuItem.children);
|
|
2446
2446
|
}
|
|
2447
2447
|
// Reduce memory usage
|
|
2448
2448
|
routerMap[menuItem.path] = menuItem;
|
|
2449
2449
|
});
|
|
2450
2450
|
};
|
|
2451
|
-
|
|
2451
|
+
_flattenMenuData(menuData);
|
|
2452
2452
|
return routerMap;
|
|
2453
2453
|
};
|
|
2454
2454
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2591,7 +2591,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2591
2591
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2592
2592
|
};
|
|
2593
2593
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2594
|
-
var _ref2 = _asyncToGenerator(
|
|
2594
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2595
2595
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2596
2596
|
while (1) switch (_context.prev = _context.next) {
|
|
2597
2597
|
case 0:
|
|
@@ -3265,7 +3265,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3265
3265
|
placement: "bottomLeft"
|
|
3266
3266
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3267
3267
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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"))
|
|
3268
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (
|
|
3268
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3269
3269
|
trigger: ['click'],
|
|
3270
3270
|
overlay: this.menuList,
|
|
3271
3271
|
placement: "bottomRight"
|
|
@@ -3940,7 +3940,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3940
3940
|
placement: "bottomLeft"
|
|
3941
3941
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3942
3942
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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"))
|
|
3943
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (
|
|
3943
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3944
3944
|
trigger: ['click'],
|
|
3945
3945
|
overlay: this.menuList,
|
|
3946
3946
|
placement: "bottomRight"
|
|
@@ -4098,7 +4098,7 @@ function ToCDB(str) {
|
|
|
4098
4098
|
return tmp;
|
|
4099
4099
|
}
|
|
4100
4100
|
|
|
4101
|
-
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_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
|
|
4101
|
+
var css_248z$5 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(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.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4102
4102
|
styleInject(css_248z$5);
|
|
4103
4103
|
|
|
4104
4104
|
var columnsPerRow = 4; // 每行的列数
|
|
@@ -4106,6 +4106,7 @@ var ColSpan = 6; // 查询条件 每行col = 24 /columnsPerRow
|
|
|
4106
4106
|
var handleSourceName = function handleSourceName(sName) {
|
|
4107
4107
|
return sName;
|
|
4108
4108
|
};
|
|
4109
|
+
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4109
4110
|
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4110
4111
|
var totalRows = Math.ceil(list.length / columnsPerRow); // 计算总行数
|
|
4111
4112
|
var lastRowColumns = (list.length + 1) % columnsPerRow; // 计算最后一行的实际列数
|
|
@@ -4143,15 +4144,45 @@ var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
|
4143
4144
|
};
|
|
4144
4145
|
var getTableHeigth = function getTableHeigth(list) {
|
|
4145
4146
|
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4146
|
-
if (totalRows == 1) return
|
|
4147
|
-
return
|
|
4147
|
+
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4148
|
+
return 411 - totalRows * 10;
|
|
4149
|
+
};
|
|
4150
|
+
// ------------------------------------------处理样式相关--结束----------------------------------------
|
|
4151
|
+
// ------------------------------------------处理数据相关--开始----------------------------------------
|
|
4152
|
+
var getCurrentSRKs = function getCurrentSRKs(selectMode, labelInValue, value) {
|
|
4153
|
+
return selectMode ? labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4154
|
+
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
4155
|
+
}) : value : labelInValue ? (value === null || value === void 0 ? void 0 : value.value) && [value === null || value === void 0 ? void 0 : value.value] || [] : value && [value] || [];
|
|
4156
|
+
};
|
|
4157
|
+
var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
4158
|
+
// 判空处理
|
|
4159
|
+
if (!(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length)) return items || [];
|
|
4160
|
+
// 创建映射对象 用于记录原始选中顺序
|
|
4161
|
+
var orderMap = new Map();
|
|
4162
|
+
currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.forEach(function (value, index) {
|
|
4163
|
+
orderMap.set(value, index);
|
|
4164
|
+
});
|
|
4165
|
+
// 被选中数据集合,获取之后排序
|
|
4166
|
+
var selectedOption = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4167
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4168
|
+
})) || [];
|
|
4169
|
+
var selectedOptionSort = (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.sort(function (a, b) {
|
|
4170
|
+
var _orderMap$get, _orderMap$get2;
|
|
4171
|
+
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);
|
|
4172
|
+
})) || [];
|
|
4173
|
+
// 未选中数据集合
|
|
4174
|
+
var otherOptions = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4175
|
+
return !(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value));
|
|
4176
|
+
})) || [];
|
|
4177
|
+
return [].concat(_toConsumableArray(selectedOptionSort), _toConsumableArray(otherOptions));
|
|
4148
4178
|
};
|
|
4179
|
+
// ------------------------------------------处理数据相关--结束----------------------------------------
|
|
4149
4180
|
|
|
4150
4181
|
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";
|
|
4151
4182
|
|
|
4152
4183
|
var Option$1 = antd.Select.Option;
|
|
4153
4184
|
var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
4154
|
-
var _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
4185
|
+
var _pathname$match, _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
4155
4186
|
var value = props.value,
|
|
4156
4187
|
onChangeTemp = props.onChange,
|
|
4157
4188
|
_props$selectProps = props.selectProps,
|
|
@@ -4213,8 +4244,11 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4213
4244
|
listHeight: 160,
|
|
4214
4245
|
optionLabelProp: "label",
|
|
4215
4246
|
autoClearSearchValue: false,
|
|
4216
|
-
placement: '
|
|
4247
|
+
placement: 'bottomRight'
|
|
4217
4248
|
});
|
|
4249
|
+
var pathname = window.location.href;
|
|
4250
|
+
var pattern = /(action|create|edit|view)/;
|
|
4251
|
+
var isFormPage = ((_pathname$match = pathname.match(pattern)) === null || _pathname$match === void 0 ? void 0 : _pathname$match.length) > 0;
|
|
4218
4252
|
var initPagination = {
|
|
4219
4253
|
showQuickJumper: true,
|
|
4220
4254
|
showSizeChanger: false,
|
|
@@ -4248,34 +4282,38 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4248
4282
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4249
4283
|
selectOpen = _useState4[0],
|
|
4250
4284
|
setSelectOpen = _useState4[1];
|
|
4251
|
-
var _useState5 = React$1.useState(
|
|
4285
|
+
var _useState5 = React$1.useState(false),
|
|
4252
4286
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
var _useState7 = React$1.useState(
|
|
4287
|
+
isMaxTagsOpen = _useState6[0],
|
|
4288
|
+
setIsMaxTagsOpen = _useState6[1];
|
|
4289
|
+
var _useState7 = React$1.useState(1),
|
|
4256
4290
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
var _useState9 = React$1.useState(
|
|
4291
|
+
scrollPage = _useState8[0],
|
|
4292
|
+
setScrollPage = _useState8[1];
|
|
4293
|
+
var _useState9 = React$1.useState(0),
|
|
4260
4294
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
var _useState11 = React$1.useState(
|
|
4295
|
+
itemsTotal = _useState10[0],
|
|
4296
|
+
setItemsTotal = _useState10[1];
|
|
4297
|
+
var _useState11 = React$1.useState(false),
|
|
4264
4298
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
var _useState13 = React$1.useState(
|
|
4299
|
+
fetching = _useState12[0],
|
|
4300
|
+
setFetching = _useState12[1];
|
|
4301
|
+
var _useState13 = React$1.useState(''),
|
|
4268
4302
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
var _useState15 = React$1.useState(
|
|
4303
|
+
searchValue = _useState14[0],
|
|
4304
|
+
setSearchValue = _useState14[1];
|
|
4305
|
+
var _useState15 = React$1.useState(false),
|
|
4272
4306
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
var _useState17 = React$1.useState(
|
|
4307
|
+
isModalVisible = _useState16[0],
|
|
4308
|
+
setIsModalVisible = _useState16[1];
|
|
4309
|
+
var _useState17 = React$1.useState(initVal),
|
|
4276
4310
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
4277
|
-
|
|
4278
|
-
|
|
4311
|
+
popvalue = _useState18[0],
|
|
4312
|
+
setPopValue = _useState18[1];
|
|
4313
|
+
var _useState19 = React$1.useState(resultSourceKey),
|
|
4314
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
4315
|
+
uniqueValue = _useState20[0],
|
|
4316
|
+
setUniqueValue = _useState20[1];
|
|
4279
4317
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
4280
4318
|
// 优化搜索参数 支持传多个
|
|
4281
4319
|
var searchParams = {};
|
|
@@ -4304,62 +4342,62 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4304
4342
|
var _Form$useForm = antd.Form.useForm(),
|
|
4305
4343
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
4306
4344
|
form = _Form$useForm2[0];
|
|
4307
|
-
var _useState19 = React$1.useState(true),
|
|
4308
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
4309
|
-
collapsed = _useState20[0],
|
|
4310
|
-
setCollapsed = _useState20[1];
|
|
4311
4345
|
var _useState21 = React$1.useState(true),
|
|
4312
4346
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
var _useState23 = React$1.useState(
|
|
4347
|
+
collapsed = _useState22[0],
|
|
4348
|
+
setCollapsed = _useState22[1];
|
|
4349
|
+
var _useState23 = React$1.useState(true),
|
|
4316
4350
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
var _useState25 = React$1.useState(
|
|
4351
|
+
caretLeftFlag = _useState24[0],
|
|
4352
|
+
setCaretLeftFlag = _useState24[1];
|
|
4353
|
+
var _useState25 = React$1.useState([]),
|
|
4320
4354
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
var _useState27 = React$1.useState(
|
|
4355
|
+
tableData = _useState26[0],
|
|
4356
|
+
setTableData = _useState26[1];
|
|
4357
|
+
var _useState27 = React$1.useState(tableInitPagination),
|
|
4324
4358
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
4325
|
-
|
|
4326
|
-
|
|
4359
|
+
tablePagination = _useState28[0],
|
|
4360
|
+
setTablePagination = _useState28[1];
|
|
4327
4361
|
var _useState29 = React$1.useState([]),
|
|
4328
4362
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
var _useState31 = React$1.useState(
|
|
4363
|
+
selectedRowKeys = _useState30[0],
|
|
4364
|
+
setSelectedRowKeys = _useState30[1];
|
|
4365
|
+
var _useState31 = React$1.useState([]),
|
|
4332
4366
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
4333
|
-
|
|
4334
|
-
|
|
4367
|
+
selectedRows = _useState32[0],
|
|
4368
|
+
setSelectedRows = _useState32[1];
|
|
4335
4369
|
var _useState33 = React$1.useState(false),
|
|
4336
4370
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
var _useState35 = React$1.useState(
|
|
4371
|
+
checkedAll = _useState34[0],
|
|
4372
|
+
setCheckedAll = _useState34[1];
|
|
4373
|
+
var _useState35 = React$1.useState(false),
|
|
4340
4374
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
var _useState37 = React$1.useState(
|
|
4375
|
+
indeterminate = _useState36[0],
|
|
4376
|
+
setIndeterminate = _useState36[1];
|
|
4377
|
+
var _useState37 = React$1.useState({}),
|
|
4344
4378
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
var _useState39 = React$1.useState(
|
|
4379
|
+
tableFormParams = _useState38[0],
|
|
4380
|
+
setTableFormParams = _useState38[1];
|
|
4381
|
+
var _useState39 = React$1.useState(false),
|
|
4382
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
|
4383
|
+
tooltipVisible = _useState40[0],
|
|
4384
|
+
setTooltipVisible = _useState40[1];
|
|
4385
|
+
var _useState41 = React$1.useState((modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$tabl = modalTableProps.tableColumns) === null || _modalTableProps$tabl === void 0 ? void 0 : (_modalTableProps$tabl2 = _modalTableProps$tabl.filter(function (s) {
|
|
4348
4386
|
return typeof s.defaultSort == 'number';
|
|
4349
4387
|
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
4350
4388
|
return a.defaultSort - b.defaultSort;
|
|
4351
4389
|
})) || []),
|
|
4352
|
-
_useState40 = _slicedToArray(_useState39, 2),
|
|
4353
|
-
tableShowColumns = _useState40[0],
|
|
4354
|
-
setTabletShowColumns = _useState40[1];
|
|
4355
|
-
var _useState41 = React$1.useState(false),
|
|
4356
4390
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
4357
|
-
|
|
4358
|
-
|
|
4391
|
+
tableShowColumns = _useState42[0],
|
|
4392
|
+
setTabletShowColumns = _useState42[1];
|
|
4359
4393
|
var _useState43 = React$1.useState(false),
|
|
4360
4394
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
4361
|
-
|
|
4362
|
-
|
|
4395
|
+
confirmLoading = _useState44[0],
|
|
4396
|
+
setConfirmLoading = _useState44[1];
|
|
4397
|
+
var _useState45 = React$1.useState(false),
|
|
4398
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
4399
|
+
modalSearched = _useState46[0],
|
|
4400
|
+
setModalSearched = _useState46[1];
|
|
4363
4401
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
4364
4402
|
setItems(list);
|
|
4365
4403
|
setItemsTotal(total);
|
|
@@ -4581,7 +4619,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4581
4619
|
textShowText: textShowText,
|
|
4582
4620
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4583
4621
|
value: item[mappingValueField],
|
|
4584
|
-
keyIndex: index + 1
|
|
4622
|
+
keyIndex: type != 1 ? ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.currentPage) - 1) * (queryParams === null || queryParams === void 0 ? void 0 : queryParams.pageSize) + index + 1 : index + 1
|
|
4585
4623
|
});
|
|
4586
4624
|
}) : Array.isArray(res) && (res === null || res === void 0 ? void 0 : res.map(function (item, index) {
|
|
4587
4625
|
var _item$children2;
|
|
@@ -4604,10 +4642,23 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4604
4642
|
textShowText: textShowText,
|
|
4605
4643
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4606
4644
|
value: item[mappingValueField],
|
|
4607
|
-
keyIndex: index + 1
|
|
4645
|
+
keyIndex: type != 1 ? ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.currentPage) - 1) * (queryParams === null || queryParams === void 0 ? void 0 : queryParams.pageSize) + index + 1 : index + 1
|
|
4608
4646
|
});
|
|
4609
4647
|
})) : [];
|
|
4610
4648
|
}
|
|
4649
|
+
// 补充搜索项--选中的数据添加到数据源中去
|
|
4650
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
4651
|
+
if (type === 1 && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length) && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.some(function (s) {
|
|
4652
|
+
var _source;
|
|
4653
|
+
return !((_source = source) === null || _source === void 0 ? void 0 : _source.find(function (r) {
|
|
4654
|
+
return r.value == s;
|
|
4655
|
+
}));
|
|
4656
|
+
}))) {
|
|
4657
|
+
var selectedOption = items.filter(function (option) {
|
|
4658
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4659
|
+
}) || [];
|
|
4660
|
+
source = (source || []).concat(selectedOption);
|
|
4661
|
+
}
|
|
4611
4662
|
// 数据源 不可以有重复key
|
|
4612
4663
|
source = Array.isArray(source) ? ___default['default'].uniqBy(source, 'value') : [];
|
|
4613
4664
|
if (callback) {
|
|
@@ -5094,10 +5145,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5094
5145
|
// />
|
|
5095
5146
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
5096
5147
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
5097
|
-
var oSY = "calc(100vh -
|
|
5148
|
+
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - 82px)"); // 分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
5098
5149
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5099
5150
|
style: {
|
|
5100
|
-
height: "calc(100vh -
|
|
5151
|
+
height: "calc(100vh - ".concat(tableBoxHeighth, "px)")
|
|
5101
5152
|
}
|
|
5102
5153
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({
|
|
5103
5154
|
bordered: true,
|
|
@@ -5158,7 +5209,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5158
5209
|
init && run('init');
|
|
5159
5210
|
};
|
|
5160
5211
|
var onClear = function onClear() {
|
|
5212
|
+
var _props$onClear;
|
|
5213
|
+
// 执行父组件 onClear 事件
|
|
5214
|
+
props === null || props === void 0 ? void 0 : (_props$onClear = props.onClear) === null || _props$onClear === void 0 ? void 0 : _props$onClear.call(props);
|
|
5215
|
+
// 清空下拉框 / 弹窗 选中数据
|
|
5161
5216
|
formaData([], items);
|
|
5217
|
+
onChangeSelectedKeys([], []);
|
|
5218
|
+
// 重置下拉框数据源
|
|
5162
5219
|
resetSelectDataSource();
|
|
5163
5220
|
};
|
|
5164
5221
|
var onDeselect = function onDeselect() {
|
|
@@ -5179,13 +5236,20 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5179
5236
|
nr && setSelectOpen(false);
|
|
5180
5237
|
};
|
|
5181
5238
|
var onDropdownVisibleChange = function onDropdownVisibleChange(visible) {
|
|
5239
|
+
// 阻止maxTagPlaceholder点击事件触发下拉框展示事件
|
|
5240
|
+
if (isMaxTagsOpen && !selectOpen) return;
|
|
5182
5241
|
setSelectOpen(visible);
|
|
5183
5242
|
// 关闭下拉框 如果首次本身就不展示数据的 没有选中数据-需要清空查询数据源; 首次展示的默认展示
|
|
5184
5243
|
if (!visible && !(value === null || value === void 0 ? void 0 : value.length)) {
|
|
5185
|
-
|
|
5244
|
+
setTimeout(function () {
|
|
5245
|
+
// 延时 是为了避免 执行时候出现下拉框弹两次的问题-可以看到数据源从展示到显示空数据框的问题
|
|
5246
|
+
resetSelectDataSource();
|
|
5247
|
+
}, 200);
|
|
5186
5248
|
}
|
|
5187
5249
|
};
|
|
5188
5250
|
var renderTable = function renderTable(dataSource) {
|
|
5251
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
5252
|
+
var renderSource = getRenderSource(currentSRKs, items);
|
|
5189
5253
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5190
5254
|
className: "search_select_dropdown_table ".concat(!selectMode ? 'search_select_dropdown_table1' : '')
|
|
5191
5255
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({
|
|
@@ -5195,9 +5259,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5195
5259
|
rowSelection: {
|
|
5196
5260
|
type: 'checkbox',
|
|
5197
5261
|
columnWidth: '24px',
|
|
5198
|
-
selectedRowKeys:
|
|
5199
|
-
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
5200
|
-
}) : value,
|
|
5262
|
+
selectedRowKeys: currentSRKs,
|
|
5201
5263
|
preserveSelectedRowKeys: true,
|
|
5202
5264
|
onChange: function onChange(sks, srs) {
|
|
5203
5265
|
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
@@ -5238,7 +5300,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5238
5300
|
rowSelection: {
|
|
5239
5301
|
type: 'radio',
|
|
5240
5302
|
columnWidth: 0,
|
|
5241
|
-
selectedRowKeys:
|
|
5303
|
+
selectedRowKeys: currentSRKs
|
|
5242
5304
|
},
|
|
5243
5305
|
onRow: function onRow(record, rowKey) {
|
|
5244
5306
|
return {
|
|
@@ -5250,7 +5312,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5250
5312
|
}
|
|
5251
5313
|
}), {}, {
|
|
5252
5314
|
columns: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.renderTableColumns) || [],
|
|
5253
|
-
dataSource:
|
|
5315
|
+
dataSource: renderSource,
|
|
5254
5316
|
size: "middle",
|
|
5255
5317
|
pagination: false,
|
|
5256
5318
|
rowKey: mappingValueField,
|
|
@@ -5271,20 +5333,34 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5271
5333
|
onChange(newValue);
|
|
5272
5334
|
};
|
|
5273
5335
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
5274
|
-
|
|
5336
|
+
overlayClassName: 'searchSelectMaxTagToolTip',
|
|
5337
|
+
destroyTooltipOnHide: true,
|
|
5338
|
+
placement: "topRight",
|
|
5339
|
+
autoAdjustOverflow: false,
|
|
5340
|
+
title: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5341
|
+
style: {
|
|
5342
|
+
margin: '6px 8px 0px'
|
|
5343
|
+
},
|
|
5344
|
+
onMouseEnter: function onMouseEnter() {
|
|
5345
|
+
setIsMaxTagsOpen(true);
|
|
5346
|
+
},
|
|
5347
|
+
onMouseLeave: function onMouseLeave() {
|
|
5348
|
+
setIsMaxTagsOpen(false);
|
|
5349
|
+
}
|
|
5350
|
+
}, selectedValues.map(function (i) {
|
|
5275
5351
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tag, {
|
|
5276
5352
|
closable: true,
|
|
5277
5353
|
onClose: function onClose(e) {
|
|
5278
5354
|
return _onClose(e, i);
|
|
5279
5355
|
},
|
|
5280
5356
|
style: {
|
|
5281
|
-
|
|
5357
|
+
margin: '0px 3px 3px 0px',
|
|
5282
5358
|
background: '#f5f5f5',
|
|
5283
5359
|
height: '24px',
|
|
5284
5360
|
border: '1px solid #f0f0f0'
|
|
5285
5361
|
}
|
|
5286
5362
|
}, i.label);
|
|
5287
|
-
})
|
|
5363
|
+
})))
|
|
5288
5364
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
5289
5365
|
};
|
|
5290
5366
|
var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
|
|
@@ -5333,13 +5409,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5333
5409
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5334
5410
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5335
5411
|
className: 'search_select'
|
|
5336
|
-
}, fieldComponent ? (
|
|
5412
|
+
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5337
5413
|
onClick: function onClick() {
|
|
5338
5414
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5339
5415
|
(_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);
|
|
5340
5416
|
showModal();
|
|
5341
5417
|
}
|
|
5342
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
5418
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5343
5419
|
title: getShowStr(),
|
|
5344
5420
|
style: {
|
|
5345
5421
|
overflow: 'hidden',
|
|
@@ -5348,7 +5424,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5348
5424
|
},
|
|
5349
5425
|
className: 'search_select_show'
|
|
5350
5426
|
}, getShowStr())) : /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5351
|
-
className: "search_select_show",
|
|
5427
|
+
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
5352
5428
|
id: "search_select_div_".concat(uniqueValue)
|
|
5353
5429
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
5354
5430
|
labelInValue: labelInValue,
|
|
@@ -5366,10 +5442,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5366
5442
|
dropdownRender: function dropdownRender(menu) {
|
|
5367
5443
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5368
5444
|
},
|
|
5369
|
-
notFoundContent: fetching ? (
|
|
5445
|
+
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
5370
5446
|
size: "small",
|
|
5371
5447
|
className: 'searchSelectSpin'
|
|
5372
|
-
})) : (
|
|
5448
|
+
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5373
5449
|
style: {
|
|
5374
5450
|
textAlign: 'center'
|
|
5375
5451
|
}
|
|
@@ -5390,7 +5466,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5390
5466
|
}, /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, null))
|
|
5391
5467
|
} : {}), currentSelectProps), {}, {
|
|
5392
5468
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
5393
|
-
return _getPopupContainer && _getPopupContainer(triggerNode)
|
|
5469
|
+
return triggerNode.parentElement || _getPopupContainer && _getPopupContainer(triggerNode);
|
|
5394
5470
|
}
|
|
5395
5471
|
}), items.map(function (item) {
|
|
5396
5472
|
return /*#__PURE__*/React__default['default'].createElement(Option$1, {
|
|
@@ -5400,7 +5476,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5400
5476
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5401
5477
|
filterTxt: searchValue
|
|
5402
5478
|
}));
|
|
5403
|
-
}))), needModalTable && isModalVisible && (
|
|
5479
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
5404
5480
|
maskClosable: false,
|
|
5405
5481
|
destroyOnClose: true,
|
|
5406
5482
|
width: "80%",
|
|
@@ -5997,7 +6073,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5997
6073
|
style: {
|
|
5998
6074
|
width: 525
|
|
5999
6075
|
}
|
|
6000
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
6076
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6001
6077
|
checked: !dataSource.some(function (item) {
|
|
6002
6078
|
if (item.hidden) return true;
|
|
6003
6079
|
return false;
|
|
@@ -6035,13 +6111,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6035
6111
|
_this2.onChange(e, item.title);
|
|
6036
6112
|
}
|
|
6037
6113
|
}, item.title);
|
|
6038
|
-
}), !!seatchDataSource.length && (
|
|
6114
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
6039
6115
|
style: {
|
|
6040
6116
|
width: '144px'
|
|
6041
6117
|
}
|
|
6042
|
-
})), !seatchDataSource.length && (
|
|
6118
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6043
6119
|
className: 'sort_table_column_all_empty'
|
|
6044
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
6120
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6045
6121
|
className: 'sort_table_column_special'
|
|
6046
6122
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6047
6123
|
className: 'sort_table_column_all'
|
|
@@ -6230,7 +6306,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6230
6306
|
});
|
|
6231
6307
|
};
|
|
6232
6308
|
// 格式化树选择器数据源
|
|
6233
|
-
var
|
|
6309
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6234
6310
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6235
6311
|
return {
|
|
6236
6312
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6240,7 +6316,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6240
6316
|
isLeaf: !haveChildren,
|
|
6241
6317
|
disabled: haveChildren,
|
|
6242
6318
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6243
|
-
return
|
|
6319
|
+
return _mapSearchTree(i, resKeyValue);
|
|
6244
6320
|
}) : []
|
|
6245
6321
|
};
|
|
6246
6322
|
};
|
|
@@ -6249,7 +6325,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6249
6325
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6250
6326
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6251
6327
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6252
|
-
return
|
|
6328
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
6253
6329
|
}) || [];
|
|
6254
6330
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6255
6331
|
};
|
|
@@ -6420,7 +6496,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6420
6496
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6421
6497
|
// FIXME: 特殊业务逻辑
|
|
6422
6498
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6423
|
-
var _ref2 = _asyncToGenerator(
|
|
6499
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6424
6500
|
var result;
|
|
6425
6501
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6426
6502
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6673,7 +6749,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6673
6749
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6674
6750
|
value: text || null,
|
|
6675
6751
|
onChange: function () {
|
|
6676
|
-
var _onChange = _asyncToGenerator(
|
|
6752
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6677
6753
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6678
6754
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6679
6755
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7281,10 +7357,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7281
7357
|
var newColumns = arr.map(function (col) {
|
|
7282
7358
|
return _objectSpread2({}, col);
|
|
7283
7359
|
});
|
|
7284
|
-
var
|
|
7360
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
7285
7361
|
var i = indexArr.shift();
|
|
7286
7362
|
if (indexArr.length > 0) {
|
|
7287
|
-
|
|
7363
|
+
_handleIndex(arr[i].children, indexArr);
|
|
7288
7364
|
} else {
|
|
7289
7365
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7290
7366
|
width: size.width
|
|
@@ -7292,7 +7368,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7292
7368
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7293
7369
|
}
|
|
7294
7370
|
};
|
|
7295
|
-
|
|
7371
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
7296
7372
|
callback(newColumns);
|
|
7297
7373
|
};
|
|
7298
7374
|
};
|
|
@@ -7302,13 +7378,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7302
7378
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7303
7379
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7304
7380
|
};
|
|
7305
|
-
var
|
|
7381
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7306
7382
|
arr.forEach(function (item, index) {
|
|
7307
7383
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7308
7384
|
return i || i === 0;
|
|
7309
7385
|
});
|
|
7310
7386
|
if (noEmptyArray$1(item.children)) {
|
|
7311
|
-
|
|
7387
|
+
_handleColumns(item.children, indexArrInside);
|
|
7312
7388
|
} else {
|
|
7313
7389
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7314
7390
|
item.onHeaderCell = function (column) {
|
|
@@ -7324,14 +7400,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7324
7400
|
handleAntdColumnsSpecialParams(item);
|
|
7325
7401
|
return _objectSpread2({}, item);
|
|
7326
7402
|
});
|
|
7327
|
-
|
|
7403
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
7328
7404
|
return setShowToChooseColumnsCallback(res);
|
|
7329
7405
|
});
|
|
7330
7406
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7331
7407
|
handleAntdColumnsSpecialParams(item);
|
|
7332
7408
|
return _objectSpread2({}, item);
|
|
7333
7409
|
});
|
|
7334
|
-
|
|
7410
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
7335
7411
|
return setShowColumnsCallback(res);
|
|
7336
7412
|
});
|
|
7337
7413
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7342,7 +7418,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7342
7418
|
id: "add_select_div_".concat(uniqueValue)
|
|
7343
7419
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
7344
7420
|
onClick: handleShowModal
|
|
7345
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
7421
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7346
7422
|
width: '1200px',
|
|
7347
7423
|
style: {
|
|
7348
7424
|
top: 20
|
|
@@ -8256,7 +8332,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8256
8332
|
});
|
|
8257
8333
|
};
|
|
8258
8334
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8259
|
-
var _ref4 = _asyncToGenerator(
|
|
8335
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8260
8336
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8261
8337
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8262
8338
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8339,10 +8415,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8339
8415
|
var newColumns = arr.map(function (col) {
|
|
8340
8416
|
return _objectSpread2({}, col);
|
|
8341
8417
|
});
|
|
8342
|
-
var
|
|
8418
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8343
8419
|
var i = indexArr.shift();
|
|
8344
8420
|
if (indexArr.length > 0) {
|
|
8345
|
-
|
|
8421
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8346
8422
|
} else {
|
|
8347
8423
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8348
8424
|
width: size.width
|
|
@@ -8350,17 +8426,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8350
8426
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8351
8427
|
}
|
|
8352
8428
|
};
|
|
8353
|
-
|
|
8429
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8354
8430
|
callback(newColumns);
|
|
8355
8431
|
};
|
|
8356
8432
|
};
|
|
8357
|
-
var
|
|
8433
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8358
8434
|
arr.forEach(function (item, index) {
|
|
8359
8435
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8360
8436
|
return i || i === 0;
|
|
8361
8437
|
});
|
|
8362
8438
|
if (noEmptyArray$1(item.children)) {
|
|
8363
|
-
|
|
8439
|
+
_handleColumns(item.children, indexArrInside);
|
|
8364
8440
|
} else {
|
|
8365
8441
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8366
8442
|
item.onHeaderCell = function (column) {
|
|
@@ -8376,7 +8452,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8376
8452
|
handleAntdColumnsSpecialParams(item);
|
|
8377
8453
|
return _objectSpread2({}, item);
|
|
8378
8454
|
});
|
|
8379
|
-
|
|
8455
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8380
8456
|
return setShowColumnsCallback(res);
|
|
8381
8457
|
});
|
|
8382
8458
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -8659,6 +8735,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8659
8735
|
hiddenFields = _ref$hiddenFields === void 0 ? [] : _ref$hiddenFields;
|
|
8660
8736
|
// 默认type === 'supplier' 供应商选择器
|
|
8661
8737
|
var requestConfig = _objectSpread2({
|
|
8738
|
+
init: true,
|
|
8662
8739
|
url: "".concat(prefixUrl.selectPrefix, "/supplier"),
|
|
8663
8740
|
filter: 'qp-name,code-orGroup,like',
|
|
8664
8741
|
otherParams: _objectSpread2({
|
|
@@ -8690,7 +8767,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8690
8767
|
});
|
|
8691
8768
|
};
|
|
8692
8769
|
// 格式化树选择器数据源
|
|
8693
|
-
var
|
|
8770
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8694
8771
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8695
8772
|
return {
|
|
8696
8773
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8700,7 +8777,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8700
8777
|
isLeaf: !haveChildren,
|
|
8701
8778
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8702
8779
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8703
|
-
return
|
|
8780
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8704
8781
|
}) : []
|
|
8705
8782
|
};
|
|
8706
8783
|
};
|
|
@@ -8714,7 +8791,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8714
8791
|
disabledJudge = false;
|
|
8715
8792
|
}
|
|
8716
8793
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8717
|
-
return
|
|
8794
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8718
8795
|
}) || [];
|
|
8719
8796
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8720
8797
|
};
|
|
@@ -8981,7 +9058,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8981
9058
|
name: 'qp-skuName-like',
|
|
8982
9059
|
label: 'SKU名称'
|
|
8983
9060
|
}, {
|
|
8984
|
-
name: 'qp-
|
|
9061
|
+
name: 'qp-itemCode-like',
|
|
8985
9062
|
label: '外部SPU编码'
|
|
8986
9063
|
}, {
|
|
8987
9064
|
name: 'qp-eancode-in',
|
|
@@ -9441,6 +9518,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9441
9518
|
}]
|
|
9442
9519
|
}, selectConfigProps);
|
|
9443
9520
|
requestConfig = _objectSpread2({
|
|
9521
|
+
init: true,
|
|
9444
9522
|
url: "".concat(prefixUrl.selectPrefix, "/skuPropertyValue/list"),
|
|
9445
9523
|
filter: 'qp-value-like',
|
|
9446
9524
|
mappingTextField: 'value',
|
|
@@ -10363,6 +10441,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10363
10441
|
}]
|
|
10364
10442
|
}, selectConfigProps);
|
|
10365
10443
|
requestConfig = _objectSpread2({
|
|
10444
|
+
init: true,
|
|
10366
10445
|
url: "".concat(prefixUrl.selectPrefix, "/inventoryOrg"),
|
|
10367
10446
|
filter: 'qp-name,code-orGroup,like',
|
|
10368
10447
|
mappingTextField: 'name',
|
|
@@ -10388,6 +10467,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10388
10467
|
}]
|
|
10389
10468
|
}, selectConfigProps);
|
|
10390
10469
|
requestConfig = _objectSpread2({
|
|
10470
|
+
init: true,
|
|
10391
10471
|
url: "".concat(prefixUrl.selectPrefix, "/company"),
|
|
10392
10472
|
filter: 'qp-name,code-orGroup,like',
|
|
10393
10473
|
mappingTextField: 'name',
|
|
@@ -10413,6 +10493,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10413
10493
|
}]
|
|
10414
10494
|
}, selectConfigProps);
|
|
10415
10495
|
requestConfig = _objectSpread2({
|
|
10496
|
+
init: true,
|
|
10416
10497
|
url: "".concat(prefixUrl.selectPrefix, "/platCompany"),
|
|
10417
10498
|
filter: 'qp-name,socialCreditCode-orGroup,like',
|
|
10418
10499
|
mappingTextField: 'name',
|
|
@@ -10438,6 +10519,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10438
10519
|
}]
|
|
10439
10520
|
}, selectConfigProps);
|
|
10440
10521
|
requestConfig = _objectSpread2({
|
|
10522
|
+
init: true,
|
|
10441
10523
|
url: "".concat(prefixUrl.selectPrefix, "/employee/v2"),
|
|
10442
10524
|
filter: 'qp-employeeNumber,name-orGroup,like',
|
|
10443
10525
|
mappingTextField: 'name',
|
|
@@ -10531,6 +10613,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10531
10613
|
}]
|
|
10532
10614
|
}, selectConfigProps);
|
|
10533
10615
|
requestConfig = _objectSpread2({
|
|
10616
|
+
init: true,
|
|
10534
10617
|
url: "".concat(prefixUrl.selectPrefix, "/employee/pageList/v2"),
|
|
10535
10618
|
filter: 'qp-username,name-orGroup,like',
|
|
10536
10619
|
mappingTextField: 'name',
|
|
@@ -10673,6 +10756,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10673
10756
|
});
|
|
10674
10757
|
var logisCompanyCodeSingleSearchName = isLogisCompanyCodeSingleSearch ? 'qp-logisCompanyCode-eq' : 'qp-logisCompanyCode-in';
|
|
10675
10758
|
requestConfig = _objectSpread2({
|
|
10759
|
+
init: true,
|
|
10676
10760
|
url: "".concat(prefixUrl.selectPrefix, "/deliveryMode"),
|
|
10677
10761
|
filter: 'qp-name,code-orGroup,like',
|
|
10678
10762
|
mappingTextField: 'name',
|
|
@@ -10809,6 +10893,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10809
10893
|
}]
|
|
10810
10894
|
}, selectConfigProps);
|
|
10811
10895
|
requestConfig = _objectSpread2({
|
|
10896
|
+
init: true,
|
|
10812
10897
|
url: "".concat(prefixUrl.selectPrefix, "/ruleTemplate"),
|
|
10813
10898
|
filter: 'qp-name,code-orGroup,like',
|
|
10814
10899
|
mappingTextField: 'name',
|
|
@@ -10880,6 +10965,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10880
10965
|
}]
|
|
10881
10966
|
}, selectConfigProps);
|
|
10882
10967
|
requestConfig = _objectSpread2({
|
|
10968
|
+
init: true,
|
|
10883
10969
|
url: "".concat(prefixUrl.selectPrefix, "/role"),
|
|
10884
10970
|
filter: 'qp-name,code-orGroup,like',
|
|
10885
10971
|
mappingTextField: 'name',
|
|
@@ -10976,6 +11062,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10976
11062
|
}]
|
|
10977
11063
|
}, selectConfigProps);
|
|
10978
11064
|
requestConfig = _objectSpread2({
|
|
11065
|
+
init: true,
|
|
10979
11066
|
url: "".concat(prefixUrl.selectPrefix, "/channelInfo"),
|
|
10980
11067
|
filter: 'qp-name,code-orGroup,like',
|
|
10981
11068
|
mappingTextField: 'name',
|
|
@@ -11063,6 +11150,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11063
11150
|
}]
|
|
11064
11151
|
}, selectConfigProps);
|
|
11065
11152
|
requestConfig = _objectSpread2({
|
|
11153
|
+
init: true,
|
|
11066
11154
|
url: "".concat(prefixUrl.selectPrefix, "/orgViewNode/common/pageList"),
|
|
11067
11155
|
filter: 'qp-name-like',
|
|
11068
11156
|
mappingTextField: 'name',
|
|
@@ -11191,6 +11279,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11191
11279
|
}]
|
|
11192
11280
|
}, selectConfigProps);
|
|
11193
11281
|
requestConfig = _objectSpread2({
|
|
11282
|
+
init: true,
|
|
11194
11283
|
url: "".concat(prefixUrl.selectPrefix, "/person"),
|
|
11195
11284
|
filter: 'qp-code,name-orGroup,like',
|
|
11196
11285
|
mappingTextField: 'name',
|
|
@@ -11326,6 +11415,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11326
11415
|
}]
|
|
11327
11416
|
}, selectConfigProps);
|
|
11328
11417
|
requestConfig = _objectSpread2({
|
|
11418
|
+
init: true,
|
|
11329
11419
|
url: "".concat(prefixUrl.selectPrefix, "/priceType"),
|
|
11330
11420
|
filter: 'qp-code,name-orGroup,like',
|
|
11331
11421
|
mappingTextField: 'name',
|
|
@@ -11514,6 +11604,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11514
11604
|
|
|
11515
11605
|
var MemoSearchSelect = /*#__PURE__*/React__default['default'].memo(SearchSelect);
|
|
11516
11606
|
var BusinessSearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
11607
|
+
var _props$requestConfig;
|
|
11517
11608
|
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || 'supplier';
|
|
11518
11609
|
var prefixUrl = (props === null || props === void 0 ? void 0 : props.prefixUrl) || {
|
|
11519
11610
|
selectPrefix: handleDefaultPrefixUrl(businessType),
|
|
@@ -11532,7 +11623,7 @@ var BusinessSearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
11532
11623
|
needModalTable: needModalTable,
|
|
11533
11624
|
modalTableProps: modalTableProps
|
|
11534
11625
|
});
|
|
11535
|
-
}, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType]);
|
|
11626
|
+
}, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType, (_props$requestConfig = props.requestConfig) === null || _props$requestConfig === void 0 ? void 0 : _props$requestConfig.noOperate]);
|
|
11536
11627
|
React$1.useImperativeHandle(ref, function () {
|
|
11537
11628
|
return {
|
|
11538
11629
|
getRef: function getRef() {
|
|
@@ -11557,6 +11648,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
|
|
|
11557
11648
|
if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
|
|
11558
11649
|
return false;
|
|
11559
11650
|
}
|
|
11651
|
+
if (props && props.requestConfig && typeof props.requestConfig.noOperate === 'boolean' && props.requestConfig.noOperate !== nextProps.requestConfig.noOperate) {
|
|
11652
|
+
return false;
|
|
11653
|
+
}
|
|
11560
11654
|
return true;
|
|
11561
11655
|
});
|
|
11562
11656
|
|
|
@@ -12760,7 +12854,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12760
12854
|
};
|
|
12761
12855
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
12762
12856
|
onClick: handleShowModal
|
|
12763
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
12857
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12764
12858
|
onOk: handleOk,
|
|
12765
12859
|
onCancel: handleCancel,
|
|
12766
12860
|
destroyOnClose: true,
|
|
@@ -12879,7 +12973,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12879
12973
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12880
12974
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12881
12975
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12882
|
-
var
|
|
12976
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12883
12977
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12884
12978
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12885
12979
|
return {
|
|
@@ -12891,7 +12985,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12891
12985
|
isLeaf: !haveChildren,
|
|
12892
12986
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12893
12987
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12894
|
-
return
|
|
12988
|
+
return _mapSearchTree(i);
|
|
12895
12989
|
}) : []
|
|
12896
12990
|
};
|
|
12897
12991
|
};
|
|
@@ -12909,8 +13003,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12909
13003
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12910
13004
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
12911
13005
|
headers: headers
|
|
12912
|
-
}).then(
|
|
12913
|
-
var _ref = _asyncToGenerator(
|
|
13006
|
+
}).then(/*#__PURE__*/function () {
|
|
13007
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12914
13008
|
var _ctx$form;
|
|
12915
13009
|
var resData, coverData, data, dataList;
|
|
12916
13010
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12937,7 +13031,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12937
13031
|
case 9:
|
|
12938
13032
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12939
13033
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12940
|
-
return
|
|
13034
|
+
return _mapSearchTree(ites);
|
|
12941
13035
|
}) || [];
|
|
12942
13036
|
case 11:
|
|
12943
13037
|
_context.next = 14;
|
|
@@ -12975,11 +13069,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12975
13069
|
return _formatResult;
|
|
12976
13070
|
}
|
|
12977
13071
|
};
|
|
12978
|
-
var
|
|
13072
|
+
var _parallelData = function parallelData(data, result) {
|
|
12979
13073
|
data.forEach(function (i) {
|
|
12980
13074
|
result.push(i);
|
|
12981
13075
|
if (i[treeChildrenRoom]) {
|
|
12982
|
-
|
|
13076
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
12983
13077
|
}
|
|
12984
13078
|
});
|
|
12985
13079
|
return result;
|
|
@@ -13019,7 +13113,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13019
13113
|
var _ctx$form2;
|
|
13020
13114
|
var handleData = formatData(data);
|
|
13021
13115
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13022
|
-
var parallelTreeData =
|
|
13116
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13023
13117
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13024
13118
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13025
13119
|
onChangeName && onChangeName(dataName);
|
|
@@ -13062,7 +13156,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13062
13156
|
var getShowStr = function getShowStr() {
|
|
13063
13157
|
var isMultiple = multiple || treeCheckable;
|
|
13064
13158
|
var kongValue = '无';
|
|
13065
|
-
var parallelTreeData =
|
|
13159
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13066
13160
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13067
13161
|
if (isMultiple) {
|
|
13068
13162
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13074,7 +13168,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13074
13168
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13075
13169
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13076
13170
|
className: 'tree_search_select'
|
|
13077
|
-
}, isShouldShowStr ? (
|
|
13171
|
+
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13078
13172
|
title: getShowStr(),
|
|
13079
13173
|
style: {
|
|
13080
13174
|
overflow: 'hidden',
|
|
@@ -13082,7 +13176,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13082
13176
|
whiteSpace: 'nowrap'
|
|
13083
13177
|
},
|
|
13084
13178
|
className: 'search_select_show'
|
|
13085
|
-
}, getShowStr())) : (
|
|
13179
|
+
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13086
13180
|
treeCheckable: treeCheckable,
|
|
13087
13181
|
maxTagCount: maxTagCount,
|
|
13088
13182
|
showSearch: showSearch,
|
|
@@ -13279,7 +13373,7 @@ var index$2 = (function (props) {
|
|
|
13279
13373
|
} : {}
|
|
13280
13374
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13281
13375
|
className: 'status-label-operate'
|
|
13282
|
-
}, item.isDone ? (
|
|
13376
|
+
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13283
13377
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13284
13378
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13285
13379
|
style: {
|
|
@@ -14060,7 +14154,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14060
14154
|
style: {
|
|
14061
14155
|
width: 525
|
|
14062
14156
|
}
|
|
14063
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
14157
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14064
14158
|
checked: !dataSource.some(function (item) {
|
|
14065
14159
|
if (item.hidden) return true;
|
|
14066
14160
|
return false;
|
|
@@ -14098,13 +14192,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14098
14192
|
_this2.onChange(e, item.title);
|
|
14099
14193
|
}
|
|
14100
14194
|
}, item.title);
|
|
14101
|
-
}), !!seatchDataSource.length && (
|
|
14195
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
14102
14196
|
style: {
|
|
14103
14197
|
width: '144px'
|
|
14104
14198
|
}
|
|
14105
|
-
})), !seatchDataSource.length && (
|
|
14199
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14106
14200
|
className: 'sort_table_column_all_empty'
|
|
14107
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
14201
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14108
14202
|
className: 'sort_table_column_special'
|
|
14109
14203
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14110
14204
|
className: 'sort_table_column_all'
|
|
@@ -14177,6 +14271,28 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14177
14271
|
}]);
|
|
14178
14272
|
}(React__default['default'].Component);
|
|
14179
14273
|
|
|
14274
|
+
var css_248z$c = ".table_sum_wrapper {\n position: absolute;\n overflow: hidden;\n width: 80%;\n height: 26px;\n bottom: 0;\n}\n.table_sum_wrapper .table-bssula-summary {\n height: 40px;\n right: 0;\n bottom: -20px;\n white-space: nowrap;\n overflow-x: auto;\n}\n.sum_right_line {\n position: absolute;\n right: 20%;\n bottom: 0;\n width: 16px;\n height: 26px;\n opacity: 0.32;\n transform: scaleX(-1);\n background-image: linear-gradient(270deg, #ffffff00 0%, #A4A4A4 100%);\n}\n";
|
|
14275
|
+
styleInject(css_248z$c);
|
|
14276
|
+
|
|
14277
|
+
//表格底部 金额总计
|
|
14278
|
+
var TableSumComponent = (function (_ref) {
|
|
14279
|
+
var summary = _ref.summary;
|
|
14280
|
+
var Text = antd.Typography.Text;
|
|
14281
|
+
return /*#__PURE__*/React__default['default'].createElement(React$1.Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14282
|
+
className: "table_sum_wrapper"
|
|
14283
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14284
|
+
className: 'table-bssula-summary'
|
|
14285
|
+
}, summary.map(function (item) {
|
|
14286
|
+
return /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
14287
|
+
type: 'danger'
|
|
14288
|
+
}, item.label, ": ", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14289
|
+
className: 'table-bssula-summary-count'
|
|
14290
|
+
}, item.count || 0));
|
|
14291
|
+
}))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14292
|
+
className: "sum_right_line"
|
|
14293
|
+
}));
|
|
14294
|
+
});
|
|
14295
|
+
|
|
14180
14296
|
var _excluded$9 = ["onResize", "width"],
|
|
14181
14297
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
14182
14298
|
var Text = antd.Typography.Text;
|
|
@@ -14261,10 +14377,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14261
14377
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14262
14378
|
return _objectSpread2({}, col);
|
|
14263
14379
|
});
|
|
14264
|
-
var
|
|
14380
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14265
14381
|
var i = indexArr.shift();
|
|
14266
14382
|
if (indexArr.length > 0) {
|
|
14267
|
-
|
|
14383
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14268
14384
|
} else {
|
|
14269
14385
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14270
14386
|
width: size.width
|
|
@@ -14272,7 +14388,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14272
14388
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14273
14389
|
}
|
|
14274
14390
|
};
|
|
14275
|
-
|
|
14391
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14276
14392
|
_this.setState({
|
|
14277
14393
|
showColumns: _toConsumableArray(newColumns)
|
|
14278
14394
|
});
|
|
@@ -14282,15 +14398,117 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14282
14398
|
var onResize = props.onResize,
|
|
14283
14399
|
width = props.width,
|
|
14284
14400
|
restProps = _objectWithoutProperties(props, _excluded$9);
|
|
14285
|
-
|
|
14286
|
-
|
|
14287
|
-
|
|
14401
|
+
var _useState = React$1.useState(width),
|
|
14402
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14403
|
+
innerWidth = _useState2[0],
|
|
14404
|
+
setInnerWidth = _useState2[1];
|
|
14405
|
+
var _useState3 = React$1.useState(false),
|
|
14406
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
14407
|
+
isResizing = _useState4[0],
|
|
14408
|
+
setIsResizing = _useState4[1]; // 标记是否正在拖拽
|
|
14409
|
+
var _useState5 = React$1.useState(false),
|
|
14410
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
14411
|
+
isDragging = _useState6[0],
|
|
14412
|
+
setIsDragging = _useState6[1]; // 标记拖拽句柄是否被拖拽
|
|
14413
|
+
var _useState7 = React$1.useState(0),
|
|
14414
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
14415
|
+
startX = _useState8[0],
|
|
14416
|
+
setStartX = _useState8[1]; // 初始X坐标
|
|
14417
|
+
var markerPosition = React$1.useRef({
|
|
14418
|
+
left: 0,
|
|
14419
|
+
top: 0
|
|
14420
|
+
});
|
|
14421
|
+
var currentStart = React$1.useRef(0);
|
|
14422
|
+
var uuidref = React$1.useRef(uuid());
|
|
14423
|
+
var prevWidthRef = React$1.useRef(width);
|
|
14424
|
+
var handleMouseDown = function handleMouseDown(e) {
|
|
14425
|
+
currentStart.current = e.clientX;
|
|
14426
|
+
markerPosition.current = {
|
|
14427
|
+
left: e.clientX,
|
|
14428
|
+
top: e.clientY
|
|
14429
|
+
};
|
|
14430
|
+
setIsResizing(true);
|
|
14431
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
14432
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
14433
|
+
};
|
|
14434
|
+
var handleMouseMove = function handleMouseMove(e) {
|
|
14435
|
+
e.stopPropagation();
|
|
14436
|
+
e.preventDefault();
|
|
14437
|
+
// 更新标记位置
|
|
14438
|
+
markerPosition.current = {
|
|
14439
|
+
left: e.clientX,
|
|
14440
|
+
top: e.clientY
|
|
14441
|
+
};
|
|
14442
|
+
var dom = document.getElementById('text1');
|
|
14443
|
+
if (dom && dom.style) {
|
|
14444
|
+
dom.style.left = "".concat(e.clientX, "px");
|
|
14445
|
+
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14446
|
+
}
|
|
14447
|
+
};
|
|
14448
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
14449
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
14450
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
14451
|
+
setIsResizing(false);
|
|
14452
|
+
};
|
|
14453
|
+
var handleresize = function handleresize(e, data, title) {
|
|
14454
|
+
var _data$size;
|
|
14455
|
+
var newWidth = (data === null || data === void 0 ? void 0 : (_data$size = data.size) === null || _data$size === void 0 ? void 0 : _data$size.width) || 0;
|
|
14456
|
+
setInnerWidth(newWidth); // 更新内部分宽度
|
|
14457
|
+
};
|
|
14458
|
+
var handleResizeStart = function handleResizeStart() {
|
|
14459
|
+
setIsResizing(true);
|
|
14460
|
+
};
|
|
14461
|
+
var handleResizeStop = function handleResizeStop(e, data) {
|
|
14462
|
+
setIsResizing(false);
|
|
14463
|
+
if (onResize) {
|
|
14464
|
+
onResize(e, data);
|
|
14465
|
+
}
|
|
14466
|
+
};
|
|
14467
|
+
React$1.useEffect(function () {
|
|
14468
|
+
if (width !== prevWidthRef.current) {
|
|
14469
|
+
prevWidthRef.current = width;
|
|
14470
|
+
setInnerWidth(width);
|
|
14471
|
+
}
|
|
14472
|
+
}, [width]);
|
|
14288
14473
|
return /*#__PURE__*/React__default['default'].createElement(reactResizable.Resizable, {
|
|
14289
|
-
width:
|
|
14474
|
+
width: innerWidth,
|
|
14290
14475
|
height: 0,
|
|
14291
|
-
|
|
14476
|
+
handle: /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14477
|
+
style: {
|
|
14478
|
+
width: '10px',
|
|
14479
|
+
height: '30px',
|
|
14480
|
+
cursor: 'col-resize',
|
|
14481
|
+
position: 'absolute',
|
|
14482
|
+
zIndex: 10,
|
|
14483
|
+
top: 0,
|
|
14484
|
+
right: 0
|
|
14485
|
+
},
|
|
14486
|
+
onMouseDown: handleMouseDown
|
|
14487
|
+
}), isResizing && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14488
|
+
id: "text1",
|
|
14489
|
+
style: {
|
|
14490
|
+
position: 'fixed',
|
|
14491
|
+
left: markerPosition.current.left,
|
|
14492
|
+
top: markerPosition.current.top - 20,
|
|
14493
|
+
backgroundColor: '#1890ff',
|
|
14494
|
+
color: 'white',
|
|
14495
|
+
borderRadius: '4px',
|
|
14496
|
+
zIndex: 9999,
|
|
14497
|
+
pointerEvents: 'none',
|
|
14498
|
+
height: '40px',
|
|
14499
|
+
width: 2
|
|
14500
|
+
}
|
|
14501
|
+
})),
|
|
14502
|
+
onResize: function onResize(e, data) {
|
|
14503
|
+
handleresize(e, data, restProps.title);
|
|
14504
|
+
},
|
|
14505
|
+
onResizeStart: handleResizeStart,
|
|
14506
|
+
onResizeStop: handleResizeStop,
|
|
14292
14507
|
draggableOpts: {
|
|
14293
|
-
enableUserSelectHack:
|
|
14508
|
+
enableUserSelectHack: true,
|
|
14509
|
+
grid: [20, 20],
|
|
14510
|
+
axis: 'x',
|
|
14511
|
+
bounds: 'parent'
|
|
14294
14512
|
}
|
|
14295
14513
|
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
14296
14514
|
};
|
|
@@ -14343,20 +14561,20 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14343
14561
|
restProps = _objectWithoutProperties(_this$props3, _excluded2$4);
|
|
14344
14562
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
14345
14563
|
var showSummary = null;
|
|
14346
|
-
if (this.state.showColumns.length) {
|
|
14564
|
+
if (this.state.showColumns.length && !Array.isArray(summary)) {
|
|
14347
14565
|
if (summary && summary().diy) {
|
|
14348
14566
|
showSummary = this.getTableSummaryInfo();
|
|
14349
14567
|
} else {
|
|
14350
14568
|
showSummary = summary;
|
|
14351
14569
|
}
|
|
14352
14570
|
}
|
|
14353
|
-
var
|
|
14571
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14354
14572
|
arr.forEach(function (item, index) {
|
|
14355
14573
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14356
14574
|
return i || i === 0;
|
|
14357
14575
|
});
|
|
14358
14576
|
if (noEmptyArray$1(item.children)) {
|
|
14359
|
-
|
|
14577
|
+
_handleColumns(item.children, indexArrInside);
|
|
14360
14578
|
} else {
|
|
14361
14579
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14362
14580
|
item.onHeaderCell = function (column) {
|
|
@@ -14372,7 +14590,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14372
14590
|
handleBssulaColumnsSpecialParams(item);
|
|
14373
14591
|
return _objectSpread2({}, item);
|
|
14374
14592
|
});
|
|
14375
|
-
|
|
14593
|
+
_handleColumns(showCol, []);
|
|
14376
14594
|
if (dynamicColumns.length) {
|
|
14377
14595
|
showCol = this.handledynamicColumns(showCol);
|
|
14378
14596
|
}
|
|
@@ -14382,8 +14600,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14382
14600
|
}, scroll), {}, {
|
|
14383
14601
|
x: restProps.overScrollX || this.getTableScrollXWidth(showCol)
|
|
14384
14602
|
}),
|
|
14603
|
+
sticky: true
|
|
14604
|
+
}, showSummary ? {
|
|
14385
14605
|
summary: showSummary
|
|
14386
|
-
});
|
|
14606
|
+
} : {});
|
|
14387
14607
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14388
14608
|
style: {
|
|
14389
14609
|
position: 'relative'
|
|
@@ -14411,7 +14631,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14411
14631
|
cell: this.ResizeableTitle
|
|
14412
14632
|
}
|
|
14413
14633
|
}
|
|
14414
|
-
}, otherTableInfo)))
|
|
14634
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
14635
|
+
summary: summary
|
|
14636
|
+
})));
|
|
14415
14637
|
}
|
|
14416
14638
|
}]);
|
|
14417
14639
|
}(React__default['default'].Component);
|
|
@@ -14506,10 +14728,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14506
14728
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14507
14729
|
return _objectSpread2({}, col);
|
|
14508
14730
|
});
|
|
14509
|
-
var
|
|
14731
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14510
14732
|
var i = indexArr.shift();
|
|
14511
14733
|
if (indexArr.length > 0) {
|
|
14512
|
-
|
|
14734
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14513
14735
|
} else {
|
|
14514
14736
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14515
14737
|
width: size.width
|
|
@@ -14517,7 +14739,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14517
14739
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14518
14740
|
}
|
|
14519
14741
|
};
|
|
14520
|
-
|
|
14742
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14521
14743
|
_this.setState({
|
|
14522
14744
|
showColumns: _toConsumableArray(newColumns)
|
|
14523
14745
|
});
|
|
@@ -14586,20 +14808,20 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14586
14808
|
restProps = _objectWithoutProperties(_this$props3, _excluded2$5);
|
|
14587
14809
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
14588
14810
|
var showSummary = null;
|
|
14589
|
-
if (this.state.showColumns.length) {
|
|
14811
|
+
if (this.state.showColumns.length && !Array.isArray(summary)) {
|
|
14590
14812
|
if (summary && summary().diy) {
|
|
14591
14813
|
showSummary = this.getTableSummaryInfo();
|
|
14592
14814
|
} else {
|
|
14593
14815
|
showSummary = summary;
|
|
14594
14816
|
}
|
|
14595
14817
|
}
|
|
14596
|
-
var
|
|
14818
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14597
14819
|
arr.forEach(function (item, index) {
|
|
14598
14820
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14599
14821
|
return i || i === 0;
|
|
14600
14822
|
});
|
|
14601
14823
|
if (noEmptyArray$1(item.children)) {
|
|
14602
|
-
|
|
14824
|
+
_handleColumns(item.children, indexArrInside);
|
|
14603
14825
|
} else {
|
|
14604
14826
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14605
14827
|
item.onHeaderCell = function (column) {
|
|
@@ -14615,7 +14837,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14615
14837
|
handleAntdColumnsSpecialParams(item);
|
|
14616
14838
|
return _objectSpread2({}, item);
|
|
14617
14839
|
});
|
|
14618
|
-
|
|
14840
|
+
_handleColumns(showCol, []);
|
|
14619
14841
|
if (dynamicColumns.length) {
|
|
14620
14842
|
showCol = this.handledynamicColumns(showCol);
|
|
14621
14843
|
}
|
|
@@ -14624,9 +14846,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14624
14846
|
y: 400
|
|
14625
14847
|
}, scroll), {}, {
|
|
14626
14848
|
x: restProps.overScrollX || this.getTableScrollXWidth(showCol)
|
|
14627
|
-
})
|
|
14849
|
+
})
|
|
14850
|
+
}, showSummary ? {
|
|
14628
14851
|
summary: showSummary
|
|
14629
|
-
});
|
|
14852
|
+
} : {});
|
|
14630
14853
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14631
14854
|
style: {
|
|
14632
14855
|
position: 'relative'
|
|
@@ -14654,7 +14877,9 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14654
14877
|
cell: this.ResizeableTitle
|
|
14655
14878
|
}
|
|
14656
14879
|
}
|
|
14657
|
-
}, otherTableInfo)))
|
|
14880
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
14881
|
+
summary: summary
|
|
14882
|
+
})));
|
|
14658
14883
|
}
|
|
14659
14884
|
}]);
|
|
14660
14885
|
}(React__default['default'].Component);
|
|
@@ -14712,20 +14937,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14712
14937
|
};
|
|
14713
14938
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14714
14939
|
var routerMap = {};
|
|
14715
|
-
var
|
|
14940
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
14716
14941
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14717
14942
|
data.forEach(function (menuItem) {
|
|
14718
14943
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14719
14944
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14720
14945
|
});
|
|
14721
14946
|
if (newMenuItem.children) {
|
|
14722
|
-
|
|
14947
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
14723
14948
|
}
|
|
14724
14949
|
// Reduce memory usage
|
|
14725
14950
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14726
14951
|
});
|
|
14727
14952
|
};
|
|
14728
|
-
|
|
14953
|
+
_flattenMenuData2(menuData, {});
|
|
14729
14954
|
return routerMap;
|
|
14730
14955
|
};
|
|
14731
14956
|
// mode类型判断
|
|
@@ -14786,8 +15011,8 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
|
|
|
14786
15011
|
return undefined;
|
|
14787
15012
|
};
|
|
14788
15013
|
|
|
14789
|
-
var css_248z$
|
|
14790
|
-
styleInject(css_248z$
|
|
15014
|
+
var css_248z$d = ".bs_detail_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.detail_page_head {\n height: 32px;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n font-weight: 500;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_pre:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n}\n.back_home_img_content {\n display: inline-block;\n height: 16px;\n width: 16px;\n border: 1px solid #BABABA;\n margin: 0 8px 0 10px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005cff;\n border: 1px solid #005cff;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 14px;\n padding-right: 10px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n display: none;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 24px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
|
|
15015
|
+
styleInject(css_248z$d);
|
|
14791
15016
|
|
|
14792
15017
|
var quanping = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%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%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%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%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1823.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281593.000000%2C%2013.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.55801813%2C1%20L28.4419819%2C1%20C30.0269041%2C1%2030.6016352%2C1.16502331%2031.181059%2C1.47490258%20C31.7604829%2C1.78478186%2032.2152181%2C2.2395171%2032.5250974%2C2.81894097%20C32.8349767%2C3.39836484%2033%2C3.97309593%2033%2C5.55801813%20L33%2C28.4419819%20C33%2C30.0269041%2032.8349767%2C30.6016352%2032.5250974%2C31.181059%20C32.2152181%2C31.7604829%2031.7604829%2C32.2152181%2031.181059%2C32.5250974%20C30.6016352%2C32.8349767%2030.0269041%2C33%2028.4419819%2C33%20L5.55801813%2C33%20C3.97309593%2C33%203.39836484%2C32.8349767%202.81894097%2C32.5250974%20C2.2395171%2C32.2152181%201.78478186%2C31.7604829%201.47490258%2C31.181059%20C1.16502331%2C30.6016352%201%2C30.0269041%201%2C28.4419819%20L1%2C5.55801813%20C1%2C3.97309593%201.16502331%2C3.39836484%201.47490258%2C2.81894097%20C1.78478186%2C2.2395171%202.2395171%2C1.78478186%202.81894097%2C1.47490258%20C3.39836484%2C1.16502331%203.97309593%2C1%205.55801813%2C1%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%289.000000%2C%209.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.5%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.41%20L5.21873562%2C9.69278114%20Z%20M10.7898541%2C9.72266777%20L14.499%2C13.431%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.446%2C14.5%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%20M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.499%2C2.588%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.465%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%20M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%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";
|
|
14793
15018
|
|
|
@@ -14801,8 +15026,8 @@ var deleteIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
14801
15026
|
|
|
14802
15027
|
var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2220px%22%20height%3D%2220px%22%20viewBox%3D%220%200%2020%2020%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%3E%E7%BC%96%E7%BB%84%2014%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B6%E9%83%A8%E5%AF%BC%E8%88%AA%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%22%E6%9C%80%E6%96%B0%E6%A1%86%E6%9E%B6-%E4%B8%8B%E6%8B%89%E5%BC%8F%E5%B1%95%E5%BC%80%22%20transform%3D%22translate%28-1743.000000%2C%20-94.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-7%22%20transform%3D%22translate%28160.000000%2C%2050.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22tab%E5%AF%BC%E8%88%AA%E5%A4%87%E4%BB%BD-7%22%20transform%3D%22translate%280.000000%2C%2026.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-3%22%20transform%3D%22translate%281573.000000%2C%2012.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%2810.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2220%22%20height%3D%2220%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%2810.500000%2C%2010.022232%29%20rotate%28-90.000000%29%20translate%28-10.500000%2C%20-10.022232%29%20%22%20points%3D%2214%204.9775377%2013.0224623%204%207%2010.0252289%2013.0220012%2016.0444635%2014%2015.0660036%208.95599763%2010.0247678%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%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";
|
|
14803
15028
|
|
|
14804
|
-
var css_248z$
|
|
14805
|
-
styleInject(css_248z$
|
|
15029
|
+
var css_248z$e = "";
|
|
15030
|
+
styleInject(css_248z$e);
|
|
14806
15031
|
|
|
14807
15032
|
var _excluded$b = ["message", "type"];
|
|
14808
15033
|
var CommonAlert = (function (props) {
|
|
@@ -15051,7 +15276,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15051
15276
|
display: 'flex',
|
|
15052
15277
|
gap: '8px'
|
|
15053
15278
|
}
|
|
15054
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
15279
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15055
15280
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15056
15281
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15057
15282
|
onClick: function onClick() {
|
|
@@ -15059,7 +15284,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15059
15284
|
},
|
|
15060
15285
|
width: 24,
|
|
15061
15286
|
src: scanning
|
|
15062
|
-
}))) : (
|
|
15287
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15063
15288
|
title: "\u5168\u5C4F"
|
|
15064
15289
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15065
15290
|
onClick: function onClick() {
|
|
@@ -15067,7 +15292,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15067
15292
|
},
|
|
15068
15293
|
width: 24,
|
|
15069
15294
|
src: quanping
|
|
15070
|
-
}))))) : null)), alertProps && (
|
|
15295
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15071
15296
|
}, function (prevProps, nextProps) {
|
|
15072
15297
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15073
15298
|
return false;
|
|
@@ -15075,8 +15300,8 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15075
15300
|
return true;
|
|
15076
15301
|
});
|
|
15077
15302
|
|
|
15078
|
-
var css_248z$
|
|
15079
|
-
styleInject(css_248z$
|
|
15303
|
+
var css_248z$f = ".bs_home_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
15304
|
+
styleInject(css_248z$f);
|
|
15080
15305
|
|
|
15081
15306
|
var _excluded$d = ["children"];
|
|
15082
15307
|
var index$4 = (function (props) {
|
|
@@ -15152,7 +15377,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15152
15377
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15153
15378
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15154
15379
|
}, item));
|
|
15155
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (
|
|
15380
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15156
15381
|
}, function (prevProps, nextProps) {
|
|
15157
15382
|
if (prevProps.title !== nextProps.title) {
|
|
15158
15383
|
return false;
|
|
@@ -15160,8 +15385,8 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15160
15385
|
return true;
|
|
15161
15386
|
});
|
|
15162
15387
|
|
|
15163
|
-
var css_248z$
|
|
15164
|
-
styleInject(css_248z$
|
|
15388
|
+
var css_248z$g = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
15389
|
+
styleInject(css_248z$g);
|
|
15165
15390
|
|
|
15166
15391
|
var _excluded$e = ["className", "style"];
|
|
15167
15392
|
var DragHandle$2 = reactSortableHoc.SortableHandle(function () {
|
|
@@ -15792,7 +16017,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15792
16017
|
});
|
|
15793
16018
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15794
16019
|
className: 'sort_table_wrapper'
|
|
15795
|
-
}, visible && (
|
|
16020
|
+
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
15796
16021
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15797
16022
|
wrapClassName: 'sort_table_wrapper',
|
|
15798
16023
|
width: 810,
|
|
@@ -15843,7 +16068,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15843
16068
|
width: 525,
|
|
15844
16069
|
height: 24
|
|
15845
16070
|
}
|
|
15846
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
16071
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15847
16072
|
checked: !dataSource.some(function (item) {
|
|
15848
16073
|
if (item.hidden) return true;
|
|
15849
16074
|
return false;
|
|
@@ -15897,13 +16122,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15897
16122
|
_this2.onChange(e, item.title);
|
|
15898
16123
|
}
|
|
15899
16124
|
}, item.title);
|
|
15900
|
-
}), !!seatchDataSource.length && (
|
|
16125
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
15901
16126
|
style: {
|
|
15902
16127
|
width: '144px'
|
|
15903
16128
|
}
|
|
15904
|
-
})), !seatchDataSource.length && (
|
|
16129
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
15905
16130
|
className: 'sort_table_column_all_empty'
|
|
15906
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
16131
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15907
16132
|
className: 'sort_table_column_special'
|
|
15908
16133
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15909
16134
|
className: 'sort_table_column_all'
|
|
@@ -16377,7 +16602,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16377
16602
|
});
|
|
16378
16603
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16379
16604
|
className: 'sort_table_wrapper'
|
|
16380
|
-
}, visible && (
|
|
16605
|
+
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16381
16606
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16382
16607
|
wrapClassName: 'sort_table_wrapper',
|
|
16383
16608
|
width: 820,
|
|
@@ -16422,7 +16647,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16422
16647
|
style: {
|
|
16423
16648
|
width: 525
|
|
16424
16649
|
}
|
|
16425
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
16650
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16426
16651
|
checked: !dataSource.some(function (item) {
|
|
16427
16652
|
if (item.hidden) return true;
|
|
16428
16653
|
return false;
|
|
@@ -16458,11 +16683,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16458
16683
|
_this2.onChange(e, item.name);
|
|
16459
16684
|
}
|
|
16460
16685
|
}, item.label);
|
|
16461
|
-
}), !!newSearchSource.length && (
|
|
16686
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
16462
16687
|
style: {
|
|
16463
16688
|
width: '144px'
|
|
16464
16689
|
}
|
|
16465
|
-
})), !newSearchSource.length && (
|
|
16690
|
+
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
16466
16691
|
className: 'sort_table_column_all_empty'
|
|
16467
16692
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16468
16693
|
className: 'sort_table_content_wrapper'
|
|
@@ -16520,8 +16745,8 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16520
16745
|
}]);
|
|
16521
16746
|
}(React__default['default'].Component);
|
|
16522
16747
|
|
|
16523
|
-
var css_248z$
|
|
16524
|
-
styleInject(css_248z$
|
|
16748
|
+
var css_248z$h = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
16749
|
+
styleInject(css_248z$h);
|
|
16525
16750
|
|
|
16526
16751
|
var _excluded$g = ["onResize", "width"];
|
|
16527
16752
|
var MemoQueryTable = /*#__PURE__*/React__default['default'].memo(bssula.QueryTable);
|
|
@@ -16530,15 +16755,117 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16530
16755
|
var onResize = props.onResize,
|
|
16531
16756
|
width = props.width,
|
|
16532
16757
|
restProps = _objectWithoutProperties(props, _excluded$g);
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16758
|
+
var _useState = React$1.useState(width),
|
|
16759
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16760
|
+
innerWidth = _useState2[0],
|
|
16761
|
+
setInnerWidth = _useState2[1];
|
|
16762
|
+
var _useState3 = React$1.useState(false),
|
|
16763
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
16764
|
+
isResizing = _useState4[0],
|
|
16765
|
+
setIsResizing = _useState4[1]; // 标记是否正在拖拽
|
|
16766
|
+
var _useState5 = React$1.useState(false),
|
|
16767
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
16768
|
+
isDragging = _useState6[0],
|
|
16769
|
+
setIsDragging = _useState6[1]; // 标记拖拽句柄是否被拖拽
|
|
16770
|
+
var _useState7 = React$1.useState(0),
|
|
16771
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
16772
|
+
startX = _useState8[0],
|
|
16773
|
+
setStartX = _useState8[1]; // 初始X坐标
|
|
16774
|
+
var markerPosition = React$1.useRef({
|
|
16775
|
+
left: 0,
|
|
16776
|
+
top: 0
|
|
16777
|
+
});
|
|
16778
|
+
var currentStart = React$1.useRef(0);
|
|
16779
|
+
var uuidref = React$1.useRef(uuid());
|
|
16780
|
+
var prevWidthRef = React$1.useRef(width);
|
|
16781
|
+
var handleMouseDown = function handleMouseDown(e) {
|
|
16782
|
+
currentStart.current = e.clientX;
|
|
16783
|
+
markerPosition.current = {
|
|
16784
|
+
left: e.clientX,
|
|
16785
|
+
top: e.clientY
|
|
16786
|
+
};
|
|
16787
|
+
setIsResizing(true);
|
|
16788
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
16789
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
16790
|
+
};
|
|
16791
|
+
var handleMouseMove = function handleMouseMove(e) {
|
|
16792
|
+
e.stopPropagation();
|
|
16793
|
+
e.preventDefault();
|
|
16794
|
+
// 更新标记位置
|
|
16795
|
+
markerPosition.current = {
|
|
16796
|
+
left: e.clientX,
|
|
16797
|
+
top: e.clientY
|
|
16798
|
+
};
|
|
16799
|
+
var dom = document.getElementById('text1');
|
|
16800
|
+
if (dom && dom.style) {
|
|
16801
|
+
dom.style.left = "".concat(e.clientX, "px");
|
|
16802
|
+
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
16803
|
+
}
|
|
16804
|
+
};
|
|
16805
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
16806
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
16807
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
16808
|
+
setIsResizing(false);
|
|
16809
|
+
};
|
|
16810
|
+
var handleresize = function handleresize(e, data, title) {
|
|
16811
|
+
var _data$size;
|
|
16812
|
+
var newWidth = (data === null || data === void 0 ? void 0 : (_data$size = data.size) === null || _data$size === void 0 ? void 0 : _data$size.width) || 0;
|
|
16813
|
+
setInnerWidth(newWidth); // 更新内部分宽度
|
|
16814
|
+
};
|
|
16815
|
+
var handleResizeStart = function handleResizeStart() {
|
|
16816
|
+
setIsResizing(true);
|
|
16817
|
+
};
|
|
16818
|
+
var handleResizeStop = function handleResizeStop(e, data) {
|
|
16819
|
+
setIsResizing(false);
|
|
16820
|
+
if (onResize) {
|
|
16821
|
+
onResize(e, data);
|
|
16822
|
+
}
|
|
16823
|
+
};
|
|
16824
|
+
React$1.useEffect(function () {
|
|
16825
|
+
if (width !== prevWidthRef.current) {
|
|
16826
|
+
prevWidthRef.current = width;
|
|
16827
|
+
setInnerWidth(width);
|
|
16828
|
+
}
|
|
16829
|
+
}, [width]);
|
|
16536
16830
|
return /*#__PURE__*/React__default['default'].createElement(reactResizable.Resizable, {
|
|
16537
|
-
width:
|
|
16831
|
+
width: innerWidth,
|
|
16538
16832
|
height: 0,
|
|
16539
|
-
|
|
16833
|
+
handle: /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16834
|
+
style: {
|
|
16835
|
+
width: '10px',
|
|
16836
|
+
height: '30px',
|
|
16837
|
+
cursor: 'col-resize',
|
|
16838
|
+
position: 'absolute',
|
|
16839
|
+
zIndex: 10,
|
|
16840
|
+
top: 0,
|
|
16841
|
+
right: 0
|
|
16842
|
+
},
|
|
16843
|
+
onMouseDown: handleMouseDown
|
|
16844
|
+
}), isResizing && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16845
|
+
id: "text1",
|
|
16846
|
+
style: {
|
|
16847
|
+
position: 'fixed',
|
|
16848
|
+
left: markerPosition.current.left,
|
|
16849
|
+
top: markerPosition.current.top - 20,
|
|
16850
|
+
backgroundColor: '#1890ff',
|
|
16851
|
+
color: 'white',
|
|
16852
|
+
borderRadius: '4px',
|
|
16853
|
+
zIndex: 9999,
|
|
16854
|
+
pointerEvents: 'none',
|
|
16855
|
+
height: '40px',
|
|
16856
|
+
width: 2
|
|
16857
|
+
}
|
|
16858
|
+
})),
|
|
16859
|
+
onResize: function onResize(e, data) {
|
|
16860
|
+
handleresize(e, data, restProps.title);
|
|
16861
|
+
},
|
|
16862
|
+
onResizeStart: handleResizeStart,
|
|
16863
|
+
onResizeStop: handleResizeStop,
|
|
16540
16864
|
draggableOpts: {
|
|
16541
|
-
enableUserSelectHack:
|
|
16865
|
+
enableUserSelectHack: true,
|
|
16866
|
+
grid: [20, 20],
|
|
16867
|
+
axis: 'x',
|
|
16868
|
+
bounds: 'parent'
|
|
16542
16869
|
}
|
|
16543
16870
|
}, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
|
|
16544
16871
|
};
|
|
@@ -16619,39 +16946,39 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16619
16946
|
return _toConsumableArray(originConfig);
|
|
16620
16947
|
};
|
|
16621
16948
|
var refs = React$1.useRef(null);
|
|
16622
|
-
var
|
|
16623
|
-
|
|
16624
|
-
pagePath =
|
|
16625
|
-
setPagePath =
|
|
16949
|
+
var _useState9 = React$1.useState(''),
|
|
16950
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
16951
|
+
pagePath = _useState10[0],
|
|
16952
|
+
setPagePath = _useState10[1];
|
|
16626
16953
|
var _useLocation = umi.useLocation(),
|
|
16627
16954
|
pathname = _useLocation.pathname,
|
|
16628
16955
|
_useLocation$state = _useLocation.state,
|
|
16629
16956
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
16630
|
-
var
|
|
16631
|
-
|
|
16632
|
-
isFullScreen =
|
|
16633
|
-
setIsFnllScreen =
|
|
16957
|
+
var _useState11 = React$1.useState(false),
|
|
16958
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
16959
|
+
isFullScreen = _useState12[0],
|
|
16960
|
+
setIsFnllScreen = _useState12[1];
|
|
16634
16961
|
// @ts-nocheck
|
|
16635
16962
|
var value = props;
|
|
16636
16963
|
var _props$fields = props.fields,
|
|
16637
16964
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
16638
|
-
var
|
|
16639
|
-
|
|
16640
|
-
showColumn =
|
|
16641
|
-
setShowColumns =
|
|
16965
|
+
var _useState13 = React$1.useState([]),
|
|
16966
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
16967
|
+
showColumn = _useState14[0],
|
|
16968
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
16642
16969
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
16643
|
-
var
|
|
16644
|
-
|
|
16645
|
-
showSearchFields =
|
|
16646
|
-
setShowSearchFields =
|
|
16647
|
-
var
|
|
16648
|
-
|
|
16649
|
-
showExportColumn =
|
|
16650
|
-
setShowExportColumns =
|
|
16651
|
-
var
|
|
16652
|
-
|
|
16653
|
-
height =
|
|
16654
|
-
setHeight =
|
|
16970
|
+
var _useState15 = React$1.useState(originSearchFields),
|
|
16971
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
16972
|
+
showSearchFields = _useState16[0],
|
|
16973
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
16974
|
+
var _useState17 = React$1.useState([]),
|
|
16975
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
16976
|
+
showExportColumn = _useState18[0],
|
|
16977
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
16978
|
+
var _useState19 = React$1.useState(''),
|
|
16979
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
16980
|
+
height = _useState20[0],
|
|
16981
|
+
setHeight = _useState20[1];
|
|
16655
16982
|
var sortTableRef = React$1.useRef(null);
|
|
16656
16983
|
var searchTableRef = React$1.useRef(null);
|
|
16657
16984
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -16888,7 +17215,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16888
17215
|
actionsRender = actionsRender.concat([{
|
|
16889
17216
|
type: 'text',
|
|
16890
17217
|
props: {
|
|
16891
|
-
children: (
|
|
17218
|
+
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
16892
17219
|
request: {
|
|
16893
17220
|
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),
|
|
16894
17221
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17134,7 +17461,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17134
17461
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17135
17462
|
bsTableCode: bsTableCode,
|
|
17136
17463
|
onlyModal: true
|
|
17137
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
17464
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
17138
17465
|
ref: exportTableRef,
|
|
17139
17466
|
setShowColumns: setShowExportColumns,
|
|
17140
17467
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17145,8 +17472,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17145
17472
|
})));
|
|
17146
17473
|
});
|
|
17147
17474
|
|
|
17148
|
-
var css_248z$
|
|
17149
|
-
styleInject(css_248z$
|
|
17475
|
+
var css_248z$i = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.allFunsList {\n margin-bottom: 10px;\n}\n.isClons {\n position: relative;\n left: -8px;\n width: 30px;\n height: 36px;\n}\n.drawerWarp {\n -moz-column-count: 3;\n column-count: 3;\n}\n.allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n.searchTop {\n display: flex;\n align-items: center;\n}\n.searchTopInp {\n width: 528px;\n height: 40px;\n background: #f8f9fa;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.searchTopInp .ant-input {\n background: #f8f9fa;\n}\n.searchTopBtn {\n position: relative;\n left: -1px;\n width: 92px;\n height: 40px;\n background: #005cff;\n border-radius: 0px 4px 4px 0px;\n}\n.contentWarp {\n margin-top: 54px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005CFF;\n}\n.serachView {\n margin-top: 36px;\n margin-bottom: 32px;\n}\n.content {\n display: flex;\n flex-wrap: wrap;\n}\n.content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.content div:hover {\n cursor: pointer;\n}\n";
|
|
17476
|
+
styleInject(css_248z$i);
|
|
17150
17477
|
|
|
17151
17478
|
var cache = {};
|
|
17152
17479
|
var cacheLimit = 10000;
|
|
@@ -17227,11 +17554,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17227
17554
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17228
17555
|
var resultList = [];
|
|
17229
17556
|
var newRouter = cloneDeep__default['default'](router);
|
|
17230
|
-
var
|
|
17557
|
+
var _deep = function deep(router) {
|
|
17231
17558
|
if (router && Array.isArray(router)) {
|
|
17232
17559
|
router.forEach(function (item) {
|
|
17233
17560
|
if (item.children && Array.isArray(item.children)) {
|
|
17234
|
-
|
|
17561
|
+
_deep(item.children);
|
|
17235
17562
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17236
17563
|
return d === item.code;
|
|
17237
17564
|
})) {
|
|
@@ -17245,10 +17572,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17245
17572
|
resultList.push(_objectSpread2({}, router));
|
|
17246
17573
|
}
|
|
17247
17574
|
};
|
|
17248
|
-
|
|
17575
|
+
_deep(newRouter);
|
|
17249
17576
|
callBack([].concat(resultList));
|
|
17250
17577
|
};
|
|
17251
|
-
var
|
|
17578
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17252
17579
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17253
17580
|
var _loop = function _loop(i) {
|
|
17254
17581
|
if (routesData[i].hideInMenu) {
|
|
@@ -17262,7 +17589,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17262
17589
|
return 0; // continue
|
|
17263
17590
|
}
|
|
17264
17591
|
if (routesData[i].children) {
|
|
17265
|
-
|
|
17592
|
+
_setMenuTreeData(routesData[i].children);
|
|
17266
17593
|
}
|
|
17267
17594
|
},
|
|
17268
17595
|
_ret;
|
|
@@ -17283,16 +17610,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17283
17610
|
};
|
|
17284
17611
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17285
17612
|
var routerMap = {};
|
|
17286
|
-
var
|
|
17613
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
17287
17614
|
data.forEach(function (menuItem) {
|
|
17288
17615
|
if (menuItem.children) {
|
|
17289
|
-
|
|
17616
|
+
_flattenMenuData(menuItem.children);
|
|
17290
17617
|
}
|
|
17291
17618
|
// Reduce memory usage
|
|
17292
17619
|
routerMap[menuItem.path] = menuItem;
|
|
17293
17620
|
});
|
|
17294
17621
|
};
|
|
17295
|
-
|
|
17622
|
+
_flattenMenuData(menuData);
|
|
17296
17623
|
return routerMap;
|
|
17297
17624
|
};
|
|
17298
17625
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17402,8 +17729,8 @@ var AllFunc = function AllFunc(props) {
|
|
|
17402
17729
|
})))));
|
|
17403
17730
|
};
|
|
17404
17731
|
|
|
17405
|
-
var css_248z$
|
|
17406
|
-
styleInject(css_248z$
|
|
17732
|
+
var css_248z$j = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
|
|
17733
|
+
styleInject(css_248z$j);
|
|
17407
17734
|
|
|
17408
17735
|
var allfunc = "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%3Eicon%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%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%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%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%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%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%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%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%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%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%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";
|
|
17409
17736
|
|
|
@@ -17438,7 +17765,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17438
17765
|
sethomepageData(homepageDataList);
|
|
17439
17766
|
setroutesData(routesDataList);
|
|
17440
17767
|
}, []);
|
|
17441
|
-
var
|
|
17768
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
17442
17769
|
if (!child.hideInMenu && child.children) {
|
|
17443
17770
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
17444
17771
|
style: {
|
|
@@ -17448,7 +17775,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17448
17775
|
}, umi.formatMessage({
|
|
17449
17776
|
id: "".concat(child.locale)
|
|
17450
17777
|
})), child.children.map(function (menuItem) {
|
|
17451
|
-
return
|
|
17778
|
+
return _renderChildItem(menuItem);
|
|
17452
17779
|
}));
|
|
17453
17780
|
} else if (!child.hideInMenu && child.path) {
|
|
17454
17781
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -17483,7 +17810,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17483
17810
|
className: 'drawerWarp'
|
|
17484
17811
|
}, homepageData && homepageData.filter(function (d) {
|
|
17485
17812
|
return !d.hideInMenu;
|
|
17486
|
-
}).length > 0 && (
|
|
17813
|
+
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
17487
17814
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
17488
17815
|
dataSource: homepageData,
|
|
17489
17816
|
renderItem: function renderItem(child) {
|
|
@@ -17518,7 +17845,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17518
17845
|
bordered: true,
|
|
17519
17846
|
dataSource: item.children,
|
|
17520
17847
|
renderItem: function renderItem(child) {
|
|
17521
|
-
return
|
|
17848
|
+
return _renderChildItem(child);
|
|
17522
17849
|
}
|
|
17523
17850
|
});
|
|
17524
17851
|
})));
|
|
@@ -17578,7 +17905,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
17578
17905
|
src: allfunc
|
|
17579
17906
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17580
17907
|
className: 'btnSpan2'
|
|
17581
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
17908
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
17582
17909
|
style: {
|
|
17583
17910
|
left: isDrawer ? 140 : 0,
|
|
17584
17911
|
top: 50
|
|
@@ -17611,8 +17938,8 @@ var i18n = {
|
|
|
17611
17938
|
}
|
|
17612
17939
|
};
|
|
17613
17940
|
|
|
17614
|
-
var css_248z$
|
|
17615
|
-
styleInject(css_248z$
|
|
17941
|
+
var css_248z$k = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.rcom_right .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_dark .action:hover {\n background: #252a3d;\n}\n.rcom_dark .action .opened {\n background: #252a3d;\n}\n.rcom_dark .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_imgWap {\n position: relative;\n display: flex;\n align-items: center;\n}\n.rcom_imgWap .rcom_headLine {\n width: 1px;\n height: 16px;\n margin-right: 20px;\n background: #cacaca;\n}\n.rcom_imgWap img {\n width: 22px;\n height: 22px;\n margin-right: 20px;\n}\n.rcom_userWarp {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 142px;\n height: 35px;\n margin-right: 10px;\n border: 1px solid #c8c8c8;\n border-radius: 4px;\n}\n.rcom_userWarp .rcom_l {\n margin-left: 4px;\n}\n.rcom_userWarp .rcom_l img {\n margin-right: 0;\n width: 36px;\n height: 36px;\n}\n.rcom_userWarp .rcom_c {\n display: flex;\n flex-direction: column;\n}\n.rcom_userWarp .rcom_c .rcom_ct {\n color: #000000;\n font-weight: 500;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_c .rcom_cb {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 10px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_r {\n margin-right: 9px;\n}\n.rcom_.userWarp:hover,\n.rcom_c:hover,\n.rcom_l:hover,\n.rcom_r:hover {\n cursor: pointer;\n}\n.userDownWarp {\n width: 217px;\n margin-top: 4px;\n background: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n}\n.userDownWarp .userDownTop {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 155px;\n padding: 20px 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.userDownWarp .userDownTop .userDownTopT {\n width: 68px;\n height: 68px;\n border-radius: 50%;\n}\n.userDownWarp .userDownTop .userDownTopC {\n color: #000000;\n font-weight: 500;\n font-size: 14px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 26px;\n text-align: center;\n}\n.userDownWarp .userDownTop .userDownTopB {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 15px;\n text-align: center;\n}\n.userDownWarp .userDownB .userDownBList,\n.userDownWarp .userDownB .userDownOut {\n display: flex;\n align-items: center;\n height: 36px;\n background: #ffffff;\n border-bottom: 1px solid #f3f3f3;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label,\n.userDownWarp .userDownB .userDownOut .rcom_label {\n margin: 0 4px 0 20px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label img,\n.userDownWarp .userDownB .userDownOut .rcom_label img {\n width: 16px;\n height: 16px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_name,\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #000000;\n font-weight: 400;\n font-size: 12px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n}\n.userDownWarp .userDownB .userDownBList:hover,\n.userDownWarp .userDownB .userDownOut:hover {\n cursor: pointer;\n}\n.userDownWarp .userDownB .userDownOut {\n height: 46px;\n border-bottom: none;\n}\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #fe0300;\n}\n";
|
|
17942
|
+
styleInject(css_248z$k);
|
|
17616
17943
|
|
|
17617
17944
|
var Morentouxiang = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2240px%22%20viewBox%3D%220%200%2040%2040%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%3E32%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22path-1%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2213%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%3Cfilter%20x%3D%22-40.4%25%22%20y%3D%22-40.4%25%22%20width%3D%22180.8%25%22%20height%3D%22180.8%25%22%20filterUnits%3D%22objectBoundingBox%22%20id%3D%22filter-2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeOffset%20dx%3D%220%22%20dy%3D%220%22%20in%3D%22SourceAlpha%22%20result%3D%22shadowOffsetOuter1%22%3E%3C%2FfeOffset%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeGaussianBlur%20stdDeviation%3D%223.5%22%20in%3D%22shadowOffsetOuter1%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeGaussianBlur%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeComposite%20in%3D%22shadowBlurOuter1%22%20in2%3D%22SourceAlpha%22%20operator%3D%22out%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeComposite%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeColorMatrix%20values%3D%220%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%200%200%200%201%200%22%20type%3D%22matrix%22%20in%3D%22shadowBlurOuter1%22%3E%3C%2FfeColorMatrix%3E%20%20%20%20%20%20%20%20%3C%2Ffilter%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22-----6.1-%E9%BB%98%E8%AE%A4%E5%9B%BE%E7%89%87%2F-Default-picture%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%22B-Design-%E4%BD%93%E9%AA%8C%E8%A7%84%E8%8C%83%22%20transform%3D%22translate%28-1119.000000%2C%20-988.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%2232%22%20transform%3D%22translate%281126.000000%2C%20995.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%9C%86%E5%BD%A2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20fill%3D%22black%22%20fill-opacity%3D%221%22%20filter%3D%22url%28%23filter-2%29%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%20%20%20%20%3Ccircle%20stroke%3D%22%23FFFFFF%22%20stroke-width%3D%220.8328125%22%20stroke-linejoin%3D%22square%22%20fill%3D%22%23EDF4FF%22%20fill-rule%3D%22evenodd%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2212.5835938%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15.644709%2C13.6190476%20L18.9119048%2C15.0892857%20L18.9119048%2C19.5%20L7.15%2C19.5%20L7.15%2C15.0892857%20L10.4171958%2C13.6190476%20L15.644709%2C13.6190476%20Z%20M16.1261905%2C16.4047619%20L13.65%2C16.4047619%20L13.65%2C17.6428571%20L16.1261905%2C17.6428571%20L16.1261905%2C16.4047619%20Z%20M13.1857143%2C6.5%20C14.9806397%2C6.5%2016.4357143%2C7.95507456%2016.4357143%2C9.75%20C16.4357143%2C11.5449254%2014.9806397%2C13%2013.1857143%2C13%20C11.3907888%2C13%209.93571429%2C11.5449254%209.93571429%2C9.75%20C9.93571429%2C7.95507456%2011.3907888%2C6.5%2013.1857143%2C6.5%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%239AC4FF%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";
|
|
17618
17945
|
|
|
@@ -17624,7 +17951,7 @@ function outLogin(_x) {
|
|
|
17624
17951
|
return _outLogin.apply(this, arguments);
|
|
17625
17952
|
}
|
|
17626
17953
|
function _outLogin() {
|
|
17627
|
-
_outLogin = _asyncToGenerator(
|
|
17954
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17628
17955
|
var res;
|
|
17629
17956
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17630
17957
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17766,7 +18093,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17766
18093
|
});
|
|
17767
18094
|
};
|
|
17768
18095
|
var loginOut = /*#__PURE__*/function () {
|
|
17769
|
-
var _ref2 = _asyncToGenerator(
|
|
18096
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17770
18097
|
var sessionId;
|
|
17771
18098
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17772
18099
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17870,7 +18197,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17870
18197
|
marginRight: '0px'
|
|
17871
18198
|
},
|
|
17872
18199
|
src: './xialajiantou-new.svg'
|
|
17873
|
-
}))))), loginModalParams.visible && (
|
|
18200
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17874
18201
|
};
|
|
17875
18202
|
|
|
17876
18203
|
// -- 查询店铺 --
|
|
@@ -17878,7 +18205,7 @@ function getStoreByName(_x) {
|
|
|
17878
18205
|
return _getStoreByName.apply(this, arguments);
|
|
17879
18206
|
}
|
|
17880
18207
|
function _getStoreByName() {
|
|
17881
|
-
_getStoreByName = _asyncToGenerator(
|
|
18208
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17882
18209
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17883
18210
|
while (1) switch (_context.prev = _context.next) {
|
|
17884
18211
|
case 0:
|
|
@@ -17946,7 +18273,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17946
18273
|
return _fetchUserList.apply(this, arguments);
|
|
17947
18274
|
}
|
|
17948
18275
|
function _fetchUserList() {
|
|
17949
|
-
_fetchUserList = _asyncToGenerator(
|
|
18276
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17950
18277
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17951
18278
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17952
18279
|
case 0:
|
|
@@ -17994,7 +18321,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17994
18321
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
17995
18322
|
}, [debounceTimeout, key]);
|
|
17996
18323
|
var changeInput = /*#__PURE__*/function () {
|
|
17997
|
-
var _ref = _asyncToGenerator(
|
|
18324
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17998
18325
|
var res;
|
|
17999
18326
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18000
18327
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18016,7 +18343,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18016
18343
|
};
|
|
18017
18344
|
}();
|
|
18018
18345
|
React$1.useEffect(function () {
|
|
18019
|
-
_asyncToGenerator(
|
|
18346
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18020
18347
|
var res;
|
|
18021
18348
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18022
18349
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18142,8 +18469,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18142
18469
|
}))))));
|
|
18143
18470
|
};
|
|
18144
18471
|
|
|
18145
|
-
var css_248z$
|
|
18146
|
-
styleInject(css_248z$
|
|
18472
|
+
var css_248z$l = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005cff;\n}\n.itemPath {\n height: 30px;\n line-height: 30px;\n width: 100%;\n cursor: pointer;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.itemPath:hover {\n background-color: #E6EEFF;\n}\n";
|
|
18473
|
+
styleInject(css_248z$l);
|
|
18147
18474
|
|
|
18148
18475
|
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
18149
18476
|
if (value == null || value == undefined || String(value).trim() == '') {
|
|
@@ -18181,7 +18508,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18181
18508
|
var resultList = [];
|
|
18182
18509
|
var newRouter = _.cloneDeep(router);
|
|
18183
18510
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18184
|
-
var
|
|
18511
|
+
var _deep = function deep(router) {
|
|
18185
18512
|
if (router && Array.isArray(router)) {
|
|
18186
18513
|
router.forEach(function (item) {
|
|
18187
18514
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18191,7 +18518,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18191
18518
|
d.nameEdit = true;
|
|
18192
18519
|
}
|
|
18193
18520
|
});
|
|
18194
|
-
|
|
18521
|
+
_deep(item.routes);
|
|
18195
18522
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
18196
18523
|
id: "menu.".concat(item.name)
|
|
18197
18524
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18210,7 +18537,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18210
18537
|
}));
|
|
18211
18538
|
}
|
|
18212
18539
|
};
|
|
18213
|
-
|
|
18540
|
+
_deep(newRouter);
|
|
18214
18541
|
setroutesData([].concat(resultList));
|
|
18215
18542
|
};
|
|
18216
18543
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18292,22 +18619,22 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18292
18619
|
},
|
|
18293
18620
|
title: item.fullPathName
|
|
18294
18621
|
}, renderLineStyl(item.fullPathName));
|
|
18295
|
-
}))))), showSelectStore && (
|
|
18622
|
+
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
18296
18623
|
employeeCode: employeeCode
|
|
18297
18624
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
18298
18625
|
};
|
|
18299
18626
|
|
|
18300
18627
|
var addIcon = "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%3E%E7%BC%96%E7%BB%84%2014%401x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%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%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-21.000000%2C%20-71.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-15%22%20transform%3D%22translate%2821.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-14%22%20transform%3D%22translate%280.000000%2C%201.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%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%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%284.000000%2C%204.000000%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M8%2C0%20C12.4183529%2C0%2016%2C3.58164706%2016%2C8%20C16%2C12.4183529%2012.4183529%2C16%208%2C16%20C3.58164706%2C16%200%2C12.4183529%200%2C8%20C0%2C3.58164706%203.58164706%2C0%208%2C0%20Z%20M8%2C1.4117647%20C4.36141178%2C1.4117647%201.4117647%2C4.36141175%201.4117647%2C8%20C1.4117647%2C11.6385882%204.36141175%2C14.5882353%208%2C14.5882353%20C11.6385882%2C14.5882353%2014.5882353%2C11.6385882%2014.5882353%2C8%20C14.5882353%2C4.36141175%2011.6385882%2C1.4117647%208%2C1.4117647%20Z%20M8.70588235%2C3.76470589%20L8.70588235%2C7.29411765%20L12.2352941%2C7.29411765%20L12.2352941%2C8.70588235%20L8.70588235%2C8.70588235%20L8.70588235%2C12.2352941%20L7.29411765%2C12.2352941%20L7.29411765%2C8.70541177%20L3.76470589%2C8.70588235%20L3.76470589%2C7.29411765%20L7.29411765%2C7.29364707%20L7.29411765%2C3.76470589%20L8.70588235%2C3.76470589%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%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";
|
|
18301
18628
|
|
|
18302
|
-
var css_248z$
|
|
18303
|
-
styleInject(css_248z$
|
|
18629
|
+
var css_248z$m = ".setting_content > div {\n width: 50%;\n box-sizing: border-box;\n margin: 0 10px;\n}\n.setting_content {\n display: flex;\n}\n.tree_title {\n height: 50px;\n}\n.tree_content {\n height: 400px;\n overflow: auto;\n border: 1px solid #d9d9d9;\n padding: 5px;\n}\n.setting_content::after {\n clear: both;\n display: block;\n content: '';\n}\n.choosed_label_color {\n color: #f50;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n flex-grow: 1;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper .ant-tree-title {\n width: 100%;\n}\n.left_tree_content .ant-tree .ant-tree-treenode {\n width: 100%;\n}\n.right_tree_content .ant-tree .ant-tree-node-content-wrapper,\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n display: flex;\n margin-left: -3px;\n}\n.right_tree_content .ant-tree-checkbox,\n.left_tree_content .ant-tree-checkbox {\n top: auto;\n top: initial;\n}\n.node_title_content:hover .right_arrow {\n display: block !important;\n}\n.right_arrow {\n float: right;\n display: none;\n color: #999999;\n margin-right: 10px;\n}\n.right_tree_content .ant-tree-title {\n width: 100%;\n display: inline-block;\n padding-right: 10px;\n}\n.right_tree_content .ant-dropdown-trigger {\n color: gray !important;\n}\n.right_tree_content .tree_node_title {\n font-size: 20px;\n color: #d9d9d9;\n float: right;\n}\n.right_tree_content .tree_node_title span {\n margin-right: 5px;\n}\n";
|
|
18630
|
+
styleInject(css_248z$m);
|
|
18304
18631
|
|
|
18305
18632
|
var arrowRight = "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%3E%E7%BC%96%E7%BB%84%20186%E5%A4%87%E4%BB%BD%203%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%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%22%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-949.000000%2C%20-484.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%28534.000000%2C%20180.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%B1%BB%E7%9B%AE%E4%B8%80%E5%A4%87%E4%BB%BD-101%22%20transform%3D%22translate%2831.000000%2C%20298.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-186%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%28384.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-132%E5%A4%87%E4%BB%BD-85%22%20opacity%3D%220%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M24%2C0%20L24%2C24%20L0%2C24%20L0%2C0%20L24%2C0%20Z%20M23.765625%2C0.234375%20L0.234375%2C0.234375%20L0.234375%2C23.765625%20L23.765625%2C23.765625%20L23.765625%2C0.234375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-235%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21.39%2C2.64%20L21.39%2C21.39%20L2.64%2C21.39%20L2.64%2C2.64%20L21.39%2C2.64%20Z%20M21.155625%2C2.874375%20L2.874375%2C2.874375%20L2.874375%2C21.155625%20L21.155625%2C21.155625%20L21.155625%2C2.874375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-236%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M20.22%2C1.56%20L20.22%2C22.56%20L3.72%2C22.56%20L3.72%2C1.56%20L20.22%2C1.56%20Z%20M19.985625%2C1.794375%20L3.954375%2C1.794375%20L3.954375%2C22.325625%20L19.985625%2C22.325625%20L19.985625%2C1.794375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-237%22%20fill%3D%22%23FA6400%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M22.56%2C3.72%20L22.56%2C20.22%20L1.56%2C20.22%20L1.56%2C3.72%20L22.56%2C3.72%20Z%20M22.325625%2C3.954375%20L1.794375%2C3.954375%20L1.794375%2C19.985625%20L22.325625%2C19.985625%20L22.325625%2C3.954375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-238%22%20fill%3D%22%2344D7B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.06%2C1.56%20C17.8589899%2C1.56%2022.56%2C6.26101013%2022.56%2C12.06%20C22.56%2C17.8589899%2017.8589899%2C22.56%2012.06%2C22.56%20C6.26101013%2C22.56%201.56%2C17.8589899%201.56%2C12.06%20C1.56%2C6.26101013%206.26101013%2C1.56%2012.06%2C1.56%20Z%20M12.06%2C1.794375%20C6.39045187%2C1.794375%201.794375%2C6.39045187%201.794375%2C12.06%20C1.794375%2C17.7295481%206.39045187%2C22.325625%2012.06%2C22.325625%20C17.7295481%2C22.325625%2022.325625%2C17.7295481%2022.325625%2C12.06%20C22.325625%2C6.39045187%2017.7295481%2C1.794375%2012.06%2C1.794375%20Z%22%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%E5%A4%87%E4%BB%BD-59%22%20fill%3D%22%23F7B500%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%E5%A4%87%E4%BB%BD-43%22%20transform%3D%22translate%281.560000%2C%201.680000%29%22%20fill%3D%22%23999999%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10.44%2C0%20C16.2059506%2C0%2020.88%2C4.67404941%2020.88%2C10.44%20C20.88%2C16.2059506%2016.2059506%2C20.88%2010.44%2C20.88%20C4.67404941%2C20.88%200%2C16.2059506%200%2C10.44%20C0%2C4.67404941%204.67404941%2C0%2010.44%2C0%20Z%20M10.44%2C1.84235294%20C5.69164237%2C1.84235294%201.84235294%2C5.69164234%201.84235294%2C10.44%20C1.84235294%2C15.1883577%205.69164234%2C19.0376471%2010.44%2C19.0376471%20C15.1883577%2C19.0376471%2019.0376471%2C15.1883577%2019.0376471%2C10.44%20C19.0376471%2C5.69164234%2015.1883577%2C1.84235294%2010.44%2C1.84235294%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20points%3D%2210.4408066%206.32%2014.3966662%2010.2757133%2010.4408066%2014.2314265%209.2540487%2013.0447125%2011.1949264%2011.1039067%206%2011.1033618%206%209.42518043%2011.1725861%209.42518043%209.25459358%207.50671398%2010.4408066%206.32%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%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";
|
|
18306
18633
|
|
|
18307
18634
|
var TreeNode = antd.Tree.TreeNode;
|
|
18308
18635
|
var Search$2 = antd.Input.Search;
|
|
18309
18636
|
var dataList = [];
|
|
18310
|
-
var
|
|
18637
|
+
var _generateList = function generateList(data) {
|
|
18311
18638
|
for (var i = 0; i < data.length; i++) {
|
|
18312
18639
|
var node = data[i];
|
|
18313
18640
|
var path = node.path,
|
|
@@ -18317,11 +18644,11 @@ var generateList = function generateList(data) {
|
|
|
18317
18644
|
name: name
|
|
18318
18645
|
});
|
|
18319
18646
|
if (node.children) {
|
|
18320
|
-
|
|
18647
|
+
_generateList(node.children);
|
|
18321
18648
|
}
|
|
18322
18649
|
}
|
|
18323
18650
|
};
|
|
18324
|
-
var
|
|
18651
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
18325
18652
|
var parentKey;
|
|
18326
18653
|
for (var i = 0; i < tree.length; i++) {
|
|
18327
18654
|
var node = tree[i];
|
|
@@ -18330,8 +18657,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
18330
18657
|
return item.path === path;
|
|
18331
18658
|
})) {
|
|
18332
18659
|
parentKey = node.path;
|
|
18333
|
-
} else if (
|
|
18334
|
-
parentKey =
|
|
18660
|
+
} else if (_getParentKey(path, node.children)) {
|
|
18661
|
+
parentKey = _getParentKey(path, node.children);
|
|
18335
18662
|
}
|
|
18336
18663
|
}
|
|
18337
18664
|
}
|
|
@@ -18362,7 +18689,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18362
18689
|
var treeData = _this.state.treeData;
|
|
18363
18690
|
var expandedKeys = dataList.map(function (item) {
|
|
18364
18691
|
if (item.name.indexOf(value) > -1) {
|
|
18365
|
-
return
|
|
18692
|
+
return _getParentKey(item.path, treeData);
|
|
18366
18693
|
}
|
|
18367
18694
|
return null;
|
|
18368
18695
|
}).filter(function (item, i, self) {
|
|
@@ -18376,22 +18703,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18376
18703
|
};
|
|
18377
18704
|
_this.getPathList = function (originData) {
|
|
18378
18705
|
var pathList = [];
|
|
18379
|
-
var
|
|
18706
|
+
var _getList = function getList(data) {
|
|
18380
18707
|
if (Array.isArray(data)) {
|
|
18381
18708
|
data.forEach(function (item) {
|
|
18382
18709
|
pathList.push(item.path);
|
|
18383
18710
|
if (item.children) {
|
|
18384
|
-
|
|
18711
|
+
_getList(item.children);
|
|
18385
18712
|
}
|
|
18386
18713
|
});
|
|
18387
18714
|
} else {
|
|
18388
18715
|
pathList.push(data.path);
|
|
18389
18716
|
if (data.children) {
|
|
18390
|
-
|
|
18717
|
+
_getList(data.children);
|
|
18391
18718
|
}
|
|
18392
18719
|
}
|
|
18393
18720
|
};
|
|
18394
|
-
|
|
18721
|
+
_getList(originData);
|
|
18395
18722
|
return pathList;
|
|
18396
18723
|
};
|
|
18397
18724
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18400,18 +18727,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18400
18727
|
customerMenuData = _this$props.customerMenuData,
|
|
18401
18728
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18402
18729
|
var filterItem;
|
|
18403
|
-
var
|
|
18730
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
18404
18731
|
menuData.forEach(function (item) {
|
|
18405
18732
|
if (item.path === path) {
|
|
18406
18733
|
filterItem = _objectSpread2({}, item);
|
|
18407
18734
|
return;
|
|
18408
18735
|
}
|
|
18409
18736
|
if (item.children) {
|
|
18410
|
-
|
|
18737
|
+
_filterMenuItem(item.children);
|
|
18411
18738
|
}
|
|
18412
18739
|
});
|
|
18413
18740
|
};
|
|
18414
|
-
|
|
18741
|
+
_filterMenuItem(treeData);
|
|
18415
18742
|
var addPathList = _this.getPathList(filterItem);
|
|
18416
18743
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18417
18744
|
var isRepet = false;
|
|
@@ -18441,8 +18768,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18441
18768
|
return item.path === '/';
|
|
18442
18769
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18443
18770
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18444
|
-
|
|
18445
|
-
|
|
18771
|
+
_setMenuTreeData(routesData);
|
|
18772
|
+
_generateList(routesData);
|
|
18446
18773
|
this.setState({
|
|
18447
18774
|
treeData: routesData
|
|
18448
18775
|
});
|
|
@@ -18456,16 +18783,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18456
18783
|
expandedKeys = _this$state.expandedKeys,
|
|
18457
18784
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18458
18785
|
treeData = _this$state.treeData;
|
|
18459
|
-
var
|
|
18786
|
+
var _loop = function loop(data) {
|
|
18460
18787
|
return data.map(function (item) {
|
|
18461
18788
|
var index = item.name.indexOf(searchValue);
|
|
18462
18789
|
var beforeStr = item.name.substr(0, index);
|
|
18463
18790
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18464
|
-
var name = index > -1 ? (
|
|
18791
|
+
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18465
18792
|
style: {
|
|
18466
18793
|
color: '#f50'
|
|
18467
18794
|
}
|
|
18468
|
-
}, searchValue), afterStr)) : (
|
|
18795
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
18469
18796
|
if (item.children && item.children.length) {
|
|
18470
18797
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
18471
18798
|
path: item.path,
|
|
@@ -18487,7 +18814,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18487
18814
|
width: 18,
|
|
18488
18815
|
src: arrowRight
|
|
18489
18816
|
}))))
|
|
18490
|
-
},
|
|
18817
|
+
}, _loop(item.children));
|
|
18491
18818
|
}
|
|
18492
18819
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
18493
18820
|
path: item.path,
|
|
@@ -18537,7 +18864,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18537
18864
|
onExpand: this.onExpand,
|
|
18538
18865
|
expandedKeys: expandedKeys,
|
|
18539
18866
|
autoExpandParent: autoExpandParent
|
|
18540
|
-
},
|
|
18867
|
+
}, _loop(treeData))));
|
|
18541
18868
|
}
|
|
18542
18869
|
}]);
|
|
18543
18870
|
}(React__default['default'].Component);
|
|
@@ -18570,24 +18897,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18570
18897
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18571
18898
|
var dragObj;
|
|
18572
18899
|
var finalDropItem;
|
|
18573
|
-
var
|
|
18900
|
+
var _loop = function loop(data, path, callback) {
|
|
18574
18901
|
for (var i = 0; i < data.length; i++) {
|
|
18575
18902
|
if (data[i].path === path) {
|
|
18576
18903
|
return callback(data[i], i, data);
|
|
18577
18904
|
}
|
|
18578
18905
|
if (data[i].children) {
|
|
18579
|
-
|
|
18906
|
+
_loop(data[i].children, path, callback);
|
|
18580
18907
|
}
|
|
18581
18908
|
}
|
|
18582
18909
|
};
|
|
18583
18910
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18584
|
-
|
|
18911
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
18585
18912
|
arr.splice(index, 1);
|
|
18586
18913
|
dragObj = item;
|
|
18587
18914
|
});
|
|
18588
18915
|
if (!info.dropToGap) {
|
|
18589
18916
|
// Drop on the content
|
|
18590
|
-
|
|
18917
|
+
_loop(data, dropKey, function (item) {
|
|
18591
18918
|
item.children = item.children || [];
|
|
18592
18919
|
item.children.unshift(dragObj);
|
|
18593
18920
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18598,7 +18925,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18598
18925
|
// Is expanded
|
|
18599
18926
|
dropPosition === 1 // On the bottom gap
|
|
18600
18927
|
) {
|
|
18601
|
-
|
|
18928
|
+
_loop(data, dropKey, function (item) {
|
|
18602
18929
|
item.children = item.children || [];
|
|
18603
18930
|
item.children.unshift(dragObj);
|
|
18604
18931
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18606,7 +18933,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18606
18933
|
} else {
|
|
18607
18934
|
var ar;
|
|
18608
18935
|
var i;
|
|
18609
|
-
|
|
18936
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
18610
18937
|
ar = arr;
|
|
18611
18938
|
i = index;
|
|
18612
18939
|
});
|
|
@@ -18645,17 +18972,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18645
18972
|
title: '编辑名称',
|
|
18646
18973
|
callBack: function callBack(newName) {
|
|
18647
18974
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18648
|
-
var
|
|
18975
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18649
18976
|
oldTreeData.forEach(function (treeItem) {
|
|
18650
18977
|
if (treeItem.path === item.path) {
|
|
18651
18978
|
treeItem.name = newName;
|
|
18652
18979
|
}
|
|
18653
18980
|
if (treeItem.children) {
|
|
18654
|
-
|
|
18981
|
+
_editTreeDataName(treeItem.children);
|
|
18655
18982
|
}
|
|
18656
18983
|
});
|
|
18657
18984
|
};
|
|
18658
|
-
|
|
18985
|
+
_editTreeDataName(oldTreeData);
|
|
18659
18986
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18660
18987
|
_this.setState({
|
|
18661
18988
|
modalInfo: {
|
|
@@ -18700,7 +19027,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18700
19027
|
title: '新增子目录',
|
|
18701
19028
|
callBack: function callBack(newName) {
|
|
18702
19029
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18703
|
-
var
|
|
19030
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
18704
19031
|
oldTreeData.forEach(function (treeItem) {
|
|
18705
19032
|
if (treeItem.path === item.path) {
|
|
18706
19033
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18712,11 +19039,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18712
19039
|
}];
|
|
18713
19040
|
}
|
|
18714
19041
|
if (treeItem.children) {
|
|
18715
|
-
|
|
19042
|
+
_addChildFolder(treeItem.children);
|
|
18716
19043
|
}
|
|
18717
19044
|
});
|
|
18718
19045
|
};
|
|
18719
|
-
|
|
19046
|
+
_addChildFolder(oldTreeData);
|
|
18720
19047
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18721
19048
|
_this.setState({
|
|
18722
19049
|
modalInfo: {
|
|
@@ -18775,7 +19102,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18775
19102
|
var _this$state = this.state,
|
|
18776
19103
|
modalInfo = _this$state.modalInfo,
|
|
18777
19104
|
checkedKeys = _this$state.checkedKeys;
|
|
18778
|
-
var
|
|
19105
|
+
var _loop2 = function loop(data) {
|
|
18779
19106
|
return data.map(function (item) {
|
|
18780
19107
|
if (item.children && item.children.length) {
|
|
18781
19108
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -18792,7 +19119,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18792
19119
|
e.stopPropagation();
|
|
18793
19120
|
}
|
|
18794
19121
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
18795
|
-
},
|
|
19122
|
+
}, _loop2(item.children));
|
|
18796
19123
|
}
|
|
18797
19124
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
18798
19125
|
path: item.path,
|
|
@@ -18871,7 +19198,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18871
19198
|
children: 'children'
|
|
18872
19199
|
},
|
|
18873
19200
|
onDrop: this.onDrop
|
|
18874
|
-
},
|
|
19201
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
18875
19202
|
width: 600,
|
|
18876
19203
|
bodyStyle: {
|
|
18877
19204
|
paddingTop: '32px',
|
|
@@ -18927,8 +19254,8 @@ var MenuSetting = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18927
19254
|
}));
|
|
18928
19255
|
});
|
|
18929
19256
|
|
|
18930
|
-
var css_248z$
|
|
18931
|
-
styleInject(css_248z$
|
|
19257
|
+
var css_248z$n = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 45px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.customer_menu_content .ant-drawer-body {\n padding: 10px !important;\n}\n.menu_drawer_header_warp .ant-drawer-body {\n background-color: #F8F9FA;\n padding: 10px 0 0 0 !important;\n}\n.menu_title_line {\n font-size: 16px;\n font-weight: bold;\n color: #b1bad4;\n text-align: center;\n margin-bottom: 10px;\n}\n.menu_item {\n line-height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #E4E7ED;\n cursor: pointer;\n}\n.header_style {\n height: 50px;\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n display: flex;\n align-items: center;\n background-color: #ffffff;\n}\n.global_menu_draw .ant-drawer-body {\n padding: 10px !important;\n}\n";
|
|
19258
|
+
styleInject(css_248z$n);
|
|
18932
19259
|
|
|
18933
19260
|
var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
18934
19261
|
var isCollapse = _ref.isCollapse,
|
|
@@ -18984,7 +19311,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18984
19311
|
pathname: item.path
|
|
18985
19312
|
});
|
|
18986
19313
|
};
|
|
18987
|
-
var
|
|
19314
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
18988
19315
|
return menuData.map(function (item) {
|
|
18989
19316
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18990
19317
|
style: {
|
|
@@ -18999,7 +19326,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18999
19326
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19000
19327
|
paddingLeft: '4px'
|
|
19001
19328
|
}
|
|
19002
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19329
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
19003
19330
|
});
|
|
19004
19331
|
};
|
|
19005
19332
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19025,7 +19352,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19025
19352
|
style: {
|
|
19026
19353
|
paddingLeft: '5px'
|
|
19027
19354
|
}
|
|
19028
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
19355
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19029
19356
|
style: {
|
|
19030
19357
|
left: isDrawer ? 140 : 0
|
|
19031
19358
|
},
|
|
@@ -19046,7 +19373,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19046
19373
|
visible: isDrawer
|
|
19047
19374
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
19048
19375
|
className: 'menu_title_line'
|
|
19049
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19376
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
19050
19377
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19051
19378
|
style: {
|
|
19052
19379
|
fontWeight: '600',
|
|
@@ -19064,8 +19391,8 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19064
19391
|
})));
|
|
19065
19392
|
});
|
|
19066
19393
|
|
|
19067
|
-
var css_248z$
|
|
19068
|
-
styleInject(css_248z$
|
|
19394
|
+
var css_248z$o = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #005cff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
|
|
19395
|
+
styleInject(css_248z$o);
|
|
19069
19396
|
|
|
19070
19397
|
var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
|
|
19071
19398
|
|
|
@@ -19120,7 +19447,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19120
19447
|
return item.path === '/';
|
|
19121
19448
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19122
19449
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19123
|
-
|
|
19450
|
+
_setMenuTreeData(routesData);
|
|
19124
19451
|
routesData.forEach(function (item) {
|
|
19125
19452
|
if (item.children) {
|
|
19126
19453
|
routesDataList.push(item);
|
|
@@ -19150,7 +19477,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19150
19477
|
setHeight(clientHeight - 190);
|
|
19151
19478
|
setDrawHeight(clientHeight - 70);
|
|
19152
19479
|
};
|
|
19153
|
-
var
|
|
19480
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
19154
19481
|
if (!child.hideInMenu && child.children) {
|
|
19155
19482
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
19156
19483
|
style: {
|
|
@@ -19160,7 +19487,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19160
19487
|
}, umi.formatMessage({
|
|
19161
19488
|
id: "".concat(child.locale)
|
|
19162
19489
|
})), child.children.map(function (menuItem) {
|
|
19163
|
-
return
|
|
19490
|
+
return _renderChildItem(menuItem);
|
|
19164
19491
|
}));
|
|
19165
19492
|
} else if (!child.hideInMenu && child.path) {
|
|
19166
19493
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -19302,7 +19629,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19302
19629
|
onMenuClick(e, item);
|
|
19303
19630
|
}
|
|
19304
19631
|
}, item.name);
|
|
19305
|
-
}))), !!SearhData.length ? (
|
|
19632
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
19306
19633
|
className: 'search_menu_content'
|
|
19307
19634
|
}, SearhData.map(function (item) {
|
|
19308
19635
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19311,7 +19638,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19311
19638
|
},
|
|
19312
19639
|
key: item.path
|
|
19313
19640
|
}, item.name);
|
|
19314
|
-
}))) : (
|
|
19641
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19315
19642
|
style: {
|
|
19316
19643
|
height: "".concat(rightMenuHeight, "px"),
|
|
19317
19644
|
overflowY: 'scroll',
|
|
@@ -19323,7 +19650,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19323
19650
|
className: 'drawerWarp_right'
|
|
19324
19651
|
}, homepageData && homepageData.filter(function (d) {
|
|
19325
19652
|
return !d.hideInMenu;
|
|
19326
|
-
}).length > 0 && (
|
|
19653
|
+
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
19327
19654
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
19328
19655
|
dataSource: homepageData,
|
|
19329
19656
|
renderItem: function renderItem(child) {
|
|
@@ -19364,7 +19691,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19364
19691
|
bordered: true,
|
|
19365
19692
|
dataSource: item.children,
|
|
19366
19693
|
renderItem: function renderItem(child) {
|
|
19367
|
-
return
|
|
19694
|
+
return _renderChildItem(child);
|
|
19368
19695
|
}
|
|
19369
19696
|
});
|
|
19370
19697
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19480,8 +19807,8 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
19480
19807
|
})));
|
|
19481
19808
|
};
|
|
19482
19809
|
|
|
19483
|
-
var css_248z$
|
|
19484
|
-
styleInject(css_248z$
|
|
19810
|
+
var css_248z$p = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #005cff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
|
|
19811
|
+
styleInject(css_248z$p);
|
|
19485
19812
|
|
|
19486
19813
|
/*
|
|
19487
19814
|
* @Date: 2022-04-01 15:42:51
|
|
@@ -19522,10 +19849,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19522
19849
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19523
19850
|
var menuKeys = [];
|
|
19524
19851
|
var docsId = [];
|
|
19525
|
-
var
|
|
19852
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19526
19853
|
data.forEach(function (item) {
|
|
19527
19854
|
if (item.children && item.children.length > 0) {
|
|
19528
|
-
|
|
19855
|
+
_getLimitedMenuKeys(item.children);
|
|
19529
19856
|
} else {
|
|
19530
19857
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19531
19858
|
menuKeys.push(originPath);
|
|
@@ -19536,7 +19863,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19536
19863
|
});
|
|
19537
19864
|
};
|
|
19538
19865
|
try {
|
|
19539
|
-
|
|
19866
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
19540
19867
|
} catch (e) {}
|
|
19541
19868
|
return {
|
|
19542
19869
|
menuKeys: menuKeys,
|
|
@@ -19770,10 +20097,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19770
20097
|
return (node.path || '').includes('all-general-documents');
|
|
19771
20098
|
};
|
|
19772
20099
|
// 递归获取树列表
|
|
19773
|
-
var
|
|
20100
|
+
var _getTreeList = function getTreeList(data) {
|
|
19774
20101
|
data.forEach(function (node) {
|
|
19775
20102
|
if (node.routes && node.routes.length > 0) {
|
|
19776
|
-
|
|
20103
|
+
_getTreeList(node.routes);
|
|
19777
20104
|
return;
|
|
19778
20105
|
}
|
|
19779
20106
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19804,7 +20131,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19804
20131
|
}
|
|
19805
20132
|
});
|
|
19806
20133
|
};
|
|
19807
|
-
|
|
20134
|
+
_getTreeList(treeData);
|
|
19808
20135
|
return treeList;
|
|
19809
20136
|
};
|
|
19810
20137
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20433,7 +20760,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20433
20760
|
updateState = _ref8.updateState;
|
|
20434
20761
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20435
20762
|
className: "tab_title_content"
|
|
20436
|
-
}, item.tab, item.key !== '/' && (
|
|
20763
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
20437
20764
|
info: item,
|
|
20438
20765
|
operateFun: _this3.operateFun,
|
|
20439
20766
|
listenRouterState: listenRouterState
|
|
@@ -20569,7 +20896,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20569
20896
|
};
|
|
20570
20897
|
}
|
|
20571
20898
|
var OperationsSlot = {
|
|
20572
|
-
left: (
|
|
20899
|
+
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20573
20900
|
className: 'tab_left_operate'
|
|
20574
20901
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20575
20902
|
onClick: function onClick() {
|
|
@@ -20585,7 +20912,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20585
20912
|
_this3.setTabNavTransLate(-100);
|
|
20586
20913
|
}
|
|
20587
20914
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
20588
|
-
right: (
|
|
20915
|
+
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20589
20916
|
style: {
|
|
20590
20917
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20591
20918
|
},
|
|
@@ -20683,7 +21010,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20683
21010
|
onMouseLeave: function onMouseLeave() {
|
|
20684
21011
|
_this3.setShowMenu(false);
|
|
20685
21012
|
}
|
|
20686
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
21013
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
20687
21014
|
style: {
|
|
20688
21015
|
position: 'absolute',
|
|
20689
21016
|
top: '14px',
|
|
@@ -20702,7 +21029,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20702
21029
|
postMenuData: function postMenuData(menus) {
|
|
20703
21030
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20704
21031
|
},
|
|
20705
|
-
links: [!this.state.collapse ? (
|
|
21032
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
20706
21033
|
ref: this.allFunc,
|
|
20707
21034
|
itemPath: itemPath,
|
|
20708
21035
|
handleClose: this.handleClose,
|
|
@@ -20720,7 +21047,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20720
21047
|
},
|
|
20721
21048
|
menu: {
|
|
20722
21049
|
request: function () {
|
|
20723
|
-
var _request = _asyncToGenerator(
|
|
21050
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20724
21051
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20725
21052
|
while (1) switch (_context.prev = _context.next) {
|
|
20726
21053
|
case 0:
|
|
@@ -20855,7 +21182,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20855
21182
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20856
21183
|
timeFormat = _this$props4.timeFormat,
|
|
20857
21184
|
transparentProps = _this$props4.transparentProps;
|
|
20858
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (
|
|
21185
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (/*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
20859
21186
|
getDictionarySource: getDictionarySource,
|
|
20860
21187
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20861
21188
|
timeFormat: timeFormat
|
|
@@ -20879,12 +21206,12 @@ var index$5 = (function (props) {
|
|
|
20879
21206
|
});
|
|
20880
21207
|
|
|
20881
21208
|
// @ts-nocheck
|
|
20882
|
-
var
|
|
21209
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
20883
21210
|
var result = [];
|
|
20884
21211
|
columns.forEach(function (column) {
|
|
20885
21212
|
if (column.children) {
|
|
20886
21213
|
result.push(column);
|
|
20887
|
-
result.push.apply(result,
|
|
21214
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
20888
21215
|
} else {
|
|
20889
21216
|
result.push(column);
|
|
20890
21217
|
}
|
|
@@ -20893,7 +21220,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
20893
21220
|
};
|
|
20894
21221
|
var convertToRows = function convertToRows(originColumns) {
|
|
20895
21222
|
var maxLevel = 1;
|
|
20896
|
-
var
|
|
21223
|
+
var _traverse = function traverse(column, parent) {
|
|
20897
21224
|
if (parent) {
|
|
20898
21225
|
column.level = parent.level + 1;
|
|
20899
21226
|
if (maxLevel < column.level) {
|
|
@@ -20903,7 +21230,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20903
21230
|
if (column.children) {
|
|
20904
21231
|
var colSpan = 0;
|
|
20905
21232
|
column.children.forEach(function (subColumn) {
|
|
20906
|
-
|
|
21233
|
+
_traverse(subColumn, column);
|
|
20907
21234
|
colSpan += subColumn.colSpan;
|
|
20908
21235
|
});
|
|
20909
21236
|
column.colSpan = colSpan;
|
|
@@ -20913,13 +21240,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20913
21240
|
};
|
|
20914
21241
|
originColumns.forEach(function (column) {
|
|
20915
21242
|
column.level = 1;
|
|
20916
|
-
|
|
21243
|
+
_traverse(column);
|
|
20917
21244
|
});
|
|
20918
21245
|
var rows = [];
|
|
20919
21246
|
for (var i = 0; i < maxLevel; i++) {
|
|
20920
21247
|
rows.push([]);
|
|
20921
21248
|
}
|
|
20922
|
-
var allColumns =
|
|
21249
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20923
21250
|
allColumns.forEach(function (column) {
|
|
20924
21251
|
if (!column.children) {
|
|
20925
21252
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20959,7 +21286,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20959
21286
|
};
|
|
20960
21287
|
var headersToRows = function headersToRows(originColumns) {
|
|
20961
21288
|
var maxLevel = 1;
|
|
20962
|
-
var
|
|
21289
|
+
var _traverse2 = function traverse(column, parent) {
|
|
20963
21290
|
if (parent) {
|
|
20964
21291
|
//计算当前元素属于第几个层级
|
|
20965
21292
|
column.level = parent.level + 1;
|
|
@@ -20972,7 +21299,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20972
21299
|
var colSpan = 0;
|
|
20973
21300
|
column.children.forEach(function (subColumn) {
|
|
20974
21301
|
//进行递归
|
|
20975
|
-
|
|
21302
|
+
_traverse2(subColumn, column);
|
|
20976
21303
|
colSpan += subColumn.colSpan;
|
|
20977
21304
|
});
|
|
20978
21305
|
column.colSpan = colSpan;
|
|
@@ -20982,14 +21309,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20982
21309
|
};
|
|
20983
21310
|
originColumns.forEach(function (column) {
|
|
20984
21311
|
column.level = 1;
|
|
20985
|
-
|
|
21312
|
+
_traverse2(column);
|
|
20986
21313
|
});
|
|
20987
21314
|
var rows = [];
|
|
20988
21315
|
var lastData = [];
|
|
20989
21316
|
for (var i = 0; i < maxLevel; i++) {
|
|
20990
21317
|
rows.push([]);
|
|
20991
21318
|
}
|
|
20992
|
-
var allColumns =
|
|
21319
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20993
21320
|
allColumns.forEach(function (column) {
|
|
20994
21321
|
if (!column.children) {
|
|
20995
21322
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21005,8 +21332,8 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21005
21332
|
};
|
|
21006
21333
|
};
|
|
21007
21334
|
|
|
21008
|
-
var css_248z$
|
|
21009
|
-
styleInject(css_248z$
|
|
21335
|
+
var css_248z$q = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
21336
|
+
styleInject(css_248z$q);
|
|
21010
21337
|
|
|
21011
21338
|
var useSticky = function useSticky(sticky) {
|
|
21012
21339
|
var _ref = _typeof(sticky) === 'object' ? sticky : {},
|
|
@@ -27006,7 +27333,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27006
27333
|
}
|
|
27007
27334
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27008
27335
|
};
|
|
27009
|
-
var
|
|
27336
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
27010
27337
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27011
27338
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27012
27339
|
var children = hightLightData.children,
|
|
@@ -27017,7 +27344,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27017
27344
|
lineEnd = _loc2[2];
|
|
27018
27345
|
if (children) {
|
|
27019
27346
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27020
|
-
return
|
|
27347
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
27021
27348
|
});
|
|
27022
27349
|
}
|
|
27023
27350
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27029,7 +27356,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27029
27356
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27030
27357
|
data.forEach(function (node) {
|
|
27031
27358
|
if (!node) return;
|
|
27032
|
-
node.toggled =
|
|
27359
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
27033
27360
|
node.active = isHightLight(node, highLightLine);
|
|
27034
27361
|
if (node.children) {
|
|
27035
27362
|
if (node.active) {
|
|
@@ -27241,8 +27568,8 @@ var nameRender = (function (data) {
|
|
|
27241
27568
|
}, " ");
|
|
27242
27569
|
});
|
|
27243
27570
|
|
|
27244
|
-
var css_248z$
|
|
27245
|
-
styleInject(css_248z$
|
|
27571
|
+
var css_248z$r = ".si-tree {\n font-size: 14px;\n}\n.si-tree-node-block {\n display: flex;\n align-items: center;\n padding: 2px 4px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.si-tree-node-block:hover {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-block-actived {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-switcher {\n margin-right: 2px;\n}\n.si-tree-node-icon {\n margin-right: 4px;\n display: flex;\n}\n.tree-compact {\n margin-left: 4px;\n font-size: 13px;\n font-style: italic;\n color: #49aa19;\n}\n";
|
|
27572
|
+
styleInject(css_248z$r);
|
|
27246
27573
|
|
|
27247
27574
|
function parseData(data) {
|
|
27248
27575
|
var res;
|
|
@@ -27453,8 +27780,8 @@ function registerSuggestions(monaco) {
|
|
|
27453
27780
|
});
|
|
27454
27781
|
}
|
|
27455
27782
|
|
|
27456
|
-
var css_248z$
|
|
27457
|
-
styleInject(css_248z$
|
|
27783
|
+
var css_248z$s = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #005cff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
|
|
27784
|
+
styleInject(css_248z$s);
|
|
27458
27785
|
|
|
27459
27786
|
var Title = antd.Typography.Title;
|
|
27460
27787
|
var STRTEMP = 'const config = ';
|
|
@@ -27648,7 +27975,7 @@ var Editor = (function (props) {
|
|
|
27648
27975
|
}, [shallowHeight]);
|
|
27649
27976
|
var hasConfigTree = type !== 'editor';
|
|
27650
27977
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27651
|
-
className: isFull ? css_248z$
|
|
27978
|
+
className: isFull ? css_248z$s.editorWrapper : ''
|
|
27652
27979
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27653
27980
|
style: {
|
|
27654
27981
|
overflow: 'hidden'
|
|
@@ -27716,7 +28043,7 @@ var Editor = (function (props) {
|
|
|
27716
28043
|
})), hasConfigTree && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
27717
28044
|
span: 8
|
|
27718
28045
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27719
|
-
className: css_248z$
|
|
28046
|
+
className: css_248z$s.title
|
|
27720
28047
|
}, "\u5C5E\u6027\u8282\u70B9\u6811"), /*#__PURE__*/React__default['default'].createElement(ConfigTree, {
|
|
27721
28048
|
style: {
|
|
27722
28049
|
height: 'calc(100vh - 300px)',
|
|
@@ -28460,7 +28787,7 @@ var valueType = {
|
|
|
28460
28787
|
};
|
|
28461
28788
|
|
|
28462
28789
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28463
|
-
var _ref = _asyncToGenerator(
|
|
28790
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28464
28791
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28465
28792
|
while (1) switch (_context.prev = _context.next) {
|
|
28466
28793
|
case 0:
|
|
@@ -28528,7 +28855,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28528
28855
|
value: false
|
|
28529
28856
|
}];
|
|
28530
28857
|
var ref = React$1.useRef();
|
|
28531
|
-
ahooks.useMount(
|
|
28858
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28532
28859
|
var _ref$current, source;
|
|
28533
28860
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28534
28861
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28642,7 +28969,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28642
28969
|
source: {
|
|
28643
28970
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28644
28971
|
type: function () {
|
|
28645
|
-
var _type = _asyncToGenerator(
|
|
28972
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28646
28973
|
var form, values, name, relates, source;
|
|
28647
28974
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28648
28975
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29122,7 +29449,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29122
29449
|
source: {
|
|
29123
29450
|
relates: ['choiceType', 'inputType'],
|
|
29124
29451
|
type: function () {
|
|
29125
|
-
var _type2 = _asyncToGenerator(
|
|
29452
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29126
29453
|
var values, name, form, source;
|
|
29127
29454
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29128
29455
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29344,7 +29671,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29344
29671
|
width: 900,
|
|
29345
29672
|
maskClosable: false,
|
|
29346
29673
|
onOk: function () {
|
|
29347
|
-
var _onOk = _asyncToGenerator(
|
|
29674
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29348
29675
|
var _ref$current4, _res$editableStatus;
|
|
29349
29676
|
var res, _res$defaultValue;
|
|
29350
29677
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29416,7 +29743,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29416
29743
|
}()
|
|
29417
29744
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29418
29745
|
ref: ref
|
|
29419
|
-
})), maintainOptionsModal.visible && (
|
|
29746
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29420
29747
|
};
|
|
29421
29748
|
|
|
29422
29749
|
// @ts-nocheck
|
|
@@ -29597,8 +29924,8 @@ var FieldsSettingsTable = (function (props) {
|
|
|
29597
29924
|
})), fieldsModify.visible && /*#__PURE__*/React__default['default'].createElement(FieldsModifyModal, _objectSpread2({}, fieldsModify)));
|
|
29598
29925
|
});
|
|
29599
29926
|
|
|
29600
|
-
var css_248z$
|
|
29601
|
-
styleInject(css_248z$
|
|
29927
|
+
var css_248z$t = ".customFieldsDrawer .ant-col-8 {\n flex: 0 0 100%!important;\n max-width: 100%!important;\n}\n.customFieldsDrawer .ant-form-item {\n margin-bottom: 0!important;\n}\n.customFieldsDrawer .ant-form {\n margin-bottom: 15px;\n}\n.customFieldsDrawer .sula-template-query-table-fields-wrapper {\n align-items: center;\n}\n";
|
|
29928
|
+
styleInject(css_248z$t);
|
|
29602
29929
|
|
|
29603
29930
|
function iterFileds(fields) {
|
|
29604
29931
|
var filedsValue = [];
|
|
@@ -30030,7 +30357,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30030
30357
|
return setVisible(false);
|
|
30031
30358
|
},
|
|
30032
30359
|
className: 'customFieldsDrawer'
|
|
30033
|
-
}, detailTablesSetting.length == 0 && (
|
|
30360
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30034
30361
|
style: {
|
|
30035
30362
|
display: 'flex'
|
|
30036
30363
|
}
|
|
@@ -30039,13 +30366,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30039
30366
|
flex: 1,
|
|
30040
30367
|
width: 500
|
|
30041
30368
|
}
|
|
30042
|
-
}, _.isEmpty(moduleParams) ? (
|
|
30369
|
+
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30043
30370
|
style: {
|
|
30044
30371
|
padding: "10px 0",
|
|
30045
30372
|
fontSize: "16px",
|
|
30046
30373
|
fontWeight: "bolder"
|
|
30047
30374
|
}
|
|
30048
|
-
}, "\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")) : (
|
|
30375
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30049
30376
|
style: {
|
|
30050
30377
|
flex: 1
|
|
30051
30378
|
}
|
|
@@ -30054,7 +30381,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30054
30381
|
onRun: onClickRun,
|
|
30055
30382
|
value: jsonEditorVal,
|
|
30056
30383
|
shallowHeight: height
|
|
30057
|
-
})))), detailTablesSetting.length > 0 && (
|
|
30384
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
30058
30385
|
defaultActiveKey: activeKey,
|
|
30059
30386
|
onChange: function onChange(v) {
|
|
30060
30387
|
return setActiveKey(v);
|
|
@@ -30071,13 +30398,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30071
30398
|
flex: 1,
|
|
30072
30399
|
width: 500
|
|
30073
30400
|
}
|
|
30074
|
-
}, _.isEmpty(moduleParams) ? (
|
|
30401
|
+
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30075
30402
|
style: {
|
|
30076
30403
|
padding: "10px 0",
|
|
30077
30404
|
fontSize: "16px",
|
|
30078
30405
|
fontWeight: "bolder"
|
|
30079
30406
|
}
|
|
30080
|
-
}, "\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")) : (
|
|
30407
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30081
30408
|
style: {
|
|
30082
30409
|
flex: 1
|
|
30083
30410
|
}
|
|
@@ -30099,13 +30426,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30099
30426
|
flex: 1,
|
|
30100
30427
|
width: 500
|
|
30101
30428
|
}
|
|
30102
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
30429
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30103
30430
|
style: {
|
|
30104
30431
|
padding: "10px 0",
|
|
30105
30432
|
fontSize: "16px",
|
|
30106
30433
|
fontWeight: "bolder"
|
|
30107
30434
|
}
|
|
30108
|
-
}, "\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")) : (
|
|
30435
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30109
30436
|
style: {
|
|
30110
30437
|
flex: 1
|
|
30111
30438
|
}
|
|
@@ -30251,7 +30578,7 @@ function getMetaData(_x) {
|
|
|
30251
30578
|
|
|
30252
30579
|
// 获取数据
|
|
30253
30580
|
function _getMetaData() {
|
|
30254
|
-
_getMetaData = _asyncToGenerator(
|
|
30581
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30255
30582
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30256
30583
|
while (1) switch (_context.prev = _context.next) {
|
|
30257
30584
|
case 0:
|
|
@@ -30473,7 +30800,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
30473
30800
|
tableState = _useState4[0],
|
|
30474
30801
|
setTableState = _useState4[1];
|
|
30475
30802
|
var handleOpen = /*#__PURE__*/function () {
|
|
30476
|
-
var _ref = _asyncToGenerator(
|
|
30803
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30477
30804
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30478
30805
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30479
30806
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30792,7 +31119,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
30792
31119
|
destroyOnClose: true
|
|
30793
31120
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
30794
31121
|
ref: queryTableRef
|
|
30795
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
31122
|
+
}, 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__default['default'].createElement(antd.Row, {
|
|
30796
31123
|
justify: "center",
|
|
30797
31124
|
style: {
|
|
30798
31125
|
marginBottom: 30,
|
|
@@ -30908,7 +31235,7 @@ var CustomSelector = (function (props) {
|
|
|
30908
31235
|
var _props$ctx7;
|
|
30909
31236
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30910
31237
|
}
|
|
30911
|
-
})), showType === 'modalTable' && (
|
|
31238
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
30912
31239
|
type: "primary",
|
|
30913
31240
|
style: {
|
|
30914
31241
|
width: '30px',
|
|
@@ -30994,7 +31321,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30994
31321
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30995
31322
|
handSource = _useState2[0],
|
|
30996
31323
|
setHandSource = _useState2[1];
|
|
30997
|
-
React$1.useEffect(
|
|
31324
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30998
31325
|
var resData, data;
|
|
30999
31326
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31000
31327
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31138,15 +31465,15 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31138
31465
|
});
|
|
31139
31466
|
};
|
|
31140
31467
|
|
|
31141
|
-
var css_248z$
|
|
31142
|
-
styleInject(css_248z$
|
|
31468
|
+
var css_248z$u = ".base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n min-height: 80px;\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n height: 40px;\n}\n.base_rule .base_rule_line_title .rule_title {\n height: 35px;\n padding: 0 10px;\n font-weight: bold;\n font-size: 16px;\n line-height: 35px;\n}\n.base_rule .base_rule_line_title .base_rule_btn_style {\n position: absolute;\n right: 0px;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link {\n color: #008fe0;\n font-weight: bold;\n border: 0px !important;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link:hover,\n.base_rule .base_rule_line_title :global .ant-btn-link:focus {\n color: #008fe0;\n background-color: transparent;\n border: 0px;\n border-color: #008fe0;\n}\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):hover,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):active,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):focus {\n color: #008fe0;\n}\n.base_rule .base_rule_line_content {\n display: flex;\n padding: 15px;\n overflow-x: auto;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn {\n margin-right: 10px;\n color: #89b9cf;\n font-size: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn:hover {\n cursor: pointer;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc_content {\n height: 45px;\n line-height: 45px;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc {\n margin-right: 15px;\n}\n.base_rule .base_rule_line_content .base_rule_item1 {\n align-items: center;\n width: 120px;\n color: #f8ab3c;\n font-size: 16px;\n}\n.base_rule .base_rule_line_content .base_rule_item2 {\n width: 75%;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n justify-content: space-around;\n margin-top: -20px;\n padding-left: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 .rule_action_return_border {\n margin-bottom: 10px;\n padding: 0px 10px 0px 10px;\n border: 1px dashed #d9d9d9;\n}\n.base_rule .base_rule_line_content .base_rule_item3 .rule_action_return_border .rule_border_title {\n position: relative;\n top: -10px;\n left: 20px;\n width: 90px;\n text-align: center;\n background: #fff;\n}\n.base_rule .base_rule_line_content .base_rule_item3 .rule_action_return_border .rule_action_item {\n display: flex;\n justify-content: space-between;\n}\n.base_rule .base_rule_line_content .line_color_red {\n color: #ed869b;\n}\n.base_rule .base_rule_line_content .base_rule_item4 {\n width: 80px;\n}\n.base_rule .footer_line > span {\n color: #008fe0;\n font-weight: bold;\n font-size: 16px;\n}\n.rule_name_title {\n display: inline-block;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n padding-left: 10px;\n color: #f8ab3c;\n font-size: 16px;\n line-height: 30px;\n}\n.logical_operate_content {\n position: relative;\n}\n.logical_operate_content .top_line {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content .bottom_line {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content::before {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 998;\n width: 2px;\n height: 100%;\n overflow: hidden;\n background: #d6efe8;\n content: ' ';\n}\n.logical_item_btn {\n position: absolute !important;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex !important;\n align-items: center;\n width: 50px;\n height: 30px !important;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px !important;\n color: #008fe0 !important;\n line-height: 30px !important;\n text-align: center !important;\n background-color: #ffffff !important;\n cursor: pointer !important;\n}\n.logical_item_btn1 {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-left: -15px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.rule_field_style {\n display: inline-block;\n}\n.icon_btn_style {\n margin-right: 10px;\n font-size: 20px;\n}\n.choose_logical_type {\n height: 25px;\n margin: 0px;\n padding: 0 10px;\n line-height: 25px;\n cursor: pointer;\n}\n.choose_logical_type:first-child {\n border-bottom: 1px solid #d9d9d9;\n}\n.choose_logical_type:hover {\n color: white;\n background-color: #008fe0;\n}\n.action_list_item {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n padding: 10px;\n border: 1px solid #e1e1f0;\n border-radius: 2px;\n cursor: pointer;\n}\n:global .ant-popover-inner-content {\n padding: 0px;\n}\n";
|
|
31469
|
+
styleInject(css_248z$u);
|
|
31143
31470
|
|
|
31144
31471
|
// 查询规则对象属性thresholdList
|
|
31145
31472
|
function getRegularThresholdRange(_x) {
|
|
31146
31473
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31147
31474
|
}
|
|
31148
31475
|
function _getRegularThresholdRange() {
|
|
31149
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
31476
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31150
31477
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31151
31478
|
while (1) switch (_context.prev = _context.next) {
|
|
31152
31479
|
case 0:
|
|
@@ -31300,7 +31627,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31300
31627
|
};
|
|
31301
31628
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31302
31629
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31303
|
-
var _ref = _asyncToGenerator(
|
|
31630
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31304
31631
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31305
31632
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31306
31633
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32245,7 +32572,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32245
32572
|
isAll: true,
|
|
32246
32573
|
needNameAndCode: true,
|
|
32247
32574
|
notChangeOnSelect: true,
|
|
32248
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32575
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32249
32576
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32250
32577
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32251
32578
|
case 0:
|
|
@@ -32294,7 +32621,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32294
32621
|
isAll: true,
|
|
32295
32622
|
needNameAndCode: true,
|
|
32296
32623
|
notChangeOnSelect: true,
|
|
32297
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32624
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32298
32625
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32299
32626
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32300
32627
|
case 0:
|
|
@@ -32345,7 +32672,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32345
32672
|
isAll: true,
|
|
32346
32673
|
needNameAndCode: true,
|
|
32347
32674
|
notChangeOnSelect: true,
|
|
32348
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32675
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32349
32676
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32350
32677
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32351
32678
|
case 0:
|
|
@@ -34044,7 +34371,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34044
34371
|
style: {
|
|
34045
34372
|
marginLeft: '10px'
|
|
34046
34373
|
},
|
|
34047
|
-
className: css_248z$
|
|
34374
|
+
className: css_248z$u.rule_field_style
|
|
34048
34375
|
}, this.renderConditionField());
|
|
34049
34376
|
}
|
|
34050
34377
|
}]);
|
|
@@ -34309,7 +34636,7 @@ var App$1 = function App(_ref) {
|
|
|
34309
34636
|
borderRadius: '5px',
|
|
34310
34637
|
cursor: 'pointer'
|
|
34311
34638
|
}
|
|
34312
|
-
}, isStaticNumber ? (
|
|
34639
|
+
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34313
34640
|
autoFocus: true,
|
|
34314
34641
|
onClick: function onClick(e) {
|
|
34315
34642
|
return e.stopPropagation();
|
|
@@ -34485,7 +34812,7 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
34485
34812
|
disabled = _this$props.disabled;
|
|
34486
34813
|
return /*#__PURE__*/React__default['default'].createElement("div", null, ruleTypeData.map(function (i) {
|
|
34487
34814
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
34488
|
-
className: css_248z$
|
|
34815
|
+
className: css_248z$u.action_list_item
|
|
34489
34816
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
34490
34817
|
onClick: function onClick() {
|
|
34491
34818
|
return handleOperatingAction(i.code, 'view');
|
|
@@ -34596,7 +34923,7 @@ function RenderCompItem(props) {
|
|
|
34596
34923
|
dictData = _useState2[0],
|
|
34597
34924
|
setDictData = _useState2[1];
|
|
34598
34925
|
var getDictData = /*#__PURE__*/function () {
|
|
34599
|
-
var _ref = _asyncToGenerator(
|
|
34926
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34600
34927
|
var _data$map;
|
|
34601
34928
|
var data;
|
|
34602
34929
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34638,7 +34965,7 @@ function RenderCompItem(props) {
|
|
|
34638
34965
|
var style2 = {
|
|
34639
34966
|
width: '100px'
|
|
34640
34967
|
};
|
|
34641
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (
|
|
34968
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34642
34969
|
disabled: disabled,
|
|
34643
34970
|
allowClear: true,
|
|
34644
34971
|
onClear: function onClear() {
|
|
@@ -34649,7 +34976,7 @@ function RenderCompItem(props) {
|
|
|
34649
34976
|
onBlur: function onBlur(e) {
|
|
34650
34977
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34651
34978
|
}
|
|
34652
|
-
})) || 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) && (
|
|
34979
|
+
})) || 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__default['default'].createElement(antd.InputNumber, {
|
|
34653
34980
|
disabled: disabled,
|
|
34654
34981
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34655
34982
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34662,7 +34989,7 @@ function RenderCompItem(props) {
|
|
|
34662
34989
|
onChange: function onChange(value) {
|
|
34663
34990
|
handleEdit(ites.code, value);
|
|
34664
34991
|
}
|
|
34665
|
-
})) || 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) && (
|
|
34992
|
+
})) || 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__default['default'].createElement(antd.DatePicker, {
|
|
34666
34993
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34667
34994
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34668
34995
|
disabled: disabled,
|
|
@@ -34672,7 +34999,7 @@ function RenderCompItem(props) {
|
|
|
34672
34999
|
onChange: function onChange(value, dateString) {
|
|
34673
35000
|
handleEdit(ites.code, dateString);
|
|
34674
35001
|
}
|
|
34675
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
35002
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
34676
35003
|
showTime: true,
|
|
34677
35004
|
disabled: disabled,
|
|
34678
35005
|
defaultValue: ites.defaultValue,
|
|
@@ -34681,7 +35008,7 @@ function RenderCompItem(props) {
|
|
|
34681
35008
|
onChange: function onChange(value, timeString) {
|
|
34682
35009
|
handleEdit(ites.code, timeString);
|
|
34683
35010
|
}
|
|
34684
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
35011
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
34685
35012
|
disabled: disabled,
|
|
34686
35013
|
defaultChecked: !!ites.defaultValue,
|
|
34687
35014
|
style: style2,
|
|
@@ -34689,7 +35016,7 @@ function RenderCompItem(props) {
|
|
|
34689
35016
|
onChange: function onChange(value) {
|
|
34690
35017
|
handleEdit(ites.code, value);
|
|
34691
35018
|
}
|
|
34692
|
-
})) || 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 && (
|
|
35019
|
+
})) || 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__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
34693
35020
|
disabled: disabled,
|
|
34694
35021
|
allowClear: true,
|
|
34695
35022
|
showArrow: true
|
|
@@ -34707,7 +35034,7 @@ function RenderCompItem(props) {
|
|
|
34707
35034
|
key: it,
|
|
34708
35035
|
value: it
|
|
34709
35036
|
}, ites.enumeration[it]);
|
|
34710
|
-
}))) || 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 && (
|
|
35037
|
+
}))) || 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__default['default'].createElement(InnerSelect, {
|
|
34711
35038
|
disabled: disabled,
|
|
34712
35039
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34713
35040
|
defaultValue: ites.defaultValue,
|
|
@@ -34717,7 +35044,7 @@ function RenderCompItem(props) {
|
|
|
34717
35044
|
handleEdit(ites.code, value);
|
|
34718
35045
|
},
|
|
34719
35046
|
dictionaryCode: ites.dictionaryCode
|
|
34720
|
-
})) || 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 && (
|
|
35047
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34721
35048
|
selectBusinessType: "physicalWarehouse",
|
|
34722
35049
|
selectProps: _objectSpread2({
|
|
34723
35050
|
style: styleCommon,
|
|
@@ -34739,7 +35066,7 @@ function RenderCompItem(props) {
|
|
|
34739
35066
|
getPopupContainer: function getPopupContainer() {
|
|
34740
35067
|
return document.body;
|
|
34741
35068
|
}
|
|
34742
|
-
})) || 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 && (
|
|
35069
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34743
35070
|
selectBusinessType: "realWarehouse",
|
|
34744
35071
|
selectProps: _objectSpread2({
|
|
34745
35072
|
style: styleCommon,
|
|
@@ -34761,7 +35088,7 @@ function RenderCompItem(props) {
|
|
|
34761
35088
|
getPopupContainer: function getPopupContainer() {
|
|
34762
35089
|
return document.body;
|
|
34763
35090
|
}
|
|
34764
|
-
})) || 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 && (
|
|
35091
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34765
35092
|
selectBusinessType: "virtualWarehouse",
|
|
34766
35093
|
selectProps: _objectSpread2({
|
|
34767
35094
|
style: styleCommon,
|
|
@@ -34783,7 +35110,7 @@ function RenderCompItem(props) {
|
|
|
34783
35110
|
getPopupContainer: function getPopupContainer() {
|
|
34784
35111
|
return document.body;
|
|
34785
35112
|
}
|
|
34786
|
-
})) || 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 && (
|
|
35113
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34787
35114
|
selectBusinessType: "channelWarehouse",
|
|
34788
35115
|
selectProps: _objectSpread2({
|
|
34789
35116
|
style: styleCommon,
|
|
@@ -34805,7 +35132,7 @@ function RenderCompItem(props) {
|
|
|
34805
35132
|
getPopupContainer: function getPopupContainer() {
|
|
34806
35133
|
return document.body;
|
|
34807
35134
|
}
|
|
34808
|
-
})) || 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 && (
|
|
35135
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34809
35136
|
selectBusinessType: "spuCommodity",
|
|
34810
35137
|
selectProps: _objectSpread2({
|
|
34811
35138
|
style: styleCommon,
|
|
@@ -34826,7 +35153,7 @@ function RenderCompItem(props) {
|
|
|
34826
35153
|
getPopupContainer: function getPopupContainer() {
|
|
34827
35154
|
return document.body;
|
|
34828
35155
|
}
|
|
34829
|
-
})) || 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 && (
|
|
35156
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34830
35157
|
selectBusinessType: "skuCommodity",
|
|
34831
35158
|
selectProps: _objectSpread2({
|
|
34832
35159
|
style: styleCommon,
|
|
@@ -34847,13 +35174,13 @@ function RenderCompItem(props) {
|
|
|
34847
35174
|
getPopupContainer: function getPopupContainer() {
|
|
34848
35175
|
return document.body;
|
|
34849
35176
|
}
|
|
34850
|
-
})) || 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 && (
|
|
35177
|
+
})) || 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__default['default'].createElement(BsCascader, {
|
|
34851
35178
|
disabled: disabled,
|
|
34852
35179
|
isAll: true,
|
|
34853
35180
|
needNameAndCode: true,
|
|
34854
35181
|
notChangeOnSelect: true,
|
|
34855
35182
|
initRequestSource: function () {
|
|
34856
|
-
var _initRequestSource = _asyncToGenerator(
|
|
35183
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34857
35184
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34858
35185
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34859
35186
|
case 0:
|
|
@@ -34895,7 +35222,7 @@ function RenderCompItem(props) {
|
|
|
34895
35222
|
getPopupContainer: function getPopupContainer() {
|
|
34896
35223
|
return document.body;
|
|
34897
35224
|
}
|
|
34898
|
-
})) || 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 && (
|
|
35225
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34899
35226
|
disabled: disabled,
|
|
34900
35227
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34901
35228
|
businessType: "department",
|
|
@@ -34908,7 +35235,7 @@ function RenderCompItem(props) {
|
|
|
34908
35235
|
getPopupContainer: function getPopupContainer() {
|
|
34909
35236
|
return document.body;
|
|
34910
35237
|
}
|
|
34911
|
-
})) || 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 && (
|
|
35238
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34912
35239
|
disabled: disabled,
|
|
34913
35240
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34914
35241
|
businessType: "purchase-organization",
|
|
@@ -34921,7 +35248,7 @@ function RenderCompItem(props) {
|
|
|
34921
35248
|
getPopupContainer: function getPopupContainer() {
|
|
34922
35249
|
return document.body;
|
|
34923
35250
|
}
|
|
34924
|
-
})) || 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 && (
|
|
35251
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
34925
35252
|
disabled: disabled,
|
|
34926
35253
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34927
35254
|
businessType: "sales-organization",
|
|
@@ -34934,7 +35261,7 @@ function RenderCompItem(props) {
|
|
|
34934
35261
|
getPopupContainer: function getPopupContainer() {
|
|
34935
35262
|
return document.body;
|
|
34936
35263
|
}
|
|
34937
|
-
})) || 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 && (
|
|
35264
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34938
35265
|
selectBusinessType: "supplier2",
|
|
34939
35266
|
selectProps: _objectSpread2({
|
|
34940
35267
|
style: styleCommon,
|
|
@@ -34955,7 +35282,7 @@ function RenderCompItem(props) {
|
|
|
34955
35282
|
getPopupContainer: function getPopupContainer() {
|
|
34956
35283
|
return document.body;
|
|
34957
35284
|
}
|
|
34958
|
-
})) || 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 && (
|
|
35285
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34959
35286
|
selectBusinessType: "customer2",
|
|
34960
35287
|
selectProps: _objectSpread2({
|
|
34961
35288
|
style: styleCommon,
|
|
@@ -34976,7 +35303,7 @@ function RenderCompItem(props) {
|
|
|
34976
35303
|
getPopupContainer: function getPopupContainer() {
|
|
34977
35304
|
return document.body;
|
|
34978
35305
|
}
|
|
34979
|
-
})) || 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 && (
|
|
35306
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
34980
35307
|
selectBusinessType: "shopFile2",
|
|
34981
35308
|
selectProps: _objectSpread2({
|
|
34982
35309
|
style: styleCommon,
|
|
@@ -34997,7 +35324,7 @@ function RenderCompItem(props) {
|
|
|
34997
35324
|
getPopupContainer: function getPopupContainer() {
|
|
34998
35325
|
return document.body;
|
|
34999
35326
|
}
|
|
35000
|
-
})) || 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 && (
|
|
35327
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35001
35328
|
selectBusinessType: "employee2",
|
|
35002
35329
|
selectProps: _objectSpread2({
|
|
35003
35330
|
style: styleCommon,
|
|
@@ -35018,7 +35345,7 @@ function RenderCompItem(props) {
|
|
|
35018
35345
|
getPopupContainer: function getPopupContainer() {
|
|
35019
35346
|
return document.body;
|
|
35020
35347
|
}
|
|
35021
|
-
})) || 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 && (
|
|
35348
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35022
35349
|
disabled: disabled,
|
|
35023
35350
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35024
35351
|
businessType: "stock-organization",
|
|
@@ -35031,7 +35358,7 @@ function RenderCompItem(props) {
|
|
|
35031
35358
|
getPopupContainer: function getPopupContainer() {
|
|
35032
35359
|
return document.body;
|
|
35033
35360
|
}
|
|
35034
|
-
})) || 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 && (
|
|
35361
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35035
35362
|
disabled: disabled,
|
|
35036
35363
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35037
35364
|
businessType: "settle-organization",
|
|
@@ -35044,7 +35371,7 @@ function RenderCompItem(props) {
|
|
|
35044
35371
|
getPopupContainer: function getPopupContainer() {
|
|
35045
35372
|
return document.body;
|
|
35046
35373
|
}
|
|
35047
|
-
})) || 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 && (
|
|
35374
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35048
35375
|
selectBusinessType: "deliveryMode",
|
|
35049
35376
|
selectProps: _objectSpread2({
|
|
35050
35377
|
style: styleCommon,
|
|
@@ -35065,7 +35392,7 @@ function RenderCompItem(props) {
|
|
|
35065
35392
|
getPopupContainer: function getPopupContainer() {
|
|
35066
35393
|
return document.body;
|
|
35067
35394
|
}
|
|
35068
|
-
})) || 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 && (
|
|
35395
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35069
35396
|
selectBusinessType: "role",
|
|
35070
35397
|
selectProps: _objectSpread2({
|
|
35071
35398
|
style: styleCommon,
|
|
@@ -35086,7 +35413,7 @@ function RenderCompItem(props) {
|
|
|
35086
35413
|
getPopupContainer: function getPopupContainer() {
|
|
35087
35414
|
return document.body;
|
|
35088
35415
|
}
|
|
35089
|
-
})) || 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 && (
|
|
35416
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35090
35417
|
selectBusinessType: "brand",
|
|
35091
35418
|
selectProps: _objectSpread2({
|
|
35092
35419
|
style: styleCommon,
|
|
@@ -35107,7 +35434,7 @@ function RenderCompItem(props) {
|
|
|
35107
35434
|
getPopupContainer: function getPopupContainer() {
|
|
35108
35435
|
return document.body;
|
|
35109
35436
|
}
|
|
35110
|
-
})) || 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 && (
|
|
35437
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35111
35438
|
disabled: disabled,
|
|
35112
35439
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35113
35440
|
businessType: "background-category",
|
|
@@ -35120,7 +35447,7 @@ function RenderCompItem(props) {
|
|
|
35120
35447
|
getPopupContainer: function getPopupContainer() {
|
|
35121
35448
|
return document.body;
|
|
35122
35449
|
}
|
|
35123
|
-
})) || 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 && (
|
|
35450
|
+
})) || 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__default['default'].createElement(CustomSelector, {
|
|
35124
35451
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35125
35452
|
style: styleCommon,
|
|
35126
35453
|
placeholder: '请选择'
|
|
@@ -35143,7 +35470,7 @@ function RenderCompItem(props) {
|
|
|
35143
35470
|
onChange: function onChange(value) {
|
|
35144
35471
|
handleEdit(ites.code, value);
|
|
35145
35472
|
}
|
|
35146
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
35473
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
35147
35474
|
style: {
|
|
35148
35475
|
display: 'flex'
|
|
35149
35476
|
}
|
|
@@ -35655,7 +35982,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35655
35982
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35656
35983
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35657
35984
|
}
|
|
35658
|
-
var parallelTreeData =
|
|
35985
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
35659
35986
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35660
35987
|
var _i$key;
|
|
35661
35988
|
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);
|
|
@@ -36432,8 +36759,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36432
36759
|
}]);
|
|
36433
36760
|
}(React$1.Component);
|
|
36434
36761
|
|
|
36435
|
-
var css_248z$
|
|
36436
|
-
styleInject(css_248z$
|
|
36762
|
+
var css_248z$v = ".goBack_btn_content {\n position: relative;\n overflow: auto;\n}\n.goBack_btn_content .goback_btn {\n float: right;\n}\n.base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title .rule_title {\n height: 35px;\n padding: 0 10px;\n font-weight: bold;\n font-size: 16px;\n line-height: 35px;\n}\n.base_rule .base_rule_line_title .base_rule_btn_style {\n position: absolute;\n right: 0px;\n}\n.base_rule .base_rule_line_content {\n display: flex;\n padding: 14px 10px 10px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn {\n margin-right: 10px;\n color: #89b9cf;\n font-size: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn:hover {\n cursor: pointer;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc_content {\n height: 45px;\n line-height: 45px;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc {\n margin-right: 15px;\n}\n.base_rule .base_rule_line_content .base_rule_item1 {\n align-items: center;\n width: 120px;\n color: #f8ab3c;\n font-size: 16px;\n}\n.base_rule .base_rule_line_content .base_rule_item2 {\n width: 1200px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n align-items: center;\n justify-content: space-around;\n width: calc(100% - 600px);\n}\n.base_rule .base_rule_line_content .line_color_red {\n color: #ed869b;\n}\n.base_rule .base_rule_line_content .base_rule_item4 {\n width: 80px;\n}\n.base_rule .footer_line > span {\n color: #008fe0;\n font-weight: bold;\n font-size: 16px;\n}\n.rule_name_title {\n display: inline-block;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n padding-left: 10px;\n color: #f8ab3c;\n font-size: 16px;\n line-height: 30px;\n}\n.logical_operate_content {\n position: relative;\n}\n.logical_operate_content .top_line {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content .bottom_line {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content::before {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 998;\n width: 2px;\n height: 100%;\n overflow: hidden;\n background: #d6efe8;\n content: ' ';\n}\n.logical_item_btn {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex;\n align-items: center;\n width: 50px;\n height: 30px;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.logical_item_btn1 {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-left: -15px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.rule_field_style {\n display: inline-block;\n}\n.icon_btn_style {\n margin-right: 10px;\n font-size: 20px;\n}\n.choose_logical_type {\n height: 25px;\n margin: 0px;\n padding: 0 10px;\n line-height: 25px;\n cursor: pointer;\n}\n.choose_logical_type:first-child {\n border-bottom: 1px solid #d9d9d9;\n}\n.choose_logical_type:hover {\n color: white;\n background-color: #008fe0;\n}\n";
|
|
36763
|
+
styleInject(css_248z$v);
|
|
36437
36764
|
|
|
36438
36765
|
var formatOperationList = function formatOperationList(data) {
|
|
36439
36766
|
var _result$find;
|
|
@@ -36582,13 +36909,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36582
36909
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36583
36910
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36584
36911
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36585
|
-
var list =
|
|
36912
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36586
36913
|
var requiredList = list.filter(function (c) {
|
|
36587
36914
|
return c.required == 1;
|
|
36588
36915
|
}) || []; // 获取对象属性为true的集合
|
|
36589
36916
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36590
36917
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36591
|
-
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) ?
|
|
36918
|
+
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];
|
|
36592
36919
|
(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) {
|
|
36593
36920
|
if (requiredList.some(function (r) {
|
|
36594
36921
|
return r.id === e.elementId;
|
|
@@ -37166,18 +37493,18 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
37166
37493
|
return /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
37167
37494
|
spinning: loading
|
|
37168
37495
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
37169
|
-
className: css_248z$
|
|
37496
|
+
className: css_248z$v.base_rule
|
|
37170
37497
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
37171
|
-
className: css_248z$
|
|
37498
|
+
className: css_248z$v.base_rule_content
|
|
37172
37499
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
37173
|
-
className: css_248z$
|
|
37500
|
+
className: css_248z$v.base_rule_line_title
|
|
37174
37501
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
37175
|
-
className: css_248z$
|
|
37502
|
+
className: css_248z$v.rule_title
|
|
37176
37503
|
}, (_handleDiff = handleDiff()) === null || _handleDiff === void 0 ? void 0 : _handleDiff.title), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
37177
37504
|
style: {
|
|
37178
37505
|
float: 'right'
|
|
37179
37506
|
}
|
|
37180
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (
|
|
37507
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (/*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37181
37508
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37182
37509
|
ruleGroupInfo: {
|
|
37183
37510
|
ruleGroupList: ruleGroupList,
|
|
@@ -37195,7 +37522,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
37195
37522
|
callBack: function callBack(newData) {
|
|
37196
37523
|
upDateData(newData);
|
|
37197
37524
|
}
|
|
37198
|
-
}))) : (
|
|
37525
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
37199
37526
|
style: {
|
|
37200
37527
|
padding: 20
|
|
37201
37528
|
}
|
|
@@ -37422,8 +37749,8 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
37422
37749
|
})));
|
|
37423
37750
|
});
|
|
37424
37751
|
|
|
37425
|
-
var css_248z$
|
|
37426
|
-
styleInject(css_248z$
|
|
37752
|
+
var css_248z$w = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005cff;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
|
|
37753
|
+
styleInject(css_248z$w);
|
|
37427
37754
|
|
|
37428
37755
|
var _excluded$k = ["titleExtra", "header", "showArrow"];
|
|
37429
37756
|
var Panel = antd.Collapse.Panel;
|
|
@@ -37474,9 +37801,9 @@ var index$8 = Object.assign(ExtendedCollapse, {
|
|
|
37474
37801
|
Board: ExtendedPanel
|
|
37475
37802
|
});
|
|
37476
37803
|
|
|
37477
|
-
var css_248z$
|
|
37804
|
+
var css_248z$x = ".index-module_paragraphCopyWrapper__3rGOI {\n display: flex;\n margin-bottom: 4px;\n}\n.index-module_paragraphCopyWrapper__3rGOI .index-module_paragraphCopyLabel__1Qb8u {\n color: #8c8e91;\n font-size: 12px;\n white-space: nowrap;\n}\n.index-module_paragraphCopyWrapper__3rGOI .index-module_paragraphCopy__1y7Jo {\n min-width: 100px;\n margin-bottom: 0;\n font-size: 12px;\n flex: 1;\n}\n";
|
|
37478
37805
|
var styles = {"paragraphCopyWrapper":"index-module_paragraphCopyWrapper__3rGOI","paragraphCopyLabel":"index-module_paragraphCopyLabel__1Qb8u","paragraphCopy":"index-module_paragraphCopy__1y7Jo"};
|
|
37479
|
-
styleInject(css_248z$
|
|
37806
|
+
styleInject(css_248z$x);
|
|
37480
37807
|
|
|
37481
37808
|
var Paragraph = antd.Typography.Paragraph;
|
|
37482
37809
|
var Section = function Section(_ref) {
|
|
@@ -37610,11 +37937,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
37610
37937
|
exports.authFunc = authFunc;
|
|
37611
37938
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
37612
37939
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
37613
|
-
exports.coverToParallel =
|
|
37940
|
+
exports.coverToParallel = _coverToParallel;
|
|
37614
37941
|
exports.createUniqID = createUniqID;
|
|
37615
37942
|
exports.downloadExcel = downloadExcel;
|
|
37616
37943
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
37617
|
-
exports.formatter =
|
|
37944
|
+
exports.formatter = _formatter;
|
|
37618
37945
|
exports.getAccountID = getAccountID;
|
|
37619
37946
|
exports.getAccountId = getAccountId;
|
|
37620
37947
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|