@bit-sun/business-component 4.0.11-alpha.5 → 4.0.11-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +265 -268
- package/dist/index.js +265 -268
- package/package.json +1 -1
- package/src/assets/copyImg.svg +16 -0
- package/src/components/Common/ParagraphCopier/index.tsx +2 -6
- package/src/components/Solution/RuleComponent/index.js +4 -3
- package/src/components/Solution/RuleSetter/function.ts +2 -1
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@ import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl
|
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
9
9
|
import React$1, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
10
10
|
import moment$1 from 'moment';
|
|
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
|
|
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';
|
|
13
13
|
import 'qs';
|
|
14
14
|
import { utils, writeFile, read } from 'xlsx';
|
|
@@ -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 ? (/*#__PURE__*/React$1.createElement("div", {
|
|
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)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
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(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
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(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
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 ? (/*#__PURE__*/React$1.createElement("div", {
|
|
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)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, 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' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
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' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
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(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
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 && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
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 && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
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"
|
|
@@ -5183,13 +5183,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5183
5183
|
var isShouldShowStr = props.disabled && ctx;
|
|
5184
5184
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5185
5185
|
className: 'search_select'
|
|
5186
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5186
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5187
5187
|
onClick: function onClick() {
|
|
5188
5188
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5189
5189
|
(_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);
|
|
5190
5190
|
showModal();
|
|
5191
5191
|
}
|
|
5192
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5192
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5193
5193
|
title: getShowStr(),
|
|
5194
5194
|
style: {
|
|
5195
5195
|
overflow: 'hidden',
|
|
@@ -5215,10 +5215,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5215
5215
|
dropdownRender: function dropdownRender(menu) {
|
|
5216
5216
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5217
5217
|
},
|
|
5218
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5218
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5219
5219
|
size: "small",
|
|
5220
5220
|
className: 'searchSelectSpin'
|
|
5221
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5221
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5222
5222
|
style: {
|
|
5223
5223
|
textAlign: 'center'
|
|
5224
5224
|
}
|
|
@@ -5249,7 +5249,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5249
5249
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5250
5250
|
filterTxt: searchValue
|
|
5251
5251
|
}));
|
|
5252
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5252
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5253
5253
|
destroyOnClose: true,
|
|
5254
5254
|
width: "80%",
|
|
5255
5255
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
@@ -5845,7 +5845,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5845
5845
|
style: {
|
|
5846
5846
|
width: 540
|
|
5847
5847
|
}
|
|
5848
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5848
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5849
5849
|
checked: !dataSource.some(function (item) {
|
|
5850
5850
|
if (item.hidden) return true;
|
|
5851
5851
|
return false;
|
|
@@ -5883,13 +5883,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5883
5883
|
_this2.onChange(e, item.title);
|
|
5884
5884
|
}
|
|
5885
5885
|
}, item.title);
|
|
5886
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
5886
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
5887
5887
|
style: {
|
|
5888
5888
|
width: '144px'
|
|
5889
5889
|
}
|
|
5890
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5890
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
5891
5891
|
className: 'sort_table_column_all_empty'
|
|
5892
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5892
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5893
5893
|
className: 'sort_table_column_special'
|
|
5894
5894
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
5895
5895
|
className: 'sort_table_column_all'
|
|
@@ -6078,7 +6078,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6078
6078
|
});
|
|
6079
6079
|
};
|
|
6080
6080
|
// 格式化树选择器数据源
|
|
6081
|
-
var
|
|
6081
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6082
6082
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6083
6083
|
return {
|
|
6084
6084
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6088,7 +6088,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6088
6088
|
isLeaf: !haveChildren,
|
|
6089
6089
|
disabled: haveChildren,
|
|
6090
6090
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6091
|
-
return
|
|
6091
|
+
return mapSearchTree(i, resKeyValue);
|
|
6092
6092
|
}) : []
|
|
6093
6093
|
};
|
|
6094
6094
|
};
|
|
@@ -6097,7 +6097,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6097
6097
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6098
6098
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6099
6099
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6100
|
-
return
|
|
6100
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6101
6101
|
}) || [];
|
|
6102
6102
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6103
6103
|
};
|
|
@@ -6268,7 +6268,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6268
6268
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6269
6269
|
// FIXME: 特殊业务逻辑
|
|
6270
6270
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6271
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6271
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6272
6272
|
var result;
|
|
6273
6273
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6274
6274
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6521,7 +6521,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6521
6521
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6522
6522
|
value: text || null,
|
|
6523
6523
|
onChange: function () {
|
|
6524
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6524
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6525
6525
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6526
6526
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6527
6527
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7129,10 +7129,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7129
7129
|
var newColumns = arr.map(function (col) {
|
|
7130
7130
|
return _objectSpread2({}, col);
|
|
7131
7131
|
});
|
|
7132
|
-
var
|
|
7132
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7133
7133
|
var i = indexArr.shift();
|
|
7134
7134
|
if (indexArr.length > 0) {
|
|
7135
|
-
|
|
7135
|
+
handleIndex(arr[i].children, indexArr);
|
|
7136
7136
|
} else {
|
|
7137
7137
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7138
7138
|
width: size.width
|
|
@@ -7140,7 +7140,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7140
7140
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7141
7141
|
}
|
|
7142
7142
|
};
|
|
7143
|
-
|
|
7143
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7144
7144
|
callback(newColumns);
|
|
7145
7145
|
};
|
|
7146
7146
|
};
|
|
@@ -7150,13 +7150,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7150
7150
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7151
7151
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7152
7152
|
};
|
|
7153
|
-
var
|
|
7153
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7154
7154
|
arr.forEach(function (item, index) {
|
|
7155
7155
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7156
7156
|
return i || i === 0;
|
|
7157
7157
|
});
|
|
7158
7158
|
if (noEmptyArray$1(item.children)) {
|
|
7159
|
-
|
|
7159
|
+
handleColumns(item.children, indexArrInside);
|
|
7160
7160
|
} else {
|
|
7161
7161
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7162
7162
|
item.onHeaderCell = function (column) {
|
|
@@ -7172,14 +7172,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7172
7172
|
handleAntdColumnsSpecialParams(item);
|
|
7173
7173
|
return _objectSpread2({}, item);
|
|
7174
7174
|
});
|
|
7175
|
-
|
|
7175
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7176
7176
|
return setShowToChooseColumnsCallback(res);
|
|
7177
7177
|
});
|
|
7178
7178
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7179
7179
|
handleAntdColumnsSpecialParams(item);
|
|
7180
7180
|
return _objectSpread2({}, item);
|
|
7181
7181
|
});
|
|
7182
|
-
|
|
7182
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7183
7183
|
return setShowColumnsCallback(res);
|
|
7184
7184
|
});
|
|
7185
7185
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7190,7 +7190,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7190
7190
|
id: "add_select_div_".concat(uniqueValue)
|
|
7191
7191
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7192
7192
|
onClick: handleShowModal
|
|
7193
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7193
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7194
7194
|
width: '1200px',
|
|
7195
7195
|
style: {
|
|
7196
7196
|
top: 20
|
|
@@ -8104,7 +8104,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8104
8104
|
});
|
|
8105
8105
|
};
|
|
8106
8106
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8107
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8107
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8108
8108
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8109
8109
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8110
8110
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8187,10 +8187,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8187
8187
|
var newColumns = arr.map(function (col) {
|
|
8188
8188
|
return _objectSpread2({}, col);
|
|
8189
8189
|
});
|
|
8190
|
-
var
|
|
8190
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8191
8191
|
var i = indexArr.shift();
|
|
8192
8192
|
if (indexArr.length > 0) {
|
|
8193
|
-
|
|
8193
|
+
handleIndex(arr[i].children, indexArr);
|
|
8194
8194
|
} else {
|
|
8195
8195
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8196
8196
|
width: size.width
|
|
@@ -8198,17 +8198,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8198
8198
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8199
8199
|
}
|
|
8200
8200
|
};
|
|
8201
|
-
|
|
8201
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8202
8202
|
callback(newColumns);
|
|
8203
8203
|
};
|
|
8204
8204
|
};
|
|
8205
|
-
var
|
|
8205
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8206
8206
|
arr.forEach(function (item, index) {
|
|
8207
8207
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8208
8208
|
return i || i === 0;
|
|
8209
8209
|
});
|
|
8210
8210
|
if (noEmptyArray$1(item.children)) {
|
|
8211
|
-
|
|
8211
|
+
handleColumns(item.children, indexArrInside);
|
|
8212
8212
|
} else {
|
|
8213
8213
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8214
8214
|
item.onHeaderCell = function (column) {
|
|
@@ -8224,7 +8224,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8224
8224
|
handleAntdColumnsSpecialParams(item);
|
|
8225
8225
|
return _objectSpread2({}, item);
|
|
8226
8226
|
});
|
|
8227
|
-
|
|
8227
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8228
8228
|
return setShowColumnsCallback(res);
|
|
8229
8229
|
});
|
|
8230
8230
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8538,7 +8538,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8538
8538
|
});
|
|
8539
8539
|
};
|
|
8540
8540
|
// 格式化树选择器数据源
|
|
8541
|
-
var
|
|
8541
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8542
8542
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8543
8543
|
return {
|
|
8544
8544
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8548,7 +8548,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8548
8548
|
isLeaf: !haveChildren,
|
|
8549
8549
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8550
8550
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8551
|
-
return
|
|
8551
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8552
8552
|
}) : []
|
|
8553
8553
|
};
|
|
8554
8554
|
};
|
|
@@ -8562,7 +8562,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8562
8562
|
disabledJudge = false;
|
|
8563
8563
|
}
|
|
8564
8564
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8565
|
-
return
|
|
8565
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8566
8566
|
}) || [];
|
|
8567
8567
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8568
8568
|
};
|
|
@@ -12597,7 +12597,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12597
12597
|
};
|
|
12598
12598
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12599
12599
|
onClick: handleShowModal
|
|
12600
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12600
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12601
12601
|
onOk: handleOk,
|
|
12602
12602
|
onCancel: handleCancel,
|
|
12603
12603
|
destroyOnClose: true,
|
|
@@ -12716,7 +12716,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12716
12716
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12717
12717
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12718
12718
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12719
|
-
var
|
|
12719
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12720
12720
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12721
12721
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12722
12722
|
return {
|
|
@@ -12728,7 +12728,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12728
12728
|
isLeaf: !haveChildren,
|
|
12729
12729
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12730
12730
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12731
|
-
return
|
|
12731
|
+
return mapSearchTree(i);
|
|
12732
12732
|
}) : []
|
|
12733
12733
|
};
|
|
12734
12734
|
};
|
|
@@ -12746,8 +12746,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12746
12746
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12747
12747
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12748
12748
|
headers: headers
|
|
12749
|
-
}).then(/*#__PURE__*/function () {
|
|
12750
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12749
|
+
}).then( /*#__PURE__*/function () {
|
|
12750
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12751
12751
|
var _ctx$form;
|
|
12752
12752
|
var resData, coverData, data, dataList;
|
|
12753
12753
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12774,7 +12774,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12774
12774
|
case 9:
|
|
12775
12775
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12776
12776
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12777
|
-
return
|
|
12777
|
+
return mapSearchTree(ites);
|
|
12778
12778
|
}) || [];
|
|
12779
12779
|
case 11:
|
|
12780
12780
|
_context.next = 14;
|
|
@@ -12812,11 +12812,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12812
12812
|
return _formatResult;
|
|
12813
12813
|
}
|
|
12814
12814
|
};
|
|
12815
|
-
var
|
|
12815
|
+
var parallelData = function parallelData(data, result) {
|
|
12816
12816
|
data.forEach(function (i) {
|
|
12817
12817
|
result.push(i);
|
|
12818
12818
|
if (i[treeChildrenRoom]) {
|
|
12819
|
-
|
|
12819
|
+
parallelData(i[treeChildrenRoom], result);
|
|
12820
12820
|
}
|
|
12821
12821
|
});
|
|
12822
12822
|
return result;
|
|
@@ -12856,7 +12856,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12856
12856
|
var _ctx$form2;
|
|
12857
12857
|
var handleData = formatData(data);
|
|
12858
12858
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12859
|
-
var parallelTreeData =
|
|
12859
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12860
12860
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
12861
12861
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
12862
12862
|
onChangeName && onChangeName(dataName);
|
|
@@ -12899,7 +12899,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12899
12899
|
var getShowStr = function getShowStr() {
|
|
12900
12900
|
var isMultiple = multiple || treeCheckable;
|
|
12901
12901
|
var kongValue = '无';
|
|
12902
|
-
var parallelTreeData =
|
|
12902
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12903
12903
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
12904
12904
|
if (isMultiple) {
|
|
12905
12905
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -12911,7 +12911,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12911
12911
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
12912
12912
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
12913
12913
|
className: 'tree_search_select'
|
|
12914
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
12914
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
12915
12915
|
title: getShowStr(),
|
|
12916
12916
|
style: {
|
|
12917
12917
|
overflow: 'hidden',
|
|
@@ -12919,7 +12919,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12919
12919
|
whiteSpace: 'nowrap'
|
|
12920
12920
|
},
|
|
12921
12921
|
className: 'search_select_show'
|
|
12922
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
12922
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
12923
12923
|
treeCheckable: treeCheckable,
|
|
12924
12924
|
maxTagCount: maxTagCount,
|
|
12925
12925
|
showSearch: showSearch,
|
|
@@ -13116,7 +13116,7 @@ var index$2 = (function (props) {
|
|
|
13116
13116
|
} : {}
|
|
13117
13117
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13118
13118
|
className: 'status-label-operate'
|
|
13119
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13119
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13120
13120
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13121
13121
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13122
13122
|
style: {
|
|
@@ -13897,7 +13897,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13897
13897
|
style: {
|
|
13898
13898
|
width: 540
|
|
13899
13899
|
}
|
|
13900
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
13900
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
13901
13901
|
checked: !dataSource.some(function (item) {
|
|
13902
13902
|
if (item.hidden) return true;
|
|
13903
13903
|
return false;
|
|
@@ -13935,13 +13935,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13935
13935
|
_this2.onChange(e, item.title);
|
|
13936
13936
|
}
|
|
13937
13937
|
}, item.title);
|
|
13938
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
13938
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
13939
13939
|
style: {
|
|
13940
13940
|
width: '144px'
|
|
13941
13941
|
}
|
|
13942
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
13942
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
13943
13943
|
className: 'sort_table_column_all_empty'
|
|
13944
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
13944
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
13945
13945
|
className: 'sort_table_column_special'
|
|
13946
13946
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
13947
13947
|
className: 'sort_table_column_all'
|
|
@@ -14098,10 +14098,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14098
14098
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14099
14099
|
return _objectSpread2({}, col);
|
|
14100
14100
|
});
|
|
14101
|
-
var
|
|
14101
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14102
14102
|
var i = indexArr.shift();
|
|
14103
14103
|
if (indexArr.length > 0) {
|
|
14104
|
-
|
|
14104
|
+
handleIndex(arr[i].children, indexArr);
|
|
14105
14105
|
} else {
|
|
14106
14106
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14107
14107
|
width: size.width
|
|
@@ -14109,7 +14109,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14109
14109
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14110
14110
|
}
|
|
14111
14111
|
};
|
|
14112
|
-
|
|
14112
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14113
14113
|
_this.setState({
|
|
14114
14114
|
showColumns: _toConsumableArray(newColumns)
|
|
14115
14115
|
});
|
|
@@ -14187,13 +14187,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14187
14187
|
showSummary = summary;
|
|
14188
14188
|
}
|
|
14189
14189
|
}
|
|
14190
|
-
var
|
|
14190
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14191
14191
|
arr.forEach(function (item, index) {
|
|
14192
14192
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14193
14193
|
return i || i === 0;
|
|
14194
14194
|
});
|
|
14195
14195
|
if (noEmptyArray$1(item.children)) {
|
|
14196
|
-
|
|
14196
|
+
handleColumns(item.children, indexArrInside);
|
|
14197
14197
|
} else {
|
|
14198
14198
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14199
14199
|
item.onHeaderCell = function (column) {
|
|
@@ -14209,7 +14209,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14209
14209
|
handleBssulaColumnsSpecialParams(item);
|
|
14210
14210
|
return _objectSpread2({}, item);
|
|
14211
14211
|
});
|
|
14212
|
-
|
|
14212
|
+
handleColumns(showCol, []);
|
|
14213
14213
|
if (dynamicColumns.length) {
|
|
14214
14214
|
showCol = this.handledynamicColumns(showCol);
|
|
14215
14215
|
}
|
|
@@ -14343,10 +14343,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14343
14343
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14344
14344
|
return _objectSpread2({}, col);
|
|
14345
14345
|
});
|
|
14346
|
-
var
|
|
14346
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14347
14347
|
var i = indexArr.shift();
|
|
14348
14348
|
if (indexArr.length > 0) {
|
|
14349
|
-
|
|
14349
|
+
handleIndex(arr[i].children, indexArr);
|
|
14350
14350
|
} else {
|
|
14351
14351
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14352
14352
|
width: size.width
|
|
@@ -14354,7 +14354,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14354
14354
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14355
14355
|
}
|
|
14356
14356
|
};
|
|
14357
|
-
|
|
14357
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14358
14358
|
_this.setState({
|
|
14359
14359
|
showColumns: _toConsumableArray(newColumns)
|
|
14360
14360
|
});
|
|
@@ -14430,13 +14430,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14430
14430
|
showSummary = summary;
|
|
14431
14431
|
}
|
|
14432
14432
|
}
|
|
14433
|
-
var
|
|
14433
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14434
14434
|
arr.forEach(function (item, index) {
|
|
14435
14435
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14436
14436
|
return i || i === 0;
|
|
14437
14437
|
});
|
|
14438
14438
|
if (noEmptyArray$1(item.children)) {
|
|
14439
|
-
|
|
14439
|
+
handleColumns(item.children, indexArrInside);
|
|
14440
14440
|
} else {
|
|
14441
14441
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14442
14442
|
item.onHeaderCell = function (column) {
|
|
@@ -14452,7 +14452,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14452
14452
|
handleAntdColumnsSpecialParams(item);
|
|
14453
14453
|
return _objectSpread2({}, item);
|
|
14454
14454
|
});
|
|
14455
|
-
|
|
14455
|
+
handleColumns(showCol, []);
|
|
14456
14456
|
if (dynamicColumns.length) {
|
|
14457
14457
|
showCol = this.handledynamicColumns(showCol);
|
|
14458
14458
|
}
|
|
@@ -14549,20 +14549,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14549
14549
|
};
|
|
14550
14550
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14551
14551
|
var routerMap = {};
|
|
14552
|
-
var
|
|
14552
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
14553
14553
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14554
14554
|
data.forEach(function (menuItem) {
|
|
14555
14555
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14556
14556
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14557
14557
|
});
|
|
14558
14558
|
if (newMenuItem.children) {
|
|
14559
|
-
|
|
14559
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
14560
14560
|
}
|
|
14561
14561
|
// Reduce memory usage
|
|
14562
14562
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14563
14563
|
});
|
|
14564
14564
|
};
|
|
14565
|
-
|
|
14565
|
+
flattenMenuData(menuData, {});
|
|
14566
14566
|
return routerMap;
|
|
14567
14567
|
};
|
|
14568
14568
|
// mode类型判断
|
|
@@ -14867,7 +14867,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14867
14867
|
display: 'flex',
|
|
14868
14868
|
gap: '8px'
|
|
14869
14869
|
}
|
|
14870
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14870
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14871
14871
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
14872
14872
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
14873
14873
|
onClick: function onClick() {
|
|
@@ -14875,7 +14875,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14875
14875
|
},
|
|
14876
14876
|
width: 24,
|
|
14877
14877
|
src: scanning
|
|
14878
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14878
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14879
14879
|
title: "\u5168\u5C4F"
|
|
14880
14880
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
14881
14881
|
onClick: function onClick() {
|
|
@@ -14883,7 +14883,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14883
14883
|
},
|
|
14884
14884
|
width: 24,
|
|
14885
14885
|
src: quanping
|
|
14886
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14886
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14887
14887
|
}, function (prevProps, nextProps) {
|
|
14888
14888
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
14889
14889
|
return false;
|
|
@@ -14966,7 +14966,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14966
14966
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
14967
14967
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
14968
14968
|
}, item));
|
|
14969
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14969
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14970
14970
|
}, function (prevProps, nextProps) {
|
|
14971
14971
|
if (prevProps.title !== nextProps.title) {
|
|
14972
14972
|
return false;
|
|
@@ -15606,7 +15606,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15606
15606
|
});
|
|
15607
15607
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15608
15608
|
className: 'sort_table_wrapper'
|
|
15609
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15609
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
15610
15610
|
title: "\u8BBE\u7F6E\u8868\u5934\u5185\u5BB9",
|
|
15611
15611
|
wrapClassName: 'sort_table_wrapper',
|
|
15612
15612
|
width: 820,
|
|
@@ -15656,7 +15656,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15656
15656
|
style: {
|
|
15657
15657
|
width: 540
|
|
15658
15658
|
}
|
|
15659
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15659
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15660
15660
|
checked: !dataSource.some(function (item) {
|
|
15661
15661
|
if (item.hidden) return true;
|
|
15662
15662
|
return false;
|
|
@@ -15710,13 +15710,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15710
15710
|
_this2.onChange(e, item.title);
|
|
15711
15711
|
}
|
|
15712
15712
|
}, item.title);
|
|
15713
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15713
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15714
15714
|
style: {
|
|
15715
15715
|
width: '144px'
|
|
15716
15716
|
}
|
|
15717
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15717
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15718
15718
|
className: 'sort_table_column_all_empty'
|
|
15719
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15719
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15720
15720
|
className: 'sort_table_column_special'
|
|
15721
15721
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15722
15722
|
className: 'sort_table_column_all'
|
|
@@ -16157,7 +16157,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16157
16157
|
});
|
|
16158
16158
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16159
16159
|
className: 'sort_table_wrapper'
|
|
16160
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16160
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16161
16161
|
title: "\u8BBE\u7F6E\u641C\u7D22\u9879\u5185\u5BB9",
|
|
16162
16162
|
wrapClassName: 'sort_table_wrapper',
|
|
16163
16163
|
width: 820,
|
|
@@ -16202,7 +16202,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16202
16202
|
style: {
|
|
16203
16203
|
width: 540
|
|
16204
16204
|
}
|
|
16205
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16205
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16206
16206
|
checked: !dataSource.some(function (item) {
|
|
16207
16207
|
if (item.hidden) return true;
|
|
16208
16208
|
return false;
|
|
@@ -16238,11 +16238,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16238
16238
|
_this2.onChange(e, item.label);
|
|
16239
16239
|
}
|
|
16240
16240
|
}, item.label);
|
|
16241
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16241
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16242
16242
|
style: {
|
|
16243
16243
|
width: '144px'
|
|
16244
16244
|
}
|
|
16245
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16245
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16246
16246
|
className: 'sort_table_column_all_empty'
|
|
16247
16247
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16248
16248
|
className: 'sort_table_content_wrapper'
|
|
@@ -16668,7 +16668,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16668
16668
|
actionsRender = actionsRender.concat([{
|
|
16669
16669
|
type: 'text',
|
|
16670
16670
|
props: {
|
|
16671
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16671
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16672
16672
|
request: {
|
|
16673
16673
|
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),
|
|
16674
16674
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -16915,7 +16915,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16915
16915
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
16916
16916
|
bsTableCode: bsTableCode,
|
|
16917
16917
|
onlyModal: true
|
|
16918
|
-
}), (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, {
|
|
16918
|
+
}), (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, {
|
|
16919
16919
|
ref: exportTableRef,
|
|
16920
16920
|
setShowColumns: setShowExportColumns,
|
|
16921
16921
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17008,11 +17008,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17008
17008
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17009
17009
|
var resultList = [];
|
|
17010
17010
|
var newRouter = cloneDeep(router);
|
|
17011
|
-
var
|
|
17011
|
+
var deep = function deep(router) {
|
|
17012
17012
|
if (router && Array.isArray(router)) {
|
|
17013
17013
|
router.forEach(function (item) {
|
|
17014
17014
|
if (item.children && Array.isArray(item.children)) {
|
|
17015
|
-
|
|
17015
|
+
deep(item.children);
|
|
17016
17016
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17017
17017
|
return d === item.code;
|
|
17018
17018
|
})) {
|
|
@@ -17026,10 +17026,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17026
17026
|
resultList.push(_objectSpread2({}, router));
|
|
17027
17027
|
}
|
|
17028
17028
|
};
|
|
17029
|
-
|
|
17029
|
+
deep(newRouter);
|
|
17030
17030
|
callBack([].concat(resultList));
|
|
17031
17031
|
};
|
|
17032
|
-
var
|
|
17032
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17033
17033
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17034
17034
|
var _loop = function _loop(i) {
|
|
17035
17035
|
if (routesData[i].hideInMenu) {
|
|
@@ -17043,7 +17043,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17043
17043
|
return 0; // continue
|
|
17044
17044
|
}
|
|
17045
17045
|
if (routesData[i].children) {
|
|
17046
|
-
|
|
17046
|
+
setMenuTreeData(routesData[i].children);
|
|
17047
17047
|
}
|
|
17048
17048
|
},
|
|
17049
17049
|
_ret;
|
|
@@ -17064,16 +17064,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17064
17064
|
};
|
|
17065
17065
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17066
17066
|
var routerMap = {};
|
|
17067
|
-
var
|
|
17067
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
17068
17068
|
data.forEach(function (menuItem) {
|
|
17069
17069
|
if (menuItem.children) {
|
|
17070
|
-
|
|
17070
|
+
flattenMenuData(menuItem.children);
|
|
17071
17071
|
}
|
|
17072
17072
|
// Reduce memory usage
|
|
17073
17073
|
routerMap[menuItem.path] = menuItem;
|
|
17074
17074
|
});
|
|
17075
17075
|
};
|
|
17076
|
-
|
|
17076
|
+
flattenMenuData(menuData);
|
|
17077
17077
|
return routerMap;
|
|
17078
17078
|
};
|
|
17079
17079
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17219,7 +17219,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17219
17219
|
sethomepageData(homepageDataList);
|
|
17220
17220
|
setroutesData(routesDataList);
|
|
17221
17221
|
}, []);
|
|
17222
|
-
var
|
|
17222
|
+
var renderChildItem = function renderChildItem(child) {
|
|
17223
17223
|
if (!child.hideInMenu && child.children) {
|
|
17224
17224
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17225
17225
|
style: {
|
|
@@ -17229,7 +17229,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17229
17229
|
}, formatMessage({
|
|
17230
17230
|
id: "".concat(child.locale)
|
|
17231
17231
|
})), child.children.map(function (menuItem) {
|
|
17232
|
-
return
|
|
17232
|
+
return renderChildItem(menuItem);
|
|
17233
17233
|
}));
|
|
17234
17234
|
} else if (!child.hideInMenu && child.path) {
|
|
17235
17235
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17264,7 +17264,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17264
17264
|
className: 'drawerWarp'
|
|
17265
17265
|
}, homepageData && homepageData.filter(function (d) {
|
|
17266
17266
|
return !d.hideInMenu;
|
|
17267
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17267
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
17268
17268
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17269
17269
|
dataSource: homepageData,
|
|
17270
17270
|
renderItem: function renderItem(child) {
|
|
@@ -17299,7 +17299,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17299
17299
|
bordered: true,
|
|
17300
17300
|
dataSource: item.children,
|
|
17301
17301
|
renderItem: function renderItem(child) {
|
|
17302
|
-
return
|
|
17302
|
+
return renderChildItem(child);
|
|
17303
17303
|
}
|
|
17304
17304
|
});
|
|
17305
17305
|
})));
|
|
@@ -17359,7 +17359,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17359
17359
|
src: allfunc
|
|
17360
17360
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17361
17361
|
className: 'btnSpan2'
|
|
17362
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17362
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17363
17363
|
style: {
|
|
17364
17364
|
left: isDrawer ? 140 : 0,
|
|
17365
17365
|
top: 50
|
|
@@ -17405,7 +17405,7 @@ function outLogin(_x) {
|
|
|
17405
17405
|
return _outLogin.apply(this, arguments);
|
|
17406
17406
|
}
|
|
17407
17407
|
function _outLogin() {
|
|
17408
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17408
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17409
17409
|
var res;
|
|
17410
17410
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17411
17411
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17547,7 +17547,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17547
17547
|
});
|
|
17548
17548
|
};
|
|
17549
17549
|
var loginOut = /*#__PURE__*/function () {
|
|
17550
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17550
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17551
17551
|
var sessionId;
|
|
17552
17552
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17553
17553
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17651,7 +17651,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17651
17651
|
marginRight: '0px'
|
|
17652
17652
|
},
|
|
17653
17653
|
src: './xialajiantou-new.svg'
|
|
17654
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17654
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17655
17655
|
};
|
|
17656
17656
|
|
|
17657
17657
|
// -- 查询店铺 --
|
|
@@ -17659,7 +17659,7 @@ function getStoreByName(_x) {
|
|
|
17659
17659
|
return _getStoreByName.apply(this, arguments);
|
|
17660
17660
|
}
|
|
17661
17661
|
function _getStoreByName() {
|
|
17662
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17662
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17663
17663
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17664
17664
|
while (1) switch (_context.prev = _context.next) {
|
|
17665
17665
|
case 0:
|
|
@@ -17727,7 +17727,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17727
17727
|
return _fetchUserList.apply(this, arguments);
|
|
17728
17728
|
}
|
|
17729
17729
|
function _fetchUserList() {
|
|
17730
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17730
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17731
17731
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17732
17732
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17733
17733
|
case 0:
|
|
@@ -17775,7 +17775,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17775
17775
|
return debounce$1(loadOptions, debounceTimeout);
|
|
17776
17776
|
}, [debounceTimeout, key]);
|
|
17777
17777
|
var changeInput = /*#__PURE__*/function () {
|
|
17778
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17778
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17779
17779
|
var res;
|
|
17780
17780
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17781
17781
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17797,7 +17797,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17797
17797
|
};
|
|
17798
17798
|
}();
|
|
17799
17799
|
useEffect(function () {
|
|
17800
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17800
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17801
17801
|
var res;
|
|
17802
17802
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17803
17803
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -17962,7 +17962,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17962
17962
|
var resultList = [];
|
|
17963
17963
|
var newRouter = cloneDeep$1(router);
|
|
17964
17964
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17965
|
-
var
|
|
17965
|
+
var deep = function deep(router) {
|
|
17966
17966
|
if (router && Array.isArray(router)) {
|
|
17967
17967
|
router.forEach(function (item) {
|
|
17968
17968
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -17972,7 +17972,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17972
17972
|
d.nameEdit = true;
|
|
17973
17973
|
}
|
|
17974
17974
|
});
|
|
17975
|
-
|
|
17975
|
+
deep(item.routes);
|
|
17976
17976
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
17977
17977
|
id: "menu.".concat(item.name)
|
|
17978
17978
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -17991,7 +17991,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17991
17991
|
}));
|
|
17992
17992
|
}
|
|
17993
17993
|
};
|
|
17994
|
-
|
|
17994
|
+
deep(newRouter);
|
|
17995
17995
|
setroutesData([].concat(resultList));
|
|
17996
17996
|
};
|
|
17997
17997
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18073,7 +18073,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18073
18073
|
},
|
|
18074
18074
|
title: item.fullPathName
|
|
18075
18075
|
}, renderLineStyl(item.fullPathName));
|
|
18076
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18076
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18077
18077
|
employeeCode: employeeCode
|
|
18078
18078
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18079
18079
|
};
|
|
@@ -18088,7 +18088,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18088
18088
|
var TreeNode = Tree.TreeNode;
|
|
18089
18089
|
var Search$2 = Input.Search;
|
|
18090
18090
|
var dataList = [];
|
|
18091
|
-
var
|
|
18091
|
+
var generateList = function generateList(data) {
|
|
18092
18092
|
for (var i = 0; i < data.length; i++) {
|
|
18093
18093
|
var node = data[i];
|
|
18094
18094
|
var path = node.path,
|
|
@@ -18098,11 +18098,11 @@ var _generateList = function generateList(data) {
|
|
|
18098
18098
|
name: name
|
|
18099
18099
|
});
|
|
18100
18100
|
if (node.children) {
|
|
18101
|
-
|
|
18101
|
+
generateList(node.children);
|
|
18102
18102
|
}
|
|
18103
18103
|
}
|
|
18104
18104
|
};
|
|
18105
|
-
var
|
|
18105
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
18106
18106
|
var parentKey;
|
|
18107
18107
|
for (var i = 0; i < tree.length; i++) {
|
|
18108
18108
|
var node = tree[i];
|
|
@@ -18111,8 +18111,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
18111
18111
|
return item.path === path;
|
|
18112
18112
|
})) {
|
|
18113
18113
|
parentKey = node.path;
|
|
18114
|
-
} else if (
|
|
18115
|
-
parentKey =
|
|
18114
|
+
} else if (getParentKey(path, node.children)) {
|
|
18115
|
+
parentKey = getParentKey(path, node.children);
|
|
18116
18116
|
}
|
|
18117
18117
|
}
|
|
18118
18118
|
}
|
|
@@ -18143,7 +18143,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18143
18143
|
var treeData = _this.state.treeData;
|
|
18144
18144
|
var expandedKeys = dataList.map(function (item) {
|
|
18145
18145
|
if (item.name.indexOf(value) > -1) {
|
|
18146
|
-
return
|
|
18146
|
+
return getParentKey(item.path, treeData);
|
|
18147
18147
|
}
|
|
18148
18148
|
return null;
|
|
18149
18149
|
}).filter(function (item, i, self) {
|
|
@@ -18157,22 +18157,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18157
18157
|
};
|
|
18158
18158
|
_this.getPathList = function (originData) {
|
|
18159
18159
|
var pathList = [];
|
|
18160
|
-
var
|
|
18160
|
+
var getList = function getList(data) {
|
|
18161
18161
|
if (Array.isArray(data)) {
|
|
18162
18162
|
data.forEach(function (item) {
|
|
18163
18163
|
pathList.push(item.path);
|
|
18164
18164
|
if (item.children) {
|
|
18165
|
-
|
|
18165
|
+
getList(item.children);
|
|
18166
18166
|
}
|
|
18167
18167
|
});
|
|
18168
18168
|
} else {
|
|
18169
18169
|
pathList.push(data.path);
|
|
18170
18170
|
if (data.children) {
|
|
18171
|
-
|
|
18171
|
+
getList(data.children);
|
|
18172
18172
|
}
|
|
18173
18173
|
}
|
|
18174
18174
|
};
|
|
18175
|
-
|
|
18175
|
+
getList(originData);
|
|
18176
18176
|
return pathList;
|
|
18177
18177
|
};
|
|
18178
18178
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18181,18 +18181,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18181
18181
|
customerMenuData = _this$props.customerMenuData,
|
|
18182
18182
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18183
18183
|
var filterItem;
|
|
18184
|
-
var
|
|
18184
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
18185
18185
|
menuData.forEach(function (item) {
|
|
18186
18186
|
if (item.path === path) {
|
|
18187
18187
|
filterItem = _objectSpread2({}, item);
|
|
18188
18188
|
return;
|
|
18189
18189
|
}
|
|
18190
18190
|
if (item.children) {
|
|
18191
|
-
|
|
18191
|
+
filterMenuItem(item.children);
|
|
18192
18192
|
}
|
|
18193
18193
|
});
|
|
18194
18194
|
};
|
|
18195
|
-
|
|
18195
|
+
filterMenuItem(treeData);
|
|
18196
18196
|
var addPathList = _this.getPathList(filterItem);
|
|
18197
18197
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18198
18198
|
var isRepet = false;
|
|
@@ -18222,8 +18222,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18222
18222
|
return item.path === '/';
|
|
18223
18223
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18224
18224
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18225
|
-
|
|
18226
|
-
|
|
18225
|
+
setMenuTreeData(routesData);
|
|
18226
|
+
generateList(routesData);
|
|
18227
18227
|
this.setState({
|
|
18228
18228
|
treeData: routesData
|
|
18229
18229
|
});
|
|
@@ -18237,16 +18237,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18237
18237
|
expandedKeys = _this$state.expandedKeys,
|
|
18238
18238
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18239
18239
|
treeData = _this$state.treeData;
|
|
18240
|
-
var
|
|
18240
|
+
var loop = function loop(data) {
|
|
18241
18241
|
return data.map(function (item) {
|
|
18242
18242
|
var index = item.name.indexOf(searchValue);
|
|
18243
18243
|
var beforeStr = item.name.substr(0, index);
|
|
18244
18244
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18245
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18245
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18246
18246
|
style: {
|
|
18247
18247
|
color: '#f50'
|
|
18248
18248
|
}
|
|
18249
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18249
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18250
18250
|
if (item.children && item.children.length) {
|
|
18251
18251
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18252
18252
|
path: item.path,
|
|
@@ -18268,7 +18268,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18268
18268
|
width: 18,
|
|
18269
18269
|
src: arrowRight
|
|
18270
18270
|
}))))
|
|
18271
|
-
},
|
|
18271
|
+
}, loop(item.children));
|
|
18272
18272
|
}
|
|
18273
18273
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18274
18274
|
path: item.path,
|
|
@@ -18318,7 +18318,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18318
18318
|
onExpand: this.onExpand,
|
|
18319
18319
|
expandedKeys: expandedKeys,
|
|
18320
18320
|
autoExpandParent: autoExpandParent
|
|
18321
|
-
},
|
|
18321
|
+
}, loop(treeData))));
|
|
18322
18322
|
}
|
|
18323
18323
|
}]);
|
|
18324
18324
|
}(React$1.Component);
|
|
@@ -18351,24 +18351,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18351
18351
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18352
18352
|
var dragObj;
|
|
18353
18353
|
var finalDropItem;
|
|
18354
|
-
var
|
|
18354
|
+
var loop = function loop(data, path, callback) {
|
|
18355
18355
|
for (var i = 0; i < data.length; i++) {
|
|
18356
18356
|
if (data[i].path === path) {
|
|
18357
18357
|
return callback(data[i], i, data);
|
|
18358
18358
|
}
|
|
18359
18359
|
if (data[i].children) {
|
|
18360
|
-
|
|
18360
|
+
loop(data[i].children, path, callback);
|
|
18361
18361
|
}
|
|
18362
18362
|
}
|
|
18363
18363
|
};
|
|
18364
18364
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18365
|
-
|
|
18365
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
18366
18366
|
arr.splice(index, 1);
|
|
18367
18367
|
dragObj = item;
|
|
18368
18368
|
});
|
|
18369
18369
|
if (!info.dropToGap) {
|
|
18370
18370
|
// Drop on the content
|
|
18371
|
-
|
|
18371
|
+
loop(data, dropKey, function (item) {
|
|
18372
18372
|
item.children = item.children || [];
|
|
18373
18373
|
item.children.unshift(dragObj);
|
|
18374
18374
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18379,7 +18379,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18379
18379
|
// Is expanded
|
|
18380
18380
|
dropPosition === 1 // On the bottom gap
|
|
18381
18381
|
) {
|
|
18382
|
-
|
|
18382
|
+
loop(data, dropKey, function (item) {
|
|
18383
18383
|
item.children = item.children || [];
|
|
18384
18384
|
item.children.unshift(dragObj);
|
|
18385
18385
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18387,7 +18387,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18387
18387
|
} else {
|
|
18388
18388
|
var ar;
|
|
18389
18389
|
var i;
|
|
18390
|
-
|
|
18390
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
18391
18391
|
ar = arr;
|
|
18392
18392
|
i = index;
|
|
18393
18393
|
});
|
|
@@ -18426,17 +18426,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18426
18426
|
title: '编辑名称',
|
|
18427
18427
|
callBack: function callBack(newName) {
|
|
18428
18428
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18429
|
-
var
|
|
18429
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18430
18430
|
oldTreeData.forEach(function (treeItem) {
|
|
18431
18431
|
if (treeItem.path === item.path) {
|
|
18432
18432
|
treeItem.name = newName;
|
|
18433
18433
|
}
|
|
18434
18434
|
if (treeItem.children) {
|
|
18435
|
-
|
|
18435
|
+
editTreeDataName(treeItem.children);
|
|
18436
18436
|
}
|
|
18437
18437
|
});
|
|
18438
18438
|
};
|
|
18439
|
-
|
|
18439
|
+
editTreeDataName(oldTreeData);
|
|
18440
18440
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18441
18441
|
_this.setState({
|
|
18442
18442
|
modalInfo: {
|
|
@@ -18481,7 +18481,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18481
18481
|
title: '新增子目录',
|
|
18482
18482
|
callBack: function callBack(newName) {
|
|
18483
18483
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18484
|
-
var
|
|
18484
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
18485
18485
|
oldTreeData.forEach(function (treeItem) {
|
|
18486
18486
|
if (treeItem.path === item.path) {
|
|
18487
18487
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18493,11 +18493,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18493
18493
|
}];
|
|
18494
18494
|
}
|
|
18495
18495
|
if (treeItem.children) {
|
|
18496
|
-
|
|
18496
|
+
addChildFolder(treeItem.children);
|
|
18497
18497
|
}
|
|
18498
18498
|
});
|
|
18499
18499
|
};
|
|
18500
|
-
|
|
18500
|
+
addChildFolder(oldTreeData);
|
|
18501
18501
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18502
18502
|
_this.setState({
|
|
18503
18503
|
modalInfo: {
|
|
@@ -18556,7 +18556,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18556
18556
|
var _this$state = this.state,
|
|
18557
18557
|
modalInfo = _this$state.modalInfo,
|
|
18558
18558
|
checkedKeys = _this$state.checkedKeys;
|
|
18559
|
-
var
|
|
18559
|
+
var loop = function loop(data) {
|
|
18560
18560
|
return data.map(function (item) {
|
|
18561
18561
|
if (item.children && item.children.length) {
|
|
18562
18562
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -18573,7 +18573,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18573
18573
|
e.stopPropagation();
|
|
18574
18574
|
}
|
|
18575
18575
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
18576
|
-
},
|
|
18576
|
+
}, loop(item.children));
|
|
18577
18577
|
}
|
|
18578
18578
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
18579
18579
|
path: item.path,
|
|
@@ -18652,7 +18652,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18652
18652
|
children: 'children'
|
|
18653
18653
|
},
|
|
18654
18654
|
onDrop: this.onDrop
|
|
18655
|
-
},
|
|
18655
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
18656
18656
|
width: 600,
|
|
18657
18657
|
bodyStyle: {
|
|
18658
18658
|
paddingTop: '32px',
|
|
@@ -18765,7 +18765,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18765
18765
|
pathname: item.path
|
|
18766
18766
|
});
|
|
18767
18767
|
};
|
|
18768
|
-
var
|
|
18768
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
18769
18769
|
return menuData.map(function (item) {
|
|
18770
18770
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18771
18771
|
style: {
|
|
@@ -18780,7 +18780,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18780
18780
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18781
18781
|
paddingLeft: '4px'
|
|
18782
18782
|
}
|
|
18783
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
18783
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
18784
18784
|
});
|
|
18785
18785
|
};
|
|
18786
18786
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18806,7 +18806,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18806
18806
|
style: {
|
|
18807
18807
|
paddingLeft: '5px'
|
|
18808
18808
|
}
|
|
18809
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18809
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18810
18810
|
style: {
|
|
18811
18811
|
left: isDrawer ? 140 : 0
|
|
18812
18812
|
},
|
|
@@ -18827,7 +18827,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18827
18827
|
visible: isDrawer
|
|
18828
18828
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
18829
18829
|
className: 'menu_title_line'
|
|
18830
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
18830
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
18831
18831
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
18832
18832
|
style: {
|
|
18833
18833
|
fontWeight: '600',
|
|
@@ -18901,7 +18901,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18901
18901
|
return item.path === '/';
|
|
18902
18902
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18903
18903
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18904
|
-
|
|
18904
|
+
setMenuTreeData(routesData);
|
|
18905
18905
|
routesData.forEach(function (item) {
|
|
18906
18906
|
if (item.children) {
|
|
18907
18907
|
routesDataList.push(item);
|
|
@@ -18931,7 +18931,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18931
18931
|
setHeight(clientHeight - 190);
|
|
18932
18932
|
setDrawHeight(clientHeight - 70);
|
|
18933
18933
|
};
|
|
18934
|
-
var
|
|
18934
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18935
18935
|
if (!child.hideInMenu && child.children) {
|
|
18936
18936
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18937
18937
|
style: {
|
|
@@ -18941,7 +18941,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18941
18941
|
}, formatMessage({
|
|
18942
18942
|
id: "".concat(child.locale)
|
|
18943
18943
|
})), child.children.map(function (menuItem) {
|
|
18944
|
-
return
|
|
18944
|
+
return renderChildItem(menuItem);
|
|
18945
18945
|
}));
|
|
18946
18946
|
} else if (!child.hideInMenu && child.path) {
|
|
18947
18947
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19083,7 +19083,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19083
19083
|
onMenuClick(e, item);
|
|
19084
19084
|
}
|
|
19085
19085
|
}, item.name);
|
|
19086
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19086
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
19087
19087
|
className: 'search_menu_content'
|
|
19088
19088
|
}, SearhData.map(function (item) {
|
|
19089
19089
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19092,7 +19092,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19092
19092
|
},
|
|
19093
19093
|
key: item.path
|
|
19094
19094
|
}, item.name);
|
|
19095
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19095
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19096
19096
|
style: {
|
|
19097
19097
|
height: "".concat(rightMenuHeight, "px"),
|
|
19098
19098
|
overflowY: 'scroll',
|
|
@@ -19104,7 +19104,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19104
19104
|
className: 'drawerWarp_right'
|
|
19105
19105
|
}, homepageData && homepageData.filter(function (d) {
|
|
19106
19106
|
return !d.hideInMenu;
|
|
19107
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19107
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
19108
19108
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19109
19109
|
dataSource: homepageData,
|
|
19110
19110
|
renderItem: function renderItem(child) {
|
|
@@ -19145,7 +19145,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19145
19145
|
bordered: true,
|
|
19146
19146
|
dataSource: item.children,
|
|
19147
19147
|
renderItem: function renderItem(child) {
|
|
19148
|
-
return
|
|
19148
|
+
return renderChildItem(child);
|
|
19149
19149
|
}
|
|
19150
19150
|
});
|
|
19151
19151
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19303,10 +19303,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19303
19303
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19304
19304
|
var menuKeys = [];
|
|
19305
19305
|
var docsId = [];
|
|
19306
|
-
var
|
|
19306
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19307
19307
|
data.forEach(function (item) {
|
|
19308
19308
|
if (item.children && item.children.length > 0) {
|
|
19309
|
-
|
|
19309
|
+
getLimitedMenuKeys(item.children);
|
|
19310
19310
|
} else {
|
|
19311
19311
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19312
19312
|
menuKeys.push(originPath);
|
|
@@ -19317,7 +19317,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19317
19317
|
});
|
|
19318
19318
|
};
|
|
19319
19319
|
try {
|
|
19320
|
-
|
|
19320
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
19321
19321
|
} catch (e) {}
|
|
19322
19322
|
return {
|
|
19323
19323
|
menuKeys: menuKeys,
|
|
@@ -19551,10 +19551,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19551
19551
|
return (node.path || '').includes('all-general-documents');
|
|
19552
19552
|
};
|
|
19553
19553
|
// 递归获取树列表
|
|
19554
|
-
var
|
|
19554
|
+
var getTreeList = function getTreeList(data) {
|
|
19555
19555
|
data.forEach(function (node) {
|
|
19556
19556
|
if (node.routes && node.routes.length > 0) {
|
|
19557
|
-
|
|
19557
|
+
getTreeList(node.routes);
|
|
19558
19558
|
return;
|
|
19559
19559
|
}
|
|
19560
19560
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19585,7 +19585,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19585
19585
|
}
|
|
19586
19586
|
});
|
|
19587
19587
|
};
|
|
19588
|
-
|
|
19588
|
+
getTreeList(treeData);
|
|
19589
19589
|
return treeList;
|
|
19590
19590
|
};
|
|
19591
19591
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20202,7 +20202,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20202
20202
|
updateState = _ref8.updateState;
|
|
20203
20203
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20204
20204
|
className: "tab_title_content"
|
|
20205
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20205
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20206
20206
|
info: item,
|
|
20207
20207
|
operateFun: _this3.operateFun,
|
|
20208
20208
|
listenRouterState: listenRouterState
|
|
@@ -20338,7 +20338,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20338
20338
|
};
|
|
20339
20339
|
}
|
|
20340
20340
|
var OperationsSlot = {
|
|
20341
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20341
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20342
20342
|
className: 'tab_left_operate'
|
|
20343
20343
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20344
20344
|
onClick: function onClick() {
|
|
@@ -20354,7 +20354,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20354
20354
|
_this3.setTabNavTransLate(-100);
|
|
20355
20355
|
}
|
|
20356
20356
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20357
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20357
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20358
20358
|
style: {
|
|
20359
20359
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20360
20360
|
},
|
|
@@ -20452,7 +20452,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20452
20452
|
onMouseLeave: function onMouseLeave() {
|
|
20453
20453
|
_this3.setShowMenu(false);
|
|
20454
20454
|
}
|
|
20455
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20455
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20456
20456
|
style: {
|
|
20457
20457
|
position: 'absolute',
|
|
20458
20458
|
top: '14px',
|
|
@@ -20471,7 +20471,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20471
20471
|
postMenuData: function postMenuData(menus) {
|
|
20472
20472
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20473
20473
|
},
|
|
20474
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20474
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20475
20475
|
ref: this.allFunc,
|
|
20476
20476
|
itemPath: itemPath,
|
|
20477
20477
|
handleClose: this.handleClose,
|
|
@@ -20489,7 +20489,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20489
20489
|
},
|
|
20490
20490
|
menu: {
|
|
20491
20491
|
request: function () {
|
|
20492
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20492
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20493
20493
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20494
20494
|
while (1) switch (_context.prev = _context.next) {
|
|
20495
20495
|
case 0:
|
|
@@ -20620,7 +20620,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20620
20620
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20621
20621
|
timeFormat = _this$props4.timeFormat,
|
|
20622
20622
|
transparentProps = _this$props4.transparentProps;
|
|
20623
|
-
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({
|
|
20623
|
+
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({
|
|
20624
20624
|
getDictionarySource: getDictionarySource,
|
|
20625
20625
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20626
20626
|
timeFormat: timeFormat
|
|
@@ -20644,12 +20644,12 @@ var index$5 = (function (props) {
|
|
|
20644
20644
|
});
|
|
20645
20645
|
|
|
20646
20646
|
// @ts-nocheck
|
|
20647
|
-
var
|
|
20647
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
20648
20648
|
var result = [];
|
|
20649
20649
|
columns.forEach(function (column) {
|
|
20650
20650
|
if (column.children) {
|
|
20651
20651
|
result.push(column);
|
|
20652
|
-
result.push.apply(result,
|
|
20652
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
20653
20653
|
} else {
|
|
20654
20654
|
result.push(column);
|
|
20655
20655
|
}
|
|
@@ -20658,7 +20658,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
20658
20658
|
};
|
|
20659
20659
|
var convertToRows = function convertToRows(originColumns) {
|
|
20660
20660
|
var maxLevel = 1;
|
|
20661
|
-
var
|
|
20661
|
+
var traverse = function traverse(column, parent) {
|
|
20662
20662
|
if (parent) {
|
|
20663
20663
|
column.level = parent.level + 1;
|
|
20664
20664
|
if (maxLevel < column.level) {
|
|
@@ -20668,7 +20668,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20668
20668
|
if (column.children) {
|
|
20669
20669
|
var colSpan = 0;
|
|
20670
20670
|
column.children.forEach(function (subColumn) {
|
|
20671
|
-
|
|
20671
|
+
traverse(subColumn, column);
|
|
20672
20672
|
colSpan += subColumn.colSpan;
|
|
20673
20673
|
});
|
|
20674
20674
|
column.colSpan = colSpan;
|
|
@@ -20678,13 +20678,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20678
20678
|
};
|
|
20679
20679
|
originColumns.forEach(function (column) {
|
|
20680
20680
|
column.level = 1;
|
|
20681
|
-
|
|
20681
|
+
traverse(column);
|
|
20682
20682
|
});
|
|
20683
20683
|
var rows = [];
|
|
20684
20684
|
for (var i = 0; i < maxLevel; i++) {
|
|
20685
20685
|
rows.push([]);
|
|
20686
20686
|
}
|
|
20687
|
-
var allColumns =
|
|
20687
|
+
var allColumns = getAllColumns(originColumns);
|
|
20688
20688
|
allColumns.forEach(function (column) {
|
|
20689
20689
|
if (!column.children) {
|
|
20690
20690
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20724,7 +20724,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20724
20724
|
};
|
|
20725
20725
|
var headersToRows = function headersToRows(originColumns) {
|
|
20726
20726
|
var maxLevel = 1;
|
|
20727
|
-
var
|
|
20727
|
+
var traverse = function traverse(column, parent) {
|
|
20728
20728
|
if (parent) {
|
|
20729
20729
|
//计算当前元素属于第几个层级
|
|
20730
20730
|
column.level = parent.level + 1;
|
|
@@ -20737,7 +20737,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20737
20737
|
var colSpan = 0;
|
|
20738
20738
|
column.children.forEach(function (subColumn) {
|
|
20739
20739
|
//进行递归
|
|
20740
|
-
|
|
20740
|
+
traverse(subColumn, column);
|
|
20741
20741
|
colSpan += subColumn.colSpan;
|
|
20742
20742
|
});
|
|
20743
20743
|
column.colSpan = colSpan;
|
|
@@ -20747,14 +20747,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20747
20747
|
};
|
|
20748
20748
|
originColumns.forEach(function (column) {
|
|
20749
20749
|
column.level = 1;
|
|
20750
|
-
|
|
20750
|
+
traverse(column);
|
|
20751
20751
|
});
|
|
20752
20752
|
var rows = [];
|
|
20753
20753
|
var lastData = [];
|
|
20754
20754
|
for (var i = 0; i < maxLevel; i++) {
|
|
20755
20755
|
rows.push([]);
|
|
20756
20756
|
}
|
|
20757
|
-
var allColumns =
|
|
20757
|
+
var allColumns = getAllColumns(originColumns);
|
|
20758
20758
|
allColumns.forEach(function (column) {
|
|
20759
20759
|
if (!column.children) {
|
|
20760
20760
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26771,7 +26771,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26771
26771
|
}
|
|
26772
26772
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26773
26773
|
};
|
|
26774
|
-
var
|
|
26774
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
26775
26775
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26776
26776
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26777
26777
|
var children = hightLightData.children,
|
|
@@ -26782,7 +26782,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26782
26782
|
lineEnd = _loc2[2];
|
|
26783
26783
|
if (children) {
|
|
26784
26784
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26785
|
-
return
|
|
26785
|
+
return hasHighLightChildren(v, highLightLine);
|
|
26786
26786
|
});
|
|
26787
26787
|
}
|
|
26788
26788
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26794,7 +26794,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26794
26794
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26795
26795
|
data.forEach(function (node) {
|
|
26796
26796
|
if (!node) return;
|
|
26797
|
-
node.toggled =
|
|
26797
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
26798
26798
|
node.active = isHightLight(node, highLightLine);
|
|
26799
26799
|
if (node.children) {
|
|
26800
26800
|
if (node.active) {
|
|
@@ -28225,7 +28225,7 @@ var valueType = {
|
|
|
28225
28225
|
};
|
|
28226
28226
|
|
|
28227
28227
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28228
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28228
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28229
28229
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28230
28230
|
while (1) switch (_context.prev = _context.next) {
|
|
28231
28231
|
case 0:
|
|
@@ -28293,7 +28293,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28293
28293
|
value: false
|
|
28294
28294
|
}];
|
|
28295
28295
|
var ref = useRef();
|
|
28296
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28296
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28297
28297
|
var _ref$current, source;
|
|
28298
28298
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28299
28299
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28407,7 +28407,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28407
28407
|
source: {
|
|
28408
28408
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28409
28409
|
type: function () {
|
|
28410
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28410
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28411
28411
|
var form, values, name, relates, source;
|
|
28412
28412
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28413
28413
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -28887,7 +28887,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28887
28887
|
source: {
|
|
28888
28888
|
relates: ['choiceType', 'inputType'],
|
|
28889
28889
|
type: function () {
|
|
28890
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
28890
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
28891
28891
|
var values, name, form, source;
|
|
28892
28892
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
28893
28893
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29109,7 +29109,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29109
29109
|
width: 900,
|
|
29110
29110
|
maskClosable: false,
|
|
29111
29111
|
onOk: function () {
|
|
29112
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29112
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29113
29113
|
var _ref$current4, _res$editableStatus;
|
|
29114
29114
|
var res, _res$defaultValue;
|
|
29115
29115
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29181,7 +29181,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29181
29181
|
}()
|
|
29182
29182
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29183
29183
|
ref: ref
|
|
29184
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29184
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29185
29185
|
};
|
|
29186
29186
|
|
|
29187
29187
|
// @ts-nocheck
|
|
@@ -29795,7 +29795,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29795
29795
|
return setVisible(false);
|
|
29796
29796
|
},
|
|
29797
29797
|
className: 'customFieldsDrawer'
|
|
29798
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
29798
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
29799
29799
|
style: {
|
|
29800
29800
|
display: 'flex'
|
|
29801
29801
|
}
|
|
@@ -29804,13 +29804,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29804
29804
|
flex: 1,
|
|
29805
29805
|
width: 500
|
|
29806
29806
|
}
|
|
29807
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29807
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29808
29808
|
style: {
|
|
29809
29809
|
padding: "10px 0",
|
|
29810
29810
|
fontSize: "16px",
|
|
29811
29811
|
fontWeight: "bolder"
|
|
29812
29812
|
}
|
|
29813
|
-
}, "\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", {
|
|
29813
|
+
}, "\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", {
|
|
29814
29814
|
style: {
|
|
29815
29815
|
flex: 1
|
|
29816
29816
|
}
|
|
@@ -29819,7 +29819,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29819
29819
|
onRun: onClickRun,
|
|
29820
29820
|
value: jsonEditorVal,
|
|
29821
29821
|
shallowHeight: height
|
|
29822
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
29822
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
29823
29823
|
defaultActiveKey: activeKey,
|
|
29824
29824
|
onChange: function onChange(v) {
|
|
29825
29825
|
return setActiveKey(v);
|
|
@@ -29836,13 +29836,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29836
29836
|
flex: 1,
|
|
29837
29837
|
width: 500
|
|
29838
29838
|
}
|
|
29839
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29839
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29840
29840
|
style: {
|
|
29841
29841
|
padding: "10px 0",
|
|
29842
29842
|
fontSize: "16px",
|
|
29843
29843
|
fontWeight: "bolder"
|
|
29844
29844
|
}
|
|
29845
|
-
}, "\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", {
|
|
29845
|
+
}, "\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", {
|
|
29846
29846
|
style: {
|
|
29847
29847
|
flex: 1
|
|
29848
29848
|
}
|
|
@@ -29864,13 +29864,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29864
29864
|
flex: 1,
|
|
29865
29865
|
width: 500
|
|
29866
29866
|
}
|
|
29867
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29867
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29868
29868
|
style: {
|
|
29869
29869
|
padding: "10px 0",
|
|
29870
29870
|
fontSize: "16px",
|
|
29871
29871
|
fontWeight: "bolder"
|
|
29872
29872
|
}
|
|
29873
|
-
}, "\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", {
|
|
29873
|
+
}, "\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", {
|
|
29874
29874
|
style: {
|
|
29875
29875
|
flex: 1
|
|
29876
29876
|
}
|
|
@@ -30016,7 +30016,7 @@ function getMetaData(_x) {
|
|
|
30016
30016
|
|
|
30017
30017
|
// 获取数据
|
|
30018
30018
|
function _getMetaData() {
|
|
30019
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30019
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30020
30020
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30021
30021
|
while (1) switch (_context.prev = _context.next) {
|
|
30022
30022
|
case 0:
|
|
@@ -30238,7 +30238,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30238
30238
|
tableState = _useState4[0],
|
|
30239
30239
|
setTableState = _useState4[1];
|
|
30240
30240
|
var handleOpen = /*#__PURE__*/function () {
|
|
30241
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30241
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30242
30242
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30243
30243
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30244
30244
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30557,7 +30557,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30557
30557
|
destroyOnClose: true
|
|
30558
30558
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
30559
30559
|
ref: queryTableRef
|
|
30560
|
-
}, 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, {
|
|
30560
|
+
}, 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, {
|
|
30561
30561
|
justify: "center",
|
|
30562
30562
|
style: {
|
|
30563
30563
|
marginBottom: 30,
|
|
@@ -30673,7 +30673,7 @@ var CustomSelector = (function (props) {
|
|
|
30673
30673
|
var _props$ctx7;
|
|
30674
30674
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30675
30675
|
}
|
|
30676
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30676
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
30677
30677
|
type: "primary",
|
|
30678
30678
|
style: {
|
|
30679
30679
|
width: '30px',
|
|
@@ -30759,7 +30759,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30759
30759
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30760
30760
|
handSource = _useState2[0],
|
|
30761
30761
|
setHandSource = _useState2[1];
|
|
30762
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30762
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30763
30763
|
var resData, data;
|
|
30764
30764
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30765
30765
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30911,7 +30911,7 @@ function getRegularThresholdRange(_x) {
|
|
|
30911
30911
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
30912
30912
|
}
|
|
30913
30913
|
function _getRegularThresholdRange() {
|
|
30914
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
30914
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
30915
30915
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30916
30916
|
while (1) switch (_context.prev = _context.next) {
|
|
30917
30917
|
case 0:
|
|
@@ -31065,7 +31065,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31065
31065
|
};
|
|
31066
31066
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31067
31067
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31068
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31068
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31069
31069
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31070
31070
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31071
31071
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32010,7 +32010,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32010
32010
|
isAll: true,
|
|
32011
32011
|
needNameAndCode: true,
|
|
32012
32012
|
notChangeOnSelect: true,
|
|
32013
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32013
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32014
32014
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32015
32015
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32016
32016
|
case 0:
|
|
@@ -32059,7 +32059,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32059
32059
|
isAll: true,
|
|
32060
32060
|
needNameAndCode: true,
|
|
32061
32061
|
notChangeOnSelect: true,
|
|
32062
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32062
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32063
32063
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32064
32064
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32065
32065
|
case 0:
|
|
@@ -32110,7 +32110,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32110
32110
|
isAll: true,
|
|
32111
32111
|
needNameAndCode: true,
|
|
32112
32112
|
notChangeOnSelect: true,
|
|
32113
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32113
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32114
32114
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32115
32115
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32116
32116
|
case 0:
|
|
@@ -34074,7 +34074,7 @@ var App$1 = function App(_ref) {
|
|
|
34074
34074
|
borderRadius: '5px',
|
|
34075
34075
|
cursor: 'pointer'
|
|
34076
34076
|
}
|
|
34077
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34077
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
34078
34078
|
autoFocus: true,
|
|
34079
34079
|
onClick: function onClick(e) {
|
|
34080
34080
|
return e.stopPropagation();
|
|
@@ -34361,7 +34361,7 @@ function RenderCompItem(props) {
|
|
|
34361
34361
|
dictData = _useState2[0],
|
|
34362
34362
|
setDictData = _useState2[1];
|
|
34363
34363
|
var getDictData = /*#__PURE__*/function () {
|
|
34364
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34364
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34365
34365
|
var _data$map;
|
|
34366
34366
|
var data;
|
|
34367
34367
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34403,7 +34403,7 @@ function RenderCompItem(props) {
|
|
|
34403
34403
|
var style2 = {
|
|
34404
34404
|
width: '100px'
|
|
34405
34405
|
};
|
|
34406
|
-
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, {
|
|
34406
|
+
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, {
|
|
34407
34407
|
disabled: disabled,
|
|
34408
34408
|
allowClear: true,
|
|
34409
34409
|
onClear: function onClear() {
|
|
@@ -34414,7 +34414,7 @@ function RenderCompItem(props) {
|
|
|
34414
34414
|
onBlur: function onBlur(e) {
|
|
34415
34415
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34416
34416
|
}
|
|
34417
|
-
})) || 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, {
|
|
34417
|
+
})) || 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, {
|
|
34418
34418
|
disabled: disabled,
|
|
34419
34419
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34420
34420
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34427,7 +34427,7 @@ function RenderCompItem(props) {
|
|
|
34427
34427
|
onChange: function onChange(value) {
|
|
34428
34428
|
handleEdit(ites.code, value);
|
|
34429
34429
|
}
|
|
34430
|
-
})) || 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, {
|
|
34430
|
+
})) || 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, {
|
|
34431
34431
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34432
34432
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34433
34433
|
disabled: disabled,
|
|
@@ -34437,7 +34437,7 @@ function RenderCompItem(props) {
|
|
|
34437
34437
|
onChange: function onChange(value, dateString) {
|
|
34438
34438
|
handleEdit(ites.code, dateString);
|
|
34439
34439
|
}
|
|
34440
|
-
})) || 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, {
|
|
34440
|
+
})) || 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, {
|
|
34441
34441
|
showTime: true,
|
|
34442
34442
|
disabled: disabled,
|
|
34443
34443
|
defaultValue: ites.defaultValue,
|
|
@@ -34446,7 +34446,7 @@ function RenderCompItem(props) {
|
|
|
34446
34446
|
onChange: function onChange(value, timeString) {
|
|
34447
34447
|
handleEdit(ites.code, timeString);
|
|
34448
34448
|
}
|
|
34449
|
-
})) || 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, {
|
|
34449
|
+
})) || 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, {
|
|
34450
34450
|
disabled: disabled,
|
|
34451
34451
|
defaultChecked: !!ites.defaultValue,
|
|
34452
34452
|
style: style2,
|
|
@@ -34454,7 +34454,7 @@ function RenderCompItem(props) {
|
|
|
34454
34454
|
onChange: function onChange(value) {
|
|
34455
34455
|
handleEdit(ites.code, value);
|
|
34456
34456
|
}
|
|
34457
|
-
})) || 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({
|
|
34457
|
+
})) || 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({
|
|
34458
34458
|
disabled: disabled,
|
|
34459
34459
|
allowClear: true,
|
|
34460
34460
|
showArrow: true
|
|
@@ -34472,7 +34472,7 @@ function RenderCompItem(props) {
|
|
|
34472
34472
|
key: it,
|
|
34473
34473
|
value: it
|
|
34474
34474
|
}, ites.enumeration[it]);
|
|
34475
|
-
}))) || 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, {
|
|
34475
|
+
}))) || 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, {
|
|
34476
34476
|
disabled: disabled,
|
|
34477
34477
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34478
34478
|
defaultValue: ites.defaultValue,
|
|
@@ -34482,7 +34482,7 @@ function RenderCompItem(props) {
|
|
|
34482
34482
|
handleEdit(ites.code, value);
|
|
34483
34483
|
},
|
|
34484
34484
|
dictionaryCode: ites.dictionaryCode
|
|
34485
|
-
})) || 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, {
|
|
34485
|
+
})) || 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, {
|
|
34486
34486
|
selectBusinessType: "physicalWarehouse",
|
|
34487
34487
|
selectProps: _objectSpread2({
|
|
34488
34488
|
style: styleCommon,
|
|
@@ -34504,7 +34504,7 @@ function RenderCompItem(props) {
|
|
|
34504
34504
|
getPopupContainer: function getPopupContainer() {
|
|
34505
34505
|
return document.body;
|
|
34506
34506
|
}
|
|
34507
|
-
})) || 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, {
|
|
34507
|
+
})) || 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, {
|
|
34508
34508
|
selectBusinessType: "realWarehouse",
|
|
34509
34509
|
selectProps: _objectSpread2({
|
|
34510
34510
|
style: styleCommon,
|
|
@@ -34526,7 +34526,7 @@ function RenderCompItem(props) {
|
|
|
34526
34526
|
getPopupContainer: function getPopupContainer() {
|
|
34527
34527
|
return document.body;
|
|
34528
34528
|
}
|
|
34529
|
-
})) || 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, {
|
|
34529
|
+
})) || 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, {
|
|
34530
34530
|
selectBusinessType: "virtualWarehouse",
|
|
34531
34531
|
selectProps: _objectSpread2({
|
|
34532
34532
|
style: styleCommon,
|
|
@@ -34548,7 +34548,7 @@ function RenderCompItem(props) {
|
|
|
34548
34548
|
getPopupContainer: function getPopupContainer() {
|
|
34549
34549
|
return document.body;
|
|
34550
34550
|
}
|
|
34551
|
-
})) || 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, {
|
|
34551
|
+
})) || 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, {
|
|
34552
34552
|
selectBusinessType: "channelWarehouse",
|
|
34553
34553
|
selectProps: _objectSpread2({
|
|
34554
34554
|
style: styleCommon,
|
|
@@ -34570,7 +34570,7 @@ function RenderCompItem(props) {
|
|
|
34570
34570
|
getPopupContainer: function getPopupContainer() {
|
|
34571
34571
|
return document.body;
|
|
34572
34572
|
}
|
|
34573
|
-
})) || 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, {
|
|
34573
|
+
})) || 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, {
|
|
34574
34574
|
selectBusinessType: "spuCommodity",
|
|
34575
34575
|
selectProps: _objectSpread2({
|
|
34576
34576
|
style: styleCommon,
|
|
@@ -34591,7 +34591,7 @@ function RenderCompItem(props) {
|
|
|
34591
34591
|
getPopupContainer: function getPopupContainer() {
|
|
34592
34592
|
return document.body;
|
|
34593
34593
|
}
|
|
34594
|
-
})) || 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, {
|
|
34594
|
+
})) || 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, {
|
|
34595
34595
|
selectBusinessType: "skuCommodity",
|
|
34596
34596
|
selectProps: _objectSpread2({
|
|
34597
34597
|
style: styleCommon,
|
|
@@ -34612,13 +34612,13 @@ function RenderCompItem(props) {
|
|
|
34612
34612
|
getPopupContainer: function getPopupContainer() {
|
|
34613
34613
|
return document.body;
|
|
34614
34614
|
}
|
|
34615
|
-
})) || 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, {
|
|
34615
|
+
})) || 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, {
|
|
34616
34616
|
disabled: disabled,
|
|
34617
34617
|
isAll: true,
|
|
34618
34618
|
needNameAndCode: true,
|
|
34619
34619
|
notChangeOnSelect: true,
|
|
34620
34620
|
initRequestSource: function () {
|
|
34621
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34621
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34622
34622
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34623
34623
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34624
34624
|
case 0:
|
|
@@ -34660,7 +34660,7 @@ function RenderCompItem(props) {
|
|
|
34660
34660
|
getPopupContainer: function getPopupContainer() {
|
|
34661
34661
|
return document.body;
|
|
34662
34662
|
}
|
|
34663
|
-
})) || 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, {
|
|
34663
|
+
})) || 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, {
|
|
34664
34664
|
disabled: disabled,
|
|
34665
34665
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34666
34666
|
businessType: "department",
|
|
@@ -34673,7 +34673,7 @@ function RenderCompItem(props) {
|
|
|
34673
34673
|
getPopupContainer: function getPopupContainer() {
|
|
34674
34674
|
return document.body;
|
|
34675
34675
|
}
|
|
34676
|
-
})) || 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, {
|
|
34676
|
+
})) || 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, {
|
|
34677
34677
|
disabled: disabled,
|
|
34678
34678
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34679
34679
|
businessType: "purchase-organization",
|
|
@@ -34686,7 +34686,7 @@ function RenderCompItem(props) {
|
|
|
34686
34686
|
getPopupContainer: function getPopupContainer() {
|
|
34687
34687
|
return document.body;
|
|
34688
34688
|
}
|
|
34689
|
-
})) || 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, {
|
|
34689
|
+
})) || 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, {
|
|
34690
34690
|
disabled: disabled,
|
|
34691
34691
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34692
34692
|
businessType: "sales-organization",
|
|
@@ -34699,7 +34699,7 @@ function RenderCompItem(props) {
|
|
|
34699
34699
|
getPopupContainer: function getPopupContainer() {
|
|
34700
34700
|
return document.body;
|
|
34701
34701
|
}
|
|
34702
|
-
})) || 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, {
|
|
34702
|
+
})) || 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, {
|
|
34703
34703
|
selectBusinessType: "supplier2",
|
|
34704
34704
|
selectProps: _objectSpread2({
|
|
34705
34705
|
style: styleCommon,
|
|
@@ -34720,7 +34720,7 @@ function RenderCompItem(props) {
|
|
|
34720
34720
|
getPopupContainer: function getPopupContainer() {
|
|
34721
34721
|
return document.body;
|
|
34722
34722
|
}
|
|
34723
|
-
})) || 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, {
|
|
34723
|
+
})) || 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, {
|
|
34724
34724
|
selectBusinessType: "customer2",
|
|
34725
34725
|
selectProps: _objectSpread2({
|
|
34726
34726
|
style: styleCommon,
|
|
@@ -34741,7 +34741,7 @@ function RenderCompItem(props) {
|
|
|
34741
34741
|
getPopupContainer: function getPopupContainer() {
|
|
34742
34742
|
return document.body;
|
|
34743
34743
|
}
|
|
34744
|
-
})) || 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, {
|
|
34744
|
+
})) || 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, {
|
|
34745
34745
|
selectBusinessType: "shopFile2",
|
|
34746
34746
|
selectProps: _objectSpread2({
|
|
34747
34747
|
style: styleCommon,
|
|
@@ -34762,7 +34762,7 @@ function RenderCompItem(props) {
|
|
|
34762
34762
|
getPopupContainer: function getPopupContainer() {
|
|
34763
34763
|
return document.body;
|
|
34764
34764
|
}
|
|
34765
|
-
})) || 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, {
|
|
34765
|
+
})) || 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, {
|
|
34766
34766
|
selectBusinessType: "employee2",
|
|
34767
34767
|
selectProps: _objectSpread2({
|
|
34768
34768
|
style: styleCommon,
|
|
@@ -34783,7 +34783,7 @@ function RenderCompItem(props) {
|
|
|
34783
34783
|
getPopupContainer: function getPopupContainer() {
|
|
34784
34784
|
return document.body;
|
|
34785
34785
|
}
|
|
34786
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34786
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34787
34787
|
disabled: disabled,
|
|
34788
34788
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34789
34789
|
businessType: "stock-organization",
|
|
@@ -34796,7 +34796,7 @@ function RenderCompItem(props) {
|
|
|
34796
34796
|
getPopupContainer: function getPopupContainer() {
|
|
34797
34797
|
return document.body;
|
|
34798
34798
|
}
|
|
34799
|
-
})) || 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, {
|
|
34799
|
+
})) || 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, {
|
|
34800
34800
|
disabled: disabled,
|
|
34801
34801
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34802
34802
|
businessType: "settle-organization",
|
|
@@ -34809,7 +34809,7 @@ function RenderCompItem(props) {
|
|
|
34809
34809
|
getPopupContainer: function getPopupContainer() {
|
|
34810
34810
|
return document.body;
|
|
34811
34811
|
}
|
|
34812
|
-
})) || 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, {
|
|
34812
|
+
})) || 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, {
|
|
34813
34813
|
selectBusinessType: "deliveryMode",
|
|
34814
34814
|
selectProps: _objectSpread2({
|
|
34815
34815
|
style: styleCommon,
|
|
@@ -34830,7 +34830,7 @@ function RenderCompItem(props) {
|
|
|
34830
34830
|
getPopupContainer: function getPopupContainer() {
|
|
34831
34831
|
return document.body;
|
|
34832
34832
|
}
|
|
34833
|
-
})) || 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, {
|
|
34833
|
+
})) || 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, {
|
|
34834
34834
|
selectBusinessType: "role",
|
|
34835
34835
|
selectProps: _objectSpread2({
|
|
34836
34836
|
style: styleCommon,
|
|
@@ -34851,7 +34851,7 @@ function RenderCompItem(props) {
|
|
|
34851
34851
|
getPopupContainer: function getPopupContainer() {
|
|
34852
34852
|
return document.body;
|
|
34853
34853
|
}
|
|
34854
|
-
})) || 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, {
|
|
34854
|
+
})) || 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, {
|
|
34855
34855
|
selectBusinessType: "brand",
|
|
34856
34856
|
selectProps: _objectSpread2({
|
|
34857
34857
|
style: styleCommon,
|
|
@@ -34872,7 +34872,7 @@ function RenderCompItem(props) {
|
|
|
34872
34872
|
getPopupContainer: function getPopupContainer() {
|
|
34873
34873
|
return document.body;
|
|
34874
34874
|
}
|
|
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) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
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) === 420 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34876
34876
|
disabled: disabled,
|
|
34877
34877
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34878
34878
|
businessType: "background-category",
|
|
@@ -34885,7 +34885,7 @@ function RenderCompItem(props) {
|
|
|
34885
34885
|
getPopupContainer: function getPopupContainer() {
|
|
34886
34886
|
return document.body;
|
|
34887
34887
|
}
|
|
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) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
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) === 40 && ( /*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
34889
34889
|
selectProps: _objectSpread2(_objectSpread2({
|
|
34890
34890
|
style: styleCommon,
|
|
34891
34891
|
placeholder: '请选择'
|
|
@@ -34908,7 +34908,7 @@ function RenderCompItem(props) {
|
|
|
34908
34908
|
onChange: function onChange(value) {
|
|
34909
34909
|
handleEdit(ites.code, value);
|
|
34910
34910
|
}
|
|
34911
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
34911
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
34912
34912
|
style: {
|
|
34913
34913
|
display: 'flex'
|
|
34914
34914
|
}
|
|
@@ -35420,7 +35420,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35420
35420
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35421
35421
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35422
35422
|
}
|
|
35423
|
-
var parallelTreeData =
|
|
35423
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
35424
35424
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35425
35425
|
var _i$key;
|
|
35426
35426
|
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);
|
|
@@ -35672,7 +35672,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35672
35672
|
return i.code == code;
|
|
35673
35673
|
})) === null || _itemDetail$response$ === void 0 ? void 0 : _itemDetail$response$.value;
|
|
35674
35674
|
if (type === 'input') {
|
|
35675
|
-
return pCode === undefined ? pCode : pCode
|
|
35675
|
+
return pCode === undefined ? pCode : judgeIsEmpty(pCode) ? defaultValue : pCode;
|
|
35676
35676
|
}
|
|
35677
35677
|
if (['date', 'dateTime', 'rangeTime'].includes(type)) {
|
|
35678
35678
|
if (['date', 'dateTime'].includes(type)) return pCode ? moment$1(pCode) : pCode;
|
|
@@ -35698,7 +35698,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35698
35698
|
});
|
|
35699
35699
|
return _newPCode || pCode || defaultValue;
|
|
35700
35700
|
}
|
|
35701
|
-
return pCode || defaultValue;
|
|
35701
|
+
// return pCode || defaultValue;
|
|
35702
|
+
return judgeIsEmpty(pCode) ? defaultValue : pCode;
|
|
35702
35703
|
};
|
|
35703
35704
|
var handleEdit = function handleEdit(code, val, functionItem) {
|
|
35704
35705
|
var value = val;
|
|
@@ -36256,7 +36257,7 @@ var handleRuleShowBack = function handleRuleShowBack(data, functionRuleList, rul
|
|
|
36256
36257
|
var isStringValue = typeof itemValue == 'string' && (itemValue === null || itemValue === void 0 ? void 0 : itemValue.includes(','));
|
|
36257
36258
|
if (Item) {
|
|
36258
36259
|
return _objectSpread2(_objectSpread2({}, Item), {}, {
|
|
36259
|
-
value: (isStringValue ? itemValue === null || itemValue === void 0 ? void 0 : itemValue.split(',') : itemValue
|
|
36260
|
+
value: judgeIsEmpty(itemValue) ? defaultValue || '' : isStringValue ? itemValue === null || itemValue === void 0 ? void 0 : itemValue.split(',') : itemValue,
|
|
36260
36261
|
formulaName: Item === null || Item === void 0 ? void 0 : Item.formulaName,
|
|
36261
36262
|
enable: (Item === null || Item === void 0 ? void 0 : Item.enable) !== false
|
|
36262
36263
|
});
|
|
@@ -36346,13 +36347,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36346
36347
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36347
36348
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36348
36349
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36349
|
-
var list =
|
|
36350
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36350
36351
|
var requiredList = list.filter(function (c) {
|
|
36351
36352
|
return c.required == 1;
|
|
36352
36353
|
}) || []; // 获取对象属性为true的集合
|
|
36353
36354
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36354
36355
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36355
|
-
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) ?
|
|
36356
|
+
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];
|
|
36356
36357
|
(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) {
|
|
36357
36358
|
if (requiredList.some(function (r) {
|
|
36358
36359
|
return r.id === e.elementId;
|
|
@@ -36941,7 +36942,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36941
36942
|
style: {
|
|
36942
36943
|
float: 'right'
|
|
36943
36944
|
}
|
|
36944
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
36945
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
36945
36946
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
36946
36947
|
ruleGroupInfo: {
|
|
36947
36948
|
ruleGroupList: ruleGroupList,
|
|
@@ -36959,7 +36960,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36959
36960
|
callBack: function callBack(newData) {
|
|
36960
36961
|
upDateData(newData);
|
|
36961
36962
|
}
|
|
36962
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
36963
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
36963
36964
|
style: {
|
|
36964
36965
|
padding: 20
|
|
36965
36966
|
}
|
|
@@ -37291,9 +37292,8 @@ var Section = function Section(_ref) {
|
|
|
37291
37292
|
}, children));
|
|
37292
37293
|
};
|
|
37293
37294
|
|
|
37294
|
-
var
|
|
37295
|
-
|
|
37296
|
-
});
|
|
37295
|
+
var copyImg = "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%2028%3C%2Ftitle%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%22%E5%8D%95%E6%8D%AE-%E8%AF%A6%E6%83%85%E9%A1%B5%E8%AE%A2%E5%8D%95%E9%87%91%E9%A2%9D%E4%BF%A1%E6%81%AF%22%20transform%3D%22translate%28-418.000000%2C%20-1210.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-2%22%20transform%3D%22translate%28280.000000%2C%20998.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%22%20transform%3D%22translate%280.000000%2C%20204.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-28%22%20transform%3D%22translate%28138.000000%2C%208.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%20stroke%3D%22%23979797%22%20fill%3D%22%23005CFF%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2223%22%20height%3D%2223%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%3Cpath%20d%3D%22M13.5%2C9%20C14.3284271%2C9%2015%2C9.67157287%2015%2C10.5%20L15%2C18.5%20C15%2C19.3284271%2014.3284271%2C20%2013.5%2C20%20L5.5%2C20%20C4.67157288%2C20%204%2C19.3284271%204%2C18.5%20L4%2C10.5%20C4%2C9.67157287%204.67157288%2C9%205.5%2C9%20L13.5%2C9%20Z%20M13.5%2C10.5%20L5.5%2C10.5%20L5.5%2C18.5%20L13.5%2C18.5%20L13.5%2C10.5%20Z%20M12%2C15%20L12%2C16.5%20L7%2C16.5%20L7%2C15%20L12%2C15%20Z%20M18.5%2C4%20C19.3284271%2C4%2020%2C4.67157288%2020%2C5.5%20L20%2C13.5%20C20%2C14.3284271%2019.3284271%2C15%2018.5%2C15%20L16%2C15%20L16%2C13.5%20L18.5%2C13.5%20L18.5%2C5.5%20L10.5%2C5.5%20L10.5%2C8%20L9%2C8%20L9%2C5.5%20C9%2C4.67157288%209.67157287%2C4%2010.5%2C4%20L18.5%2C4%20Z%20M12%2C12.5%20L12%2C14%20L7%2C14%20L7%2C12.5%20L12%2C12.5%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%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";
|
|
37296
|
+
|
|
37297
37297
|
var Paragraph$1 = Typography.Paragraph;
|
|
37298
37298
|
var ParagraphCopier = function ParagraphCopier(props) {
|
|
37299
37299
|
var children = props.children,
|
|
@@ -37318,11 +37318,8 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37318
37318
|
// 拷贝选项,包含图标和提示信息
|
|
37319
37319
|
var copyableOptions = {
|
|
37320
37320
|
text: text,
|
|
37321
|
-
icon: /*#__PURE__*/React$1.createElement(
|
|
37322
|
-
|
|
37323
|
-
style: {
|
|
37324
|
-
fontSize: '14px'
|
|
37325
|
-
}
|
|
37321
|
+
icon: /*#__PURE__*/React$1.createElement("img", {
|
|
37322
|
+
src: copyImg
|
|
37326
37323
|
}),
|
|
37327
37324
|
tooltips: ['点击复制', '复制成功']
|
|
37328
37325
|
};
|
|
@@ -37338,4 +37335,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37338
37335
|
}, children));
|
|
37339
37336
|
};
|
|
37340
37337
|
|
|
37341
|
-
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,
|
|
37338
|
+
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 };
|