@bit-sun/business-component 4.0.11-alpha.7 → 4.0.11-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -1059,13 +1059,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1059
1059
|
imgHtml.innerHTML = str;
|
|
1060
1060
|
}
|
|
1061
1061
|
// 测试使用 测试类型缩小 end
|
|
1062
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1062
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1063
1063
|
className: "clomnsImg"
|
|
1064
1064
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1065
1065
|
src: url,
|
|
1066
1066
|
width: "16px",
|
|
1067
1067
|
height: "16px"
|
|
1068
|
-
}, paramsObj)))) : (
|
|
1068
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1069
1069
|
className: "clomnsImg2"
|
|
1070
1070
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1071
1071
|
src: noImg
|
|
@@ -1204,7 +1204,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
save_link.click();
|
|
1206
1206
|
}
|
|
1207
|
-
var
|
|
1207
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1208
1208
|
return data.map(function (item) {
|
|
1209
1209
|
if (!item.name || !item.path) {
|
|
1210
1210
|
return null;
|
|
@@ -1224,7 +1224,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1224
1224
|
authority: item.authority || parentAuthority
|
|
1225
1225
|
});
|
|
1226
1226
|
if (item.routes) {
|
|
1227
|
-
var children =
|
|
1227
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1228
1228
|
// Reduce memory usage
|
|
1229
1229
|
result.children = children;
|
|
1230
1230
|
}
|
|
@@ -1234,7 +1234,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1234
1234
|
return item;
|
|
1235
1235
|
});
|
|
1236
1236
|
};
|
|
1237
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1237
|
+
var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
|
|
1238
1238
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1239
1239
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1240
1240
|
if (backHistoryPath) {
|
|
@@ -1543,7 +1543,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1543
1543
|
// sheepMap是表头字段中英文映射
|
|
1544
1544
|
// sheetCount:表的数量,默认一张
|
|
1545
1545
|
var resolveFile = /*#__PURE__*/function () {
|
|
1546
|
-
var _ref3 = _asyncToGenerator(
|
|
1546
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1547
1547
|
var config,
|
|
1548
1548
|
data,
|
|
1549
1549
|
_args = arguments;
|
|
@@ -1582,7 +1582,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1582
1582
|
}();
|
|
1583
1583
|
//读取文件
|
|
1584
1584
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1585
|
-
var _ref4 = _asyncToGenerator(
|
|
1585
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1586
1586
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1587
1587
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1588
1588
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1675,14 +1675,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1675
1675
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1676
1676
|
|
|
1677
1677
|
// 获取树平行结构
|
|
1678
|
-
var
|
|
1678
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1679
1679
|
var childrenKey = chilKey || 'children';
|
|
1680
1680
|
treeData.forEach(function (el) {
|
|
1681
1681
|
var _el$childrenKey;
|
|
1682
1682
|
result.push(el);
|
|
1683
1683
|
if ((el === null || el === void 0 ? void 0 : el[childrenKey]) && (el === null || el === void 0 ? void 0 : (_el$childrenKey = el[childrenKey]) === null || _el$childrenKey === void 0 ? void 0 : _el$childrenKey.length) > 0) {
|
|
1684
1684
|
// 子级递归
|
|
1685
|
-
|
|
1685
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
1688
|
return result;
|
|
@@ -1959,13 +1959,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1959
1959
|
imgHtml.innerHTML = str;
|
|
1960
1960
|
}
|
|
1961
1961
|
// 测试使用 测试类型缩小 end
|
|
1962
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1962
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1963
1963
|
className: "clomnsImg"
|
|
1964
1964
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1965
1965
|
src: url,
|
|
1966
1966
|
width: "16px",
|
|
1967
1967
|
height: "16px"
|
|
1968
|
-
}, paramsObj)))) : (
|
|
1968
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1969
1969
|
src: noImg
|
|
1970
1970
|
}))));
|
|
1971
1971
|
};
|
|
@@ -2027,7 +2027,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
});
|
|
2029
2029
|
};
|
|
2030
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (
|
|
2030
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2031
2031
|
disabled: disabled,
|
|
2032
2032
|
onChange: function onChange(e) {
|
|
2033
2033
|
var v = e.target.value;
|
|
@@ -2037,7 +2037,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2037
2037
|
width: 170
|
|
2038
2038
|
},
|
|
2039
2039
|
value: inputValue
|
|
2040
|
-
}, inpProps))), type === 'number' && (
|
|
2040
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2041
2041
|
disabled: disabled,
|
|
2042
2042
|
onBlur: function onBlur(e) {
|
|
2043
2043
|
var v = parseFloat(e.target.value);
|
|
@@ -2416,16 +2416,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2416
2416
|
var handleExportBarCode = handleExport;
|
|
2417
2417
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2418
2418
|
var routerMap = {};
|
|
2419
|
-
var
|
|
2419
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2420
2420
|
data.forEach(function (menuItem) {
|
|
2421
2421
|
if (menuItem.children) {
|
|
2422
|
-
|
|
2422
|
+
_flattenMenuData(menuItem.children);
|
|
2423
2423
|
}
|
|
2424
2424
|
// Reduce memory usage
|
|
2425
2425
|
routerMap[menuItem.path] = menuItem;
|
|
2426
2426
|
});
|
|
2427
2427
|
};
|
|
2428
|
-
|
|
2428
|
+
_flattenMenuData(menuData);
|
|
2429
2429
|
return routerMap;
|
|
2430
2430
|
};
|
|
2431
2431
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2568,7 +2568,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2568
2568
|
return request$1(url, parms).then(handleResponseData);
|
|
2569
2569
|
};
|
|
2570
2570
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2571
|
-
var _ref2 = _asyncToGenerator(
|
|
2571
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2572
2572
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2573
2573
|
while (1) switch (_context.prev = _context.next) {
|
|
2574
2574
|
case 0:
|
|
@@ -3242,7 +3242,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3242
3242
|
placement: "bottomLeft"
|
|
3243
3243
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3244
3244
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3245
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3245
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3246
3246
|
trigger: ['click'],
|
|
3247
3247
|
overlay: this.menuList,
|
|
3248
3248
|
placement: "bottomRight"
|
|
@@ -3917,7 +3917,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3917
3917
|
placement: "bottomLeft"
|
|
3918
3918
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3919
3919
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3920
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3920
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3921
3921
|
trigger: ['click'],
|
|
3922
3922
|
overlay: this.menuList,
|
|
3923
3923
|
placement: "bottomRight"
|
|
@@ -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 ? (
|
|
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 ? (
|
|
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 ? (
|
|
5218
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5219
5219
|
size: "small",
|
|
5220
5220
|
className: 'searchSelectSpin'
|
|
5221
|
-
})) : (
|
|
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 && (
|
|
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 && (
|
|
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 && (
|
|
5886
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
5887
5887
|
style: {
|
|
5888
5888
|
width: '144px'
|
|
5889
5889
|
}
|
|
5890
|
-
})), !seatchDataSource.length && (
|
|
5890
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5891
5891
|
className: 'sort_table_column_all_empty'
|
|
5892
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
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(
|
|
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(
|
|
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 && (
|
|
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(
|
|
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 && (
|
|
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(
|
|
12750
|
-
var _ref = _asyncToGenerator(
|
|
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 ? (
|
|
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())) : (
|
|
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 ? (
|
|
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 && (
|
|
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 && (
|
|
13938
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
13939
13939
|
style: {
|
|
13940
13940
|
width: '144px'
|
|
13941
13941
|
}
|
|
13942
|
-
})), !seatchDataSource.length && (
|
|
13942
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
13943
13943
|
className: 'sort_table_column_all_empty'
|
|
13944
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
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 _flattenMenuData2 = 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
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
14560
14560
|
}
|
|
14561
14561
|
// Reduce memory usage
|
|
14562
14562
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14563
14563
|
});
|
|
14564
14564
|
};
|
|
14565
|
-
|
|
14565
|
+
_flattenMenuData2(menuData, {});
|
|
14566
14566
|
return routerMap;
|
|
14567
14567
|
};
|
|
14568
14568
|
// mode类型判断
|
|
@@ -14623,7 +14623,7 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
|
|
|
14623
14623
|
return undefined;
|
|
14624
14624
|
};
|
|
14625
14625
|
|
|
14626
|
-
var css_248z$c = ".detail_page_head {\n height: 32px;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n font-weight: 500;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n
|
|
14626
|
+
var css_248z$c = ".detail_page_head {\n height: 32px;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n font-weight: 500;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n.detail_page_head .ant-breadcrumb li .bread_name:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n}\n.back_home_img_content {\n display: inline-block;\n height: 16px;\n width: 16px;\n border: 1px solid #BABABA;\n margin: 0 8px 0 10px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005cff;\n border: 1px solid #005cff;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 14px;\n padding-right: 10px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n display: none;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 24px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
|
|
14627
14627
|
styleInject(css_248z$c);
|
|
14628
14628
|
|
|
14629
14629
|
var quanping = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1823.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281593.000000%2C%2013.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.55801813%2C1%20L28.4419819%2C1%20C30.0269041%2C1%2030.6016352%2C1.16502331%2031.181059%2C1.47490258%20C31.7604829%2C1.78478186%2032.2152181%2C2.2395171%2032.5250974%2C2.81894097%20C32.8349767%2C3.39836484%2033%2C3.97309593%2033%2C5.55801813%20L33%2C28.4419819%20C33%2C30.0269041%2032.8349767%2C30.6016352%2032.5250974%2C31.181059%20C32.2152181%2C31.7604829%2031.7604829%2C32.2152181%2031.181059%2C32.5250974%20C30.6016352%2C32.8349767%2030.0269041%2C33%2028.4419819%2C33%20L5.55801813%2C33%20C3.97309593%2C33%203.39836484%2C32.8349767%202.81894097%2C32.5250974%20C2.2395171%2C32.2152181%201.78478186%2C31.7604829%201.47490258%2C31.181059%20C1.16502331%2C30.6016352%201%2C30.0269041%201%2C28.4419819%20L1%2C5.55801813%20C1%2C3.97309593%201.16502331%2C3.39836484%201.47490258%2C2.81894097%20C1.78478186%2C2.2395171%202.2395171%2C1.78478186%202.81894097%2C1.47490258%20C3.39836484%2C1.16502331%203.97309593%2C1%205.55801813%2C1%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%289.000000%2C%209.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.5%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.41%20L5.21873562%2C9.69278114%20Z%20M10.7898541%2C9.72266777%20L14.499%2C13.431%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.446%2C14.5%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%20M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.499%2C2.588%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.465%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%20M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -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 ? (
|
|
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
|
-
}))) : (
|
|
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 && (
|
|
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 && (
|
|
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 && (
|
|
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 && (
|
|
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 && (
|
|
15713
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15714
15714
|
style: {
|
|
15715
15715
|
width: '144px'
|
|
15716
15716
|
}
|
|
15717
|
-
})), !seatchDataSource.length && (
|
|
15717
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15718
15718
|
className: 'sort_table_column_all_empty'
|
|
15719
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
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 && (
|
|
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 && (
|
|
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 && (
|
|
16241
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16242
16242
|
style: {
|
|
16243
16243
|
width: '144px'
|
|
16244
16244
|
}
|
|
16245
|
-
})), !newSearchSource.length && (
|
|
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: (
|
|
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
|
|
@@ -16874,14 +16874,6 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16874
16874
|
return undefined;
|
|
16875
16875
|
}
|
|
16876
16876
|
};
|
|
16877
|
-
var memoConfig = useMemo(function () {
|
|
16878
|
-
return _objectSpread2(_objectSpread2({}, config), {}, {
|
|
16879
|
-
summary: props.summary,
|
|
16880
|
-
summaryList: props.summaryList ? getTableSummaryInfo : undefined,
|
|
16881
|
-
statusMapping: props.statusMapping,
|
|
16882
|
-
isBsSulaQueryTable: true
|
|
16883
|
-
});
|
|
16884
|
-
}, [checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
|
|
16885
16877
|
var columnsDom = /*#__PURE__*/React$1.createElement("span", {
|
|
16886
16878
|
className: "ant-dropdown-link"
|
|
16887
16879
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -16902,12 +16894,19 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16902
16894
|
datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
|
|
16903
16895
|
bsTableCode: bsTableCode
|
|
16904
16896
|
});
|
|
16897
|
+
var memoConfig = useMemo(function () {
|
|
16898
|
+
return _objectSpread2(_objectSpread2({}, config), {}, {
|
|
16899
|
+
summary: props.summary,
|
|
16900
|
+
summaryList: props.summaryList ? getTableSummaryInfo : undefined,
|
|
16901
|
+
statusMapping: props.statusMapping,
|
|
16902
|
+
isBsSulaQueryTable: true,
|
|
16903
|
+
columnsDom: columnsDom,
|
|
16904
|
+
queryFieldsDom: queryFieldsDom
|
|
16905
|
+
});
|
|
16906
|
+
}, [checkedList, showColumn, props.statusMapping, showSearchFields, expandedRowKeys]);
|
|
16905
16907
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16906
16908
|
id: "bs-sula-query-table"
|
|
16907
|
-
}, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2(
|
|
16908
|
-
columnsDom: columnsDom,
|
|
16909
|
-
queryFieldsDom: queryFieldsDom
|
|
16910
|
-
})), /*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
16909
|
+
}, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
16911
16910
|
ref: sortTableRef,
|
|
16912
16911
|
setShowColumns: setShowColumns,
|
|
16913
16912
|
showColumn: showColumn,
|
|
@@ -16915,7 +16914,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16915
16914
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
16916
16915
|
bsTableCode: bsTableCode,
|
|
16917
16916
|
onlyModal: true
|
|
16918
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
16917
|
+
}), (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
16918
|
ref: exportTableRef,
|
|
16920
16919
|
setShowColumns: setShowExportColumns,
|
|
16921
16920
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17008,11 +17007,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17008
17007
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17009
17008
|
var resultList = [];
|
|
17010
17009
|
var newRouter = cloneDeep(router);
|
|
17011
|
-
var
|
|
17010
|
+
var _deep = function deep(router) {
|
|
17012
17011
|
if (router && Array.isArray(router)) {
|
|
17013
17012
|
router.forEach(function (item) {
|
|
17014
17013
|
if (item.children && Array.isArray(item.children)) {
|
|
17015
|
-
|
|
17014
|
+
_deep(item.children);
|
|
17016
17015
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17017
17016
|
return d === item.code;
|
|
17018
17017
|
})) {
|
|
@@ -17026,10 +17025,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17026
17025
|
resultList.push(_objectSpread2({}, router));
|
|
17027
17026
|
}
|
|
17028
17027
|
};
|
|
17029
|
-
|
|
17028
|
+
_deep(newRouter);
|
|
17030
17029
|
callBack([].concat(resultList));
|
|
17031
17030
|
};
|
|
17032
|
-
var
|
|
17031
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17033
17032
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17034
17033
|
var _loop = function _loop(i) {
|
|
17035
17034
|
if (routesData[i].hideInMenu) {
|
|
@@ -17043,7 +17042,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17043
17042
|
return 0; // continue
|
|
17044
17043
|
}
|
|
17045
17044
|
if (routesData[i].children) {
|
|
17046
|
-
|
|
17045
|
+
_setMenuTreeData(routesData[i].children);
|
|
17047
17046
|
}
|
|
17048
17047
|
},
|
|
17049
17048
|
_ret;
|
|
@@ -17064,16 +17063,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17064
17063
|
};
|
|
17065
17064
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17066
17065
|
var routerMap = {};
|
|
17067
|
-
var
|
|
17066
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
17068
17067
|
data.forEach(function (menuItem) {
|
|
17069
17068
|
if (menuItem.children) {
|
|
17070
|
-
|
|
17069
|
+
_flattenMenuData(menuItem.children);
|
|
17071
17070
|
}
|
|
17072
17071
|
// Reduce memory usage
|
|
17073
17072
|
routerMap[menuItem.path] = menuItem;
|
|
17074
17073
|
});
|
|
17075
17074
|
};
|
|
17076
|
-
|
|
17075
|
+
_flattenMenuData(menuData);
|
|
17077
17076
|
return routerMap;
|
|
17078
17077
|
};
|
|
17079
17078
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17219,7 +17218,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17219
17218
|
sethomepageData(homepageDataList);
|
|
17220
17219
|
setroutesData(routesDataList);
|
|
17221
17220
|
}, []);
|
|
17222
|
-
var
|
|
17221
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
17223
17222
|
if (!child.hideInMenu && child.children) {
|
|
17224
17223
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17225
17224
|
style: {
|
|
@@ -17229,7 +17228,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17229
17228
|
}, formatMessage({
|
|
17230
17229
|
id: "".concat(child.locale)
|
|
17231
17230
|
})), child.children.map(function (menuItem) {
|
|
17232
|
-
return
|
|
17231
|
+
return _renderChildItem(menuItem);
|
|
17233
17232
|
}));
|
|
17234
17233
|
} else if (!child.hideInMenu && child.path) {
|
|
17235
17234
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17264,7 +17263,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17264
17263
|
className: 'drawerWarp'
|
|
17265
17264
|
}, homepageData && homepageData.filter(function (d) {
|
|
17266
17265
|
return !d.hideInMenu;
|
|
17267
|
-
}).length > 0 && (
|
|
17266
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17268
17267
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17269
17268
|
dataSource: homepageData,
|
|
17270
17269
|
renderItem: function renderItem(child) {
|
|
@@ -17299,7 +17298,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17299
17298
|
bordered: true,
|
|
17300
17299
|
dataSource: item.children,
|
|
17301
17300
|
renderItem: function renderItem(child) {
|
|
17302
|
-
return
|
|
17301
|
+
return _renderChildItem(child);
|
|
17303
17302
|
}
|
|
17304
17303
|
});
|
|
17305
17304
|
})));
|
|
@@ -17359,7 +17358,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17359
17358
|
src: allfunc
|
|
17360
17359
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17361
17360
|
className: 'btnSpan2'
|
|
17362
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
17361
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17363
17362
|
style: {
|
|
17364
17363
|
left: isDrawer ? 140 : 0,
|
|
17365
17364
|
top: 50
|
|
@@ -17405,7 +17404,7 @@ function outLogin(_x) {
|
|
|
17405
17404
|
return _outLogin.apply(this, arguments);
|
|
17406
17405
|
}
|
|
17407
17406
|
function _outLogin() {
|
|
17408
|
-
_outLogin = _asyncToGenerator(
|
|
17407
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17409
17408
|
var res;
|
|
17410
17409
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17411
17410
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17547,7 +17546,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17547
17546
|
});
|
|
17548
17547
|
};
|
|
17549
17548
|
var loginOut = /*#__PURE__*/function () {
|
|
17550
|
-
var _ref2 = _asyncToGenerator(
|
|
17549
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17551
17550
|
var sessionId;
|
|
17552
17551
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17553
17552
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17651,7 +17650,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17651
17650
|
marginRight: '0px'
|
|
17652
17651
|
},
|
|
17653
17652
|
src: './xialajiantou-new.svg'
|
|
17654
|
-
}))))), loginModalParams.visible && (
|
|
17653
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17655
17654
|
};
|
|
17656
17655
|
|
|
17657
17656
|
// -- 查询店铺 --
|
|
@@ -17659,7 +17658,7 @@ function getStoreByName(_x) {
|
|
|
17659
17658
|
return _getStoreByName.apply(this, arguments);
|
|
17660
17659
|
}
|
|
17661
17660
|
function _getStoreByName() {
|
|
17662
|
-
_getStoreByName = _asyncToGenerator(
|
|
17661
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17663
17662
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17664
17663
|
while (1) switch (_context.prev = _context.next) {
|
|
17665
17664
|
case 0:
|
|
@@ -17727,7 +17726,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17727
17726
|
return _fetchUserList.apply(this, arguments);
|
|
17728
17727
|
}
|
|
17729
17728
|
function _fetchUserList() {
|
|
17730
|
-
_fetchUserList = _asyncToGenerator(
|
|
17729
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17731
17730
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17732
17731
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17733
17732
|
case 0:
|
|
@@ -17775,7 +17774,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17775
17774
|
return debounce$1(loadOptions, debounceTimeout);
|
|
17776
17775
|
}, [debounceTimeout, key]);
|
|
17777
17776
|
var changeInput = /*#__PURE__*/function () {
|
|
17778
|
-
var _ref = _asyncToGenerator(
|
|
17777
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17779
17778
|
var res;
|
|
17780
17779
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17781
17780
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17797,7 +17796,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17797
17796
|
};
|
|
17798
17797
|
}();
|
|
17799
17798
|
useEffect(function () {
|
|
17800
|
-
_asyncToGenerator(
|
|
17799
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17801
17800
|
var res;
|
|
17802
17801
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17803
17802
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -17962,7 +17961,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17962
17961
|
var resultList = [];
|
|
17963
17962
|
var newRouter = cloneDeep$1(router);
|
|
17964
17963
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17965
|
-
var
|
|
17964
|
+
var _deep = function deep(router) {
|
|
17966
17965
|
if (router && Array.isArray(router)) {
|
|
17967
17966
|
router.forEach(function (item) {
|
|
17968
17967
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -17972,7 +17971,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17972
17971
|
d.nameEdit = true;
|
|
17973
17972
|
}
|
|
17974
17973
|
});
|
|
17975
|
-
|
|
17974
|
+
_deep(item.routes);
|
|
17976
17975
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
17977
17976
|
id: "menu.".concat(item.name)
|
|
17978
17977
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -17991,7 +17990,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17991
17990
|
}));
|
|
17992
17991
|
}
|
|
17993
17992
|
};
|
|
17994
|
-
|
|
17993
|
+
_deep(newRouter);
|
|
17995
17994
|
setroutesData([].concat(resultList));
|
|
17996
17995
|
};
|
|
17997
17996
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18073,7 +18072,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18073
18072
|
},
|
|
18074
18073
|
title: item.fullPathName
|
|
18075
18074
|
}, renderLineStyl(item.fullPathName));
|
|
18076
|
-
}))))), showSelectStore && (
|
|
18075
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18077
18076
|
employeeCode: employeeCode
|
|
18078
18077
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18079
18078
|
};
|
|
@@ -18088,7 +18087,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18088
18087
|
var TreeNode = Tree.TreeNode;
|
|
18089
18088
|
var Search$2 = Input.Search;
|
|
18090
18089
|
var dataList = [];
|
|
18091
|
-
var
|
|
18090
|
+
var _generateList = function generateList(data) {
|
|
18092
18091
|
for (var i = 0; i < data.length; i++) {
|
|
18093
18092
|
var node = data[i];
|
|
18094
18093
|
var path = node.path,
|
|
@@ -18098,11 +18097,11 @@ var generateList = function generateList(data) {
|
|
|
18098
18097
|
name: name
|
|
18099
18098
|
});
|
|
18100
18099
|
if (node.children) {
|
|
18101
|
-
|
|
18100
|
+
_generateList(node.children);
|
|
18102
18101
|
}
|
|
18103
18102
|
}
|
|
18104
18103
|
};
|
|
18105
|
-
var
|
|
18104
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
18106
18105
|
var parentKey;
|
|
18107
18106
|
for (var i = 0; i < tree.length; i++) {
|
|
18108
18107
|
var node = tree[i];
|
|
@@ -18111,8 +18110,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
18111
18110
|
return item.path === path;
|
|
18112
18111
|
})) {
|
|
18113
18112
|
parentKey = node.path;
|
|
18114
|
-
} else if (
|
|
18115
|
-
parentKey =
|
|
18113
|
+
} else if (_getParentKey(path, node.children)) {
|
|
18114
|
+
parentKey = _getParentKey(path, node.children);
|
|
18116
18115
|
}
|
|
18117
18116
|
}
|
|
18118
18117
|
}
|
|
@@ -18143,7 +18142,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18143
18142
|
var treeData = _this.state.treeData;
|
|
18144
18143
|
var expandedKeys = dataList.map(function (item) {
|
|
18145
18144
|
if (item.name.indexOf(value) > -1) {
|
|
18146
|
-
return
|
|
18145
|
+
return _getParentKey(item.path, treeData);
|
|
18147
18146
|
}
|
|
18148
18147
|
return null;
|
|
18149
18148
|
}).filter(function (item, i, self) {
|
|
@@ -18157,22 +18156,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18157
18156
|
};
|
|
18158
18157
|
_this.getPathList = function (originData) {
|
|
18159
18158
|
var pathList = [];
|
|
18160
|
-
var
|
|
18159
|
+
var _getList = function getList(data) {
|
|
18161
18160
|
if (Array.isArray(data)) {
|
|
18162
18161
|
data.forEach(function (item) {
|
|
18163
18162
|
pathList.push(item.path);
|
|
18164
18163
|
if (item.children) {
|
|
18165
|
-
|
|
18164
|
+
_getList(item.children);
|
|
18166
18165
|
}
|
|
18167
18166
|
});
|
|
18168
18167
|
} else {
|
|
18169
18168
|
pathList.push(data.path);
|
|
18170
18169
|
if (data.children) {
|
|
18171
|
-
|
|
18170
|
+
_getList(data.children);
|
|
18172
18171
|
}
|
|
18173
18172
|
}
|
|
18174
18173
|
};
|
|
18175
|
-
|
|
18174
|
+
_getList(originData);
|
|
18176
18175
|
return pathList;
|
|
18177
18176
|
};
|
|
18178
18177
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18181,18 +18180,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18181
18180
|
customerMenuData = _this$props.customerMenuData,
|
|
18182
18181
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18183
18182
|
var filterItem;
|
|
18184
|
-
var
|
|
18183
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
18185
18184
|
menuData.forEach(function (item) {
|
|
18186
18185
|
if (item.path === path) {
|
|
18187
18186
|
filterItem = _objectSpread2({}, item);
|
|
18188
18187
|
return;
|
|
18189
18188
|
}
|
|
18190
18189
|
if (item.children) {
|
|
18191
|
-
|
|
18190
|
+
_filterMenuItem(item.children);
|
|
18192
18191
|
}
|
|
18193
18192
|
});
|
|
18194
18193
|
};
|
|
18195
|
-
|
|
18194
|
+
_filterMenuItem(treeData);
|
|
18196
18195
|
var addPathList = _this.getPathList(filterItem);
|
|
18197
18196
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18198
18197
|
var isRepet = false;
|
|
@@ -18222,8 +18221,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18222
18221
|
return item.path === '/';
|
|
18223
18222
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18224
18223
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18225
|
-
|
|
18226
|
-
|
|
18224
|
+
_setMenuTreeData(routesData);
|
|
18225
|
+
_generateList(routesData);
|
|
18227
18226
|
this.setState({
|
|
18228
18227
|
treeData: routesData
|
|
18229
18228
|
});
|
|
@@ -18237,16 +18236,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18237
18236
|
expandedKeys = _this$state.expandedKeys,
|
|
18238
18237
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18239
18238
|
treeData = _this$state.treeData;
|
|
18240
|
-
var
|
|
18239
|
+
var _loop = function loop(data) {
|
|
18241
18240
|
return data.map(function (item) {
|
|
18242
18241
|
var index = item.name.indexOf(searchValue);
|
|
18243
18242
|
var beforeStr = item.name.substr(0, index);
|
|
18244
18243
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18245
|
-
var name = index > -1 ? (
|
|
18244
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18246
18245
|
style: {
|
|
18247
18246
|
color: '#f50'
|
|
18248
18247
|
}
|
|
18249
|
-
}, searchValue), afterStr)) : (
|
|
18248
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18250
18249
|
if (item.children && item.children.length) {
|
|
18251
18250
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18252
18251
|
path: item.path,
|
|
@@ -18268,7 +18267,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18268
18267
|
width: 18,
|
|
18269
18268
|
src: arrowRight
|
|
18270
18269
|
}))))
|
|
18271
|
-
},
|
|
18270
|
+
}, _loop(item.children));
|
|
18272
18271
|
}
|
|
18273
18272
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18274
18273
|
path: item.path,
|
|
@@ -18318,7 +18317,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18318
18317
|
onExpand: this.onExpand,
|
|
18319
18318
|
expandedKeys: expandedKeys,
|
|
18320
18319
|
autoExpandParent: autoExpandParent
|
|
18321
|
-
},
|
|
18320
|
+
}, _loop(treeData))));
|
|
18322
18321
|
}
|
|
18323
18322
|
}]);
|
|
18324
18323
|
}(React$1.Component);
|
|
@@ -18351,24 +18350,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18351
18350
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18352
18351
|
var dragObj;
|
|
18353
18352
|
var finalDropItem;
|
|
18354
|
-
var
|
|
18353
|
+
var _loop = function loop(data, path, callback) {
|
|
18355
18354
|
for (var i = 0; i < data.length; i++) {
|
|
18356
18355
|
if (data[i].path === path) {
|
|
18357
18356
|
return callback(data[i], i, data);
|
|
18358
18357
|
}
|
|
18359
18358
|
if (data[i].children) {
|
|
18360
|
-
|
|
18359
|
+
_loop(data[i].children, path, callback);
|
|
18361
18360
|
}
|
|
18362
18361
|
}
|
|
18363
18362
|
};
|
|
18364
18363
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18365
|
-
|
|
18364
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
18366
18365
|
arr.splice(index, 1);
|
|
18367
18366
|
dragObj = item;
|
|
18368
18367
|
});
|
|
18369
18368
|
if (!info.dropToGap) {
|
|
18370
18369
|
// Drop on the content
|
|
18371
|
-
|
|
18370
|
+
_loop(data, dropKey, function (item) {
|
|
18372
18371
|
item.children = item.children || [];
|
|
18373
18372
|
item.children.unshift(dragObj);
|
|
18374
18373
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18379,7 +18378,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18379
18378
|
// Is expanded
|
|
18380
18379
|
dropPosition === 1 // On the bottom gap
|
|
18381
18380
|
) {
|
|
18382
|
-
|
|
18381
|
+
_loop(data, dropKey, function (item) {
|
|
18383
18382
|
item.children = item.children || [];
|
|
18384
18383
|
item.children.unshift(dragObj);
|
|
18385
18384
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18387,7 +18386,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18387
18386
|
} else {
|
|
18388
18387
|
var ar;
|
|
18389
18388
|
var i;
|
|
18390
|
-
|
|
18389
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
18391
18390
|
ar = arr;
|
|
18392
18391
|
i = index;
|
|
18393
18392
|
});
|
|
@@ -18426,17 +18425,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18426
18425
|
title: '编辑名称',
|
|
18427
18426
|
callBack: function callBack(newName) {
|
|
18428
18427
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18429
|
-
var
|
|
18428
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18430
18429
|
oldTreeData.forEach(function (treeItem) {
|
|
18431
18430
|
if (treeItem.path === item.path) {
|
|
18432
18431
|
treeItem.name = newName;
|
|
18433
18432
|
}
|
|
18434
18433
|
if (treeItem.children) {
|
|
18435
|
-
|
|
18434
|
+
_editTreeDataName(treeItem.children);
|
|
18436
18435
|
}
|
|
18437
18436
|
});
|
|
18438
18437
|
};
|
|
18439
|
-
|
|
18438
|
+
_editTreeDataName(oldTreeData);
|
|
18440
18439
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18441
18440
|
_this.setState({
|
|
18442
18441
|
modalInfo: {
|
|
@@ -18481,7 +18480,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18481
18480
|
title: '新增子目录',
|
|
18482
18481
|
callBack: function callBack(newName) {
|
|
18483
18482
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18484
|
-
var
|
|
18483
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
18485
18484
|
oldTreeData.forEach(function (treeItem) {
|
|
18486
18485
|
if (treeItem.path === item.path) {
|
|
18487
18486
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18493,11 +18492,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18493
18492
|
}];
|
|
18494
18493
|
}
|
|
18495
18494
|
if (treeItem.children) {
|
|
18496
|
-
|
|
18495
|
+
_addChildFolder(treeItem.children);
|
|
18497
18496
|
}
|
|
18498
18497
|
});
|
|
18499
18498
|
};
|
|
18500
|
-
|
|
18499
|
+
_addChildFolder(oldTreeData);
|
|
18501
18500
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18502
18501
|
_this.setState({
|
|
18503
18502
|
modalInfo: {
|
|
@@ -18556,7 +18555,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18556
18555
|
var _this$state = this.state,
|
|
18557
18556
|
modalInfo = _this$state.modalInfo,
|
|
18558
18557
|
checkedKeys = _this$state.checkedKeys;
|
|
18559
|
-
var
|
|
18558
|
+
var _loop2 = function loop(data) {
|
|
18560
18559
|
return data.map(function (item) {
|
|
18561
18560
|
if (item.children && item.children.length) {
|
|
18562
18561
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -18573,7 +18572,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18573
18572
|
e.stopPropagation();
|
|
18574
18573
|
}
|
|
18575
18574
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
18576
|
-
},
|
|
18575
|
+
}, _loop2(item.children));
|
|
18577
18576
|
}
|
|
18578
18577
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
18579
18578
|
path: item.path,
|
|
@@ -18652,7 +18651,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18652
18651
|
children: 'children'
|
|
18653
18652
|
},
|
|
18654
18653
|
onDrop: this.onDrop
|
|
18655
|
-
},
|
|
18654
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
18656
18655
|
width: 600,
|
|
18657
18656
|
bodyStyle: {
|
|
18658
18657
|
paddingTop: '32px',
|
|
@@ -18765,7 +18764,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18765
18764
|
pathname: item.path
|
|
18766
18765
|
});
|
|
18767
18766
|
};
|
|
18768
|
-
var
|
|
18767
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
18769
18768
|
return menuData.map(function (item) {
|
|
18770
18769
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18771
18770
|
style: {
|
|
@@ -18780,7 +18779,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18780
18779
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18781
18780
|
paddingLeft: '4px'
|
|
18782
18781
|
}
|
|
18783
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
18782
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
18784
18783
|
});
|
|
18785
18784
|
};
|
|
18786
18785
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18806,7 +18805,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18806
18805
|
style: {
|
|
18807
18806
|
paddingLeft: '5px'
|
|
18808
18807
|
}
|
|
18809
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
18808
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18810
18809
|
style: {
|
|
18811
18810
|
left: isDrawer ? 140 : 0
|
|
18812
18811
|
},
|
|
@@ -18827,7 +18826,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18827
18826
|
visible: isDrawer
|
|
18828
18827
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
18829
18828
|
className: 'menu_title_line'
|
|
18830
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
18829
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
18831
18830
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
18832
18831
|
style: {
|
|
18833
18832
|
fontWeight: '600',
|
|
@@ -18901,7 +18900,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18901
18900
|
return item.path === '/';
|
|
18902
18901
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18903
18902
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18904
|
-
|
|
18903
|
+
_setMenuTreeData(routesData);
|
|
18905
18904
|
routesData.forEach(function (item) {
|
|
18906
18905
|
if (item.children) {
|
|
18907
18906
|
routesDataList.push(item);
|
|
@@ -18931,7 +18930,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18931
18930
|
setHeight(clientHeight - 190);
|
|
18932
18931
|
setDrawHeight(clientHeight - 70);
|
|
18933
18932
|
};
|
|
18934
|
-
var
|
|
18933
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
18935
18934
|
if (!child.hideInMenu && child.children) {
|
|
18936
18935
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18937
18936
|
style: {
|
|
@@ -18941,7 +18940,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18941
18940
|
}, formatMessage({
|
|
18942
18941
|
id: "".concat(child.locale)
|
|
18943
18942
|
})), child.children.map(function (menuItem) {
|
|
18944
|
-
return
|
|
18943
|
+
return _renderChildItem(menuItem);
|
|
18945
18944
|
}));
|
|
18946
18945
|
} else if (!child.hideInMenu && child.path) {
|
|
18947
18946
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19083,7 +19082,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19083
19082
|
onMenuClick(e, item);
|
|
19084
19083
|
}
|
|
19085
19084
|
}, item.name);
|
|
19086
|
-
}))), !!SearhData.length ? (
|
|
19085
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19087
19086
|
className: 'search_menu_content'
|
|
19088
19087
|
}, SearhData.map(function (item) {
|
|
19089
19088
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19092,7 +19091,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19092
19091
|
},
|
|
19093
19092
|
key: item.path
|
|
19094
19093
|
}, item.name);
|
|
19095
|
-
}))) : (
|
|
19094
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19096
19095
|
style: {
|
|
19097
19096
|
height: "".concat(rightMenuHeight, "px"),
|
|
19098
19097
|
overflowY: 'scroll',
|
|
@@ -19104,7 +19103,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19104
19103
|
className: 'drawerWarp_right'
|
|
19105
19104
|
}, homepageData && homepageData.filter(function (d) {
|
|
19106
19105
|
return !d.hideInMenu;
|
|
19107
|
-
}).length > 0 && (
|
|
19106
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19108
19107
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19109
19108
|
dataSource: homepageData,
|
|
19110
19109
|
renderItem: function renderItem(child) {
|
|
@@ -19145,7 +19144,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19145
19144
|
bordered: true,
|
|
19146
19145
|
dataSource: item.children,
|
|
19147
19146
|
renderItem: function renderItem(child) {
|
|
19148
|
-
return
|
|
19147
|
+
return _renderChildItem(child);
|
|
19149
19148
|
}
|
|
19150
19149
|
});
|
|
19151
19150
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19303,10 +19302,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19303
19302
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19304
19303
|
var menuKeys = [];
|
|
19305
19304
|
var docsId = [];
|
|
19306
|
-
var
|
|
19305
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19307
19306
|
data.forEach(function (item) {
|
|
19308
19307
|
if (item.children && item.children.length > 0) {
|
|
19309
|
-
|
|
19308
|
+
_getLimitedMenuKeys(item.children);
|
|
19310
19309
|
} else {
|
|
19311
19310
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19312
19311
|
menuKeys.push(originPath);
|
|
@@ -19317,7 +19316,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19317
19316
|
});
|
|
19318
19317
|
};
|
|
19319
19318
|
try {
|
|
19320
|
-
|
|
19319
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
19321
19320
|
} catch (e) {}
|
|
19322
19321
|
return {
|
|
19323
19322
|
menuKeys: menuKeys,
|
|
@@ -19551,10 +19550,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19551
19550
|
return (node.path || '').includes('all-general-documents');
|
|
19552
19551
|
};
|
|
19553
19552
|
// 递归获取树列表
|
|
19554
|
-
var
|
|
19553
|
+
var _getTreeList = function getTreeList(data) {
|
|
19555
19554
|
data.forEach(function (node) {
|
|
19556
19555
|
if (node.routes && node.routes.length > 0) {
|
|
19557
|
-
|
|
19556
|
+
_getTreeList(node.routes);
|
|
19558
19557
|
return;
|
|
19559
19558
|
}
|
|
19560
19559
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19585,7 +19584,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19585
19584
|
}
|
|
19586
19585
|
});
|
|
19587
19586
|
};
|
|
19588
|
-
|
|
19587
|
+
_getTreeList(treeData);
|
|
19589
19588
|
return treeList;
|
|
19590
19589
|
};
|
|
19591
19590
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20202,7 +20201,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20202
20201
|
updateState = _ref8.updateState;
|
|
20203
20202
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20204
20203
|
className: "tab_title_content"
|
|
20205
|
-
}, item.tab, item.key !== '/' && (
|
|
20204
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20206
20205
|
info: item,
|
|
20207
20206
|
operateFun: _this3.operateFun,
|
|
20208
20207
|
listenRouterState: listenRouterState
|
|
@@ -20338,7 +20337,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20338
20337
|
};
|
|
20339
20338
|
}
|
|
20340
20339
|
var OperationsSlot = {
|
|
20341
|
-
left: (
|
|
20340
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20342
20341
|
className: 'tab_left_operate'
|
|
20343
20342
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20344
20343
|
onClick: function onClick() {
|
|
@@ -20354,7 +20353,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20354
20353
|
_this3.setTabNavTransLate(-100);
|
|
20355
20354
|
}
|
|
20356
20355
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20357
|
-
right: (
|
|
20356
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20358
20357
|
style: {
|
|
20359
20358
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20360
20359
|
},
|
|
@@ -20452,7 +20451,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20452
20451
|
onMouseLeave: function onMouseLeave() {
|
|
20453
20452
|
_this3.setShowMenu(false);
|
|
20454
20453
|
}
|
|
20455
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
20454
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20456
20455
|
style: {
|
|
20457
20456
|
position: 'absolute',
|
|
20458
20457
|
top: '14px',
|
|
@@ -20471,7 +20470,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20471
20470
|
postMenuData: function postMenuData(menus) {
|
|
20472
20471
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20473
20472
|
},
|
|
20474
|
-
links: [!this.state.collapse ? (
|
|
20473
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20475
20474
|
ref: this.allFunc,
|
|
20476
20475
|
itemPath: itemPath,
|
|
20477
20476
|
handleClose: this.handleClose,
|
|
@@ -20489,7 +20488,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20489
20488
|
},
|
|
20490
20489
|
menu: {
|
|
20491
20490
|
request: function () {
|
|
20492
|
-
var _request = _asyncToGenerator(
|
|
20491
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20493
20492
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20494
20493
|
while (1) switch (_context.prev = _context.next) {
|
|
20495
20494
|
case 0:
|
|
@@ -20620,7 +20619,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20620
20619
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20621
20620
|
timeFormat = _this$props4.timeFormat,
|
|
20622
20621
|
transparentProps = _this$props4.transparentProps;
|
|
20623
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
20622
|
+
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
20623
|
getDictionarySource: getDictionarySource,
|
|
20625
20624
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20626
20625
|
timeFormat: timeFormat
|
|
@@ -20644,12 +20643,12 @@ var index$5 = (function (props) {
|
|
|
20644
20643
|
});
|
|
20645
20644
|
|
|
20646
20645
|
// @ts-nocheck
|
|
20647
|
-
var
|
|
20646
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
20648
20647
|
var result = [];
|
|
20649
20648
|
columns.forEach(function (column) {
|
|
20650
20649
|
if (column.children) {
|
|
20651
20650
|
result.push(column);
|
|
20652
|
-
result.push.apply(result,
|
|
20651
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
20653
20652
|
} else {
|
|
20654
20653
|
result.push(column);
|
|
20655
20654
|
}
|
|
@@ -20658,7 +20657,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
20658
20657
|
};
|
|
20659
20658
|
var convertToRows = function convertToRows(originColumns) {
|
|
20660
20659
|
var maxLevel = 1;
|
|
20661
|
-
var
|
|
20660
|
+
var _traverse = function traverse(column, parent) {
|
|
20662
20661
|
if (parent) {
|
|
20663
20662
|
column.level = parent.level + 1;
|
|
20664
20663
|
if (maxLevel < column.level) {
|
|
@@ -20668,7 +20667,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20668
20667
|
if (column.children) {
|
|
20669
20668
|
var colSpan = 0;
|
|
20670
20669
|
column.children.forEach(function (subColumn) {
|
|
20671
|
-
|
|
20670
|
+
_traverse(subColumn, column);
|
|
20672
20671
|
colSpan += subColumn.colSpan;
|
|
20673
20672
|
});
|
|
20674
20673
|
column.colSpan = colSpan;
|
|
@@ -20678,13 +20677,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20678
20677
|
};
|
|
20679
20678
|
originColumns.forEach(function (column) {
|
|
20680
20679
|
column.level = 1;
|
|
20681
|
-
|
|
20680
|
+
_traverse(column);
|
|
20682
20681
|
});
|
|
20683
20682
|
var rows = [];
|
|
20684
20683
|
for (var i = 0; i < maxLevel; i++) {
|
|
20685
20684
|
rows.push([]);
|
|
20686
20685
|
}
|
|
20687
|
-
var allColumns =
|
|
20686
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20688
20687
|
allColumns.forEach(function (column) {
|
|
20689
20688
|
if (!column.children) {
|
|
20690
20689
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20724,7 +20723,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20724
20723
|
};
|
|
20725
20724
|
var headersToRows = function headersToRows(originColumns) {
|
|
20726
20725
|
var maxLevel = 1;
|
|
20727
|
-
var
|
|
20726
|
+
var _traverse2 = function traverse(column, parent) {
|
|
20728
20727
|
if (parent) {
|
|
20729
20728
|
//计算当前元素属于第几个层级
|
|
20730
20729
|
column.level = parent.level + 1;
|
|
@@ -20737,7 +20736,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20737
20736
|
var colSpan = 0;
|
|
20738
20737
|
column.children.forEach(function (subColumn) {
|
|
20739
20738
|
//进行递归
|
|
20740
|
-
|
|
20739
|
+
_traverse2(subColumn, column);
|
|
20741
20740
|
colSpan += subColumn.colSpan;
|
|
20742
20741
|
});
|
|
20743
20742
|
column.colSpan = colSpan;
|
|
@@ -20747,14 +20746,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20747
20746
|
};
|
|
20748
20747
|
originColumns.forEach(function (column) {
|
|
20749
20748
|
column.level = 1;
|
|
20750
|
-
|
|
20749
|
+
_traverse2(column);
|
|
20751
20750
|
});
|
|
20752
20751
|
var rows = [];
|
|
20753
20752
|
var lastData = [];
|
|
20754
20753
|
for (var i = 0; i < maxLevel; i++) {
|
|
20755
20754
|
rows.push([]);
|
|
20756
20755
|
}
|
|
20757
|
-
var allColumns =
|
|
20756
|
+
var allColumns = _getAllColumns(originColumns);
|
|
20758
20757
|
allColumns.forEach(function (column) {
|
|
20759
20758
|
if (!column.children) {
|
|
20760
20759
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26771,7 +26770,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26771
26770
|
}
|
|
26772
26771
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26773
26772
|
};
|
|
26774
|
-
var
|
|
26773
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
26775
26774
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26776
26775
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26777
26776
|
var children = hightLightData.children,
|
|
@@ -26782,7 +26781,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26782
26781
|
lineEnd = _loc2[2];
|
|
26783
26782
|
if (children) {
|
|
26784
26783
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26785
|
-
return
|
|
26784
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
26786
26785
|
});
|
|
26787
26786
|
}
|
|
26788
26787
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26794,7 +26793,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26794
26793
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26795
26794
|
data.forEach(function (node) {
|
|
26796
26795
|
if (!node) return;
|
|
26797
|
-
node.toggled =
|
|
26796
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
26798
26797
|
node.active = isHightLight(node, highLightLine);
|
|
26799
26798
|
if (node.children) {
|
|
26800
26799
|
if (node.active) {
|
|
@@ -28225,7 +28224,7 @@ var valueType = {
|
|
|
28225
28224
|
};
|
|
28226
28225
|
|
|
28227
28226
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28228
|
-
var _ref = _asyncToGenerator(
|
|
28227
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28229
28228
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28230
28229
|
while (1) switch (_context.prev = _context.next) {
|
|
28231
28230
|
case 0:
|
|
@@ -28293,7 +28292,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28293
28292
|
value: false
|
|
28294
28293
|
}];
|
|
28295
28294
|
var ref = useRef();
|
|
28296
|
-
useMount(
|
|
28295
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28297
28296
|
var _ref$current, source;
|
|
28298
28297
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28299
28298
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28407,7 +28406,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28407
28406
|
source: {
|
|
28408
28407
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28409
28408
|
type: function () {
|
|
28410
|
-
var _type = _asyncToGenerator(
|
|
28409
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28411
28410
|
var form, values, name, relates, source;
|
|
28412
28411
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28413
28412
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -28887,7 +28886,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28887
28886
|
source: {
|
|
28888
28887
|
relates: ['choiceType', 'inputType'],
|
|
28889
28888
|
type: function () {
|
|
28890
|
-
var _type2 = _asyncToGenerator(
|
|
28889
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
28891
28890
|
var values, name, form, source;
|
|
28892
28891
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
28893
28892
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29109,7 +29108,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29109
29108
|
width: 900,
|
|
29110
29109
|
maskClosable: false,
|
|
29111
29110
|
onOk: function () {
|
|
29112
|
-
var _onOk = _asyncToGenerator(
|
|
29111
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29113
29112
|
var _ref$current4, _res$editableStatus;
|
|
29114
29113
|
var res, _res$defaultValue;
|
|
29115
29114
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29181,7 +29180,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29181
29180
|
}()
|
|
29182
29181
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29183
29182
|
ref: ref
|
|
29184
|
-
})), maintainOptionsModal.visible && (
|
|
29183
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29185
29184
|
};
|
|
29186
29185
|
|
|
29187
29186
|
// @ts-nocheck
|
|
@@ -29795,7 +29794,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29795
29794
|
return setVisible(false);
|
|
29796
29795
|
},
|
|
29797
29796
|
className: 'customFieldsDrawer'
|
|
29798
|
-
}, detailTablesSetting.length == 0 && (
|
|
29797
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
29799
29798
|
style: {
|
|
29800
29799
|
display: 'flex'
|
|
29801
29800
|
}
|
|
@@ -29804,13 +29803,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29804
29803
|
flex: 1,
|
|
29805
29804
|
width: 500
|
|
29806
29805
|
}
|
|
29807
|
-
}, isEmpty(moduleParams) ? (
|
|
29806
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29808
29807
|
style: {
|
|
29809
29808
|
padding: "10px 0",
|
|
29810
29809
|
fontSize: "16px",
|
|
29811
29810
|
fontWeight: "bolder"
|
|
29812
29811
|
}
|
|
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")) : (
|
|
29812
|
+
}, "\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
29813
|
style: {
|
|
29815
29814
|
flex: 1
|
|
29816
29815
|
}
|
|
@@ -29819,7 +29818,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29819
29818
|
onRun: onClickRun,
|
|
29820
29819
|
value: jsonEditorVal,
|
|
29821
29820
|
shallowHeight: height
|
|
29822
|
-
})))), detailTablesSetting.length > 0 && (
|
|
29821
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
29823
29822
|
defaultActiveKey: activeKey,
|
|
29824
29823
|
onChange: function onChange(v) {
|
|
29825
29824
|
return setActiveKey(v);
|
|
@@ -29836,13 +29835,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29836
29835
|
flex: 1,
|
|
29837
29836
|
width: 500
|
|
29838
29837
|
}
|
|
29839
|
-
}, isEmpty(moduleParams) ? (
|
|
29838
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29840
29839
|
style: {
|
|
29841
29840
|
padding: "10px 0",
|
|
29842
29841
|
fontSize: "16px",
|
|
29843
29842
|
fontWeight: "bolder"
|
|
29844
29843
|
}
|
|
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")) : (
|
|
29844
|
+
}, "\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
29845
|
style: {
|
|
29847
29846
|
flex: 1
|
|
29848
29847
|
}
|
|
@@ -29864,13 +29863,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29864
29863
|
flex: 1,
|
|
29865
29864
|
width: 500
|
|
29866
29865
|
}
|
|
29867
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
29866
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29868
29867
|
style: {
|
|
29869
29868
|
padding: "10px 0",
|
|
29870
29869
|
fontSize: "16px",
|
|
29871
29870
|
fontWeight: "bolder"
|
|
29872
29871
|
}
|
|
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")) : (
|
|
29872
|
+
}, "\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
29873
|
style: {
|
|
29875
29874
|
flex: 1
|
|
29876
29875
|
}
|
|
@@ -30016,7 +30015,7 @@ function getMetaData(_x) {
|
|
|
30016
30015
|
|
|
30017
30016
|
// 获取数据
|
|
30018
30017
|
function _getMetaData() {
|
|
30019
|
-
_getMetaData = _asyncToGenerator(
|
|
30018
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30020
30019
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30021
30020
|
while (1) switch (_context.prev = _context.next) {
|
|
30022
30021
|
case 0:
|
|
@@ -30238,7 +30237,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30238
30237
|
tableState = _useState4[0],
|
|
30239
30238
|
setTableState = _useState4[1];
|
|
30240
30239
|
var handleOpen = /*#__PURE__*/function () {
|
|
30241
|
-
var _ref = _asyncToGenerator(
|
|
30240
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30242
30241
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30243
30242
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30244
30243
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30557,7 +30556,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30557
30556
|
destroyOnClose: true
|
|
30558
30557
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
30559
30558
|
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 && (
|
|
30559
|
+
}, 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
30560
|
justify: "center",
|
|
30562
30561
|
style: {
|
|
30563
30562
|
marginBottom: 30,
|
|
@@ -30673,7 +30672,7 @@ var CustomSelector = (function (props) {
|
|
|
30673
30672
|
var _props$ctx7;
|
|
30674
30673
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30675
30674
|
}
|
|
30676
|
-
})), showType === 'modalTable' && (
|
|
30675
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30677
30676
|
type: "primary",
|
|
30678
30677
|
style: {
|
|
30679
30678
|
width: '30px',
|
|
@@ -30759,7 +30758,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30759
30758
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30760
30759
|
handSource = _useState2[0],
|
|
30761
30760
|
setHandSource = _useState2[1];
|
|
30762
|
-
useEffect(
|
|
30761
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30763
30762
|
var resData, data;
|
|
30764
30763
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30765
30764
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30911,7 +30910,7 @@ function getRegularThresholdRange(_x) {
|
|
|
30911
30910
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
30912
30911
|
}
|
|
30913
30912
|
function _getRegularThresholdRange() {
|
|
30914
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
30913
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
30915
30914
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30916
30915
|
while (1) switch (_context.prev = _context.next) {
|
|
30917
30916
|
case 0:
|
|
@@ -31065,7 +31064,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31065
31064
|
};
|
|
31066
31065
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31067
31066
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31068
|
-
var _ref = _asyncToGenerator(
|
|
31067
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31069
31068
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31070
31069
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31071
31070
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32010,7 +32009,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32010
32009
|
isAll: true,
|
|
32011
32010
|
needNameAndCode: true,
|
|
32012
32011
|
notChangeOnSelect: true,
|
|
32013
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32012
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32014
32013
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32015
32014
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32016
32015
|
case 0:
|
|
@@ -32059,7 +32058,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32059
32058
|
isAll: true,
|
|
32060
32059
|
needNameAndCode: true,
|
|
32061
32060
|
notChangeOnSelect: true,
|
|
32062
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32061
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32063
32062
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32064
32063
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32065
32064
|
case 0:
|
|
@@ -32110,7 +32109,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32110
32109
|
isAll: true,
|
|
32111
32110
|
needNameAndCode: true,
|
|
32112
32111
|
notChangeOnSelect: true,
|
|
32113
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
32112
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32114
32113
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32115
32114
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32116
32115
|
case 0:
|
|
@@ -34074,7 +34073,7 @@ var App$1 = function App(_ref) {
|
|
|
34074
34073
|
borderRadius: '5px',
|
|
34075
34074
|
cursor: 'pointer'
|
|
34076
34075
|
}
|
|
34077
|
-
}, isStaticNumber ? (
|
|
34076
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34078
34077
|
autoFocus: true,
|
|
34079
34078
|
onClick: function onClick(e) {
|
|
34080
34079
|
return e.stopPropagation();
|
|
@@ -34361,7 +34360,7 @@ function RenderCompItem(props) {
|
|
|
34361
34360
|
dictData = _useState2[0],
|
|
34362
34361
|
setDictData = _useState2[1];
|
|
34363
34362
|
var getDictData = /*#__PURE__*/function () {
|
|
34364
|
-
var _ref = _asyncToGenerator(
|
|
34363
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34365
34364
|
var _data$map;
|
|
34366
34365
|
var data;
|
|
34367
34366
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34403,7 +34402,7 @@ function RenderCompItem(props) {
|
|
|
34403
34402
|
var style2 = {
|
|
34404
34403
|
width: '100px'
|
|
34405
34404
|
};
|
|
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 && (
|
|
34405
|
+
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
34406
|
disabled: disabled,
|
|
34408
34407
|
allowClear: true,
|
|
34409
34408
|
onClear: function onClear() {
|
|
@@ -34414,7 +34413,7 @@ function RenderCompItem(props) {
|
|
|
34414
34413
|
onBlur: function onBlur(e) {
|
|
34415
34414
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34416
34415
|
}
|
|
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) && (
|
|
34416
|
+
})) || 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
34417
|
disabled: disabled,
|
|
34419
34418
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34420
34419
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34427,7 +34426,7 @@ function RenderCompItem(props) {
|
|
|
34427
34426
|
onChange: function onChange(value) {
|
|
34428
34427
|
handleEdit(ites.code, value);
|
|
34429
34428
|
}
|
|
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) && (
|
|
34429
|
+
})) || 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
34430
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34432
34431
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34433
34432
|
disabled: disabled,
|
|
@@ -34437,7 +34436,7 @@ function RenderCompItem(props) {
|
|
|
34437
34436
|
onChange: function onChange(value, dateString) {
|
|
34438
34437
|
handleEdit(ites.code, dateString);
|
|
34439
34438
|
}
|
|
34440
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
34439
|
+
})) || 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
34440
|
showTime: true,
|
|
34442
34441
|
disabled: disabled,
|
|
34443
34442
|
defaultValue: ites.defaultValue,
|
|
@@ -34446,7 +34445,7 @@ function RenderCompItem(props) {
|
|
|
34446
34445
|
onChange: function onChange(value, timeString) {
|
|
34447
34446
|
handleEdit(ites.code, timeString);
|
|
34448
34447
|
}
|
|
34449
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
34448
|
+
})) || 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
34449
|
disabled: disabled,
|
|
34451
34450
|
defaultChecked: !!ites.defaultValue,
|
|
34452
34451
|
style: style2,
|
|
@@ -34454,7 +34453,7 @@ function RenderCompItem(props) {
|
|
|
34454
34453
|
onChange: function onChange(value) {
|
|
34455
34454
|
handleEdit(ites.code, value);
|
|
34456
34455
|
}
|
|
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 && (
|
|
34456
|
+
})) || 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
34457
|
disabled: disabled,
|
|
34459
34458
|
allowClear: true,
|
|
34460
34459
|
showArrow: true
|
|
@@ -34472,7 +34471,7 @@ function RenderCompItem(props) {
|
|
|
34472
34471
|
key: it,
|
|
34473
34472
|
value: it
|
|
34474
34473
|
}, 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 && (
|
|
34474
|
+
}))) || 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
34475
|
disabled: disabled,
|
|
34477
34476
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34478
34477
|
defaultValue: ites.defaultValue,
|
|
@@ -34482,7 +34481,7 @@ function RenderCompItem(props) {
|
|
|
34482
34481
|
handleEdit(ites.code, value);
|
|
34483
34482
|
},
|
|
34484
34483
|
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 && (
|
|
34484
|
+
})) || 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
34485
|
selectBusinessType: "physicalWarehouse",
|
|
34487
34486
|
selectProps: _objectSpread2({
|
|
34488
34487
|
style: styleCommon,
|
|
@@ -34504,7 +34503,7 @@ function RenderCompItem(props) {
|
|
|
34504
34503
|
getPopupContainer: function getPopupContainer() {
|
|
34505
34504
|
return document.body;
|
|
34506
34505
|
}
|
|
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 && (
|
|
34506
|
+
})) || 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
34507
|
selectBusinessType: "realWarehouse",
|
|
34509
34508
|
selectProps: _objectSpread2({
|
|
34510
34509
|
style: styleCommon,
|
|
@@ -34526,7 +34525,7 @@ function RenderCompItem(props) {
|
|
|
34526
34525
|
getPopupContainer: function getPopupContainer() {
|
|
34527
34526
|
return document.body;
|
|
34528
34527
|
}
|
|
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 && (
|
|
34528
|
+
})) || 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
34529
|
selectBusinessType: "virtualWarehouse",
|
|
34531
34530
|
selectProps: _objectSpread2({
|
|
34532
34531
|
style: styleCommon,
|
|
@@ -34548,7 +34547,7 @@ function RenderCompItem(props) {
|
|
|
34548
34547
|
getPopupContainer: function getPopupContainer() {
|
|
34549
34548
|
return document.body;
|
|
34550
34549
|
}
|
|
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 && (
|
|
34550
|
+
})) || 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
34551
|
selectBusinessType: "channelWarehouse",
|
|
34553
34552
|
selectProps: _objectSpread2({
|
|
34554
34553
|
style: styleCommon,
|
|
@@ -34570,7 +34569,7 @@ function RenderCompItem(props) {
|
|
|
34570
34569
|
getPopupContainer: function getPopupContainer() {
|
|
34571
34570
|
return document.body;
|
|
34572
34571
|
}
|
|
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 && (
|
|
34572
|
+
})) || 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
34573
|
selectBusinessType: "spuCommodity",
|
|
34575
34574
|
selectProps: _objectSpread2({
|
|
34576
34575
|
style: styleCommon,
|
|
@@ -34591,7 +34590,7 @@ function RenderCompItem(props) {
|
|
|
34591
34590
|
getPopupContainer: function getPopupContainer() {
|
|
34592
34591
|
return document.body;
|
|
34593
34592
|
}
|
|
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 && (
|
|
34593
|
+
})) || 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
34594
|
selectBusinessType: "skuCommodity",
|
|
34596
34595
|
selectProps: _objectSpread2({
|
|
34597
34596
|
style: styleCommon,
|
|
@@ -34612,13 +34611,13 @@ function RenderCompItem(props) {
|
|
|
34612
34611
|
getPopupContainer: function getPopupContainer() {
|
|
34613
34612
|
return document.body;
|
|
34614
34613
|
}
|
|
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 && (
|
|
34614
|
+
})) || 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
34615
|
disabled: disabled,
|
|
34617
34616
|
isAll: true,
|
|
34618
34617
|
needNameAndCode: true,
|
|
34619
34618
|
notChangeOnSelect: true,
|
|
34620
34619
|
initRequestSource: function () {
|
|
34621
|
-
var _initRequestSource = _asyncToGenerator(
|
|
34620
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34622
34621
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34623
34622
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34624
34623
|
case 0:
|
|
@@ -34660,7 +34659,7 @@ function RenderCompItem(props) {
|
|
|
34660
34659
|
getPopupContainer: function getPopupContainer() {
|
|
34661
34660
|
return document.body;
|
|
34662
34661
|
}
|
|
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 && (
|
|
34662
|
+
})) || 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
34663
|
disabled: disabled,
|
|
34665
34664
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34666
34665
|
businessType: "department",
|
|
@@ -34673,7 +34672,7 @@ function RenderCompItem(props) {
|
|
|
34673
34672
|
getPopupContainer: function getPopupContainer() {
|
|
34674
34673
|
return document.body;
|
|
34675
34674
|
}
|
|
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 && (
|
|
34675
|
+
})) || 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
34676
|
disabled: disabled,
|
|
34678
34677
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34679
34678
|
businessType: "purchase-organization",
|
|
@@ -34686,7 +34685,7 @@ function RenderCompItem(props) {
|
|
|
34686
34685
|
getPopupContainer: function getPopupContainer() {
|
|
34687
34686
|
return document.body;
|
|
34688
34687
|
}
|
|
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 && (
|
|
34688
|
+
})) || 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
34689
|
disabled: disabled,
|
|
34691
34690
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34692
34691
|
businessType: "sales-organization",
|
|
@@ -34699,7 +34698,7 @@ function RenderCompItem(props) {
|
|
|
34699
34698
|
getPopupContainer: function getPopupContainer() {
|
|
34700
34699
|
return document.body;
|
|
34701
34700
|
}
|
|
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 && (
|
|
34701
|
+
})) || 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
34702
|
selectBusinessType: "supplier2",
|
|
34704
34703
|
selectProps: _objectSpread2({
|
|
34705
34704
|
style: styleCommon,
|
|
@@ -34720,7 +34719,7 @@ function RenderCompItem(props) {
|
|
|
34720
34719
|
getPopupContainer: function getPopupContainer() {
|
|
34721
34720
|
return document.body;
|
|
34722
34721
|
}
|
|
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 && (
|
|
34722
|
+
})) || 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
34723
|
selectBusinessType: "customer2",
|
|
34725
34724
|
selectProps: _objectSpread2({
|
|
34726
34725
|
style: styleCommon,
|
|
@@ -34741,7 +34740,7 @@ function RenderCompItem(props) {
|
|
|
34741
34740
|
getPopupContainer: function getPopupContainer() {
|
|
34742
34741
|
return document.body;
|
|
34743
34742
|
}
|
|
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 && (
|
|
34743
|
+
})) || 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
34744
|
selectBusinessType: "shopFile2",
|
|
34746
34745
|
selectProps: _objectSpread2({
|
|
34747
34746
|
style: styleCommon,
|
|
@@ -34762,7 +34761,7 @@ function RenderCompItem(props) {
|
|
|
34762
34761
|
getPopupContainer: function getPopupContainer() {
|
|
34763
34762
|
return document.body;
|
|
34764
34763
|
}
|
|
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 && (
|
|
34764
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34766
34765
|
selectBusinessType: "employee2",
|
|
34767
34766
|
selectProps: _objectSpread2({
|
|
34768
34767
|
style: styleCommon,
|
|
@@ -34783,7 +34782,7 @@ function RenderCompItem(props) {
|
|
|
34783
34782
|
getPopupContainer: function getPopupContainer() {
|
|
34784
34783
|
return document.body;
|
|
34785
34784
|
}
|
|
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 && (
|
|
34785
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34787
34786
|
disabled: disabled,
|
|
34788
34787
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34789
34788
|
businessType: "stock-organization",
|
|
@@ -34796,7 +34795,7 @@ function RenderCompItem(props) {
|
|
|
34796
34795
|
getPopupContainer: function getPopupContainer() {
|
|
34797
34796
|
return document.body;
|
|
34798
34797
|
}
|
|
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 && (
|
|
34798
|
+
})) || 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
34799
|
disabled: disabled,
|
|
34801
34800
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34802
34801
|
businessType: "settle-organization",
|
|
@@ -34809,7 +34808,7 @@ function RenderCompItem(props) {
|
|
|
34809
34808
|
getPopupContainer: function getPopupContainer() {
|
|
34810
34809
|
return document.body;
|
|
34811
34810
|
}
|
|
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 && (
|
|
34811
|
+
})) || 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
34812
|
selectBusinessType: "deliveryMode",
|
|
34814
34813
|
selectProps: _objectSpread2({
|
|
34815
34814
|
style: styleCommon,
|
|
@@ -34830,7 +34829,7 @@ function RenderCompItem(props) {
|
|
|
34830
34829
|
getPopupContainer: function getPopupContainer() {
|
|
34831
34830
|
return document.body;
|
|
34832
34831
|
}
|
|
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 && (
|
|
34832
|
+
})) || 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
34833
|
selectBusinessType: "role",
|
|
34835
34834
|
selectProps: _objectSpread2({
|
|
34836
34835
|
style: styleCommon,
|
|
@@ -34851,7 +34850,7 @@ function RenderCompItem(props) {
|
|
|
34851
34850
|
getPopupContainer: function getPopupContainer() {
|
|
34852
34851
|
return document.body;
|
|
34853
34852
|
}
|
|
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 && (
|
|
34853
|
+
})) || 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
34854
|
selectBusinessType: "brand",
|
|
34856
34855
|
selectProps: _objectSpread2({
|
|
34857
34856
|
style: styleCommon,
|
|
@@ -34872,7 +34871,7 @@ function RenderCompItem(props) {
|
|
|
34872
34871
|
getPopupContainer: function getPopupContainer() {
|
|
34873
34872
|
return document.body;
|
|
34874
34873
|
}
|
|
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 && (
|
|
34874
|
+
})) || 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
34875
|
disabled: disabled,
|
|
34877
34876
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34878
34877
|
businessType: "background-category",
|
|
@@ -34885,7 +34884,7 @@ function RenderCompItem(props) {
|
|
|
34885
34884
|
getPopupContainer: function getPopupContainer() {
|
|
34886
34885
|
return document.body;
|
|
34887
34886
|
}
|
|
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 && (
|
|
34887
|
+
})) || 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
34888
|
selectProps: _objectSpread2(_objectSpread2({
|
|
34890
34889
|
style: styleCommon,
|
|
34891
34890
|
placeholder: '请选择'
|
|
@@ -34908,7 +34907,7 @@ function RenderCompItem(props) {
|
|
|
34908
34907
|
onChange: function onChange(value) {
|
|
34909
34908
|
handleEdit(ites.code, value);
|
|
34910
34909
|
}
|
|
34911
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
34910
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
34912
34911
|
style: {
|
|
34913
34912
|
display: 'flex'
|
|
34914
34913
|
}
|
|
@@ -35420,7 +35419,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35420
35419
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35421
35420
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35422
35421
|
}
|
|
35423
|
-
var parallelTreeData =
|
|
35422
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
35424
35423
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35425
35424
|
var _i$key;
|
|
35426
35425
|
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);
|
|
@@ -36347,13 +36346,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36347
36346
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36348
36347
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36349
36348
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36350
|
-
var list =
|
|
36349
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36351
36350
|
var requiredList = list.filter(function (c) {
|
|
36352
36351
|
return c.required == 1;
|
|
36353
36352
|
}) || []; // 获取对象属性为true的集合
|
|
36354
36353
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36355
36354
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
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) ?
|
|
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) ? _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];
|
|
36357
36356
|
(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) {
|
|
36358
36357
|
if (requiredList.some(function (r) {
|
|
36359
36358
|
return r.id === e.elementId;
|
|
@@ -36942,7 +36941,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36942
36941
|
style: {
|
|
36943
36942
|
float: 'right'
|
|
36944
36943
|
}
|
|
36945
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
36944
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
36946
36945
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
36947
36946
|
ruleGroupInfo: {
|
|
36948
36947
|
ruleGroupList: ruleGroupList,
|
|
@@ -36960,7 +36959,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36960
36959
|
callBack: function callBack(newData) {
|
|
36961
36960
|
upDateData(newData);
|
|
36962
36961
|
}
|
|
36963
|
-
}))) : (
|
|
36962
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
36964
36963
|
style: {
|
|
36965
36964
|
padding: 20
|
|
36966
36965
|
}
|
|
@@ -37335,4 +37334,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37335
37334
|
}, children));
|
|
37336
37335
|
};
|
|
37337
37336
|
|
|
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 };
|
|
37337
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|