@bit-sun/business-component 4.0.12-alpha.2 → 4.0.12-alpha.20
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.esm.js
CHANGED
|
@@ -6,7 +6,7 @@ import _, { isNil, escapeRegExp, omit, debounce, cloneDeep as cloneDeep$1, throt
|
|
|
6
6
|
import memoizeOne from 'memoize-one';
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
9
|
-
import React$1, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
9
|
+
import React$1, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, Fragment, useLayoutEffect, createRef } from 'react';
|
|
10
10
|
import moment$1 from 'moment';
|
|
11
11
|
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, CaretLeftOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
12
12
|
import { request as request$2, Table as Table$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
@@ -1059,13 +1059,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1059
1059
|
imgHtml.innerHTML = str;
|
|
1060
1060
|
}
|
|
1061
1061
|
// 测试使用 测试类型缩小 end
|
|
1062
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1062
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1063
1063
|
className: "clomnsImg"
|
|
1064
1064
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1065
1065
|
src: url,
|
|
1066
1066
|
width: "16px",
|
|
1067
1067
|
height: "16px"
|
|
1068
|
-
}, paramsObj)))) : (
|
|
1068
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1069
1069
|
className: "clomnsImg2"
|
|
1070
1070
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1071
1071
|
src: noImg
|
|
@@ -1204,7 +1204,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
save_link.click();
|
|
1206
1206
|
}
|
|
1207
|
-
var
|
|
1207
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1208
1208
|
return data.map(function (item) {
|
|
1209
1209
|
if (!item.name || !item.path) {
|
|
1210
1210
|
return null;
|
|
@@ -1224,7 +1224,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1224
1224
|
authority: item.authority || parentAuthority
|
|
1225
1225
|
});
|
|
1226
1226
|
if (item.routes) {
|
|
1227
|
-
var children =
|
|
1227
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1228
1228
|
// Reduce memory usage
|
|
1229
1229
|
result.children = children;
|
|
1230
1230
|
}
|
|
@@ -1234,7 +1234,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1234
1234
|
return item;
|
|
1235
1235
|
});
|
|
1236
1236
|
};
|
|
1237
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1237
|
+
var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
|
|
1238
1238
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1239
1239
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1240
1240
|
if (backHistoryPath) {
|
|
@@ -1543,7 +1543,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1543
1543
|
// sheepMap是表头字段中英文映射
|
|
1544
1544
|
// sheetCount:表的数量,默认一张
|
|
1545
1545
|
var resolveFile = /*#__PURE__*/function () {
|
|
1546
|
-
var _ref3 = _asyncToGenerator(
|
|
1546
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1547
1547
|
var config,
|
|
1548
1548
|
data,
|
|
1549
1549
|
_args = arguments;
|
|
@@ -1582,7 +1582,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1582
1582
|
}();
|
|
1583
1583
|
//读取文件
|
|
1584
1584
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1585
|
-
var _ref4 = _asyncToGenerator(
|
|
1585
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1586
1586
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1587
1587
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1588
1588
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1675,14 +1675,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1675
1675
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1676
1676
|
|
|
1677
1677
|
// 获取树平行结构
|
|
1678
|
-
var
|
|
1678
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1679
1679
|
var childrenKey = chilKey || 'children';
|
|
1680
1680
|
treeData.forEach(function (el) {
|
|
1681
1681
|
var _el$childrenKey;
|
|
1682
1682
|
result.push(el);
|
|
1683
1683
|
if ((el === null || el === void 0 ? void 0 : el[childrenKey]) && (el === null || el === void 0 ? void 0 : (_el$childrenKey = el[childrenKey]) === null || _el$childrenKey === void 0 ? void 0 : _el$childrenKey.length) > 0) {
|
|
1684
1684
|
// 子级递归
|
|
1685
|
-
|
|
1685
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
1688
|
return result;
|
|
@@ -1959,13 +1959,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1959
1959
|
imgHtml.innerHTML = str;
|
|
1960
1960
|
}
|
|
1961
1961
|
// 测试使用 测试类型缩小 end
|
|
1962
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1962
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1963
1963
|
className: "clomnsImg"
|
|
1964
1964
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1965
1965
|
src: url,
|
|
1966
1966
|
width: "16px",
|
|
1967
1967
|
height: "16px"
|
|
1968
|
-
}, paramsObj)))) : (
|
|
1968
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1969
1969
|
src: noImg
|
|
1970
1970
|
}))));
|
|
1971
1971
|
};
|
|
@@ -2027,7 +2027,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
});
|
|
2029
2029
|
};
|
|
2030
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (
|
|
2030
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2031
2031
|
disabled: disabled,
|
|
2032
2032
|
onChange: function onChange(e) {
|
|
2033
2033
|
var v = e.target.value;
|
|
@@ -2037,7 +2037,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2037
2037
|
width: 170
|
|
2038
2038
|
},
|
|
2039
2039
|
value: inputValue
|
|
2040
|
-
}, inpProps))), type === 'number' && (
|
|
2040
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2041
2041
|
disabled: disabled,
|
|
2042
2042
|
onBlur: function onBlur(e) {
|
|
2043
2043
|
var v = parseFloat(e.target.value);
|
|
@@ -2416,16 +2416,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2416
2416
|
var handleExportBarCode = handleExport;
|
|
2417
2417
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2418
2418
|
var routerMap = {};
|
|
2419
|
-
var
|
|
2419
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2420
2420
|
data.forEach(function (menuItem) {
|
|
2421
2421
|
if (menuItem.children) {
|
|
2422
|
-
|
|
2422
|
+
_flattenMenuData(menuItem.children);
|
|
2423
2423
|
}
|
|
2424
2424
|
// Reduce memory usage
|
|
2425
2425
|
routerMap[menuItem.path] = menuItem;
|
|
2426
2426
|
});
|
|
2427
2427
|
};
|
|
2428
|
-
|
|
2428
|
+
_flattenMenuData(menuData);
|
|
2429
2429
|
return routerMap;
|
|
2430
2430
|
};
|
|
2431
2431
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2568,7 +2568,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2568
2568
|
return request$1(url, parms).then(handleResponseData);
|
|
2569
2569
|
};
|
|
2570
2570
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2571
|
-
var _ref2 = _asyncToGenerator(
|
|
2571
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2572
2572
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2573
2573
|
while (1) switch (_context.prev = _context.next) {
|
|
2574
2574
|
case 0:
|
|
@@ -3242,7 +3242,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3242
3242
|
placement: "bottomLeft"
|
|
3243
3243
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3244
3244
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3245
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3245
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3246
3246
|
trigger: ['click'],
|
|
3247
3247
|
overlay: this.menuList,
|
|
3248
3248
|
placement: "bottomRight"
|
|
@@ -3917,7 +3917,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3917
3917
|
placement: "bottomLeft"
|
|
3918
3918
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3919
3919
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3920
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3920
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3921
3921
|
trigger: ['click'],
|
|
3922
3922
|
overlay: this.menuList,
|
|
3923
3923
|
placement: "bottomRight"
|
|
@@ -4075,7 +4075,7 @@ function ToCDB(str) {
|
|
|
4075
4075
|
return tmp;
|
|
4076
4076
|
}
|
|
4077
4077
|
|
|
4078
|
-
var css_248z$5 = ".search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_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
|
|
4078
|
+
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";
|
|
4079
4079
|
styleInject(css_248z$5);
|
|
4080
4080
|
|
|
4081
4081
|
var columnsPerRow = 4; // 每行的列数
|
|
@@ -4083,6 +4083,7 @@ var ColSpan = 6; // 查询条件 每行col = 24 /columnsPerRow
|
|
|
4083
4083
|
var handleSourceName = function handleSourceName(sName) {
|
|
4084
4084
|
return sName;
|
|
4085
4085
|
};
|
|
4086
|
+
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4086
4087
|
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4087
4088
|
var totalRows = Math.ceil(list.length / columnsPerRow); // 计算总行数
|
|
4088
4089
|
var lastRowColumns = (list.length + 1) % columnsPerRow; // 计算最后一行的实际列数
|
|
@@ -4120,15 +4121,45 @@ var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
|
4120
4121
|
};
|
|
4121
4122
|
var getTableHeigth = function getTableHeigth(list) {
|
|
4122
4123
|
var totalRows = Math.ceil(((list === null || list === void 0 ? void 0 : list.length) + 1) / 4);
|
|
4123
|
-
if (totalRows == 1) return
|
|
4124
|
-
return
|
|
4124
|
+
if (totalRows == 1) return 358; // modal弹窗760 调整为700 适应小屏
|
|
4125
|
+
return 411 - totalRows * 10;
|
|
4126
|
+
};
|
|
4127
|
+
// ------------------------------------------处理样式相关--结束----------------------------------------
|
|
4128
|
+
// ------------------------------------------处理数据相关--开始----------------------------------------
|
|
4129
|
+
var getCurrentSRKs = function getCurrentSRKs(selectMode, labelInValue, value) {
|
|
4130
|
+
return selectMode ? labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4131
|
+
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
4132
|
+
}) : value : labelInValue ? (value === null || value === void 0 ? void 0 : value.value) && [value === null || value === void 0 ? void 0 : value.value] || [] : value && [value] || [];
|
|
4133
|
+
};
|
|
4134
|
+
var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
4135
|
+
// 判空处理
|
|
4136
|
+
if (!(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length)) return items || [];
|
|
4137
|
+
// 创建映射对象 用于记录原始选中顺序
|
|
4138
|
+
var orderMap = new Map();
|
|
4139
|
+
currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.forEach(function (value, index) {
|
|
4140
|
+
orderMap.set(value, index);
|
|
4141
|
+
});
|
|
4142
|
+
// 被选中数据集合,获取之后排序
|
|
4143
|
+
var selectedOption = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4144
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4145
|
+
})) || [];
|
|
4146
|
+
var selectedOptionSort = (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.sort(function (a, b) {
|
|
4147
|
+
var _orderMap$get, _orderMap$get2;
|
|
4148
|
+
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);
|
|
4149
|
+
})) || [];
|
|
4150
|
+
// 未选中数据集合
|
|
4151
|
+
var otherOptions = (items === null || items === void 0 ? void 0 : items.filter(function (option) {
|
|
4152
|
+
return !(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value));
|
|
4153
|
+
})) || [];
|
|
4154
|
+
return [].concat(_toConsumableArray(selectedOptionSort), _toConsumableArray(otherOptions));
|
|
4125
4155
|
};
|
|
4156
|
+
// ------------------------------------------处理数据相关--结束----------------------------------------
|
|
4126
4157
|
|
|
4127
4158
|
var zhankaitiaojian = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
4128
4159
|
|
|
4129
4160
|
var Option$1 = Select.Option;
|
|
4130
4161
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
4131
|
-
var _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
4162
|
+
var _pathname$match, _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
4132
4163
|
var value = props.value,
|
|
4133
4164
|
onChangeTemp = props.onChange,
|
|
4134
4165
|
_props$selectProps = props.selectProps,
|
|
@@ -4190,8 +4221,11 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4190
4221
|
listHeight: 160,
|
|
4191
4222
|
optionLabelProp: "label",
|
|
4192
4223
|
autoClearSearchValue: false,
|
|
4193
|
-
placement: '
|
|
4224
|
+
placement: 'bottomRight'
|
|
4194
4225
|
});
|
|
4226
|
+
var pathname = window.location.href;
|
|
4227
|
+
var pattern = /(action|create|edit|view)/;
|
|
4228
|
+
var isFormPage = ((_pathname$match = pathname.match(pattern)) === null || _pathname$match === void 0 ? void 0 : _pathname$match.length) > 0;
|
|
4195
4229
|
var initPagination = {
|
|
4196
4230
|
showQuickJumper: true,
|
|
4197
4231
|
showSizeChanger: false,
|
|
@@ -4225,34 +4259,38 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4225
4259
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4226
4260
|
selectOpen = _useState4[0],
|
|
4227
4261
|
setSelectOpen = _useState4[1];
|
|
4228
|
-
var _useState5 = useState(
|
|
4262
|
+
var _useState5 = useState(false),
|
|
4229
4263
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
var _useState7 = useState(
|
|
4264
|
+
isMaxTagsOpen = _useState6[0],
|
|
4265
|
+
setIsMaxTagsOpen = _useState6[1];
|
|
4266
|
+
var _useState7 = useState(1),
|
|
4233
4267
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
var _useState9 = useState(
|
|
4268
|
+
scrollPage = _useState8[0],
|
|
4269
|
+
setScrollPage = _useState8[1];
|
|
4270
|
+
var _useState9 = useState(0),
|
|
4237
4271
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
var _useState11 = useState(
|
|
4272
|
+
itemsTotal = _useState10[0],
|
|
4273
|
+
setItemsTotal = _useState10[1];
|
|
4274
|
+
var _useState11 = useState(false),
|
|
4241
4275
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
var _useState13 = useState(
|
|
4276
|
+
fetching = _useState12[0],
|
|
4277
|
+
setFetching = _useState12[1];
|
|
4278
|
+
var _useState13 = useState(''),
|
|
4245
4279
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
var _useState15 = useState(
|
|
4280
|
+
searchValue = _useState14[0],
|
|
4281
|
+
setSearchValue = _useState14[1];
|
|
4282
|
+
var _useState15 = useState(false),
|
|
4249
4283
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
var _useState17 = useState(
|
|
4284
|
+
isModalVisible = _useState16[0],
|
|
4285
|
+
setIsModalVisible = _useState16[1];
|
|
4286
|
+
var _useState17 = useState(initVal),
|
|
4253
4287
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
4254
|
-
|
|
4255
|
-
|
|
4288
|
+
popvalue = _useState18[0],
|
|
4289
|
+
setPopValue = _useState18[1];
|
|
4290
|
+
var _useState19 = useState(resultSourceKey),
|
|
4291
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
4292
|
+
uniqueValue = _useState20[0],
|
|
4293
|
+
setUniqueValue = _useState20[1];
|
|
4256
4294
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
4257
4295
|
// 优化搜索参数 支持传多个
|
|
4258
4296
|
var searchParams = {};
|
|
@@ -4281,62 +4319,62 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4281
4319
|
var _Form$useForm = Form.useForm(),
|
|
4282
4320
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
4283
4321
|
form = _Form$useForm2[0];
|
|
4284
|
-
var _useState19 = useState(true),
|
|
4285
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
4286
|
-
collapsed = _useState20[0],
|
|
4287
|
-
setCollapsed = _useState20[1];
|
|
4288
4322
|
var _useState21 = useState(true),
|
|
4289
4323
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
var _useState23 = useState(
|
|
4324
|
+
collapsed = _useState22[0],
|
|
4325
|
+
setCollapsed = _useState22[1];
|
|
4326
|
+
var _useState23 = useState(true),
|
|
4293
4327
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
var _useState25 = useState(
|
|
4328
|
+
caretLeftFlag = _useState24[0],
|
|
4329
|
+
setCaretLeftFlag = _useState24[1];
|
|
4330
|
+
var _useState25 = useState([]),
|
|
4297
4331
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
var _useState27 = useState(
|
|
4332
|
+
tableData = _useState26[0],
|
|
4333
|
+
setTableData = _useState26[1];
|
|
4334
|
+
var _useState27 = useState(tableInitPagination),
|
|
4301
4335
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
4302
|
-
|
|
4303
|
-
|
|
4336
|
+
tablePagination = _useState28[0],
|
|
4337
|
+
setTablePagination = _useState28[1];
|
|
4304
4338
|
var _useState29 = useState([]),
|
|
4305
4339
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
var _useState31 = useState(
|
|
4340
|
+
selectedRowKeys = _useState30[0],
|
|
4341
|
+
setSelectedRowKeys = _useState30[1];
|
|
4342
|
+
var _useState31 = useState([]),
|
|
4309
4343
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
4310
|
-
|
|
4311
|
-
|
|
4344
|
+
selectedRows = _useState32[0],
|
|
4345
|
+
setSelectedRows = _useState32[1];
|
|
4312
4346
|
var _useState33 = useState(false),
|
|
4313
4347
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
var _useState35 = useState(
|
|
4348
|
+
checkedAll = _useState34[0],
|
|
4349
|
+
setCheckedAll = _useState34[1];
|
|
4350
|
+
var _useState35 = useState(false),
|
|
4317
4351
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
var _useState37 = useState(
|
|
4352
|
+
indeterminate = _useState36[0],
|
|
4353
|
+
setIndeterminate = _useState36[1];
|
|
4354
|
+
var _useState37 = useState({}),
|
|
4321
4355
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
var _useState39 = useState(
|
|
4356
|
+
tableFormParams = _useState38[0],
|
|
4357
|
+
setTableFormParams = _useState38[1];
|
|
4358
|
+
var _useState39 = useState(false),
|
|
4359
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
|
4360
|
+
tooltipVisible = _useState40[0],
|
|
4361
|
+
setTooltipVisible = _useState40[1];
|
|
4362
|
+
var _useState41 = 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) {
|
|
4325
4363
|
return typeof s.defaultSort == 'number';
|
|
4326
4364
|
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
4327
4365
|
return a.defaultSort - b.defaultSort;
|
|
4328
4366
|
})) || []),
|
|
4329
|
-
_useState40 = _slicedToArray(_useState39, 2),
|
|
4330
|
-
tableShowColumns = _useState40[0],
|
|
4331
|
-
setTabletShowColumns = _useState40[1];
|
|
4332
|
-
var _useState41 = useState(false),
|
|
4333
4367
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
4334
|
-
|
|
4335
|
-
|
|
4368
|
+
tableShowColumns = _useState42[0],
|
|
4369
|
+
setTabletShowColumns = _useState42[1];
|
|
4336
4370
|
var _useState43 = useState(false),
|
|
4337
4371
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
4338
|
-
|
|
4339
|
-
|
|
4372
|
+
confirmLoading = _useState44[0],
|
|
4373
|
+
setConfirmLoading = _useState44[1];
|
|
4374
|
+
var _useState45 = useState(false),
|
|
4375
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
4376
|
+
modalSearched = _useState46[0],
|
|
4377
|
+
setModalSearched = _useState46[1];
|
|
4340
4378
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
4341
4379
|
setItems(list);
|
|
4342
4380
|
setItemsTotal(total);
|
|
@@ -4558,7 +4596,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4558
4596
|
textShowText: textShowText,
|
|
4559
4597
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
4560
4598
|
value: item[mappingValueField],
|
|
4561
|
-
keyIndex: index + 1
|
|
4599
|
+
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
|
|
4562
4600
|
});
|
|
4563
4601
|
}) : Array.isArray(res) && (res === null || res === void 0 ? void 0 : res.map(function (item, index) {
|
|
4564
4602
|
var _item$children2;
|
|
@@ -4581,10 +4619,23 @@ var SearchSelect = /*#__PURE__*/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
|
})) : [];
|
|
4587
4625
|
}
|
|
4626
|
+
// 补充搜索项--选中的数据添加到数据源中去
|
|
4627
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
4628
|
+
if (type === 1 && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length) && (currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.some(function (s) {
|
|
4629
|
+
var _source;
|
|
4630
|
+
return !((_source = source) === null || _source === void 0 ? void 0 : _source.find(function (r) {
|
|
4631
|
+
return r.value == s;
|
|
4632
|
+
}));
|
|
4633
|
+
}))) {
|
|
4634
|
+
var selectedOption = items.filter(function (option) {
|
|
4635
|
+
return currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.includes(option.value);
|
|
4636
|
+
}) || [];
|
|
4637
|
+
source = (source || []).concat(selectedOption);
|
|
4638
|
+
}
|
|
4588
4639
|
// 数据源 不可以有重复key
|
|
4589
4640
|
source = Array.isArray(source) ? _.uniqBy(source, 'value') : [];
|
|
4590
4641
|
if (callback) {
|
|
@@ -5071,10 +5122,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5071
5122
|
// />
|
|
5072
5123
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
5073
5124
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
5074
|
-
var oSY = "calc(100vh -
|
|
5125
|
+
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - 82px)"); // 分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
5075
5126
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5076
5127
|
style: {
|
|
5077
|
-
height: "calc(100vh -
|
|
5128
|
+
height: "calc(100vh - ".concat(tableBoxHeighth, "px)")
|
|
5078
5129
|
}
|
|
5079
5130
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
5080
5131
|
bordered: true,
|
|
@@ -5135,7 +5186,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5135
5186
|
init && run('init');
|
|
5136
5187
|
};
|
|
5137
5188
|
var onClear = function onClear() {
|
|
5189
|
+
var _props$onClear;
|
|
5190
|
+
// 执行父组件 onClear 事件
|
|
5191
|
+
props === null || props === void 0 ? void 0 : (_props$onClear = props.onClear) === null || _props$onClear === void 0 ? void 0 : _props$onClear.call(props);
|
|
5192
|
+
// 清空下拉框 / 弹窗 选中数据
|
|
5138
5193
|
formaData([], items);
|
|
5194
|
+
onChangeSelectedKeys([], []);
|
|
5195
|
+
// 重置下拉框数据源
|
|
5139
5196
|
resetSelectDataSource();
|
|
5140
5197
|
};
|
|
5141
5198
|
var onDeselect = function onDeselect() {
|
|
@@ -5156,13 +5213,20 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5156
5213
|
nr && setSelectOpen(false);
|
|
5157
5214
|
};
|
|
5158
5215
|
var onDropdownVisibleChange = function onDropdownVisibleChange(visible) {
|
|
5216
|
+
// 阻止maxTagPlaceholder点击事件触发下拉框展示事件
|
|
5217
|
+
if (isMaxTagsOpen && !selectOpen) return;
|
|
5159
5218
|
setSelectOpen(visible);
|
|
5160
5219
|
// 关闭下拉框 如果首次本身就不展示数据的 没有选中数据-需要清空查询数据源; 首次展示的默认展示
|
|
5161
5220
|
if (!visible && !(value === null || value === void 0 ? void 0 : value.length)) {
|
|
5162
|
-
|
|
5221
|
+
setTimeout(function () {
|
|
5222
|
+
// 延时 是为了避免 执行时候出现下拉框弹两次的问题-可以看到数据源从展示到显示空数据框的问题
|
|
5223
|
+
resetSelectDataSource();
|
|
5224
|
+
}, 200);
|
|
5163
5225
|
}
|
|
5164
5226
|
};
|
|
5165
5227
|
var renderTable = function renderTable(dataSource) {
|
|
5228
|
+
var currentSRKs = getCurrentSRKs(selectMode, labelInValue, value);
|
|
5229
|
+
var renderSource = getRenderSource(currentSRKs, items);
|
|
5166
5230
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5167
5231
|
className: "search_select_dropdown_table ".concat(!selectMode ? 'search_select_dropdown_table1' : '')
|
|
5168
5232
|
}, /*#__PURE__*/React$1.createElement(Table, _objectSpread2(_objectSpread2({
|
|
@@ -5172,9 +5236,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5172
5236
|
rowSelection: {
|
|
5173
5237
|
type: 'checkbox',
|
|
5174
5238
|
columnWidth: '24px',
|
|
5175
|
-
selectedRowKeys:
|
|
5176
|
-
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
5177
|
-
}) : value,
|
|
5239
|
+
selectedRowKeys: currentSRKs,
|
|
5178
5240
|
preserveSelectedRowKeys: true,
|
|
5179
5241
|
onChange: function onChange(sks, srs) {
|
|
5180
5242
|
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
@@ -5215,7 +5277,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5215
5277
|
rowSelection: {
|
|
5216
5278
|
type: 'radio',
|
|
5217
5279
|
columnWidth: 0,
|
|
5218
|
-
selectedRowKeys:
|
|
5280
|
+
selectedRowKeys: currentSRKs
|
|
5219
5281
|
},
|
|
5220
5282
|
onRow: function onRow(record, rowKey) {
|
|
5221
5283
|
return {
|
|
@@ -5227,7 +5289,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5227
5289
|
}
|
|
5228
5290
|
}), {}, {
|
|
5229
5291
|
columns: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.renderTableColumns) || [],
|
|
5230
|
-
dataSource:
|
|
5292
|
+
dataSource: renderSource,
|
|
5231
5293
|
size: "middle",
|
|
5232
5294
|
pagination: false,
|
|
5233
5295
|
rowKey: mappingValueField,
|
|
@@ -5248,20 +5310,34 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5248
5310
|
onChange(newValue);
|
|
5249
5311
|
};
|
|
5250
5312
|
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
5251
|
-
|
|
5313
|
+
overlayClassName: 'searchSelectMaxTagToolTip',
|
|
5314
|
+
destroyTooltipOnHide: true,
|
|
5315
|
+
placement: "topRight",
|
|
5316
|
+
autoAdjustOverflow: false,
|
|
5317
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
5318
|
+
style: {
|
|
5319
|
+
margin: '6px 8px 0px'
|
|
5320
|
+
},
|
|
5321
|
+
onMouseEnter: function onMouseEnter() {
|
|
5322
|
+
setIsMaxTagsOpen(true);
|
|
5323
|
+
},
|
|
5324
|
+
onMouseLeave: function onMouseLeave() {
|
|
5325
|
+
setIsMaxTagsOpen(false);
|
|
5326
|
+
}
|
|
5327
|
+
}, selectedValues.map(function (i) {
|
|
5252
5328
|
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
5253
5329
|
closable: true,
|
|
5254
5330
|
onClose: function onClose(e) {
|
|
5255
5331
|
return _onClose(e, i);
|
|
5256
5332
|
},
|
|
5257
5333
|
style: {
|
|
5258
|
-
|
|
5334
|
+
margin: '0px 3px 3px 0px',
|
|
5259
5335
|
background: '#f5f5f5',
|
|
5260
5336
|
height: '24px',
|
|
5261
5337
|
border: '1px solid #f0f0f0'
|
|
5262
5338
|
}
|
|
5263
5339
|
}, i.label);
|
|
5264
|
-
})
|
|
5340
|
+
})))
|
|
5265
5341
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
5266
5342
|
};
|
|
5267
5343
|
var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
|
|
@@ -5310,13 +5386,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5310
5386
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5311
5387
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5312
5388
|
className: 'search_select'
|
|
5313
|
-
}, fieldComponent ? (
|
|
5389
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5314
5390
|
onClick: function onClick() {
|
|
5315
5391
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5316
5392
|
(_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);
|
|
5317
5393
|
showModal();
|
|
5318
5394
|
}
|
|
5319
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
5395
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5320
5396
|
title: getShowStr(),
|
|
5321
5397
|
style: {
|
|
5322
5398
|
overflow: 'hidden',
|
|
@@ -5325,7 +5401,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5325
5401
|
},
|
|
5326
5402
|
className: 'search_select_show'
|
|
5327
5403
|
}, getShowStr())) : /*#__PURE__*/React$1.createElement("div", {
|
|
5328
|
-
className: "search_select_show",
|
|
5404
|
+
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
5329
5405
|
id: "search_select_div_".concat(uniqueValue)
|
|
5330
5406
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
5331
5407
|
labelInValue: labelInValue,
|
|
@@ -5343,10 +5419,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5343
5419
|
dropdownRender: function dropdownRender(menu) {
|
|
5344
5420
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5345
5421
|
},
|
|
5346
|
-
notFoundContent: fetching ? (
|
|
5422
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5347
5423
|
size: "small",
|
|
5348
5424
|
className: 'searchSelectSpin'
|
|
5349
|
-
})) : (
|
|
5425
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5350
5426
|
style: {
|
|
5351
5427
|
textAlign: 'center'
|
|
5352
5428
|
}
|
|
@@ -5367,7 +5443,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5367
5443
|
}, /*#__PURE__*/React$1.createElement(SearchOutlined, null))
|
|
5368
5444
|
} : {}), currentSelectProps), {}, {
|
|
5369
5445
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
5370
|
-
return _getPopupContainer && _getPopupContainer(triggerNode)
|
|
5446
|
+
return triggerNode.parentElement || _getPopupContainer && _getPopupContainer(triggerNode);
|
|
5371
5447
|
}
|
|
5372
5448
|
}), items.map(function (item) {
|
|
5373
5449
|
return /*#__PURE__*/React$1.createElement(Option$1, {
|
|
@@ -5377,7 +5453,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5377
5453
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5378
5454
|
filterTxt: searchValue
|
|
5379
5455
|
}));
|
|
5380
|
-
}))), needModalTable && isModalVisible && (
|
|
5456
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5381
5457
|
maskClosable: false,
|
|
5382
5458
|
destroyOnClose: true,
|
|
5383
5459
|
width: "80%",
|
|
@@ -5974,7 +6050,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5974
6050
|
style: {
|
|
5975
6051
|
width: 525
|
|
5976
6052
|
}
|
|
5977
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
6053
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5978
6054
|
checked: !dataSource.some(function (item) {
|
|
5979
6055
|
if (item.hidden) return true;
|
|
5980
6056
|
return false;
|
|
@@ -6012,13 +6088,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6012
6088
|
_this2.onChange(e, item.title);
|
|
6013
6089
|
}
|
|
6014
6090
|
}, item.title);
|
|
6015
|
-
}), !!seatchDataSource.length && (
|
|
6091
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6016
6092
|
style: {
|
|
6017
6093
|
width: '144px'
|
|
6018
6094
|
}
|
|
6019
|
-
})), !seatchDataSource.length && (
|
|
6095
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6020
6096
|
className: 'sort_table_column_all_empty'
|
|
6021
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
6097
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6022
6098
|
className: 'sort_table_column_special'
|
|
6023
6099
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6024
6100
|
className: 'sort_table_column_all'
|
|
@@ -6207,7 +6283,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6207
6283
|
});
|
|
6208
6284
|
};
|
|
6209
6285
|
// 格式化树选择器数据源
|
|
6210
|
-
var
|
|
6286
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6211
6287
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6212
6288
|
return {
|
|
6213
6289
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6217,7 +6293,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6217
6293
|
isLeaf: !haveChildren,
|
|
6218
6294
|
disabled: haveChildren,
|
|
6219
6295
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6220
|
-
return
|
|
6296
|
+
return _mapSearchTree(i, resKeyValue);
|
|
6221
6297
|
}) : []
|
|
6222
6298
|
};
|
|
6223
6299
|
};
|
|
@@ -6226,7 +6302,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6226
6302
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6227
6303
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6228
6304
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6229
|
-
return
|
|
6305
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
6230
6306
|
}) || [];
|
|
6231
6307
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6232
6308
|
};
|
|
@@ -6397,7 +6473,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6397
6473
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6398
6474
|
// FIXME: 特殊业务逻辑
|
|
6399
6475
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6400
|
-
var _ref2 = _asyncToGenerator(
|
|
6476
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6401
6477
|
var result;
|
|
6402
6478
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6403
6479
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6650,7 +6726,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6650
6726
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6651
6727
|
value: text || null,
|
|
6652
6728
|
onChange: function () {
|
|
6653
|
-
var _onChange = _asyncToGenerator(
|
|
6729
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6654
6730
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6655
6731
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6656
6732
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7258,10 +7334,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7258
7334
|
var newColumns = arr.map(function (col) {
|
|
7259
7335
|
return _objectSpread2({}, col);
|
|
7260
7336
|
});
|
|
7261
|
-
var
|
|
7337
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
7262
7338
|
var i = indexArr.shift();
|
|
7263
7339
|
if (indexArr.length > 0) {
|
|
7264
|
-
|
|
7340
|
+
_handleIndex(arr[i].children, indexArr);
|
|
7265
7341
|
} else {
|
|
7266
7342
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7267
7343
|
width: size.width
|
|
@@ -7269,7 +7345,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7269
7345
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7270
7346
|
}
|
|
7271
7347
|
};
|
|
7272
|
-
|
|
7348
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
7273
7349
|
callback(newColumns);
|
|
7274
7350
|
};
|
|
7275
7351
|
};
|
|
@@ -7279,13 +7355,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7279
7355
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7280
7356
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7281
7357
|
};
|
|
7282
|
-
var
|
|
7358
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7283
7359
|
arr.forEach(function (item, index) {
|
|
7284
7360
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7285
7361
|
return i || i === 0;
|
|
7286
7362
|
});
|
|
7287
7363
|
if (noEmptyArray$1(item.children)) {
|
|
7288
|
-
|
|
7364
|
+
_handleColumns(item.children, indexArrInside);
|
|
7289
7365
|
} else {
|
|
7290
7366
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7291
7367
|
item.onHeaderCell = function (column) {
|
|
@@ -7301,14 +7377,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7301
7377
|
handleAntdColumnsSpecialParams(item);
|
|
7302
7378
|
return _objectSpread2({}, item);
|
|
7303
7379
|
});
|
|
7304
|
-
|
|
7380
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
7305
7381
|
return setShowToChooseColumnsCallback(res);
|
|
7306
7382
|
});
|
|
7307
7383
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7308
7384
|
handleAntdColumnsSpecialParams(item);
|
|
7309
7385
|
return _objectSpread2({}, item);
|
|
7310
7386
|
});
|
|
7311
|
-
|
|
7387
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
7312
7388
|
return setShowColumnsCallback(res);
|
|
7313
7389
|
});
|
|
7314
7390
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7319,7 +7395,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7319
7395
|
id: "add_select_div_".concat(uniqueValue)
|
|
7320
7396
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7321
7397
|
onClick: handleShowModal
|
|
7322
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
7398
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7323
7399
|
width: '1200px',
|
|
7324
7400
|
style: {
|
|
7325
7401
|
top: 20
|
|
@@ -8233,7 +8309,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8233
8309
|
});
|
|
8234
8310
|
};
|
|
8235
8311
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8236
|
-
var _ref4 = _asyncToGenerator(
|
|
8312
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8237
8313
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8238
8314
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8239
8315
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8316,10 +8392,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8316
8392
|
var newColumns = arr.map(function (col) {
|
|
8317
8393
|
return _objectSpread2({}, col);
|
|
8318
8394
|
});
|
|
8319
|
-
var
|
|
8395
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8320
8396
|
var i = indexArr.shift();
|
|
8321
8397
|
if (indexArr.length > 0) {
|
|
8322
|
-
|
|
8398
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8323
8399
|
} else {
|
|
8324
8400
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8325
8401
|
width: size.width
|
|
@@ -8327,17 +8403,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8327
8403
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8328
8404
|
}
|
|
8329
8405
|
};
|
|
8330
|
-
|
|
8406
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8331
8407
|
callback(newColumns);
|
|
8332
8408
|
};
|
|
8333
8409
|
};
|
|
8334
|
-
var
|
|
8410
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8335
8411
|
arr.forEach(function (item, index) {
|
|
8336
8412
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8337
8413
|
return i || i === 0;
|
|
8338
8414
|
});
|
|
8339
8415
|
if (noEmptyArray$1(item.children)) {
|
|
8340
|
-
|
|
8416
|
+
_handleColumns(item.children, indexArrInside);
|
|
8341
8417
|
} else {
|
|
8342
8418
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8343
8419
|
item.onHeaderCell = function (column) {
|
|
@@ -8353,7 +8429,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8353
8429
|
handleAntdColumnsSpecialParams(item);
|
|
8354
8430
|
return _objectSpread2({}, item);
|
|
8355
8431
|
});
|
|
8356
|
-
|
|
8432
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8357
8433
|
return setShowColumnsCallback(res);
|
|
8358
8434
|
});
|
|
8359
8435
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8636,6 +8712,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8636
8712
|
hiddenFields = _ref$hiddenFields === void 0 ? [] : _ref$hiddenFields;
|
|
8637
8713
|
// 默认type === 'supplier' 供应商选择器
|
|
8638
8714
|
var requestConfig = _objectSpread2({
|
|
8715
|
+
init: true,
|
|
8639
8716
|
url: "".concat(prefixUrl.selectPrefix, "/supplier"),
|
|
8640
8717
|
filter: 'qp-name,code-orGroup,like',
|
|
8641
8718
|
otherParams: _objectSpread2({
|
|
@@ -8667,7 +8744,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8667
8744
|
});
|
|
8668
8745
|
};
|
|
8669
8746
|
// 格式化树选择器数据源
|
|
8670
|
-
var
|
|
8747
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8671
8748
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8672
8749
|
return {
|
|
8673
8750
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8677,7 +8754,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8677
8754
|
isLeaf: !haveChildren,
|
|
8678
8755
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8679
8756
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8680
|
-
return
|
|
8757
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8681
8758
|
}) : []
|
|
8682
8759
|
};
|
|
8683
8760
|
};
|
|
@@ -8691,7 +8768,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8691
8768
|
disabledJudge = false;
|
|
8692
8769
|
}
|
|
8693
8770
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8694
|
-
return
|
|
8771
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8695
8772
|
}) || [];
|
|
8696
8773
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8697
8774
|
};
|
|
@@ -8958,7 +9035,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8958
9035
|
name: 'qp-skuName-like',
|
|
8959
9036
|
label: 'SKU名称'
|
|
8960
9037
|
}, {
|
|
8961
|
-
name: 'qp-
|
|
9038
|
+
name: 'qp-itemCode-like',
|
|
8962
9039
|
label: '外部SPU编码'
|
|
8963
9040
|
}, {
|
|
8964
9041
|
name: 'qp-eancode-in',
|
|
@@ -9418,6 +9495,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9418
9495
|
}]
|
|
9419
9496
|
}, selectConfigProps);
|
|
9420
9497
|
requestConfig = _objectSpread2({
|
|
9498
|
+
init: true,
|
|
9421
9499
|
url: "".concat(prefixUrl.selectPrefix, "/skuPropertyValue/list"),
|
|
9422
9500
|
filter: 'qp-value-like',
|
|
9423
9501
|
mappingTextField: 'value',
|
|
@@ -10340,6 +10418,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10340
10418
|
}]
|
|
10341
10419
|
}, selectConfigProps);
|
|
10342
10420
|
requestConfig = _objectSpread2({
|
|
10421
|
+
init: true,
|
|
10343
10422
|
url: "".concat(prefixUrl.selectPrefix, "/inventoryOrg"),
|
|
10344
10423
|
filter: 'qp-name,code-orGroup,like',
|
|
10345
10424
|
mappingTextField: 'name',
|
|
@@ -10365,6 +10444,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10365
10444
|
}]
|
|
10366
10445
|
}, selectConfigProps);
|
|
10367
10446
|
requestConfig = _objectSpread2({
|
|
10447
|
+
init: true,
|
|
10368
10448
|
url: "".concat(prefixUrl.selectPrefix, "/company"),
|
|
10369
10449
|
filter: 'qp-name,code-orGroup,like',
|
|
10370
10450
|
mappingTextField: 'name',
|
|
@@ -10390,6 +10470,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10390
10470
|
}]
|
|
10391
10471
|
}, selectConfigProps);
|
|
10392
10472
|
requestConfig = _objectSpread2({
|
|
10473
|
+
init: true,
|
|
10393
10474
|
url: "".concat(prefixUrl.selectPrefix, "/platCompany"),
|
|
10394
10475
|
filter: 'qp-name,socialCreditCode-orGroup,like',
|
|
10395
10476
|
mappingTextField: 'name',
|
|
@@ -10415,6 +10496,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10415
10496
|
}]
|
|
10416
10497
|
}, selectConfigProps);
|
|
10417
10498
|
requestConfig = _objectSpread2({
|
|
10499
|
+
init: true,
|
|
10418
10500
|
url: "".concat(prefixUrl.selectPrefix, "/employee/v2"),
|
|
10419
10501
|
filter: 'qp-employeeNumber,name-orGroup,like',
|
|
10420
10502
|
mappingTextField: 'name',
|
|
@@ -10508,6 +10590,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10508
10590
|
}]
|
|
10509
10591
|
}, selectConfigProps);
|
|
10510
10592
|
requestConfig = _objectSpread2({
|
|
10593
|
+
init: true,
|
|
10511
10594
|
url: "".concat(prefixUrl.selectPrefix, "/employee/pageList/v2"),
|
|
10512
10595
|
filter: 'qp-username,name-orGroup,like',
|
|
10513
10596
|
mappingTextField: 'name',
|
|
@@ -10650,6 +10733,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10650
10733
|
});
|
|
10651
10734
|
var logisCompanyCodeSingleSearchName = isLogisCompanyCodeSingleSearch ? 'qp-logisCompanyCode-eq' : 'qp-logisCompanyCode-in';
|
|
10652
10735
|
requestConfig = _objectSpread2({
|
|
10736
|
+
init: true,
|
|
10653
10737
|
url: "".concat(prefixUrl.selectPrefix, "/deliveryMode"),
|
|
10654
10738
|
filter: 'qp-name,code-orGroup,like',
|
|
10655
10739
|
mappingTextField: 'name',
|
|
@@ -10786,6 +10870,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10786
10870
|
}]
|
|
10787
10871
|
}, selectConfigProps);
|
|
10788
10872
|
requestConfig = _objectSpread2({
|
|
10873
|
+
init: true,
|
|
10789
10874
|
url: "".concat(prefixUrl.selectPrefix, "/ruleTemplate"),
|
|
10790
10875
|
filter: 'qp-name,code-orGroup,like',
|
|
10791
10876
|
mappingTextField: 'name',
|
|
@@ -10857,6 +10942,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10857
10942
|
}]
|
|
10858
10943
|
}, selectConfigProps);
|
|
10859
10944
|
requestConfig = _objectSpread2({
|
|
10945
|
+
init: true,
|
|
10860
10946
|
url: "".concat(prefixUrl.selectPrefix, "/role"),
|
|
10861
10947
|
filter: 'qp-name,code-orGroup,like',
|
|
10862
10948
|
mappingTextField: 'name',
|
|
@@ -10953,6 +11039,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10953
11039
|
}]
|
|
10954
11040
|
}, selectConfigProps);
|
|
10955
11041
|
requestConfig = _objectSpread2({
|
|
11042
|
+
init: true,
|
|
10956
11043
|
url: "".concat(prefixUrl.selectPrefix, "/channelInfo"),
|
|
10957
11044
|
filter: 'qp-name,code-orGroup,like',
|
|
10958
11045
|
mappingTextField: 'name',
|
|
@@ -11040,6 +11127,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11040
11127
|
}]
|
|
11041
11128
|
}, selectConfigProps);
|
|
11042
11129
|
requestConfig = _objectSpread2({
|
|
11130
|
+
init: true,
|
|
11043
11131
|
url: "".concat(prefixUrl.selectPrefix, "/orgViewNode/common/pageList"),
|
|
11044
11132
|
filter: 'qp-name-like',
|
|
11045
11133
|
mappingTextField: 'name',
|
|
@@ -11168,6 +11256,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11168
11256
|
}]
|
|
11169
11257
|
}, selectConfigProps);
|
|
11170
11258
|
requestConfig = _objectSpread2({
|
|
11259
|
+
init: true,
|
|
11171
11260
|
url: "".concat(prefixUrl.selectPrefix, "/person"),
|
|
11172
11261
|
filter: 'qp-code,name-orGroup,like',
|
|
11173
11262
|
mappingTextField: 'name',
|
|
@@ -11303,6 +11392,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11303
11392
|
}]
|
|
11304
11393
|
}, selectConfigProps);
|
|
11305
11394
|
requestConfig = _objectSpread2({
|
|
11395
|
+
init: true,
|
|
11306
11396
|
url: "".concat(prefixUrl.selectPrefix, "/priceType"),
|
|
11307
11397
|
filter: 'qp-code,name-orGroup,like',
|
|
11308
11398
|
mappingTextField: 'name',
|
|
@@ -11491,6 +11581,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11491
11581
|
|
|
11492
11582
|
var MemoSearchSelect = /*#__PURE__*/React$1.memo(SearchSelect);
|
|
11493
11583
|
var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
11584
|
+
var _props$requestConfig;
|
|
11494
11585
|
var businessType = (props === null || props === void 0 ? void 0 : props.selectBusinessType) || 'supplier';
|
|
11495
11586
|
var prefixUrl = (props === null || props === void 0 ? void 0 : props.prefixUrl) || {
|
|
11496
11587
|
selectPrefix: handleDefaultPrefixUrl(businessType),
|
|
@@ -11509,7 +11600,7 @@ var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
11509
11600
|
needModalTable: needModalTable,
|
|
11510
11601
|
modalTableProps: modalTableProps
|
|
11511
11602
|
});
|
|
11512
|
-
}, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType]);
|
|
11603
|
+
}, [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]);
|
|
11513
11604
|
useImperativeHandle(ref, function () {
|
|
11514
11605
|
return {
|
|
11515
11606
|
getRef: function getRef() {
|
|
@@ -11534,6 +11625,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React$1.memo(BusinessSearchSelect, fun
|
|
|
11534
11625
|
if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
|
|
11535
11626
|
return false;
|
|
11536
11627
|
}
|
|
11628
|
+
if (props && props.requestConfig && typeof props.requestConfig.noOperate === 'boolean' && props.requestConfig.noOperate !== nextProps.requestConfig.noOperate) {
|
|
11629
|
+
return false;
|
|
11630
|
+
}
|
|
11537
11631
|
return true;
|
|
11538
11632
|
});
|
|
11539
11633
|
|
|
@@ -12737,7 +12831,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12737
12831
|
};
|
|
12738
12832
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12739
12833
|
onClick: handleShowModal
|
|
12740
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
12834
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12741
12835
|
onOk: handleOk,
|
|
12742
12836
|
onCancel: handleCancel,
|
|
12743
12837
|
destroyOnClose: true,
|
|
@@ -12856,7 +12950,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12856
12950
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12857
12951
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12858
12952
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12859
|
-
var
|
|
12953
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12860
12954
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12861
12955
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12862
12956
|
return {
|
|
@@ -12868,7 +12962,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12868
12962
|
isLeaf: !haveChildren,
|
|
12869
12963
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12870
12964
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12871
|
-
return
|
|
12965
|
+
return _mapSearchTree(i);
|
|
12872
12966
|
}) : []
|
|
12873
12967
|
};
|
|
12874
12968
|
};
|
|
@@ -12886,8 +12980,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12886
12980
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12887
12981
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12888
12982
|
headers: headers
|
|
12889
|
-
}).then(
|
|
12890
|
-
var _ref = _asyncToGenerator(
|
|
12983
|
+
}).then(/*#__PURE__*/function () {
|
|
12984
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12891
12985
|
var _ctx$form;
|
|
12892
12986
|
var resData, coverData, data, dataList;
|
|
12893
12987
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12914,7 +13008,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12914
13008
|
case 9:
|
|
12915
13009
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12916
13010
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12917
|
-
return
|
|
13011
|
+
return _mapSearchTree(ites);
|
|
12918
13012
|
}) || [];
|
|
12919
13013
|
case 11:
|
|
12920
13014
|
_context.next = 14;
|
|
@@ -12952,11 +13046,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12952
13046
|
return _formatResult;
|
|
12953
13047
|
}
|
|
12954
13048
|
};
|
|
12955
|
-
var
|
|
13049
|
+
var _parallelData = function parallelData(data, result) {
|
|
12956
13050
|
data.forEach(function (i) {
|
|
12957
13051
|
result.push(i);
|
|
12958
13052
|
if (i[treeChildrenRoom]) {
|
|
12959
|
-
|
|
13053
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
12960
13054
|
}
|
|
12961
13055
|
});
|
|
12962
13056
|
return result;
|
|
@@ -12996,7 +13090,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12996
13090
|
var _ctx$form2;
|
|
12997
13091
|
var handleData = formatData(data);
|
|
12998
13092
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12999
|
-
var parallelTreeData =
|
|
13093
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13000
13094
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13001
13095
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13002
13096
|
onChangeName && onChangeName(dataName);
|
|
@@ -13039,7 +13133,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13039
13133
|
var getShowStr = function getShowStr() {
|
|
13040
13134
|
var isMultiple = multiple || treeCheckable;
|
|
13041
13135
|
var kongValue = '无';
|
|
13042
|
-
var parallelTreeData =
|
|
13136
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13043
13137
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13044
13138
|
if (isMultiple) {
|
|
13045
13139
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13051,7 +13145,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13051
13145
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13052
13146
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13053
13147
|
className: 'tree_search_select'
|
|
13054
|
-
}, isShouldShowStr ? (
|
|
13148
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13055
13149
|
title: getShowStr(),
|
|
13056
13150
|
style: {
|
|
13057
13151
|
overflow: 'hidden',
|
|
@@ -13059,7 +13153,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13059
13153
|
whiteSpace: 'nowrap'
|
|
13060
13154
|
},
|
|
13061
13155
|
className: 'search_select_show'
|
|
13062
|
-
}, getShowStr())) : (
|
|
13156
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13063
13157
|
treeCheckable: treeCheckable,
|
|
13064
13158
|
maxTagCount: maxTagCount,
|
|
13065
13159
|
showSearch: showSearch,
|
|
@@ -13256,7 +13350,7 @@ var index$2 = (function (props) {
|
|
|
13256
13350
|
} : {}
|
|
13257
13351
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13258
13352
|
className: 'status-label-operate'
|
|
13259
|
-
}, item.isDone ? (
|
|
13353
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13260
13354
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13261
13355
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13262
13356
|
style: {
|
|
@@ -14037,7 +14131,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14037
14131
|
style: {
|
|
14038
14132
|
width: 525
|
|
14039
14133
|
}
|
|
14040
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
14134
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14041
14135
|
checked: !dataSource.some(function (item) {
|
|
14042
14136
|
if (item.hidden) return true;
|
|
14043
14137
|
return false;
|
|
@@ -14075,13 +14169,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14075
14169
|
_this2.onChange(e, item.title);
|
|
14076
14170
|
}
|
|
14077
14171
|
}, item.title);
|
|
14078
|
-
}), !!seatchDataSource.length && (
|
|
14172
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14079
14173
|
style: {
|
|
14080
14174
|
width: '144px'
|
|
14081
14175
|
}
|
|
14082
|
-
})), !seatchDataSource.length && (
|
|
14176
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14083
14177
|
className: 'sort_table_column_all_empty'
|
|
14084
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
14178
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14085
14179
|
className: 'sort_table_column_special'
|
|
14086
14180
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14087
14181
|
className: 'sort_table_column_all'
|
|
@@ -14154,6 +14248,28 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14154
14248
|
}]);
|
|
14155
14249
|
}(React$1.Component);
|
|
14156
14250
|
|
|
14251
|
+
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";
|
|
14252
|
+
styleInject(css_248z$c);
|
|
14253
|
+
|
|
14254
|
+
//表格底部 金额总计
|
|
14255
|
+
var TableSumComponent = (function (_ref) {
|
|
14256
|
+
var summary = _ref.summary;
|
|
14257
|
+
var Text = Typography.Text;
|
|
14258
|
+
return /*#__PURE__*/React$1.createElement(Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
14259
|
+
className: "table_sum_wrapper"
|
|
14260
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
14261
|
+
className: 'table-bssula-summary'
|
|
14262
|
+
}, summary.map(function (item) {
|
|
14263
|
+
return /*#__PURE__*/React$1.createElement(Text, {
|
|
14264
|
+
type: 'danger'
|
|
14265
|
+
}, item.label, ": ", /*#__PURE__*/React$1.createElement("span", {
|
|
14266
|
+
className: 'table-bssula-summary-count'
|
|
14267
|
+
}, item.count || 0));
|
|
14268
|
+
}))), /*#__PURE__*/React$1.createElement("div", {
|
|
14269
|
+
className: "sum_right_line"
|
|
14270
|
+
}));
|
|
14271
|
+
});
|
|
14272
|
+
|
|
14157
14273
|
var _excluded$9 = ["onResize", "width"],
|
|
14158
14274
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
14159
14275
|
var Text = Typography.Text;
|
|
@@ -14238,10 +14354,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14238
14354
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14239
14355
|
return _objectSpread2({}, col);
|
|
14240
14356
|
});
|
|
14241
|
-
var
|
|
14357
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14242
14358
|
var i = indexArr.shift();
|
|
14243
14359
|
if (indexArr.length > 0) {
|
|
14244
|
-
|
|
14360
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14245
14361
|
} else {
|
|
14246
14362
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14247
14363
|
width: size.width
|
|
@@ -14249,7 +14365,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14249
14365
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14250
14366
|
}
|
|
14251
14367
|
};
|
|
14252
|
-
|
|
14368
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14253
14369
|
_this.setState({
|
|
14254
14370
|
showColumns: _toConsumableArray(newColumns)
|
|
14255
14371
|
});
|
|
@@ -14259,15 +14375,117 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14259
14375
|
var onResize = props.onResize,
|
|
14260
14376
|
width = props.width,
|
|
14261
14377
|
restProps = _objectWithoutProperties(props, _excluded$9);
|
|
14262
|
-
|
|
14263
|
-
|
|
14264
|
-
|
|
14378
|
+
var _useState = useState(width),
|
|
14379
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14380
|
+
innerWidth = _useState2[0],
|
|
14381
|
+
setInnerWidth = _useState2[1];
|
|
14382
|
+
var _useState3 = useState(false),
|
|
14383
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
14384
|
+
isResizing = _useState4[0],
|
|
14385
|
+
setIsResizing = _useState4[1]; // 标记是否正在拖拽
|
|
14386
|
+
var _useState5 = useState(false),
|
|
14387
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
14388
|
+
isDragging = _useState6[0],
|
|
14389
|
+
setIsDragging = _useState6[1]; // 标记拖拽句柄是否被拖拽
|
|
14390
|
+
var _useState7 = useState(0),
|
|
14391
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
14392
|
+
startX = _useState8[0],
|
|
14393
|
+
setStartX = _useState8[1]; // 初始X坐标
|
|
14394
|
+
var markerPosition = useRef({
|
|
14395
|
+
left: 0,
|
|
14396
|
+
top: 0
|
|
14397
|
+
});
|
|
14398
|
+
var currentStart = useRef(0);
|
|
14399
|
+
var uuidref = useRef(uuid());
|
|
14400
|
+
var prevWidthRef = useRef(width);
|
|
14401
|
+
var handleMouseDown = function handleMouseDown(e) {
|
|
14402
|
+
currentStart.current = e.clientX;
|
|
14403
|
+
markerPosition.current = {
|
|
14404
|
+
left: e.clientX,
|
|
14405
|
+
top: e.clientY
|
|
14406
|
+
};
|
|
14407
|
+
setIsResizing(true);
|
|
14408
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
14409
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
14410
|
+
};
|
|
14411
|
+
var handleMouseMove = function handleMouseMove(e) {
|
|
14412
|
+
e.stopPropagation();
|
|
14413
|
+
e.preventDefault();
|
|
14414
|
+
// 更新标记位置
|
|
14415
|
+
markerPosition.current = {
|
|
14416
|
+
left: e.clientX,
|
|
14417
|
+
top: e.clientY
|
|
14418
|
+
};
|
|
14419
|
+
var dom = document.getElementById('text1');
|
|
14420
|
+
if (dom && dom.style) {
|
|
14421
|
+
dom.style.left = "".concat(e.clientX, "px");
|
|
14422
|
+
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14423
|
+
}
|
|
14424
|
+
};
|
|
14425
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
14426
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
14427
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
14428
|
+
setIsResizing(false);
|
|
14429
|
+
};
|
|
14430
|
+
var handleresize = function handleresize(e, data, title) {
|
|
14431
|
+
var _data$size;
|
|
14432
|
+
var newWidth = (data === null || data === void 0 ? void 0 : (_data$size = data.size) === null || _data$size === void 0 ? void 0 : _data$size.width) || 0;
|
|
14433
|
+
setInnerWidth(newWidth); // 更新内部分宽度
|
|
14434
|
+
};
|
|
14435
|
+
var handleResizeStart = function handleResizeStart() {
|
|
14436
|
+
setIsResizing(true);
|
|
14437
|
+
};
|
|
14438
|
+
var handleResizeStop = function handleResizeStop(e, data) {
|
|
14439
|
+
setIsResizing(false);
|
|
14440
|
+
if (onResize) {
|
|
14441
|
+
onResize(e, data);
|
|
14442
|
+
}
|
|
14443
|
+
};
|
|
14444
|
+
useEffect(function () {
|
|
14445
|
+
if (width !== prevWidthRef.current) {
|
|
14446
|
+
prevWidthRef.current = width;
|
|
14447
|
+
setInnerWidth(width);
|
|
14448
|
+
}
|
|
14449
|
+
}, [width]);
|
|
14265
14450
|
return /*#__PURE__*/React$1.createElement(Resizable, {
|
|
14266
|
-
width:
|
|
14451
|
+
width: innerWidth,
|
|
14267
14452
|
height: 0,
|
|
14268
|
-
|
|
14453
|
+
handle: /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14454
|
+
style: {
|
|
14455
|
+
width: '10px',
|
|
14456
|
+
height: '30px',
|
|
14457
|
+
cursor: 'col-resize',
|
|
14458
|
+
position: 'absolute',
|
|
14459
|
+
zIndex: 10,
|
|
14460
|
+
top: 0,
|
|
14461
|
+
right: 0
|
|
14462
|
+
},
|
|
14463
|
+
onMouseDown: handleMouseDown
|
|
14464
|
+
}), isResizing && /*#__PURE__*/React$1.createElement("div", {
|
|
14465
|
+
id: "text1",
|
|
14466
|
+
style: {
|
|
14467
|
+
position: 'fixed',
|
|
14468
|
+
left: markerPosition.current.left,
|
|
14469
|
+
top: markerPosition.current.top - 20,
|
|
14470
|
+
backgroundColor: '#1890ff',
|
|
14471
|
+
color: 'white',
|
|
14472
|
+
borderRadius: '4px',
|
|
14473
|
+
zIndex: 9999,
|
|
14474
|
+
pointerEvents: 'none',
|
|
14475
|
+
height: '40px',
|
|
14476
|
+
width: 2
|
|
14477
|
+
}
|
|
14478
|
+
})),
|
|
14479
|
+
onResize: function onResize(e, data) {
|
|
14480
|
+
handleresize(e, data, restProps.title);
|
|
14481
|
+
},
|
|
14482
|
+
onResizeStart: handleResizeStart,
|
|
14483
|
+
onResizeStop: handleResizeStop,
|
|
14269
14484
|
draggableOpts: {
|
|
14270
|
-
enableUserSelectHack:
|
|
14485
|
+
enableUserSelectHack: true,
|
|
14486
|
+
grid: [20, 20],
|
|
14487
|
+
axis: 'x',
|
|
14488
|
+
bounds: 'parent'
|
|
14271
14489
|
}
|
|
14272
14490
|
}, /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps)));
|
|
14273
14491
|
};
|
|
@@ -14320,20 +14538,20 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14320
14538
|
restProps = _objectWithoutProperties(_this$props3, _excluded2$4);
|
|
14321
14539
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
14322
14540
|
var showSummary = null;
|
|
14323
|
-
if (this.state.showColumns.length) {
|
|
14541
|
+
if (this.state.showColumns.length && !Array.isArray(summary)) {
|
|
14324
14542
|
if (summary && summary().diy) {
|
|
14325
14543
|
showSummary = this.getTableSummaryInfo();
|
|
14326
14544
|
} else {
|
|
14327
14545
|
showSummary = summary;
|
|
14328
14546
|
}
|
|
14329
14547
|
}
|
|
14330
|
-
var
|
|
14548
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14331
14549
|
arr.forEach(function (item, index) {
|
|
14332
14550
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14333
14551
|
return i || i === 0;
|
|
14334
14552
|
});
|
|
14335
14553
|
if (noEmptyArray$1(item.children)) {
|
|
14336
|
-
|
|
14554
|
+
_handleColumns(item.children, indexArrInside);
|
|
14337
14555
|
} else {
|
|
14338
14556
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14339
14557
|
item.onHeaderCell = function (column) {
|
|
@@ -14349,7 +14567,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14349
14567
|
handleBssulaColumnsSpecialParams(item);
|
|
14350
14568
|
return _objectSpread2({}, item);
|
|
14351
14569
|
});
|
|
14352
|
-
|
|
14570
|
+
_handleColumns(showCol, []);
|
|
14353
14571
|
if (dynamicColumns.length) {
|
|
14354
14572
|
showCol = this.handledynamicColumns(showCol);
|
|
14355
14573
|
}
|
|
@@ -14359,8 +14577,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14359
14577
|
}, scroll), {}, {
|
|
14360
14578
|
x: restProps.overScrollX || this.getTableScrollXWidth(showCol)
|
|
14361
14579
|
}),
|
|
14580
|
+
sticky: true
|
|
14581
|
+
}, showSummary ? {
|
|
14362
14582
|
summary: showSummary
|
|
14363
|
-
});
|
|
14583
|
+
} : {});
|
|
14364
14584
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14365
14585
|
style: {
|
|
14366
14586
|
position: 'relative'
|
|
@@ -14388,7 +14608,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14388
14608
|
cell: this.ResizeableTitle
|
|
14389
14609
|
}
|
|
14390
14610
|
}
|
|
14391
|
-
}, otherTableInfo)))
|
|
14611
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14612
|
+
summary: summary
|
|
14613
|
+
})));
|
|
14392
14614
|
}
|
|
14393
14615
|
}]);
|
|
14394
14616
|
}(React$1.Component);
|
|
@@ -14483,10 +14705,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14483
14705
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14484
14706
|
return _objectSpread2({}, col);
|
|
14485
14707
|
});
|
|
14486
|
-
var
|
|
14708
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
14487
14709
|
var i = indexArr.shift();
|
|
14488
14710
|
if (indexArr.length > 0) {
|
|
14489
|
-
|
|
14711
|
+
_handleIndex(arr[i].children, indexArr);
|
|
14490
14712
|
} else {
|
|
14491
14713
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14492
14714
|
width: size.width
|
|
@@ -14494,7 +14716,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14494
14716
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14495
14717
|
}
|
|
14496
14718
|
};
|
|
14497
|
-
|
|
14719
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
14498
14720
|
_this.setState({
|
|
14499
14721
|
showColumns: _toConsumableArray(newColumns)
|
|
14500
14722
|
});
|
|
@@ -14563,20 +14785,20 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14563
14785
|
restProps = _objectWithoutProperties(_this$props3, _excluded2$5);
|
|
14564
14786
|
var otherTableInfo = _objectSpread2({}, restProps);
|
|
14565
14787
|
var showSummary = null;
|
|
14566
|
-
if (this.state.showColumns.length) {
|
|
14788
|
+
if (this.state.showColumns.length && !Array.isArray(summary)) {
|
|
14567
14789
|
if (summary && summary().diy) {
|
|
14568
14790
|
showSummary = this.getTableSummaryInfo();
|
|
14569
14791
|
} else {
|
|
14570
14792
|
showSummary = summary;
|
|
14571
14793
|
}
|
|
14572
14794
|
}
|
|
14573
|
-
var
|
|
14795
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
14574
14796
|
arr.forEach(function (item, index) {
|
|
14575
14797
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14576
14798
|
return i || i === 0;
|
|
14577
14799
|
});
|
|
14578
14800
|
if (noEmptyArray$1(item.children)) {
|
|
14579
|
-
|
|
14801
|
+
_handleColumns(item.children, indexArrInside);
|
|
14580
14802
|
} else {
|
|
14581
14803
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14582
14804
|
item.onHeaderCell = function (column) {
|
|
@@ -14592,7 +14814,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14592
14814
|
handleAntdColumnsSpecialParams(item);
|
|
14593
14815
|
return _objectSpread2({}, item);
|
|
14594
14816
|
});
|
|
14595
|
-
|
|
14817
|
+
_handleColumns(showCol, []);
|
|
14596
14818
|
if (dynamicColumns.length) {
|
|
14597
14819
|
showCol = this.handledynamicColumns(showCol);
|
|
14598
14820
|
}
|
|
@@ -14601,9 +14823,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14601
14823
|
y: 400
|
|
14602
14824
|
}, scroll), {}, {
|
|
14603
14825
|
x: restProps.overScrollX || this.getTableScrollXWidth(showCol)
|
|
14604
|
-
})
|
|
14826
|
+
})
|
|
14827
|
+
}, showSummary ? {
|
|
14605
14828
|
summary: showSummary
|
|
14606
|
-
});
|
|
14829
|
+
} : {});
|
|
14607
14830
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14608
14831
|
style: {
|
|
14609
14832
|
position: 'relative'
|
|
@@ -14631,7 +14854,9 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14631
14854
|
cell: this.ResizeableTitle
|
|
14632
14855
|
}
|
|
14633
14856
|
}
|
|
14634
|
-
}, otherTableInfo)))
|
|
14857
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14858
|
+
summary: summary
|
|
14859
|
+
})));
|
|
14635
14860
|
}
|
|
14636
14861
|
}]);
|
|
14637
14862
|
}(React$1.Component);
|
|
@@ -14689,20 +14914,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14689
14914
|
};
|
|
14690
14915
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14691
14916
|
var routerMap = {};
|
|
14692
|
-
var
|
|
14917
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
14693
14918
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14694
14919
|
data.forEach(function (menuItem) {
|
|
14695
14920
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14696
14921
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14697
14922
|
});
|
|
14698
14923
|
if (newMenuItem.children) {
|
|
14699
|
-
|
|
14924
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
14700
14925
|
}
|
|
14701
14926
|
// Reduce memory usage
|
|
14702
14927
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14703
14928
|
});
|
|
14704
14929
|
};
|
|
14705
|
-
|
|
14930
|
+
_flattenMenuData2(menuData, {});
|
|
14706
14931
|
return routerMap;
|
|
14707
14932
|
};
|
|
14708
14933
|
// mode类型判断
|
|
@@ -14763,8 +14988,8 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
|
|
|
14763
14988
|
return undefined;
|
|
14764
14989
|
};
|
|
14765
14990
|
|
|
14766
|
-
var css_248z$
|
|
14767
|
-
styleInject(css_248z$
|
|
14991
|
+
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";
|
|
14992
|
+
styleInject(css_248z$d);
|
|
14768
14993
|
|
|
14769
14994
|
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";
|
|
14770
14995
|
|
|
@@ -14778,8 +15003,8 @@ var deleteIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
14778
15003
|
|
|
14779
15004
|
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";
|
|
14780
15005
|
|
|
14781
|
-
var css_248z$
|
|
14782
|
-
styleInject(css_248z$
|
|
15006
|
+
var css_248z$e = "";
|
|
15007
|
+
styleInject(css_248z$e);
|
|
14783
15008
|
|
|
14784
15009
|
var _excluded$b = ["message", "type"];
|
|
14785
15010
|
var CommonAlert = (function (props) {
|
|
@@ -15028,7 +15253,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15028
15253
|
display: 'flex',
|
|
15029
15254
|
gap: '8px'
|
|
15030
15255
|
}
|
|
15031
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
15256
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15032
15257
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15033
15258
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15034
15259
|
onClick: function onClick() {
|
|
@@ -15036,7 +15261,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15036
15261
|
},
|
|
15037
15262
|
width: 24,
|
|
15038
15263
|
src: scanning
|
|
15039
|
-
}))) : (
|
|
15264
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15040
15265
|
title: "\u5168\u5C4F"
|
|
15041
15266
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15042
15267
|
onClick: function onClick() {
|
|
@@ -15044,7 +15269,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15044
15269
|
},
|
|
15045
15270
|
width: 24,
|
|
15046
15271
|
src: quanping
|
|
15047
|
-
}))))) : null)), alertProps && (
|
|
15272
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15048
15273
|
}, function (prevProps, nextProps) {
|
|
15049
15274
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15050
15275
|
return false;
|
|
@@ -15052,8 +15277,8 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15052
15277
|
return true;
|
|
15053
15278
|
});
|
|
15054
15279
|
|
|
15055
|
-
var css_248z$
|
|
15056
|
-
styleInject(css_248z$
|
|
15280
|
+
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";
|
|
15281
|
+
styleInject(css_248z$f);
|
|
15057
15282
|
|
|
15058
15283
|
var _excluded$d = ["children"];
|
|
15059
15284
|
var index$4 = (function (props) {
|
|
@@ -15129,7 +15354,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15129
15354
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15130
15355
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15131
15356
|
}, item));
|
|
15132
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
15357
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15133
15358
|
}, function (prevProps, nextProps) {
|
|
15134
15359
|
if (prevProps.title !== nextProps.title) {
|
|
15135
15360
|
return false;
|
|
@@ -15137,8 +15362,8 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15137
15362
|
return true;
|
|
15138
15363
|
});
|
|
15139
15364
|
|
|
15140
|
-
var css_248z$
|
|
15141
|
-
styleInject(css_248z$
|
|
15365
|
+
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";
|
|
15366
|
+
styleInject(css_248z$g);
|
|
15142
15367
|
|
|
15143
15368
|
var _excluded$e = ["className", "style"];
|
|
15144
15369
|
var DragHandle$2 = SortableHandle(function () {
|
|
@@ -15769,7 +15994,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15769
15994
|
});
|
|
15770
15995
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15771
15996
|
className: 'sort_table_wrapper'
|
|
15772
|
-
}, visible && (
|
|
15997
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15773
15998
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15774
15999
|
wrapClassName: 'sort_table_wrapper',
|
|
15775
16000
|
width: 810,
|
|
@@ -15820,7 +16045,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15820
16045
|
width: 525,
|
|
15821
16046
|
height: 24
|
|
15822
16047
|
}
|
|
15823
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16048
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15824
16049
|
checked: !dataSource.some(function (item) {
|
|
15825
16050
|
if (item.hidden) return true;
|
|
15826
16051
|
return false;
|
|
@@ -15874,13 +16099,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15874
16099
|
_this2.onChange(e, item.title);
|
|
15875
16100
|
}
|
|
15876
16101
|
}, item.title);
|
|
15877
|
-
}), !!seatchDataSource.length && (
|
|
16102
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15878
16103
|
style: {
|
|
15879
16104
|
width: '144px'
|
|
15880
16105
|
}
|
|
15881
|
-
})), !seatchDataSource.length && (
|
|
16106
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15882
16107
|
className: 'sort_table_column_all_empty'
|
|
15883
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
16108
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15884
16109
|
className: 'sort_table_column_special'
|
|
15885
16110
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15886
16111
|
className: 'sort_table_column_all'
|
|
@@ -16354,7 +16579,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16354
16579
|
});
|
|
16355
16580
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16356
16581
|
className: 'sort_table_wrapper'
|
|
16357
|
-
}, visible && (
|
|
16582
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16358
16583
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16359
16584
|
wrapClassName: 'sort_table_wrapper',
|
|
16360
16585
|
width: 820,
|
|
@@ -16399,7 +16624,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16399
16624
|
style: {
|
|
16400
16625
|
width: 525
|
|
16401
16626
|
}
|
|
16402
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16627
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16403
16628
|
checked: !dataSource.some(function (item) {
|
|
16404
16629
|
if (item.hidden) return true;
|
|
16405
16630
|
return false;
|
|
@@ -16435,11 +16660,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16435
16660
|
_this2.onChange(e, item.name);
|
|
16436
16661
|
}
|
|
16437
16662
|
}, item.label);
|
|
16438
|
-
}), !!newSearchSource.length && (
|
|
16663
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16439
16664
|
style: {
|
|
16440
16665
|
width: '144px'
|
|
16441
16666
|
}
|
|
16442
|
-
})), !newSearchSource.length && (
|
|
16667
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16443
16668
|
className: 'sort_table_column_all_empty'
|
|
16444
16669
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16445
16670
|
className: 'sort_table_content_wrapper'
|
|
@@ -16497,8 +16722,8 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16497
16722
|
}]);
|
|
16498
16723
|
}(React$1.Component);
|
|
16499
16724
|
|
|
16500
|
-
var css_248z$
|
|
16501
|
-
styleInject(css_248z$
|
|
16725
|
+
var css_248z$h = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
16726
|
+
styleInject(css_248z$h);
|
|
16502
16727
|
|
|
16503
16728
|
var _excluded$g = ["onResize", "width"];
|
|
16504
16729
|
var MemoQueryTable = /*#__PURE__*/React$1.memo(QueryTable);
|
|
@@ -16507,15 +16732,117 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16507
16732
|
var onResize = props.onResize,
|
|
16508
16733
|
width = props.width,
|
|
16509
16734
|
restProps = _objectWithoutProperties(props, _excluded$g);
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16735
|
+
var _useState = useState(width),
|
|
16736
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16737
|
+
innerWidth = _useState2[0],
|
|
16738
|
+
setInnerWidth = _useState2[1];
|
|
16739
|
+
var _useState3 = useState(false),
|
|
16740
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
16741
|
+
isResizing = _useState4[0],
|
|
16742
|
+
setIsResizing = _useState4[1]; // 标记是否正在拖拽
|
|
16743
|
+
var _useState5 = useState(false),
|
|
16744
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
16745
|
+
isDragging = _useState6[0],
|
|
16746
|
+
setIsDragging = _useState6[1]; // 标记拖拽句柄是否被拖拽
|
|
16747
|
+
var _useState7 = useState(0),
|
|
16748
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
16749
|
+
startX = _useState8[0],
|
|
16750
|
+
setStartX = _useState8[1]; // 初始X坐标
|
|
16751
|
+
var markerPosition = useRef({
|
|
16752
|
+
left: 0,
|
|
16753
|
+
top: 0
|
|
16754
|
+
});
|
|
16755
|
+
var currentStart = useRef(0);
|
|
16756
|
+
var uuidref = useRef(uuid());
|
|
16757
|
+
var prevWidthRef = useRef(width);
|
|
16758
|
+
var handleMouseDown = function handleMouseDown(e) {
|
|
16759
|
+
currentStart.current = e.clientX;
|
|
16760
|
+
markerPosition.current = {
|
|
16761
|
+
left: e.clientX,
|
|
16762
|
+
top: e.clientY
|
|
16763
|
+
};
|
|
16764
|
+
setIsResizing(true);
|
|
16765
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
16766
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
16767
|
+
};
|
|
16768
|
+
var handleMouseMove = function handleMouseMove(e) {
|
|
16769
|
+
e.stopPropagation();
|
|
16770
|
+
e.preventDefault();
|
|
16771
|
+
// 更新标记位置
|
|
16772
|
+
markerPosition.current = {
|
|
16773
|
+
left: e.clientX,
|
|
16774
|
+
top: e.clientY
|
|
16775
|
+
};
|
|
16776
|
+
var dom = document.getElementById('text1');
|
|
16777
|
+
if (dom && dom.style) {
|
|
16778
|
+
dom.style.left = "".concat(e.clientX, "px");
|
|
16779
|
+
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
16780
|
+
}
|
|
16781
|
+
};
|
|
16782
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
16783
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
16784
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
16785
|
+
setIsResizing(false);
|
|
16786
|
+
};
|
|
16787
|
+
var handleresize = function handleresize(e, data, title) {
|
|
16788
|
+
var _data$size;
|
|
16789
|
+
var newWidth = (data === null || data === void 0 ? void 0 : (_data$size = data.size) === null || _data$size === void 0 ? void 0 : _data$size.width) || 0;
|
|
16790
|
+
setInnerWidth(newWidth); // 更新内部分宽度
|
|
16791
|
+
};
|
|
16792
|
+
var handleResizeStart = function handleResizeStart() {
|
|
16793
|
+
setIsResizing(true);
|
|
16794
|
+
};
|
|
16795
|
+
var handleResizeStop = function handleResizeStop(e, data) {
|
|
16796
|
+
setIsResizing(false);
|
|
16797
|
+
if (onResize) {
|
|
16798
|
+
onResize(e, data);
|
|
16799
|
+
}
|
|
16800
|
+
};
|
|
16801
|
+
useEffect(function () {
|
|
16802
|
+
if (width !== prevWidthRef.current) {
|
|
16803
|
+
prevWidthRef.current = width;
|
|
16804
|
+
setInnerWidth(width);
|
|
16805
|
+
}
|
|
16806
|
+
}, [width]);
|
|
16513
16807
|
return /*#__PURE__*/React$1.createElement(Resizable, {
|
|
16514
|
-
width:
|
|
16808
|
+
width: innerWidth,
|
|
16515
16809
|
height: 0,
|
|
16516
|
-
|
|
16810
|
+
handle: /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16811
|
+
style: {
|
|
16812
|
+
width: '10px',
|
|
16813
|
+
height: '30px',
|
|
16814
|
+
cursor: 'col-resize',
|
|
16815
|
+
position: 'absolute',
|
|
16816
|
+
zIndex: 10,
|
|
16817
|
+
top: 0,
|
|
16818
|
+
right: 0
|
|
16819
|
+
},
|
|
16820
|
+
onMouseDown: handleMouseDown
|
|
16821
|
+
}), isResizing && /*#__PURE__*/React$1.createElement("div", {
|
|
16822
|
+
id: "text1",
|
|
16823
|
+
style: {
|
|
16824
|
+
position: 'fixed',
|
|
16825
|
+
left: markerPosition.current.left,
|
|
16826
|
+
top: markerPosition.current.top - 20,
|
|
16827
|
+
backgroundColor: '#1890ff',
|
|
16828
|
+
color: 'white',
|
|
16829
|
+
borderRadius: '4px',
|
|
16830
|
+
zIndex: 9999,
|
|
16831
|
+
pointerEvents: 'none',
|
|
16832
|
+
height: '40px',
|
|
16833
|
+
width: 2
|
|
16834
|
+
}
|
|
16835
|
+
})),
|
|
16836
|
+
onResize: function onResize(e, data) {
|
|
16837
|
+
handleresize(e, data, restProps.title);
|
|
16838
|
+
},
|
|
16839
|
+
onResizeStart: handleResizeStart,
|
|
16840
|
+
onResizeStop: handleResizeStop,
|
|
16517
16841
|
draggableOpts: {
|
|
16518
|
-
enableUserSelectHack:
|
|
16842
|
+
enableUserSelectHack: true,
|
|
16843
|
+
grid: [20, 20],
|
|
16844
|
+
axis: 'x',
|
|
16845
|
+
bounds: 'parent'
|
|
16519
16846
|
}
|
|
16520
16847
|
}, /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps)));
|
|
16521
16848
|
};
|
|
@@ -16596,39 +16923,39 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16596
16923
|
return _toConsumableArray(originConfig);
|
|
16597
16924
|
};
|
|
16598
16925
|
var refs = useRef(null);
|
|
16599
|
-
var
|
|
16600
|
-
|
|
16601
|
-
pagePath =
|
|
16602
|
-
setPagePath =
|
|
16926
|
+
var _useState9 = useState(''),
|
|
16927
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
16928
|
+
pagePath = _useState10[0],
|
|
16929
|
+
setPagePath = _useState10[1];
|
|
16603
16930
|
var _useLocation = useLocation(),
|
|
16604
16931
|
pathname = _useLocation.pathname,
|
|
16605
16932
|
_useLocation$state = _useLocation.state,
|
|
16606
16933
|
state = _useLocation$state === void 0 ? {} : _useLocation$state;
|
|
16607
|
-
var
|
|
16608
|
-
|
|
16609
|
-
isFullScreen =
|
|
16610
|
-
setIsFnllScreen =
|
|
16934
|
+
var _useState11 = useState(false),
|
|
16935
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
16936
|
+
isFullScreen = _useState12[0],
|
|
16937
|
+
setIsFnllScreen = _useState12[1];
|
|
16611
16938
|
// @ts-nocheck
|
|
16612
16939
|
var value = props;
|
|
16613
16940
|
var _props$fields = props.fields,
|
|
16614
16941
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
16615
|
-
var
|
|
16616
|
-
|
|
16617
|
-
showColumn =
|
|
16618
|
-
setShowColumns =
|
|
16942
|
+
var _useState13 = useState([]),
|
|
16943
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
16944
|
+
showColumn = _useState14[0],
|
|
16945
|
+
setShowColumns = _useState14[1]; // 列字段
|
|
16619
16946
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
16620
|
-
var
|
|
16621
|
-
|
|
16622
|
-
showSearchFields =
|
|
16623
|
-
setShowSearchFields =
|
|
16624
|
-
var
|
|
16625
|
-
|
|
16626
|
-
showExportColumn =
|
|
16627
|
-
setShowExportColumns =
|
|
16628
|
-
var
|
|
16629
|
-
|
|
16630
|
-
height =
|
|
16631
|
-
setHeight =
|
|
16947
|
+
var _useState15 = useState(originSearchFields),
|
|
16948
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
16949
|
+
showSearchFields = _useState16[0],
|
|
16950
|
+
setShowSearchFields = _useState16[1]; //搜索项字段
|
|
16951
|
+
var _useState17 = useState([]),
|
|
16952
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
16953
|
+
showExportColumn = _useState18[0],
|
|
16954
|
+
setShowExportColumns = _useState18[1]; // 导出列字段
|
|
16955
|
+
var _useState19 = useState(''),
|
|
16956
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
16957
|
+
height = _useState20[0],
|
|
16958
|
+
setHeight = _useState20[1];
|
|
16632
16959
|
var sortTableRef = useRef(null);
|
|
16633
16960
|
var searchTableRef = useRef(null);
|
|
16634
16961
|
var exportTableRef = useRef(null);
|
|
@@ -16865,7 +17192,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16865
17192
|
actionsRender = actionsRender.concat([{
|
|
16866
17193
|
type: 'text',
|
|
16867
17194
|
props: {
|
|
16868
|
-
children: (
|
|
17195
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16869
17196
|
request: {
|
|
16870
17197
|
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),
|
|
16871
17198
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17111,7 +17438,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17111
17438
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17112
17439
|
bsTableCode: bsTableCode,
|
|
17113
17440
|
onlyModal: true
|
|
17114
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
17441
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
17115
17442
|
ref: exportTableRef,
|
|
17116
17443
|
setShowColumns: setShowExportColumns,
|
|
17117
17444
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17122,8 +17449,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17122
17449
|
})));
|
|
17123
17450
|
});
|
|
17124
17451
|
|
|
17125
|
-
var css_248z$
|
|
17126
|
-
styleInject(css_248z$
|
|
17452
|
+
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";
|
|
17453
|
+
styleInject(css_248z$i);
|
|
17127
17454
|
|
|
17128
17455
|
var cache = {};
|
|
17129
17456
|
var cacheLimit = 10000;
|
|
@@ -17204,11 +17531,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17204
17531
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17205
17532
|
var resultList = [];
|
|
17206
17533
|
var newRouter = cloneDeep(router);
|
|
17207
|
-
var
|
|
17534
|
+
var _deep = function deep(router) {
|
|
17208
17535
|
if (router && Array.isArray(router)) {
|
|
17209
17536
|
router.forEach(function (item) {
|
|
17210
17537
|
if (item.children && Array.isArray(item.children)) {
|
|
17211
|
-
|
|
17538
|
+
_deep(item.children);
|
|
17212
17539
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17213
17540
|
return d === item.code;
|
|
17214
17541
|
})) {
|
|
@@ -17222,10 +17549,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17222
17549
|
resultList.push(_objectSpread2({}, router));
|
|
17223
17550
|
}
|
|
17224
17551
|
};
|
|
17225
|
-
|
|
17552
|
+
_deep(newRouter);
|
|
17226
17553
|
callBack([].concat(resultList));
|
|
17227
17554
|
};
|
|
17228
|
-
var
|
|
17555
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17229
17556
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17230
17557
|
var _loop = function _loop(i) {
|
|
17231
17558
|
if (routesData[i].hideInMenu) {
|
|
@@ -17239,7 +17566,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17239
17566
|
return 0; // continue
|
|
17240
17567
|
}
|
|
17241
17568
|
if (routesData[i].children) {
|
|
17242
|
-
|
|
17569
|
+
_setMenuTreeData(routesData[i].children);
|
|
17243
17570
|
}
|
|
17244
17571
|
},
|
|
17245
17572
|
_ret;
|
|
@@ -17260,16 +17587,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17260
17587
|
};
|
|
17261
17588
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17262
17589
|
var routerMap = {};
|
|
17263
|
-
var
|
|
17590
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
17264
17591
|
data.forEach(function (menuItem) {
|
|
17265
17592
|
if (menuItem.children) {
|
|
17266
|
-
|
|
17593
|
+
_flattenMenuData(menuItem.children);
|
|
17267
17594
|
}
|
|
17268
17595
|
// Reduce memory usage
|
|
17269
17596
|
routerMap[menuItem.path] = menuItem;
|
|
17270
17597
|
});
|
|
17271
17598
|
};
|
|
17272
|
-
|
|
17599
|
+
_flattenMenuData(menuData);
|
|
17273
17600
|
return routerMap;
|
|
17274
17601
|
};
|
|
17275
17602
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17379,8 +17706,8 @@ var AllFunc = function AllFunc(props) {
|
|
|
17379
17706
|
})))));
|
|
17380
17707
|
};
|
|
17381
17708
|
|
|
17382
|
-
var css_248z$
|
|
17383
|
-
styleInject(css_248z$
|
|
17709
|
+
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";
|
|
17710
|
+
styleInject(css_248z$j);
|
|
17384
17711
|
|
|
17385
17712
|
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";
|
|
17386
17713
|
|
|
@@ -17415,7 +17742,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17415
17742
|
sethomepageData(homepageDataList);
|
|
17416
17743
|
setroutesData(routesDataList);
|
|
17417
17744
|
}, []);
|
|
17418
|
-
var
|
|
17745
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
17419
17746
|
if (!child.hideInMenu && child.children) {
|
|
17420
17747
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17421
17748
|
style: {
|
|
@@ -17425,7 +17752,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17425
17752
|
}, formatMessage({
|
|
17426
17753
|
id: "".concat(child.locale)
|
|
17427
17754
|
})), child.children.map(function (menuItem) {
|
|
17428
|
-
return
|
|
17755
|
+
return _renderChildItem(menuItem);
|
|
17429
17756
|
}));
|
|
17430
17757
|
} else if (!child.hideInMenu && child.path) {
|
|
17431
17758
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17460,7 +17787,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17460
17787
|
className: 'drawerWarp'
|
|
17461
17788
|
}, homepageData && homepageData.filter(function (d) {
|
|
17462
17789
|
return !d.hideInMenu;
|
|
17463
|
-
}).length > 0 && (
|
|
17790
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17464
17791
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17465
17792
|
dataSource: homepageData,
|
|
17466
17793
|
renderItem: function renderItem(child) {
|
|
@@ -17495,7 +17822,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17495
17822
|
bordered: true,
|
|
17496
17823
|
dataSource: item.children,
|
|
17497
17824
|
renderItem: function renderItem(child) {
|
|
17498
|
-
return
|
|
17825
|
+
return _renderChildItem(child);
|
|
17499
17826
|
}
|
|
17500
17827
|
});
|
|
17501
17828
|
})));
|
|
@@ -17555,7 +17882,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17555
17882
|
src: allfunc
|
|
17556
17883
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17557
17884
|
className: 'btnSpan2'
|
|
17558
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
17885
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17559
17886
|
style: {
|
|
17560
17887
|
left: isDrawer ? 140 : 0,
|
|
17561
17888
|
top: 50
|
|
@@ -17588,8 +17915,8 @@ var i18n = {
|
|
|
17588
17915
|
}
|
|
17589
17916
|
};
|
|
17590
17917
|
|
|
17591
|
-
var css_248z$
|
|
17592
|
-
styleInject(css_248z$
|
|
17918
|
+
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";
|
|
17919
|
+
styleInject(css_248z$k);
|
|
17593
17920
|
|
|
17594
17921
|
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";
|
|
17595
17922
|
|
|
@@ -17601,7 +17928,7 @@ function outLogin(_x) {
|
|
|
17601
17928
|
return _outLogin.apply(this, arguments);
|
|
17602
17929
|
}
|
|
17603
17930
|
function _outLogin() {
|
|
17604
|
-
_outLogin = _asyncToGenerator(
|
|
17931
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17605
17932
|
var res;
|
|
17606
17933
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17607
17934
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17743,7 +18070,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17743
18070
|
});
|
|
17744
18071
|
};
|
|
17745
18072
|
var loginOut = /*#__PURE__*/function () {
|
|
17746
|
-
var _ref2 = _asyncToGenerator(
|
|
18073
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17747
18074
|
var sessionId;
|
|
17748
18075
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17749
18076
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17847,7 +18174,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17847
18174
|
marginRight: '0px'
|
|
17848
18175
|
},
|
|
17849
18176
|
src: './xialajiantou-new.svg'
|
|
17850
|
-
}))))), loginModalParams.visible && (
|
|
18177
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17851
18178
|
};
|
|
17852
18179
|
|
|
17853
18180
|
// -- 查询店铺 --
|
|
@@ -17855,7 +18182,7 @@ function getStoreByName(_x) {
|
|
|
17855
18182
|
return _getStoreByName.apply(this, arguments);
|
|
17856
18183
|
}
|
|
17857
18184
|
function _getStoreByName() {
|
|
17858
|
-
_getStoreByName = _asyncToGenerator(
|
|
18185
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17859
18186
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17860
18187
|
while (1) switch (_context.prev = _context.next) {
|
|
17861
18188
|
case 0:
|
|
@@ -17923,7 +18250,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17923
18250
|
return _fetchUserList.apply(this, arguments);
|
|
17924
18251
|
}
|
|
17925
18252
|
function _fetchUserList() {
|
|
17926
|
-
_fetchUserList = _asyncToGenerator(
|
|
18253
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17927
18254
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17928
18255
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17929
18256
|
case 0:
|
|
@@ -17971,7 +18298,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17971
18298
|
return debounce$1(loadOptions, debounceTimeout);
|
|
17972
18299
|
}, [debounceTimeout, key]);
|
|
17973
18300
|
var changeInput = /*#__PURE__*/function () {
|
|
17974
|
-
var _ref = _asyncToGenerator(
|
|
18301
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17975
18302
|
var res;
|
|
17976
18303
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17977
18304
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17993,7 +18320,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17993
18320
|
};
|
|
17994
18321
|
}();
|
|
17995
18322
|
useEffect(function () {
|
|
17996
|
-
_asyncToGenerator(
|
|
18323
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17997
18324
|
var res;
|
|
17998
18325
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17999
18326
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18119,8 +18446,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18119
18446
|
}))))));
|
|
18120
18447
|
};
|
|
18121
18448
|
|
|
18122
|
-
var css_248z$
|
|
18123
|
-
styleInject(css_248z$
|
|
18449
|
+
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";
|
|
18450
|
+
styleInject(css_248z$l);
|
|
18124
18451
|
|
|
18125
18452
|
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
18126
18453
|
if (value == null || value == undefined || String(value).trim() == '') {
|
|
@@ -18158,7 +18485,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18158
18485
|
var resultList = [];
|
|
18159
18486
|
var newRouter = cloneDeep$1(router);
|
|
18160
18487
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18161
|
-
var
|
|
18488
|
+
var _deep = function deep(router) {
|
|
18162
18489
|
if (router && Array.isArray(router)) {
|
|
18163
18490
|
router.forEach(function (item) {
|
|
18164
18491
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18168,7 +18495,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18168
18495
|
d.nameEdit = true;
|
|
18169
18496
|
}
|
|
18170
18497
|
});
|
|
18171
|
-
|
|
18498
|
+
_deep(item.routes);
|
|
18172
18499
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
18173
18500
|
id: "menu.".concat(item.name)
|
|
18174
18501
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18187,7 +18514,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18187
18514
|
}));
|
|
18188
18515
|
}
|
|
18189
18516
|
};
|
|
18190
|
-
|
|
18517
|
+
_deep(newRouter);
|
|
18191
18518
|
setroutesData([].concat(resultList));
|
|
18192
18519
|
};
|
|
18193
18520
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18269,22 +18596,22 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18269
18596
|
},
|
|
18270
18597
|
title: item.fullPathName
|
|
18271
18598
|
}, renderLineStyl(item.fullPathName));
|
|
18272
|
-
}))))), showSelectStore && (
|
|
18599
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18273
18600
|
employeeCode: employeeCode
|
|
18274
18601
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18275
18602
|
};
|
|
18276
18603
|
|
|
18277
18604
|
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";
|
|
18278
18605
|
|
|
18279
|
-
var css_248z$
|
|
18280
|
-
styleInject(css_248z$
|
|
18606
|
+
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";
|
|
18607
|
+
styleInject(css_248z$m);
|
|
18281
18608
|
|
|
18282
18609
|
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";
|
|
18283
18610
|
|
|
18284
18611
|
var TreeNode = Tree.TreeNode;
|
|
18285
18612
|
var Search$2 = Input.Search;
|
|
18286
18613
|
var dataList = [];
|
|
18287
|
-
var
|
|
18614
|
+
var _generateList = function generateList(data) {
|
|
18288
18615
|
for (var i = 0; i < data.length; i++) {
|
|
18289
18616
|
var node = data[i];
|
|
18290
18617
|
var path = node.path,
|
|
@@ -18294,11 +18621,11 @@ var generateList = function generateList(data) {
|
|
|
18294
18621
|
name: name
|
|
18295
18622
|
});
|
|
18296
18623
|
if (node.children) {
|
|
18297
|
-
|
|
18624
|
+
_generateList(node.children);
|
|
18298
18625
|
}
|
|
18299
18626
|
}
|
|
18300
18627
|
};
|
|
18301
|
-
var
|
|
18628
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
18302
18629
|
var parentKey;
|
|
18303
18630
|
for (var i = 0; i < tree.length; i++) {
|
|
18304
18631
|
var node = tree[i];
|
|
@@ -18307,8 +18634,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
18307
18634
|
return item.path === path;
|
|
18308
18635
|
})) {
|
|
18309
18636
|
parentKey = node.path;
|
|
18310
|
-
} else if (
|
|
18311
|
-
parentKey =
|
|
18637
|
+
} else if (_getParentKey(path, node.children)) {
|
|
18638
|
+
parentKey = _getParentKey(path, node.children);
|
|
18312
18639
|
}
|
|
18313
18640
|
}
|
|
18314
18641
|
}
|
|
@@ -18339,7 +18666,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18339
18666
|
var treeData = _this.state.treeData;
|
|
18340
18667
|
var expandedKeys = dataList.map(function (item) {
|
|
18341
18668
|
if (item.name.indexOf(value) > -1) {
|
|
18342
|
-
return
|
|
18669
|
+
return _getParentKey(item.path, treeData);
|
|
18343
18670
|
}
|
|
18344
18671
|
return null;
|
|
18345
18672
|
}).filter(function (item, i, self) {
|
|
@@ -18353,22 +18680,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18353
18680
|
};
|
|
18354
18681
|
_this.getPathList = function (originData) {
|
|
18355
18682
|
var pathList = [];
|
|
18356
|
-
var
|
|
18683
|
+
var _getList = function getList(data) {
|
|
18357
18684
|
if (Array.isArray(data)) {
|
|
18358
18685
|
data.forEach(function (item) {
|
|
18359
18686
|
pathList.push(item.path);
|
|
18360
18687
|
if (item.children) {
|
|
18361
|
-
|
|
18688
|
+
_getList(item.children);
|
|
18362
18689
|
}
|
|
18363
18690
|
});
|
|
18364
18691
|
} else {
|
|
18365
18692
|
pathList.push(data.path);
|
|
18366
18693
|
if (data.children) {
|
|
18367
|
-
|
|
18694
|
+
_getList(data.children);
|
|
18368
18695
|
}
|
|
18369
18696
|
}
|
|
18370
18697
|
};
|
|
18371
|
-
|
|
18698
|
+
_getList(originData);
|
|
18372
18699
|
return pathList;
|
|
18373
18700
|
};
|
|
18374
18701
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18377,18 +18704,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18377
18704
|
customerMenuData = _this$props.customerMenuData,
|
|
18378
18705
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18379
18706
|
var filterItem;
|
|
18380
|
-
var
|
|
18707
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
18381
18708
|
menuData.forEach(function (item) {
|
|
18382
18709
|
if (item.path === path) {
|
|
18383
18710
|
filterItem = _objectSpread2({}, item);
|
|
18384
18711
|
return;
|
|
18385
18712
|
}
|
|
18386
18713
|
if (item.children) {
|
|
18387
|
-
|
|
18714
|
+
_filterMenuItem(item.children);
|
|
18388
18715
|
}
|
|
18389
18716
|
});
|
|
18390
18717
|
};
|
|
18391
|
-
|
|
18718
|
+
_filterMenuItem(treeData);
|
|
18392
18719
|
var addPathList = _this.getPathList(filterItem);
|
|
18393
18720
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18394
18721
|
var isRepet = false;
|
|
@@ -18418,8 +18745,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18418
18745
|
return item.path === '/';
|
|
18419
18746
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18420
18747
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18421
|
-
|
|
18422
|
-
|
|
18748
|
+
_setMenuTreeData(routesData);
|
|
18749
|
+
_generateList(routesData);
|
|
18423
18750
|
this.setState({
|
|
18424
18751
|
treeData: routesData
|
|
18425
18752
|
});
|
|
@@ -18433,16 +18760,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18433
18760
|
expandedKeys = _this$state.expandedKeys,
|
|
18434
18761
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18435
18762
|
treeData = _this$state.treeData;
|
|
18436
|
-
var
|
|
18763
|
+
var _loop = function loop(data) {
|
|
18437
18764
|
return data.map(function (item) {
|
|
18438
18765
|
var index = item.name.indexOf(searchValue);
|
|
18439
18766
|
var beforeStr = item.name.substr(0, index);
|
|
18440
18767
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18441
|
-
var name = index > -1 ? (
|
|
18768
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18442
18769
|
style: {
|
|
18443
18770
|
color: '#f50'
|
|
18444
18771
|
}
|
|
18445
|
-
}, searchValue), afterStr)) : (
|
|
18772
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18446
18773
|
if (item.children && item.children.length) {
|
|
18447
18774
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18448
18775
|
path: item.path,
|
|
@@ -18464,7 +18791,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18464
18791
|
width: 18,
|
|
18465
18792
|
src: arrowRight
|
|
18466
18793
|
}))))
|
|
18467
|
-
},
|
|
18794
|
+
}, _loop(item.children));
|
|
18468
18795
|
}
|
|
18469
18796
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18470
18797
|
path: item.path,
|
|
@@ -18514,7 +18841,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18514
18841
|
onExpand: this.onExpand,
|
|
18515
18842
|
expandedKeys: expandedKeys,
|
|
18516
18843
|
autoExpandParent: autoExpandParent
|
|
18517
|
-
},
|
|
18844
|
+
}, _loop(treeData))));
|
|
18518
18845
|
}
|
|
18519
18846
|
}]);
|
|
18520
18847
|
}(React$1.Component);
|
|
@@ -18547,24 +18874,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18547
18874
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18548
18875
|
var dragObj;
|
|
18549
18876
|
var finalDropItem;
|
|
18550
|
-
var
|
|
18877
|
+
var _loop = function loop(data, path, callback) {
|
|
18551
18878
|
for (var i = 0; i < data.length; i++) {
|
|
18552
18879
|
if (data[i].path === path) {
|
|
18553
18880
|
return callback(data[i], i, data);
|
|
18554
18881
|
}
|
|
18555
18882
|
if (data[i].children) {
|
|
18556
|
-
|
|
18883
|
+
_loop(data[i].children, path, callback);
|
|
18557
18884
|
}
|
|
18558
18885
|
}
|
|
18559
18886
|
};
|
|
18560
18887
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18561
|
-
|
|
18888
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
18562
18889
|
arr.splice(index, 1);
|
|
18563
18890
|
dragObj = item;
|
|
18564
18891
|
});
|
|
18565
18892
|
if (!info.dropToGap) {
|
|
18566
18893
|
// Drop on the content
|
|
18567
|
-
|
|
18894
|
+
_loop(data, dropKey, function (item) {
|
|
18568
18895
|
item.children = item.children || [];
|
|
18569
18896
|
item.children.unshift(dragObj);
|
|
18570
18897
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18575,7 +18902,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18575
18902
|
// Is expanded
|
|
18576
18903
|
dropPosition === 1 // On the bottom gap
|
|
18577
18904
|
) {
|
|
18578
|
-
|
|
18905
|
+
_loop(data, dropKey, function (item) {
|
|
18579
18906
|
item.children = item.children || [];
|
|
18580
18907
|
item.children.unshift(dragObj);
|
|
18581
18908
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18583,7 +18910,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18583
18910
|
} else {
|
|
18584
18911
|
var ar;
|
|
18585
18912
|
var i;
|
|
18586
|
-
|
|
18913
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
18587
18914
|
ar = arr;
|
|
18588
18915
|
i = index;
|
|
18589
18916
|
});
|
|
@@ -18622,17 +18949,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18622
18949
|
title: '编辑名称',
|
|
18623
18950
|
callBack: function callBack(newName) {
|
|
18624
18951
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18625
|
-
var
|
|
18952
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18626
18953
|
oldTreeData.forEach(function (treeItem) {
|
|
18627
18954
|
if (treeItem.path === item.path) {
|
|
18628
18955
|
treeItem.name = newName;
|
|
18629
18956
|
}
|
|
18630
18957
|
if (treeItem.children) {
|
|
18631
|
-
|
|
18958
|
+
_editTreeDataName(treeItem.children);
|
|
18632
18959
|
}
|
|
18633
18960
|
});
|
|
18634
18961
|
};
|
|
18635
|
-
|
|
18962
|
+
_editTreeDataName(oldTreeData);
|
|
18636
18963
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18637
18964
|
_this.setState({
|
|
18638
18965
|
modalInfo: {
|
|
@@ -18677,7 +19004,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18677
19004
|
title: '新增子目录',
|
|
18678
19005
|
callBack: function callBack(newName) {
|
|
18679
19006
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18680
|
-
var
|
|
19007
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
18681
19008
|
oldTreeData.forEach(function (treeItem) {
|
|
18682
19009
|
if (treeItem.path === item.path) {
|
|
18683
19010
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18689,11 +19016,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18689
19016
|
}];
|
|
18690
19017
|
}
|
|
18691
19018
|
if (treeItem.children) {
|
|
18692
|
-
|
|
19019
|
+
_addChildFolder(treeItem.children);
|
|
18693
19020
|
}
|
|
18694
19021
|
});
|
|
18695
19022
|
};
|
|
18696
|
-
|
|
19023
|
+
_addChildFolder(oldTreeData);
|
|
18697
19024
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18698
19025
|
_this.setState({
|
|
18699
19026
|
modalInfo: {
|
|
@@ -18752,7 +19079,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18752
19079
|
var _this$state = this.state,
|
|
18753
19080
|
modalInfo = _this$state.modalInfo,
|
|
18754
19081
|
checkedKeys = _this$state.checkedKeys;
|
|
18755
|
-
var
|
|
19082
|
+
var _loop2 = function loop(data) {
|
|
18756
19083
|
return data.map(function (item) {
|
|
18757
19084
|
if (item.children && item.children.length) {
|
|
18758
19085
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -18769,7 +19096,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18769
19096
|
e.stopPropagation();
|
|
18770
19097
|
}
|
|
18771
19098
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
18772
|
-
},
|
|
19099
|
+
}, _loop2(item.children));
|
|
18773
19100
|
}
|
|
18774
19101
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
18775
19102
|
path: item.path,
|
|
@@ -18848,7 +19175,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18848
19175
|
children: 'children'
|
|
18849
19176
|
},
|
|
18850
19177
|
onDrop: this.onDrop
|
|
18851
|
-
},
|
|
19178
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
18852
19179
|
width: 600,
|
|
18853
19180
|
bodyStyle: {
|
|
18854
19181
|
paddingTop: '32px',
|
|
@@ -18904,8 +19231,8 @@ var MenuSetting = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18904
19231
|
}));
|
|
18905
19232
|
});
|
|
18906
19233
|
|
|
18907
|
-
var css_248z$
|
|
18908
|
-
styleInject(css_248z$
|
|
19234
|
+
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";
|
|
19235
|
+
styleInject(css_248z$n);
|
|
18909
19236
|
|
|
18910
19237
|
var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
18911
19238
|
var isCollapse = _ref.isCollapse,
|
|
@@ -18961,7 +19288,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18961
19288
|
pathname: item.path
|
|
18962
19289
|
});
|
|
18963
19290
|
};
|
|
18964
|
-
var
|
|
19291
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
18965
19292
|
return menuData.map(function (item) {
|
|
18966
19293
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18967
19294
|
style: {
|
|
@@ -18976,7 +19303,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18976
19303
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18977
19304
|
paddingLeft: '4px'
|
|
18978
19305
|
}
|
|
18979
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19306
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
18980
19307
|
});
|
|
18981
19308
|
};
|
|
18982
19309
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19002,7 +19329,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19002
19329
|
style: {
|
|
19003
19330
|
paddingLeft: '5px'
|
|
19004
19331
|
}
|
|
19005
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
19332
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19006
19333
|
style: {
|
|
19007
19334
|
left: isDrawer ? 140 : 0
|
|
19008
19335
|
},
|
|
@@ -19023,7 +19350,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19023
19350
|
visible: isDrawer
|
|
19024
19351
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19025
19352
|
className: 'menu_title_line'
|
|
19026
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19353
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19027
19354
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19028
19355
|
style: {
|
|
19029
19356
|
fontWeight: '600',
|
|
@@ -19041,8 +19368,8 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19041
19368
|
})));
|
|
19042
19369
|
});
|
|
19043
19370
|
|
|
19044
|
-
var css_248z$
|
|
19045
|
-
styleInject(css_248z$
|
|
19371
|
+
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";
|
|
19372
|
+
styleInject(css_248z$o);
|
|
19046
19373
|
|
|
19047
19374
|
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=";
|
|
19048
19375
|
|
|
@@ -19097,7 +19424,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19097
19424
|
return item.path === '/';
|
|
19098
19425
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19099
19426
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19100
|
-
|
|
19427
|
+
_setMenuTreeData(routesData);
|
|
19101
19428
|
routesData.forEach(function (item) {
|
|
19102
19429
|
if (item.children) {
|
|
19103
19430
|
routesDataList.push(item);
|
|
@@ -19127,7 +19454,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19127
19454
|
setHeight(clientHeight - 190);
|
|
19128
19455
|
setDrawHeight(clientHeight - 70);
|
|
19129
19456
|
};
|
|
19130
|
-
var
|
|
19457
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
19131
19458
|
if (!child.hideInMenu && child.children) {
|
|
19132
19459
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19133
19460
|
style: {
|
|
@@ -19137,7 +19464,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19137
19464
|
}, formatMessage({
|
|
19138
19465
|
id: "".concat(child.locale)
|
|
19139
19466
|
})), child.children.map(function (menuItem) {
|
|
19140
|
-
return
|
|
19467
|
+
return _renderChildItem(menuItem);
|
|
19141
19468
|
}));
|
|
19142
19469
|
} else if (!child.hideInMenu && child.path) {
|
|
19143
19470
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19279,7 +19606,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19279
19606
|
onMenuClick(e, item);
|
|
19280
19607
|
}
|
|
19281
19608
|
}, item.name);
|
|
19282
|
-
}))), !!SearhData.length ? (
|
|
19609
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19283
19610
|
className: 'search_menu_content'
|
|
19284
19611
|
}, SearhData.map(function (item) {
|
|
19285
19612
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19288,7 +19615,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19288
19615
|
},
|
|
19289
19616
|
key: item.path
|
|
19290
19617
|
}, item.name);
|
|
19291
|
-
}))) : (
|
|
19618
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19292
19619
|
style: {
|
|
19293
19620
|
height: "".concat(rightMenuHeight, "px"),
|
|
19294
19621
|
overflowY: 'scroll',
|
|
@@ -19300,7 +19627,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19300
19627
|
className: 'drawerWarp_right'
|
|
19301
19628
|
}, homepageData && homepageData.filter(function (d) {
|
|
19302
19629
|
return !d.hideInMenu;
|
|
19303
|
-
}).length > 0 && (
|
|
19630
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19304
19631
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19305
19632
|
dataSource: homepageData,
|
|
19306
19633
|
renderItem: function renderItem(child) {
|
|
@@ -19341,7 +19668,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19341
19668
|
bordered: true,
|
|
19342
19669
|
dataSource: item.children,
|
|
19343
19670
|
renderItem: function renderItem(child) {
|
|
19344
|
-
return
|
|
19671
|
+
return _renderChildItem(child);
|
|
19345
19672
|
}
|
|
19346
19673
|
});
|
|
19347
19674
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19457,8 +19784,8 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
19457
19784
|
})));
|
|
19458
19785
|
};
|
|
19459
19786
|
|
|
19460
|
-
var css_248z$
|
|
19461
|
-
styleInject(css_248z$
|
|
19787
|
+
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";
|
|
19788
|
+
styleInject(css_248z$p);
|
|
19462
19789
|
|
|
19463
19790
|
/*
|
|
19464
19791
|
* @Date: 2022-04-01 15:42:51
|
|
@@ -19499,10 +19826,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19499
19826
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19500
19827
|
var menuKeys = [];
|
|
19501
19828
|
var docsId = [];
|
|
19502
|
-
var
|
|
19829
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19503
19830
|
data.forEach(function (item) {
|
|
19504
19831
|
if (item.children && item.children.length > 0) {
|
|
19505
|
-
|
|
19832
|
+
_getLimitedMenuKeys(item.children);
|
|
19506
19833
|
} else {
|
|
19507
19834
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19508
19835
|
menuKeys.push(originPath);
|
|
@@ -19513,7 +19840,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19513
19840
|
});
|
|
19514
19841
|
};
|
|
19515
19842
|
try {
|
|
19516
|
-
|
|
19843
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
19517
19844
|
} catch (e) {}
|
|
19518
19845
|
return {
|
|
19519
19846
|
menuKeys: menuKeys,
|
|
@@ -19747,10 +20074,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19747
20074
|
return (node.path || '').includes('all-general-documents');
|
|
19748
20075
|
};
|
|
19749
20076
|
// 递归获取树列表
|
|
19750
|
-
var
|
|
20077
|
+
var _getTreeList = function getTreeList(data) {
|
|
19751
20078
|
data.forEach(function (node) {
|
|
19752
20079
|
if (node.routes && node.routes.length > 0) {
|
|
19753
|
-
|
|
20080
|
+
_getTreeList(node.routes);
|
|
19754
20081
|
return;
|
|
19755
20082
|
}
|
|
19756
20083
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19781,7 +20108,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19781
20108
|
}
|
|
19782
20109
|
});
|
|
19783
20110
|
};
|
|
19784
|
-
|
|
20111
|
+
_getTreeList(treeData);
|
|
19785
20112
|
return treeList;
|
|
19786
20113
|
};
|
|
19787
20114
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20410,7 +20737,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20410
20737
|
updateState = _ref8.updateState;
|
|
20411
20738
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20412
20739
|
className: "tab_title_content"
|
|
20413
|
-
}, item.tab, item.key !== '/' && (
|
|
20740
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20414
20741
|
info: item,
|
|
20415
20742
|
operateFun: _this3.operateFun,
|
|
20416
20743
|
listenRouterState: listenRouterState
|
|
@@ -20546,7 +20873,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20546
20873
|
};
|
|
20547
20874
|
}
|
|
20548
20875
|
var OperationsSlot = {
|
|
20549
|
-
left: (
|
|
20876
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20550
20877
|
className: 'tab_left_operate'
|
|
20551
20878
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20552
20879
|
onClick: function onClick() {
|
|
@@ -20562,7 +20889,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20562
20889
|
_this3.setTabNavTransLate(-100);
|
|
20563
20890
|
}
|
|
20564
20891
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20565
|
-
right: (
|
|
20892
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20566
20893
|
style: {
|
|
20567
20894
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20568
20895
|
},
|
|
@@ -20660,7 +20987,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20660
20987
|
onMouseLeave: function onMouseLeave() {
|
|
20661
20988
|
_this3.setShowMenu(false);
|
|
20662
20989
|
}
|
|
20663
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
20990
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20664
20991
|
style: {
|
|
20665
20992
|
position: 'absolute',
|
|
20666
20993
|
top: '14px',
|
|
@@ -20679,7 +21006,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20679
21006
|
postMenuData: function postMenuData(menus) {
|
|
20680
21007
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20681
21008
|
},
|
|
20682
|
-
links: [!this.state.collapse ? (
|
|
21009
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20683
21010
|
ref: this.allFunc,
|
|
20684
21011
|
itemPath: itemPath,
|
|
20685
21012
|
handleClose: this.handleClose,
|
|
@@ -20697,7 +21024,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20697
21024
|
},
|
|
20698
21025
|
menu: {
|
|
20699
21026
|
request: function () {
|
|
20700
|
-
var _request = _asyncToGenerator(
|
|
21027
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20701
21028
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20702
21029
|
while (1) switch (_context.prev = _context.next) {
|
|
20703
21030
|
case 0:
|
|
@@ -20832,7 +21159,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20832
21159
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20833
21160
|
timeFormat = _this$props4.timeFormat,
|
|
20834
21161
|
transparentProps = _this$props4.transparentProps;
|
|
20835
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
21162
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
20836
21163
|
getDictionarySource: getDictionarySource,
|
|
20837
21164
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20838
21165
|
timeFormat: timeFormat
|
|
@@ -20856,12 +21183,12 @@ var index$5 = (function (props) {
|
|
|
20856
21183
|
});
|
|
20857
21184
|
|
|
20858
21185
|
// @ts-nocheck
|
|
20859
|
-
var
|
|
21186
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
20860
21187
|
var result = [];
|
|
20861
21188
|
columns.forEach(function (column) {
|
|
20862
21189
|
if (column.children) {
|
|
20863
21190
|
result.push(column);
|
|
20864
|
-
result.push.apply(result,
|
|
21191
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
20865
21192
|
} else {
|
|
20866
21193
|
result.push(column);
|
|
20867
21194
|
}
|
|
@@ -20870,7 +21197,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
20870
21197
|
};
|
|
20871
21198
|
var convertToRows = function convertToRows(originColumns) {
|
|
20872
21199
|
var maxLevel = 1;
|
|
20873
|
-
var
|
|
21200
|
+
var _traverse = function traverse(column, parent) {
|
|
20874
21201
|
if (parent) {
|
|
20875
21202
|
column.level = parent.level + 1;
|
|
20876
21203
|
if (maxLevel < column.level) {
|
|
@@ -20880,7 +21207,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20880
21207
|
if (column.children) {
|
|
20881
21208
|
var colSpan = 0;
|
|
20882
21209
|
column.children.forEach(function (subColumn) {
|
|
20883
|
-
|
|
21210
|
+
_traverse(subColumn, column);
|
|
20884
21211
|
colSpan += subColumn.colSpan;
|
|
20885
21212
|
});
|
|
20886
21213
|
column.colSpan = colSpan;
|
|
@@ -20890,13 +21217,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20890
21217
|
};
|
|
20891
21218
|
originColumns.forEach(function (column) {
|
|
20892
21219
|
column.level = 1;
|
|
20893
|
-
|
|
21220
|
+
_traverse(column);
|
|
20894
21221
|
});
|
|
20895
21222
|
var rows = [];
|
|
20896
21223
|
for (var i = 0; i < maxLevel; i++) {
|
|
20897
21224
|
rows.push([]);
|
|
20898
21225
|
}
|
|
20899
|
-
var allColumns =
|
|
21226
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20900
21227
|
allColumns.forEach(function (column) {
|
|
20901
21228
|
if (!column.children) {
|
|
20902
21229
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20936,7 +21263,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20936
21263
|
};
|
|
20937
21264
|
var headersToRows = function headersToRows(originColumns) {
|
|
20938
21265
|
var maxLevel = 1;
|
|
20939
|
-
var
|
|
21266
|
+
var _traverse2 = function traverse(column, parent) {
|
|
20940
21267
|
if (parent) {
|
|
20941
21268
|
//计算当前元素属于第几个层级
|
|
20942
21269
|
column.level = parent.level + 1;
|
|
@@ -20949,7 +21276,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20949
21276
|
var colSpan = 0;
|
|
20950
21277
|
column.children.forEach(function (subColumn) {
|
|
20951
21278
|
//进行递归
|
|
20952
|
-
|
|
21279
|
+
_traverse2(subColumn, column);
|
|
20953
21280
|
colSpan += subColumn.colSpan;
|
|
20954
21281
|
});
|
|
20955
21282
|
column.colSpan = colSpan;
|
|
@@ -20959,14 +21286,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20959
21286
|
};
|
|
20960
21287
|
originColumns.forEach(function (column) {
|
|
20961
21288
|
column.level = 1;
|
|
20962
|
-
|
|
21289
|
+
_traverse2(column);
|
|
20963
21290
|
});
|
|
20964
21291
|
var rows = [];
|
|
20965
21292
|
var lastData = [];
|
|
20966
21293
|
for (var i = 0; i < maxLevel; i++) {
|
|
20967
21294
|
rows.push([]);
|
|
20968
21295
|
}
|
|
20969
|
-
var allColumns =
|
|
21296
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20970
21297
|
allColumns.forEach(function (column) {
|
|
20971
21298
|
if (!column.children) {
|
|
20972
21299
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20982,8 +21309,8 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20982
21309
|
};
|
|
20983
21310
|
};
|
|
20984
21311
|
|
|
20985
|
-
var css_248z$
|
|
20986
|
-
styleInject(css_248z$
|
|
21312
|
+
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";
|
|
21313
|
+
styleInject(css_248z$q);
|
|
20987
21314
|
|
|
20988
21315
|
var useSticky = function useSticky(sticky) {
|
|
20989
21316
|
var _ref = _typeof(sticky) === 'object' ? sticky : {},
|
|
@@ -26983,7 +27310,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26983
27310
|
}
|
|
26984
27311
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26985
27312
|
};
|
|
26986
|
-
var
|
|
27313
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
26987
27314
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26988
27315
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26989
27316
|
var children = hightLightData.children,
|
|
@@ -26994,7 +27321,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26994
27321
|
lineEnd = _loc2[2];
|
|
26995
27322
|
if (children) {
|
|
26996
27323
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26997
|
-
return
|
|
27324
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
26998
27325
|
});
|
|
26999
27326
|
}
|
|
27000
27327
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27006,7 +27333,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27006
27333
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27007
27334
|
data.forEach(function (node) {
|
|
27008
27335
|
if (!node) return;
|
|
27009
|
-
node.toggled =
|
|
27336
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
27010
27337
|
node.active = isHightLight(node, highLightLine);
|
|
27011
27338
|
if (node.children) {
|
|
27012
27339
|
if (node.active) {
|
|
@@ -27218,8 +27545,8 @@ var nameRender = (function (data) {
|
|
|
27218
27545
|
}, " ");
|
|
27219
27546
|
});
|
|
27220
27547
|
|
|
27221
|
-
var css_248z$
|
|
27222
|
-
styleInject(css_248z$
|
|
27548
|
+
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";
|
|
27549
|
+
styleInject(css_248z$r);
|
|
27223
27550
|
|
|
27224
27551
|
function parseData(data) {
|
|
27225
27552
|
var res;
|
|
@@ -27430,8 +27757,8 @@ function registerSuggestions(monaco) {
|
|
|
27430
27757
|
});
|
|
27431
27758
|
}
|
|
27432
27759
|
|
|
27433
|
-
var css_248z$
|
|
27434
|
-
styleInject(css_248z$
|
|
27760
|
+
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";
|
|
27761
|
+
styleInject(css_248z$s);
|
|
27435
27762
|
|
|
27436
27763
|
var Title = Typography.Title;
|
|
27437
27764
|
var STRTEMP = 'const config = ';
|
|
@@ -27625,7 +27952,7 @@ var Editor = (function (props) {
|
|
|
27625
27952
|
}, [shallowHeight]);
|
|
27626
27953
|
var hasConfigTree = type !== 'editor';
|
|
27627
27954
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
27628
|
-
className: isFull ? css_248z$
|
|
27955
|
+
className: isFull ? css_248z$s.editorWrapper : ''
|
|
27629
27956
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
27630
27957
|
style: {
|
|
27631
27958
|
overflow: 'hidden'
|
|
@@ -27693,7 +28020,7 @@ var Editor = (function (props) {
|
|
|
27693
28020
|
})), hasConfigTree && /*#__PURE__*/React$1.createElement(Col, {
|
|
27694
28021
|
span: 8
|
|
27695
28022
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
27696
|
-
className: css_248z$
|
|
28023
|
+
className: css_248z$s.title
|
|
27697
28024
|
}, "\u5C5E\u6027\u8282\u70B9\u6811"), /*#__PURE__*/React$1.createElement(ConfigTree, {
|
|
27698
28025
|
style: {
|
|
27699
28026
|
height: 'calc(100vh - 300px)',
|
|
@@ -28437,7 +28764,7 @@ var valueType = {
|
|
|
28437
28764
|
};
|
|
28438
28765
|
|
|
28439
28766
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28440
|
-
var _ref = _asyncToGenerator(
|
|
28767
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28441
28768
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28442
28769
|
while (1) switch (_context.prev = _context.next) {
|
|
28443
28770
|
case 0:
|
|
@@ -28505,7 +28832,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28505
28832
|
value: false
|
|
28506
28833
|
}];
|
|
28507
28834
|
var ref = useRef();
|
|
28508
|
-
useMount(
|
|
28835
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28509
28836
|
var _ref$current, source;
|
|
28510
28837
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28511
28838
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28619,7 +28946,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28619
28946
|
source: {
|
|
28620
28947
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28621
28948
|
type: function () {
|
|
28622
|
-
var _type = _asyncToGenerator(
|
|
28949
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28623
28950
|
var form, values, name, relates, source;
|
|
28624
28951
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28625
28952
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29099,7 +29426,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29099
29426
|
source: {
|
|
29100
29427
|
relates: ['choiceType', 'inputType'],
|
|
29101
29428
|
type: function () {
|
|
29102
|
-
var _type2 = _asyncToGenerator(
|
|
29429
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29103
29430
|
var values, name, form, source;
|
|
29104
29431
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29105
29432
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29321,7 +29648,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29321
29648
|
width: 900,
|
|
29322
29649
|
maskClosable: false,
|
|
29323
29650
|
onOk: function () {
|
|
29324
|
-
var _onOk = _asyncToGenerator(
|
|
29651
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29325
29652
|
var _ref$current4, _res$editableStatus;
|
|
29326
29653
|
var res, _res$defaultValue;
|
|
29327
29654
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29393,7 +29720,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29393
29720
|
}()
|
|
29394
29721
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29395
29722
|
ref: ref
|
|
29396
|
-
})), maintainOptionsModal.visible && (
|
|
29723
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29397
29724
|
};
|
|
29398
29725
|
|
|
29399
29726
|
// @ts-nocheck
|
|
@@ -29574,8 +29901,8 @@ var FieldsSettingsTable = (function (props) {
|
|
|
29574
29901
|
})), fieldsModify.visible && /*#__PURE__*/React$1.createElement(FieldsModifyModal, _objectSpread2({}, fieldsModify)));
|
|
29575
29902
|
});
|
|
29576
29903
|
|
|
29577
|
-
var css_248z$
|
|
29578
|
-
styleInject(css_248z$
|
|
29904
|
+
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";
|
|
29905
|
+
styleInject(css_248z$t);
|
|
29579
29906
|
|
|
29580
29907
|
function iterFileds(fields) {
|
|
29581
29908
|
var filedsValue = [];
|
|
@@ -30007,7 +30334,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30007
30334
|
return setVisible(false);
|
|
30008
30335
|
},
|
|
30009
30336
|
className: 'customFieldsDrawer'
|
|
30010
|
-
}, detailTablesSetting.length == 0 && (
|
|
30337
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30011
30338
|
style: {
|
|
30012
30339
|
display: 'flex'
|
|
30013
30340
|
}
|
|
@@ -30016,13 +30343,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30016
30343
|
flex: 1,
|
|
30017
30344
|
width: 500
|
|
30018
30345
|
}
|
|
30019
|
-
}, isEmpty(moduleParams) ? (
|
|
30346
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30020
30347
|
style: {
|
|
30021
30348
|
padding: "10px 0",
|
|
30022
30349
|
fontSize: "16px",
|
|
30023
30350
|
fontWeight: "bolder"
|
|
30024
30351
|
}
|
|
30025
|
-
}, "\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")) : (
|
|
30352
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30026
30353
|
style: {
|
|
30027
30354
|
flex: 1
|
|
30028
30355
|
}
|
|
@@ -30031,7 +30358,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30031
30358
|
onRun: onClickRun,
|
|
30032
30359
|
value: jsonEditorVal,
|
|
30033
30360
|
shallowHeight: height
|
|
30034
|
-
})))), detailTablesSetting.length > 0 && (
|
|
30361
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30035
30362
|
defaultActiveKey: activeKey,
|
|
30036
30363
|
onChange: function onChange(v) {
|
|
30037
30364
|
return setActiveKey(v);
|
|
@@ -30048,13 +30375,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30048
30375
|
flex: 1,
|
|
30049
30376
|
width: 500
|
|
30050
30377
|
}
|
|
30051
|
-
}, isEmpty(moduleParams) ? (
|
|
30378
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30052
30379
|
style: {
|
|
30053
30380
|
padding: "10px 0",
|
|
30054
30381
|
fontSize: "16px",
|
|
30055
30382
|
fontWeight: "bolder"
|
|
30056
30383
|
}
|
|
30057
|
-
}, "\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")) : (
|
|
30384
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30058
30385
|
style: {
|
|
30059
30386
|
flex: 1
|
|
30060
30387
|
}
|
|
@@ -30076,13 +30403,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30076
30403
|
flex: 1,
|
|
30077
30404
|
width: 500
|
|
30078
30405
|
}
|
|
30079
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
30406
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30080
30407
|
style: {
|
|
30081
30408
|
padding: "10px 0",
|
|
30082
30409
|
fontSize: "16px",
|
|
30083
30410
|
fontWeight: "bolder"
|
|
30084
30411
|
}
|
|
30085
|
-
}, "\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")) : (
|
|
30412
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
30086
30413
|
style: {
|
|
30087
30414
|
flex: 1
|
|
30088
30415
|
}
|
|
@@ -30228,7 +30555,7 @@ function getMetaData(_x) {
|
|
|
30228
30555
|
|
|
30229
30556
|
// 获取数据
|
|
30230
30557
|
function _getMetaData() {
|
|
30231
|
-
_getMetaData = _asyncToGenerator(
|
|
30558
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30232
30559
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30233
30560
|
while (1) switch (_context.prev = _context.next) {
|
|
30234
30561
|
case 0:
|
|
@@ -30450,7 +30777,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30450
30777
|
tableState = _useState4[0],
|
|
30451
30778
|
setTableState = _useState4[1];
|
|
30452
30779
|
var handleOpen = /*#__PURE__*/function () {
|
|
30453
|
-
var _ref = _asyncToGenerator(
|
|
30780
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30454
30781
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30455
30782
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30456
30783
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30769,7 +31096,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30769
31096
|
destroyOnClose: true
|
|
30770
31097
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
30771
31098
|
ref: queryTableRef
|
|
30772
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
31099
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React$1.createElement(Row, {
|
|
30773
31100
|
justify: "center",
|
|
30774
31101
|
style: {
|
|
30775
31102
|
marginBottom: 30,
|
|
@@ -30885,7 +31212,7 @@ var CustomSelector = (function (props) {
|
|
|
30885
31212
|
var _props$ctx7;
|
|
30886
31213
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30887
31214
|
}
|
|
30888
|
-
})), showType === 'modalTable' && (
|
|
31215
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30889
31216
|
type: "primary",
|
|
30890
31217
|
style: {
|
|
30891
31218
|
width: '30px',
|
|
@@ -30971,7 +31298,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30971
31298
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30972
31299
|
handSource = _useState2[0],
|
|
30973
31300
|
setHandSource = _useState2[1];
|
|
30974
|
-
useEffect(
|
|
31301
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30975
31302
|
var resData, data;
|
|
30976
31303
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30977
31304
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31115,15 +31442,15 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31115
31442
|
});
|
|
31116
31443
|
};
|
|
31117
31444
|
|
|
31118
|
-
var css_248z$
|
|
31119
|
-
styleInject(css_248z$
|
|
31445
|
+
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";
|
|
31446
|
+
styleInject(css_248z$u);
|
|
31120
31447
|
|
|
31121
31448
|
// 查询规则对象属性thresholdList
|
|
31122
31449
|
function getRegularThresholdRange(_x) {
|
|
31123
31450
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31124
31451
|
}
|
|
31125
31452
|
function _getRegularThresholdRange() {
|
|
31126
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
31453
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31127
31454
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31128
31455
|
while (1) switch (_context.prev = _context.next) {
|
|
31129
31456
|
case 0:
|
|
@@ -31277,7 +31604,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31277
31604
|
};
|
|
31278
31605
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31279
31606
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31280
|
-
var _ref = _asyncToGenerator(
|
|
31607
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31281
31608
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31282
31609
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31283
31610
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32222,7 +32549,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32222
32549
|
isAll: true,
|
|
32223
32550
|
needNameAndCode: true,
|
|
32224
32551
|
notChangeOnSelect: true,
|
|
32225
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32552
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32226
32553
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32227
32554
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32228
32555
|
case 0:
|
|
@@ -32271,7 +32598,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32271
32598
|
isAll: true,
|
|
32272
32599
|
needNameAndCode: true,
|
|
32273
32600
|
notChangeOnSelect: true,
|
|
32274
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32601
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32275
32602
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32276
32603
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32277
32604
|
case 0:
|
|
@@ -32322,7 +32649,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32322
32649
|
isAll: true,
|
|
32323
32650
|
needNameAndCode: true,
|
|
32324
32651
|
notChangeOnSelect: true,
|
|
32325
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32652
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32326
32653
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32327
32654
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32328
32655
|
case 0:
|
|
@@ -34021,7 +34348,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34021
34348
|
style: {
|
|
34022
34349
|
marginLeft: '10px'
|
|
34023
34350
|
},
|
|
34024
|
-
className: css_248z$
|
|
34351
|
+
className: css_248z$u.rule_field_style
|
|
34025
34352
|
}, this.renderConditionField());
|
|
34026
34353
|
}
|
|
34027
34354
|
}]);
|
|
@@ -34286,7 +34613,7 @@ var App$1 = function App(_ref) {
|
|
|
34286
34613
|
borderRadius: '5px',
|
|
34287
34614
|
cursor: 'pointer'
|
|
34288
34615
|
}
|
|
34289
|
-
}, isStaticNumber ? (
|
|
34616
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34290
34617
|
autoFocus: true,
|
|
34291
34618
|
onClick: function onClick(e) {
|
|
34292
34619
|
return e.stopPropagation();
|
|
@@ -34462,7 +34789,7 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
34462
34789
|
disabled = _this$props.disabled;
|
|
34463
34790
|
return /*#__PURE__*/React$1.createElement("div", null, ruleTypeData.map(function (i) {
|
|
34464
34791
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
34465
|
-
className: css_248z$
|
|
34792
|
+
className: css_248z$u.action_list_item
|
|
34466
34793
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
34467
34794
|
onClick: function onClick() {
|
|
34468
34795
|
return handleOperatingAction(i.code, 'view');
|
|
@@ -34573,7 +34900,7 @@ function RenderCompItem(props) {
|
|
|
34573
34900
|
dictData = _useState2[0],
|
|
34574
34901
|
setDictData = _useState2[1];
|
|
34575
34902
|
var getDictData = /*#__PURE__*/function () {
|
|
34576
|
-
var _ref = _asyncToGenerator(
|
|
34903
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34577
34904
|
var _data$map;
|
|
34578
34905
|
var data;
|
|
34579
34906
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34615,7 +34942,7 @@ function RenderCompItem(props) {
|
|
|
34615
34942
|
var style2 = {
|
|
34616
34943
|
width: '100px'
|
|
34617
34944
|
};
|
|
34618
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (
|
|
34945
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
|
|
34619
34946
|
disabled: disabled,
|
|
34620
34947
|
allowClear: true,
|
|
34621
34948
|
onClear: function onClear() {
|
|
@@ -34626,7 +34953,7 @@ function RenderCompItem(props) {
|
|
|
34626
34953
|
onBlur: function onBlur(e) {
|
|
34627
34954
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34628
34955
|
}
|
|
34629
|
-
})) || 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) && (
|
|
34956
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React$1.createElement(InputNumber, {
|
|
34630
34957
|
disabled: disabled,
|
|
34631
34958
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34632
34959
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34639,7 +34966,7 @@ function RenderCompItem(props) {
|
|
|
34639
34966
|
onChange: function onChange(value) {
|
|
34640
34967
|
handleEdit(ites.code, value);
|
|
34641
34968
|
}
|
|
34642
|
-
})) || 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) && (
|
|
34969
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React$1.createElement(DatePicker, {
|
|
34643
34970
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34644
34971
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34645
34972
|
disabled: disabled,
|
|
@@ -34649,7 +34976,7 @@ function RenderCompItem(props) {
|
|
|
34649
34976
|
onChange: function onChange(value, dateString) {
|
|
34650
34977
|
handleEdit(ites.code, dateString);
|
|
34651
34978
|
}
|
|
34652
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
34979
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
34653
34980
|
showTime: true,
|
|
34654
34981
|
disabled: disabled,
|
|
34655
34982
|
defaultValue: ites.defaultValue,
|
|
@@ -34658,7 +34985,7 @@ function RenderCompItem(props) {
|
|
|
34658
34985
|
onChange: function onChange(value, timeString) {
|
|
34659
34986
|
handleEdit(ites.code, timeString);
|
|
34660
34987
|
}
|
|
34661
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
34988
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
|
|
34662
34989
|
disabled: disabled,
|
|
34663
34990
|
defaultChecked: !!ites.defaultValue,
|
|
34664
34991
|
style: style2,
|
|
@@ -34666,7 +34993,7 @@ function RenderCompItem(props) {
|
|
|
34666
34993
|
onChange: function onChange(value) {
|
|
34667
34994
|
handleEdit(ites.code, value);
|
|
34668
34995
|
}
|
|
34669
|
-
})) || 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 && (
|
|
34996
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
34670
34997
|
disabled: disabled,
|
|
34671
34998
|
allowClear: true,
|
|
34672
34999
|
showArrow: true
|
|
@@ -34684,7 +35011,7 @@ function RenderCompItem(props) {
|
|
|
34684
35011
|
key: it,
|
|
34685
35012
|
value: it
|
|
34686
35013
|
}, ites.enumeration[it]);
|
|
34687
|
-
}))) || 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 && (
|
|
35014
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
34688
35015
|
disabled: disabled,
|
|
34689
35016
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34690
35017
|
defaultValue: ites.defaultValue,
|
|
@@ -34694,7 +35021,7 @@ function RenderCompItem(props) {
|
|
|
34694
35021
|
handleEdit(ites.code, value);
|
|
34695
35022
|
},
|
|
34696
35023
|
dictionaryCode: ites.dictionaryCode
|
|
34697
|
-
})) || 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 && (
|
|
35024
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34698
35025
|
selectBusinessType: "physicalWarehouse",
|
|
34699
35026
|
selectProps: _objectSpread2({
|
|
34700
35027
|
style: styleCommon,
|
|
@@ -34716,7 +35043,7 @@ function RenderCompItem(props) {
|
|
|
34716
35043
|
getPopupContainer: function getPopupContainer() {
|
|
34717
35044
|
return document.body;
|
|
34718
35045
|
}
|
|
34719
|
-
})) || 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 && (
|
|
35046
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34720
35047
|
selectBusinessType: "realWarehouse",
|
|
34721
35048
|
selectProps: _objectSpread2({
|
|
34722
35049
|
style: styleCommon,
|
|
@@ -34738,7 +35065,7 @@ function RenderCompItem(props) {
|
|
|
34738
35065
|
getPopupContainer: function getPopupContainer() {
|
|
34739
35066
|
return document.body;
|
|
34740
35067
|
}
|
|
34741
|
-
})) || 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 && (
|
|
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) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34742
35069
|
selectBusinessType: "virtualWarehouse",
|
|
34743
35070
|
selectProps: _objectSpread2({
|
|
34744
35071
|
style: styleCommon,
|
|
@@ -34760,7 +35087,7 @@ function RenderCompItem(props) {
|
|
|
34760
35087
|
getPopupContainer: function getPopupContainer() {
|
|
34761
35088
|
return document.body;
|
|
34762
35089
|
}
|
|
34763
|
-
})) || 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 && (
|
|
35090
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34764
35091
|
selectBusinessType: "channelWarehouse",
|
|
34765
35092
|
selectProps: _objectSpread2({
|
|
34766
35093
|
style: styleCommon,
|
|
@@ -34782,7 +35109,7 @@ function RenderCompItem(props) {
|
|
|
34782
35109
|
getPopupContainer: function getPopupContainer() {
|
|
34783
35110
|
return document.body;
|
|
34784
35111
|
}
|
|
34785
|
-
})) || 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 && (
|
|
35112
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34786
35113
|
selectBusinessType: "spuCommodity",
|
|
34787
35114
|
selectProps: _objectSpread2({
|
|
34788
35115
|
style: styleCommon,
|
|
@@ -34803,7 +35130,7 @@ function RenderCompItem(props) {
|
|
|
34803
35130
|
getPopupContainer: function getPopupContainer() {
|
|
34804
35131
|
return document.body;
|
|
34805
35132
|
}
|
|
34806
|
-
})) || 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 && (
|
|
35133
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34807
35134
|
selectBusinessType: "skuCommodity",
|
|
34808
35135
|
selectProps: _objectSpread2({
|
|
34809
35136
|
style: styleCommon,
|
|
@@ -34824,13 +35151,13 @@ function RenderCompItem(props) {
|
|
|
34824
35151
|
getPopupContainer: function getPopupContainer() {
|
|
34825
35152
|
return document.body;
|
|
34826
35153
|
}
|
|
34827
|
-
})) || 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 && (
|
|
35154
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
34828
35155
|
disabled: disabled,
|
|
34829
35156
|
isAll: true,
|
|
34830
35157
|
needNameAndCode: true,
|
|
34831
35158
|
notChangeOnSelect: true,
|
|
34832
35159
|
initRequestSource: function () {
|
|
34833
|
-
var _initRequestSource = _asyncToGenerator(
|
|
35160
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34834
35161
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34835
35162
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34836
35163
|
case 0:
|
|
@@ -34872,7 +35199,7 @@ function RenderCompItem(props) {
|
|
|
34872
35199
|
getPopupContainer: function getPopupContainer() {
|
|
34873
35200
|
return document.body;
|
|
34874
35201
|
}
|
|
34875
|
-
})) || 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 && (
|
|
35202
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34876
35203
|
disabled: disabled,
|
|
34877
35204
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34878
35205
|
businessType: "department",
|
|
@@ -34885,7 +35212,7 @@ function RenderCompItem(props) {
|
|
|
34885
35212
|
getPopupContainer: function getPopupContainer() {
|
|
34886
35213
|
return document.body;
|
|
34887
35214
|
}
|
|
34888
|
-
})) || 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 && (
|
|
35215
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34889
35216
|
disabled: disabled,
|
|
34890
35217
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34891
35218
|
businessType: "purchase-organization",
|
|
@@ -34898,7 +35225,7 @@ function RenderCompItem(props) {
|
|
|
34898
35225
|
getPopupContainer: function getPopupContainer() {
|
|
34899
35226
|
return document.body;
|
|
34900
35227
|
}
|
|
34901
|
-
})) || 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 && (
|
|
35228
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34902
35229
|
disabled: disabled,
|
|
34903
35230
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34904
35231
|
businessType: "sales-organization",
|
|
@@ -34911,7 +35238,7 @@ function RenderCompItem(props) {
|
|
|
34911
35238
|
getPopupContainer: function getPopupContainer() {
|
|
34912
35239
|
return document.body;
|
|
34913
35240
|
}
|
|
34914
|
-
})) || 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 && (
|
|
35241
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34915
35242
|
selectBusinessType: "supplier2",
|
|
34916
35243
|
selectProps: _objectSpread2({
|
|
34917
35244
|
style: styleCommon,
|
|
@@ -34932,7 +35259,7 @@ function RenderCompItem(props) {
|
|
|
34932
35259
|
getPopupContainer: function getPopupContainer() {
|
|
34933
35260
|
return document.body;
|
|
34934
35261
|
}
|
|
34935
|
-
})) || 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 && (
|
|
35262
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34936
35263
|
selectBusinessType: "customer2",
|
|
34937
35264
|
selectProps: _objectSpread2({
|
|
34938
35265
|
style: styleCommon,
|
|
@@ -34953,7 +35280,7 @@ function RenderCompItem(props) {
|
|
|
34953
35280
|
getPopupContainer: function getPopupContainer() {
|
|
34954
35281
|
return document.body;
|
|
34955
35282
|
}
|
|
34956
|
-
})) || 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 && (
|
|
35283
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34957
35284
|
selectBusinessType: "shopFile2",
|
|
34958
35285
|
selectProps: _objectSpread2({
|
|
34959
35286
|
style: styleCommon,
|
|
@@ -34974,7 +35301,7 @@ function RenderCompItem(props) {
|
|
|
34974
35301
|
getPopupContainer: function getPopupContainer() {
|
|
34975
35302
|
return document.body;
|
|
34976
35303
|
}
|
|
34977
|
-
})) || 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 && (
|
|
35304
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34978
35305
|
selectBusinessType: "employee2",
|
|
34979
35306
|
selectProps: _objectSpread2({
|
|
34980
35307
|
style: styleCommon,
|
|
@@ -34995,7 +35322,7 @@ function RenderCompItem(props) {
|
|
|
34995
35322
|
getPopupContainer: function getPopupContainer() {
|
|
34996
35323
|
return document.body;
|
|
34997
35324
|
}
|
|
34998
|
-
})) || 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 && (
|
|
35325
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34999
35326
|
disabled: disabled,
|
|
35000
35327
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35001
35328
|
businessType: "stock-organization",
|
|
@@ -35008,7 +35335,7 @@ function RenderCompItem(props) {
|
|
|
35008
35335
|
getPopupContainer: function getPopupContainer() {
|
|
35009
35336
|
return document.body;
|
|
35010
35337
|
}
|
|
35011
|
-
})) || 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 && (
|
|
35338
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35012
35339
|
disabled: disabled,
|
|
35013
35340
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35014
35341
|
businessType: "settle-organization",
|
|
@@ -35021,7 +35348,7 @@ function RenderCompItem(props) {
|
|
|
35021
35348
|
getPopupContainer: function getPopupContainer() {
|
|
35022
35349
|
return document.body;
|
|
35023
35350
|
}
|
|
35024
|
-
})) || 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 && (
|
|
35351
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35025
35352
|
selectBusinessType: "deliveryMode",
|
|
35026
35353
|
selectProps: _objectSpread2({
|
|
35027
35354
|
style: styleCommon,
|
|
@@ -35042,7 +35369,7 @@ function RenderCompItem(props) {
|
|
|
35042
35369
|
getPopupContainer: function getPopupContainer() {
|
|
35043
35370
|
return document.body;
|
|
35044
35371
|
}
|
|
35045
|
-
})) || 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 && (
|
|
35372
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35046
35373
|
selectBusinessType: "role",
|
|
35047
35374
|
selectProps: _objectSpread2({
|
|
35048
35375
|
style: styleCommon,
|
|
@@ -35063,7 +35390,7 @@ function RenderCompItem(props) {
|
|
|
35063
35390
|
getPopupContainer: function getPopupContainer() {
|
|
35064
35391
|
return document.body;
|
|
35065
35392
|
}
|
|
35066
|
-
})) || 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 && (
|
|
35393
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35067
35394
|
selectBusinessType: "brand",
|
|
35068
35395
|
selectProps: _objectSpread2({
|
|
35069
35396
|
style: styleCommon,
|
|
@@ -35084,7 +35411,7 @@ function RenderCompItem(props) {
|
|
|
35084
35411
|
getPopupContainer: function getPopupContainer() {
|
|
35085
35412
|
return document.body;
|
|
35086
35413
|
}
|
|
35087
|
-
})) || 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 && (
|
|
35414
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35088
35415
|
disabled: disabled,
|
|
35089
35416
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35090
35417
|
businessType: "background-category",
|
|
@@ -35097,7 +35424,7 @@ function RenderCompItem(props) {
|
|
|
35097
35424
|
getPopupContainer: function getPopupContainer() {
|
|
35098
35425
|
return document.body;
|
|
35099
35426
|
}
|
|
35100
|
-
})) || 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 && (
|
|
35427
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
35101
35428
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35102
35429
|
style: styleCommon,
|
|
35103
35430
|
placeholder: '请选择'
|
|
@@ -35120,7 +35447,7 @@ function RenderCompItem(props) {
|
|
|
35120
35447
|
onChange: function onChange(value) {
|
|
35121
35448
|
handleEdit(ites.code, value);
|
|
35122
35449
|
}
|
|
35123
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
35450
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
35124
35451
|
style: {
|
|
35125
35452
|
display: 'flex'
|
|
35126
35453
|
}
|
|
@@ -35632,7 +35959,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35632
35959
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35633
35960
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35634
35961
|
}
|
|
35635
|
-
var parallelTreeData =
|
|
35962
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
35636
35963
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35637
35964
|
var _i$key;
|
|
35638
35965
|
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);
|
|
@@ -36409,8 +36736,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36409
36736
|
}]);
|
|
36410
36737
|
}(Component);
|
|
36411
36738
|
|
|
36412
|
-
var css_248z$
|
|
36413
|
-
styleInject(css_248z$
|
|
36739
|
+
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";
|
|
36740
|
+
styleInject(css_248z$v);
|
|
36414
36741
|
|
|
36415
36742
|
var formatOperationList = function formatOperationList(data) {
|
|
36416
36743
|
var _result$find;
|
|
@@ -36559,13 +36886,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36559
36886
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36560
36887
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36561
36888
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36562
|
-
var list =
|
|
36889
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36563
36890
|
var requiredList = list.filter(function (c) {
|
|
36564
36891
|
return c.required == 1;
|
|
36565
36892
|
}) || []; // 获取对象属性为true的集合
|
|
36566
36893
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36567
36894
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36568
|
-
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) ?
|
|
36895
|
+
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];
|
|
36569
36896
|
(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) {
|
|
36570
36897
|
if (requiredList.some(function (r) {
|
|
36571
36898
|
return r.id === e.elementId;
|
|
@@ -37143,18 +37470,18 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37143
37470
|
return /*#__PURE__*/React$1.createElement(Spin, {
|
|
37144
37471
|
spinning: loading
|
|
37145
37472
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
37146
|
-
className: css_248z$
|
|
37473
|
+
className: css_248z$v.base_rule
|
|
37147
37474
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
37148
|
-
className: css_248z$
|
|
37475
|
+
className: css_248z$v.base_rule_content
|
|
37149
37476
|
}, /*#__PURE__*/React$1.createElement("p", {
|
|
37150
|
-
className: css_248z$
|
|
37477
|
+
className: css_248z$v.base_rule_line_title
|
|
37151
37478
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
37152
|
-
className: css_248z$
|
|
37479
|
+
className: css_248z$v.rule_title
|
|
37153
37480
|
}, (_handleDiff = handleDiff()) === null || _handleDiff === void 0 ? void 0 : _handleDiff.title), /*#__PURE__*/React$1.createElement("p", {
|
|
37154
37481
|
style: {
|
|
37155
37482
|
float: 'right'
|
|
37156
37483
|
}
|
|
37157
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
37484
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37158
37485
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37159
37486
|
ruleGroupInfo: {
|
|
37160
37487
|
ruleGroupList: ruleGroupList,
|
|
@@ -37172,7 +37499,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37172
37499
|
callBack: function callBack(newData) {
|
|
37173
37500
|
upDateData(newData);
|
|
37174
37501
|
}
|
|
37175
|
-
}))) : (
|
|
37502
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37176
37503
|
style: {
|
|
37177
37504
|
padding: 20
|
|
37178
37505
|
}
|
|
@@ -37399,8 +37726,8 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37399
37726
|
})));
|
|
37400
37727
|
});
|
|
37401
37728
|
|
|
37402
|
-
var css_248z$
|
|
37403
|
-
styleInject(css_248z$
|
|
37729
|
+
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";
|
|
37730
|
+
styleInject(css_248z$w);
|
|
37404
37731
|
|
|
37405
37732
|
var _excluded$k = ["titleExtra", "header", "showArrow"];
|
|
37406
37733
|
var Panel = Collapse.Panel;
|
|
@@ -37451,9 +37778,9 @@ var index$8 = Object.assign(ExtendedCollapse, {
|
|
|
37451
37778
|
Board: ExtendedPanel
|
|
37452
37779
|
});
|
|
37453
37780
|
|
|
37454
|
-
var css_248z$
|
|
37781
|
+
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";
|
|
37455
37782
|
var styles = {"paragraphCopyWrapper":"index-module_paragraphCopyWrapper__3rGOI","paragraphCopyLabel":"index-module_paragraphCopyLabel__1Qb8u","paragraphCopy":"index-module_paragraphCopy__1y7Jo"};
|
|
37456
|
-
styleInject(css_248z$
|
|
37783
|
+
styleInject(css_248z$x);
|
|
37457
37784
|
|
|
37458
37785
|
var Paragraph = Typography.Paragraph;
|
|
37459
37786
|
var Section = function Section(_ref) {
|
|
@@ -37547,4 +37874,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37547
37874
|
}, children));
|
|
37548
37875
|
};
|
|
37549
37876
|
|
|
37550
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|
|
37877
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|