@bit-sun/business-component 4.0.11-alpha.19 → 4.0.11-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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 ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1062
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1063
1063
|
className: "clomnsImg"
|
|
1064
1064
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1065
1065
|
src: url,
|
|
1066
1066
|
width: "16px",
|
|
1067
1067
|
height: "16px"
|
|
1068
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1068
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1069
1069
|
className: "clomnsImg2"
|
|
1070
1070
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1071
1071
|
src: noImg
|
|
@@ -1204,7 +1204,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
save_link.click();
|
|
1206
1206
|
}
|
|
1207
|
-
var
|
|
1207
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1208
1208
|
return data.map(function (item) {
|
|
1209
1209
|
if (!item.name || !item.path) {
|
|
1210
1210
|
return null;
|
|
@@ -1224,7 +1224,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1224
1224
|
authority: item.authority || parentAuthority
|
|
1225
1225
|
});
|
|
1226
1226
|
if (item.routes) {
|
|
1227
|
-
var children =
|
|
1227
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1228
1228
|
// Reduce memory usage
|
|
1229
1229
|
result.children = children;
|
|
1230
1230
|
}
|
|
@@ -1234,7 +1234,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1234
1234
|
return item;
|
|
1235
1235
|
});
|
|
1236
1236
|
};
|
|
1237
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1237
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1238
1238
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1239
1239
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1240
1240
|
if (backHistoryPath) {
|
|
@@ -1543,7 +1543,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1543
1543
|
// sheepMap是表头字段中英文映射
|
|
1544
1544
|
// sheetCount:表的数量,默认一张
|
|
1545
1545
|
var resolveFile = /*#__PURE__*/function () {
|
|
1546
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1546
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1547
1547
|
var config,
|
|
1548
1548
|
data,
|
|
1549
1549
|
_args = arguments;
|
|
@@ -1582,7 +1582,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1582
1582
|
}();
|
|
1583
1583
|
//读取文件
|
|
1584
1584
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1585
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1585
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1586
1586
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1587
1587
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1588
1588
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1675,14 +1675,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1675
1675
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1676
1676
|
|
|
1677
1677
|
// 获取树平行结构
|
|
1678
|
-
var
|
|
1678
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1679
1679
|
var childrenKey = chilKey || 'children';
|
|
1680
1680
|
treeData.forEach(function (el) {
|
|
1681
1681
|
var _el$childrenKey;
|
|
1682
1682
|
result.push(el);
|
|
1683
1683
|
if ((el === null || el === void 0 ? void 0 : el[childrenKey]) && (el === null || el === void 0 ? void 0 : (_el$childrenKey = el[childrenKey]) === null || _el$childrenKey === void 0 ? void 0 : _el$childrenKey.length) > 0) {
|
|
1684
1684
|
// 子级递归
|
|
1685
|
-
|
|
1685
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
1688
|
return result;
|
|
@@ -1959,13 +1959,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1959
1959
|
imgHtml.innerHTML = str;
|
|
1960
1960
|
}
|
|
1961
1961
|
// 测试使用 测试类型缩小 end
|
|
1962
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1962
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1963
1963
|
className: "clomnsImg"
|
|
1964
1964
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1965
1965
|
src: url,
|
|
1966
1966
|
width: "16px",
|
|
1967
1967
|
height: "16px"
|
|
1968
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1968
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1969
1969
|
src: noImg
|
|
1970
1970
|
}))));
|
|
1971
1971
|
};
|
|
@@ -2027,7 +2027,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2027
2027
|
}
|
|
2028
2028
|
});
|
|
2029
2029
|
};
|
|
2030
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2030
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2031
2031
|
disabled: disabled,
|
|
2032
2032
|
onChange: function onChange(e) {
|
|
2033
2033
|
var v = e.target.value;
|
|
@@ -2037,7 +2037,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2037
2037
|
width: 170
|
|
2038
2038
|
},
|
|
2039
2039
|
value: inputValue
|
|
2040
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2040
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2041
2041
|
disabled: disabled,
|
|
2042
2042
|
onBlur: function onBlur(e) {
|
|
2043
2043
|
var v = parseFloat(e.target.value);
|
|
@@ -2416,16 +2416,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2416
2416
|
var handleExportBarCode = handleExport;
|
|
2417
2417
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2418
2418
|
var routerMap = {};
|
|
2419
|
-
var
|
|
2419
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2420
2420
|
data.forEach(function (menuItem) {
|
|
2421
2421
|
if (menuItem.children) {
|
|
2422
|
-
|
|
2422
|
+
flattenMenuData(menuItem.children);
|
|
2423
2423
|
}
|
|
2424
2424
|
// Reduce memory usage
|
|
2425
2425
|
routerMap[menuItem.path] = menuItem;
|
|
2426
2426
|
});
|
|
2427
2427
|
};
|
|
2428
|
-
|
|
2428
|
+
flattenMenuData(menuData);
|
|
2429
2429
|
return routerMap;
|
|
2430
2430
|
};
|
|
2431
2431
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2568,7 +2568,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2568
2568
|
return request$1(url, parms).then(handleResponseData);
|
|
2569
2569
|
};
|
|
2570
2570
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2571
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2571
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2572
2572
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2573
2573
|
while (1) switch (_context.prev = _context.next) {
|
|
2574
2574
|
case 0:
|
|
@@ -3242,7 +3242,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3242
3242
|
placement: "bottomLeft"
|
|
3243
3243
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3244
3244
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3245
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3245
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3246
3246
|
trigger: ['click'],
|
|
3247
3247
|
overlay: this.menuList,
|
|
3248
3248
|
placement: "bottomRight"
|
|
@@ -3917,7 +3917,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3917
3917
|
placement: "bottomLeft"
|
|
3918
3918
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3919
3919
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3920
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3920
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3921
3921
|
trigger: ['click'],
|
|
3922
3922
|
overlay: this.menuList,
|
|
3923
3923
|
placement: "bottomRight"
|
|
@@ -5275,13 +5275,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5275
5275
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5276
5276
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5277
5277
|
className: 'search_select'
|
|
5278
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5278
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5279
5279
|
onClick: function onClick() {
|
|
5280
5280
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5281
5281
|
(_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);
|
|
5282
5282
|
showModal();
|
|
5283
5283
|
}
|
|
5284
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5284
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5285
5285
|
title: getShowStr(),
|
|
5286
5286
|
style: {
|
|
5287
5287
|
overflow: 'hidden',
|
|
@@ -5307,10 +5307,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5307
5307
|
dropdownRender: function dropdownRender(menu) {
|
|
5308
5308
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5309
5309
|
},
|
|
5310
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5310
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5311
5311
|
size: "small",
|
|
5312
5312
|
className: 'searchSelectSpin'
|
|
5313
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5313
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5314
5314
|
style: {
|
|
5315
5315
|
textAlign: 'center'
|
|
5316
5316
|
}
|
|
@@ -5341,7 +5341,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5341
5341
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5342
5342
|
filterTxt: searchValue
|
|
5343
5343
|
}));
|
|
5344
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5344
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5345
5345
|
maskClosable: false,
|
|
5346
5346
|
destroyOnClose: true,
|
|
5347
5347
|
width: "80%",
|
|
@@ -5938,7 +5938,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5938
5938
|
style: {
|
|
5939
5939
|
width: 525
|
|
5940
5940
|
}
|
|
5941
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5941
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5942
5942
|
checked: !dataSource.some(function (item) {
|
|
5943
5943
|
if (item.hidden) return true;
|
|
5944
5944
|
return false;
|
|
@@ -5976,13 +5976,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5976
5976
|
_this2.onChange(e, item.title);
|
|
5977
5977
|
}
|
|
5978
5978
|
}, item.title);
|
|
5979
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
5979
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
5980
5980
|
style: {
|
|
5981
5981
|
width: '144px'
|
|
5982
5982
|
}
|
|
5983
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5983
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
5984
5984
|
className: 'sort_table_column_all_empty'
|
|
5985
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5985
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5986
5986
|
className: 'sort_table_column_special'
|
|
5987
5987
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
5988
5988
|
className: 'sort_table_column_all'
|
|
@@ -6171,7 +6171,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6171
6171
|
});
|
|
6172
6172
|
};
|
|
6173
6173
|
// 格式化树选择器数据源
|
|
6174
|
-
var
|
|
6174
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6175
6175
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6176
6176
|
return {
|
|
6177
6177
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6181,7 +6181,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6181
6181
|
isLeaf: !haveChildren,
|
|
6182
6182
|
disabled: haveChildren,
|
|
6183
6183
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6184
|
-
return
|
|
6184
|
+
return mapSearchTree(i, resKeyValue);
|
|
6185
6185
|
}) : []
|
|
6186
6186
|
};
|
|
6187
6187
|
};
|
|
@@ -6190,7 +6190,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6190
6190
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6191
6191
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6192
6192
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6193
|
-
return
|
|
6193
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6194
6194
|
}) || [];
|
|
6195
6195
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6196
6196
|
};
|
|
@@ -6361,7 +6361,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6361
6361
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6362
6362
|
// FIXME: 特殊业务逻辑
|
|
6363
6363
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6364
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6364
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6365
6365
|
var result;
|
|
6366
6366
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6367
6367
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6614,7 +6614,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6614
6614
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6615
6615
|
value: text || null,
|
|
6616
6616
|
onChange: function () {
|
|
6617
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6617
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6618
6618
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6619
6619
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6620
6620
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7222,10 +7222,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7222
7222
|
var newColumns = arr.map(function (col) {
|
|
7223
7223
|
return _objectSpread2({}, col);
|
|
7224
7224
|
});
|
|
7225
|
-
var
|
|
7225
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7226
7226
|
var i = indexArr.shift();
|
|
7227
7227
|
if (indexArr.length > 0) {
|
|
7228
|
-
|
|
7228
|
+
handleIndex(arr[i].children, indexArr);
|
|
7229
7229
|
} else {
|
|
7230
7230
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7231
7231
|
width: size.width
|
|
@@ -7233,7 +7233,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7233
7233
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7234
7234
|
}
|
|
7235
7235
|
};
|
|
7236
|
-
|
|
7236
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7237
7237
|
callback(newColumns);
|
|
7238
7238
|
};
|
|
7239
7239
|
};
|
|
@@ -7243,13 +7243,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7243
7243
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7244
7244
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7245
7245
|
};
|
|
7246
|
-
var
|
|
7246
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7247
7247
|
arr.forEach(function (item, index) {
|
|
7248
7248
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7249
7249
|
return i || i === 0;
|
|
7250
7250
|
});
|
|
7251
7251
|
if (noEmptyArray$1(item.children)) {
|
|
7252
|
-
|
|
7252
|
+
handleColumns(item.children, indexArrInside);
|
|
7253
7253
|
} else {
|
|
7254
7254
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7255
7255
|
item.onHeaderCell = function (column) {
|
|
@@ -7265,14 +7265,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7265
7265
|
handleAntdColumnsSpecialParams(item);
|
|
7266
7266
|
return _objectSpread2({}, item);
|
|
7267
7267
|
});
|
|
7268
|
-
|
|
7268
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7269
7269
|
return setShowToChooseColumnsCallback(res);
|
|
7270
7270
|
});
|
|
7271
7271
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7272
7272
|
handleAntdColumnsSpecialParams(item);
|
|
7273
7273
|
return _objectSpread2({}, item);
|
|
7274
7274
|
});
|
|
7275
|
-
|
|
7275
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7276
7276
|
return setShowColumnsCallback(res);
|
|
7277
7277
|
});
|
|
7278
7278
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7283,7 +7283,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7283
7283
|
id: "add_select_div_".concat(uniqueValue)
|
|
7284
7284
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7285
7285
|
onClick: handleShowModal
|
|
7286
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7286
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7287
7287
|
width: '1200px',
|
|
7288
7288
|
style: {
|
|
7289
7289
|
top: 20
|
|
@@ -8197,7 +8197,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8197
8197
|
});
|
|
8198
8198
|
};
|
|
8199
8199
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8200
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8200
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8201
8201
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8202
8202
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8203
8203
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8280,10 +8280,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8280
8280
|
var newColumns = arr.map(function (col) {
|
|
8281
8281
|
return _objectSpread2({}, col);
|
|
8282
8282
|
});
|
|
8283
|
-
var
|
|
8283
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8284
8284
|
var i = indexArr.shift();
|
|
8285
8285
|
if (indexArr.length > 0) {
|
|
8286
|
-
|
|
8286
|
+
handleIndex(arr[i].children, indexArr);
|
|
8287
8287
|
} else {
|
|
8288
8288
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8289
8289
|
width: size.width
|
|
@@ -8291,17 +8291,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8291
8291
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8292
8292
|
}
|
|
8293
8293
|
};
|
|
8294
|
-
|
|
8294
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8295
8295
|
callback(newColumns);
|
|
8296
8296
|
};
|
|
8297
8297
|
};
|
|
8298
|
-
var
|
|
8298
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8299
8299
|
arr.forEach(function (item, index) {
|
|
8300
8300
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8301
8301
|
return i || i === 0;
|
|
8302
8302
|
});
|
|
8303
8303
|
if (noEmptyArray$1(item.children)) {
|
|
8304
|
-
|
|
8304
|
+
handleColumns(item.children, indexArrInside);
|
|
8305
8305
|
} else {
|
|
8306
8306
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8307
8307
|
item.onHeaderCell = function (column) {
|
|
@@ -8317,7 +8317,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8317
8317
|
handleAntdColumnsSpecialParams(item);
|
|
8318
8318
|
return _objectSpread2({}, item);
|
|
8319
8319
|
});
|
|
8320
|
-
|
|
8320
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8321
8321
|
return setShowColumnsCallback(res);
|
|
8322
8322
|
});
|
|
8323
8323
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8631,7 +8631,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8631
8631
|
});
|
|
8632
8632
|
};
|
|
8633
8633
|
// 格式化树选择器数据源
|
|
8634
|
-
var
|
|
8634
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8635
8635
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8636
8636
|
return {
|
|
8637
8637
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8641,7 +8641,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8641
8641
|
isLeaf: !haveChildren,
|
|
8642
8642
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8643
8643
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8644
|
-
return
|
|
8644
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8645
8645
|
}) : []
|
|
8646
8646
|
};
|
|
8647
8647
|
};
|
|
@@ -8655,7 +8655,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8655
8655
|
disabledJudge = false;
|
|
8656
8656
|
}
|
|
8657
8657
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8658
|
-
return
|
|
8658
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8659
8659
|
}) || [];
|
|
8660
8660
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8661
8661
|
};
|
|
@@ -12700,7 +12700,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12700
12700
|
};
|
|
12701
12701
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12702
12702
|
onClick: handleShowModal
|
|
12703
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12703
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12704
12704
|
onOk: handleOk,
|
|
12705
12705
|
onCancel: handleCancel,
|
|
12706
12706
|
destroyOnClose: true,
|
|
@@ -12819,7 +12819,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12819
12819
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12820
12820
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12821
12821
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12822
|
-
var
|
|
12822
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12823
12823
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12824
12824
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12825
12825
|
return {
|
|
@@ -12831,7 +12831,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12831
12831
|
isLeaf: !haveChildren,
|
|
12832
12832
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12833
12833
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12834
|
-
return
|
|
12834
|
+
return mapSearchTree(i);
|
|
12835
12835
|
}) : []
|
|
12836
12836
|
};
|
|
12837
12837
|
};
|
|
@@ -12849,8 +12849,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12849
12849
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12850
12850
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12851
12851
|
headers: headers
|
|
12852
|
-
}).then(/*#__PURE__*/function () {
|
|
12853
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12852
|
+
}).then( /*#__PURE__*/function () {
|
|
12853
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12854
12854
|
var _ctx$form;
|
|
12855
12855
|
var resData, coverData, data, dataList;
|
|
12856
12856
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12877,7 +12877,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12877
12877
|
case 9:
|
|
12878
12878
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12879
12879
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12880
|
-
return
|
|
12880
|
+
return mapSearchTree(ites);
|
|
12881
12881
|
}) || [];
|
|
12882
12882
|
case 11:
|
|
12883
12883
|
_context.next = 14;
|
|
@@ -12915,11 +12915,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12915
12915
|
return _formatResult;
|
|
12916
12916
|
}
|
|
12917
12917
|
};
|
|
12918
|
-
var
|
|
12918
|
+
var parallelData = function parallelData(data, result) {
|
|
12919
12919
|
data.forEach(function (i) {
|
|
12920
12920
|
result.push(i);
|
|
12921
12921
|
if (i[treeChildrenRoom]) {
|
|
12922
|
-
|
|
12922
|
+
parallelData(i[treeChildrenRoom], result);
|
|
12923
12923
|
}
|
|
12924
12924
|
});
|
|
12925
12925
|
return result;
|
|
@@ -12959,7 +12959,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12959
12959
|
var _ctx$form2;
|
|
12960
12960
|
var handleData = formatData(data);
|
|
12961
12961
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12962
|
-
var parallelTreeData =
|
|
12962
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12963
12963
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
12964
12964
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
12965
12965
|
onChangeName && onChangeName(dataName);
|
|
@@ -13002,7 +13002,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13002
13002
|
var getShowStr = function getShowStr() {
|
|
13003
13003
|
var isMultiple = multiple || treeCheckable;
|
|
13004
13004
|
var kongValue = '无';
|
|
13005
|
-
var parallelTreeData =
|
|
13005
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13006
13006
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13007
13007
|
if (isMultiple) {
|
|
13008
13008
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13014,7 +13014,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13014
13014
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13015
13015
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13016
13016
|
className: 'tree_search_select'
|
|
13017
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13017
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13018
13018
|
title: getShowStr(),
|
|
13019
13019
|
style: {
|
|
13020
13020
|
overflow: 'hidden',
|
|
@@ -13022,7 +13022,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13022
13022
|
whiteSpace: 'nowrap'
|
|
13023
13023
|
},
|
|
13024
13024
|
className: 'search_select_show'
|
|
13025
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13025
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13026
13026
|
treeCheckable: treeCheckable,
|
|
13027
13027
|
maxTagCount: maxTagCount,
|
|
13028
13028
|
showSearch: showSearch,
|
|
@@ -13219,7 +13219,7 @@ var index$2 = (function (props) {
|
|
|
13219
13219
|
} : {}
|
|
13220
13220
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13221
13221
|
className: 'status-label-operate'
|
|
13222
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13222
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13223
13223
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13224
13224
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13225
13225
|
style: {
|
|
@@ -14000,7 +14000,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14000
14000
|
style: {
|
|
14001
14001
|
width: 525
|
|
14002
14002
|
}
|
|
14003
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14003
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14004
14004
|
checked: !dataSource.some(function (item) {
|
|
14005
14005
|
if (item.hidden) return true;
|
|
14006
14006
|
return false;
|
|
@@ -14038,13 +14038,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14038
14038
|
_this2.onChange(e, item.title);
|
|
14039
14039
|
}
|
|
14040
14040
|
}, item.title);
|
|
14041
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14041
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
14042
14042
|
style: {
|
|
14043
14043
|
width: '144px'
|
|
14044
14044
|
}
|
|
14045
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14045
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
14046
14046
|
className: 'sort_table_column_all_empty'
|
|
14047
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14047
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14048
14048
|
className: 'sort_table_column_special'
|
|
14049
14049
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14050
14050
|
className: 'sort_table_column_all'
|
|
@@ -14201,10 +14201,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14201
14201
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14202
14202
|
return _objectSpread2({}, col);
|
|
14203
14203
|
});
|
|
14204
|
-
var
|
|
14204
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14205
14205
|
var i = indexArr.shift();
|
|
14206
14206
|
if (indexArr.length > 0) {
|
|
14207
|
-
|
|
14207
|
+
handleIndex(arr[i].children, indexArr);
|
|
14208
14208
|
} else {
|
|
14209
14209
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14210
14210
|
width: size.width
|
|
@@ -14212,7 +14212,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14212
14212
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14213
14213
|
}
|
|
14214
14214
|
};
|
|
14215
|
-
|
|
14215
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14216
14216
|
_this.setState({
|
|
14217
14217
|
showColumns: _toConsumableArray(newColumns)
|
|
14218
14218
|
});
|
|
@@ -14290,13 +14290,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14290
14290
|
showSummary = summary;
|
|
14291
14291
|
}
|
|
14292
14292
|
}
|
|
14293
|
-
var
|
|
14293
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14294
14294
|
arr.forEach(function (item, index) {
|
|
14295
14295
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14296
14296
|
return i || i === 0;
|
|
14297
14297
|
});
|
|
14298
14298
|
if (noEmptyArray$1(item.children)) {
|
|
14299
|
-
|
|
14299
|
+
handleColumns(item.children, indexArrInside);
|
|
14300
14300
|
} else {
|
|
14301
14301
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14302
14302
|
item.onHeaderCell = function (column) {
|
|
@@ -14312,7 +14312,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14312
14312
|
handleBssulaColumnsSpecialParams(item);
|
|
14313
14313
|
return _objectSpread2({}, item);
|
|
14314
14314
|
});
|
|
14315
|
-
|
|
14315
|
+
handleColumns(showCol, []);
|
|
14316
14316
|
if (dynamicColumns.length) {
|
|
14317
14317
|
showCol = this.handledynamicColumns(showCol);
|
|
14318
14318
|
}
|
|
@@ -14446,10 +14446,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14446
14446
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14447
14447
|
return _objectSpread2({}, col);
|
|
14448
14448
|
});
|
|
14449
|
-
var
|
|
14449
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14450
14450
|
var i = indexArr.shift();
|
|
14451
14451
|
if (indexArr.length > 0) {
|
|
14452
|
-
|
|
14452
|
+
handleIndex(arr[i].children, indexArr);
|
|
14453
14453
|
} else {
|
|
14454
14454
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14455
14455
|
width: size.width
|
|
@@ -14457,7 +14457,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14457
14457
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14458
14458
|
}
|
|
14459
14459
|
};
|
|
14460
|
-
|
|
14460
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14461
14461
|
_this.setState({
|
|
14462
14462
|
showColumns: _toConsumableArray(newColumns)
|
|
14463
14463
|
});
|
|
@@ -14533,13 +14533,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14533
14533
|
showSummary = summary;
|
|
14534
14534
|
}
|
|
14535
14535
|
}
|
|
14536
|
-
var
|
|
14536
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14537
14537
|
arr.forEach(function (item, index) {
|
|
14538
14538
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14539
14539
|
return i || i === 0;
|
|
14540
14540
|
});
|
|
14541
14541
|
if (noEmptyArray$1(item.children)) {
|
|
14542
|
-
|
|
14542
|
+
handleColumns(item.children, indexArrInside);
|
|
14543
14543
|
} else {
|
|
14544
14544
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14545
14545
|
item.onHeaderCell = function (column) {
|
|
@@ -14555,7 +14555,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14555
14555
|
handleAntdColumnsSpecialParams(item);
|
|
14556
14556
|
return _objectSpread2({}, item);
|
|
14557
14557
|
});
|
|
14558
|
-
|
|
14558
|
+
handleColumns(showCol, []);
|
|
14559
14559
|
if (dynamicColumns.length) {
|
|
14560
14560
|
showCol = this.handledynamicColumns(showCol);
|
|
14561
14561
|
}
|
|
@@ -14652,20 +14652,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14652
14652
|
};
|
|
14653
14653
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14654
14654
|
var routerMap = {};
|
|
14655
|
-
var
|
|
14655
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
14656
14656
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14657
14657
|
data.forEach(function (menuItem) {
|
|
14658
14658
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14659
14659
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14660
14660
|
});
|
|
14661
14661
|
if (newMenuItem.children) {
|
|
14662
|
-
|
|
14662
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
14663
14663
|
}
|
|
14664
14664
|
// Reduce memory usage
|
|
14665
14665
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14666
14666
|
});
|
|
14667
14667
|
};
|
|
14668
|
-
|
|
14668
|
+
flattenMenuData(menuData, {});
|
|
14669
14669
|
return routerMap;
|
|
14670
14670
|
};
|
|
14671
14671
|
// mode类型判断
|
|
@@ -14971,7 +14971,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14971
14971
|
display: 'flex',
|
|
14972
14972
|
gap: '8px'
|
|
14973
14973
|
}
|
|
14974
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14974
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14975
14975
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
14976
14976
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
14977
14977
|
onClick: function onClick() {
|
|
@@ -14979,7 +14979,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14979
14979
|
},
|
|
14980
14980
|
width: 24,
|
|
14981
14981
|
src: scanning
|
|
14982
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14982
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14983
14983
|
title: "\u5168\u5C4F"
|
|
14984
14984
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
14985
14985
|
onClick: function onClick() {
|
|
@@ -14987,7 +14987,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14987
14987
|
},
|
|
14988
14988
|
width: 24,
|
|
14989
14989
|
src: quanping
|
|
14990
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14990
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14991
14991
|
}, function (prevProps, nextProps) {
|
|
14992
14992
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
14993
14993
|
return false;
|
|
@@ -15072,7 +15072,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15072
15072
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15073
15073
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15074
15074
|
}, item));
|
|
15075
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15075
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15076
15076
|
}, function (prevProps, nextProps) {
|
|
15077
15077
|
if (prevProps.title !== nextProps.title) {
|
|
15078
15078
|
return false;
|
|
@@ -15712,7 +15712,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15712
15712
|
});
|
|
15713
15713
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15714
15714
|
className: 'sort_table_wrapper'
|
|
15715
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15715
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
15716
15716
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15717
15717
|
wrapClassName: 'sort_table_wrapper',
|
|
15718
15718
|
width: 810,
|
|
@@ -15763,7 +15763,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15763
15763
|
width: 525,
|
|
15764
15764
|
height: 24
|
|
15765
15765
|
}
|
|
15766
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15766
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15767
15767
|
checked: !dataSource.some(function (item) {
|
|
15768
15768
|
if (item.hidden) return true;
|
|
15769
15769
|
return false;
|
|
@@ -15817,13 +15817,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15817
15817
|
_this2.onChange(e, item.title);
|
|
15818
15818
|
}
|
|
15819
15819
|
}, item.title);
|
|
15820
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15820
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15821
15821
|
style: {
|
|
15822
15822
|
width: '144px'
|
|
15823
15823
|
}
|
|
15824
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15824
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15825
15825
|
className: 'sort_table_column_all_empty'
|
|
15826
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15826
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15827
15827
|
className: 'sort_table_column_special'
|
|
15828
15828
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15829
15829
|
className: 'sort_table_column_all'
|
|
@@ -16049,11 +16049,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16049
16049
|
onClick: function onClick() {
|
|
16050
16050
|
_this.setState({
|
|
16051
16051
|
sortDataSource: _this.state.sortDataSource.filter(function (item) {
|
|
16052
|
-
return item.
|
|
16052
|
+
return item.name !== record.name;
|
|
16053
16053
|
}),
|
|
16054
16054
|
isDefaultValue: false,
|
|
16055
16055
|
dataSource: _toConsumableArray(_this.state.dataSource.map(function (item) {
|
|
16056
|
-
if (item.
|
|
16056
|
+
if (item.name === record.name) {
|
|
16057
16057
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16058
16058
|
hidden: true
|
|
16059
16059
|
});
|
|
@@ -16095,7 +16095,8 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16095
16095
|
_this.handleCancel = function (e) {
|
|
16096
16096
|
console.log(e);
|
|
16097
16097
|
_this.setState({
|
|
16098
|
-
visible: false
|
|
16098
|
+
visible: false,
|
|
16099
|
+
searchDataSource: ''
|
|
16099
16100
|
});
|
|
16100
16101
|
};
|
|
16101
16102
|
_this.handleTableHeadHidden = function (title) {
|
|
@@ -16152,18 +16153,18 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16152
16153
|
index: index
|
|
16153
16154
|
}, restProps));
|
|
16154
16155
|
};
|
|
16155
|
-
_this.onChange = function (e,
|
|
16156
|
+
_this.onChange = function (e, name) {
|
|
16156
16157
|
var _this$state4 = _this.state,
|
|
16157
16158
|
sortDataSource = _this$state4.sortDataSource,
|
|
16158
16159
|
dataSource = _this$state4.dataSource;
|
|
16159
16160
|
if (!e.target.checked) {
|
|
16160
16161
|
_this.setState({
|
|
16161
16162
|
sortDataSource: sortDataSource.filter(function (item) {
|
|
16162
|
-
return item.
|
|
16163
|
+
return item.name !== name;
|
|
16163
16164
|
}),
|
|
16164
16165
|
isDefaultValue: false,
|
|
16165
16166
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
16166
|
-
if (item.
|
|
16167
|
+
if (item.name === name) {
|
|
16167
16168
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16168
16169
|
hidden: true
|
|
16169
16170
|
});
|
|
@@ -16173,7 +16174,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16173
16174
|
});
|
|
16174
16175
|
} else {
|
|
16175
16176
|
var newSortData = [].concat(_toConsumableArray(sortDataSource), _toConsumableArray(dataSource.filter(function (item) {
|
|
16176
|
-
return item.
|
|
16177
|
+
return item.name === name;
|
|
16177
16178
|
}).map(function (source) {
|
|
16178
16179
|
return _objectSpread2(_objectSpread2({}, source), {}, {
|
|
16179
16180
|
hidden: false
|
|
@@ -16183,7 +16184,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16183
16184
|
sortDataSource: _toConsumableArray(newSortData),
|
|
16184
16185
|
isDefaultValue: false,
|
|
16185
16186
|
dataSource: _toConsumableArray(dataSource.map(function (item) {
|
|
16186
|
-
if (item.
|
|
16187
|
+
if (item.name === name) {
|
|
16187
16188
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16188
16189
|
hidden: false
|
|
16189
16190
|
});
|
|
@@ -16209,6 +16210,25 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16209
16210
|
onSearchSort: e.target.value
|
|
16210
16211
|
});
|
|
16211
16212
|
};
|
|
16213
|
+
// 处理非标准 特殊搜索项 名称回显
|
|
16214
|
+
_this.showSearchItemLabel = function (item) {
|
|
16215
|
+
var _item$field, _options$;
|
|
16216
|
+
//搜索项 存在 label默认返回
|
|
16217
|
+
if (item.label) {
|
|
16218
|
+
return item.label;
|
|
16219
|
+
} else {
|
|
16220
|
+
switch (item.field.type) {
|
|
16221
|
+
//多值录入搜索组件 默认使用下拉框第一个选项
|
|
16222
|
+
case 'bs-multiInput':
|
|
16223
|
+
var _item$field$props = item === null || item === void 0 ? void 0 : (_item$field = item.field) === null || _item$field === void 0 ? void 0 : _item$field.props,
|
|
16224
|
+
_item$field$props$opt = _item$field$props.options,
|
|
16225
|
+
options = _item$field$props$opt === void 0 ? [] : _item$field$props$opt;
|
|
16226
|
+
return (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.text;
|
|
16227
|
+
default:
|
|
16228
|
+
return '';
|
|
16229
|
+
}
|
|
16230
|
+
}
|
|
16231
|
+
};
|
|
16212
16232
|
return _this;
|
|
16213
16233
|
}
|
|
16214
16234
|
_inherits(SearchItemTable, _React$Component);
|
|
@@ -16255,18 +16275,29 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16255
16275
|
var _this2 = this;
|
|
16256
16276
|
var _this$state5 = this.state,
|
|
16257
16277
|
_this$state5$dataSour = _this$state5.dataSource,
|
|
16258
|
-
|
|
16278
|
+
originDataSource = _this$state5$dataSour === void 0 ? [] : _this$state5$dataSour,
|
|
16259
16279
|
searchDataSource = _this$state5.searchDataSource,
|
|
16260
|
-
|
|
16280
|
+
_this$state5$sortData = _this$state5.sortDataSource,
|
|
16281
|
+
originSortDataSource = _this$state5$sortData === void 0 ? [] : _this$state5$sortData,
|
|
16261
16282
|
visible = _this$state5.visible,
|
|
16262
16283
|
onSearchSort = _this$state5.onSearchSort;
|
|
16284
|
+
var dataSource = originDataSource.map(function (item) {
|
|
16285
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16286
|
+
label: _this2.showSearchItemLabel(item)
|
|
16287
|
+
});
|
|
16288
|
+
});
|
|
16289
|
+
var sortDataSource = originSortDataSource.map(function (item) {
|
|
16290
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
16291
|
+
label: _this2.showSearchItemLabel(item)
|
|
16292
|
+
});
|
|
16293
|
+
});
|
|
16263
16294
|
var newSearchSource = dataSource.filter(function (item) {
|
|
16264
16295
|
var _item$label;
|
|
16265
16296
|
return (item === null || item === void 0 ? void 0 : (_item$label = item.label) === null || _item$label === void 0 ? void 0 : _item$label.indexOf(searchDataSource || '')) > -1;
|
|
16266
16297
|
});
|
|
16267
16298
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16268
16299
|
className: 'sort_table_wrapper'
|
|
16269
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16300
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16270
16301
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16271
16302
|
wrapClassName: 'sort_table_wrapper',
|
|
16272
16303
|
width: 820,
|
|
@@ -16311,7 +16342,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16311
16342
|
style: {
|
|
16312
16343
|
width: 525
|
|
16313
16344
|
}
|
|
16314
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16345
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16315
16346
|
checked: !dataSource.some(function (item) {
|
|
16316
16347
|
if (item.hidden) return true;
|
|
16317
16348
|
return false;
|
|
@@ -16337,21 +16368,21 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16337
16368
|
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16338
16369
|
checked: !item.hidden,
|
|
16339
16370
|
onChange: function onChange(e) {
|
|
16340
|
-
_this2.onChange(e, item.
|
|
16371
|
+
_this2.onChange(e, item.name);
|
|
16341
16372
|
}
|
|
16342
16373
|
}, item.label);
|
|
16343
16374
|
}) : dataSource.map(function (item) {
|
|
16344
16375
|
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16345
16376
|
checked: !item.hidden,
|
|
16346
16377
|
onChange: function onChange(e) {
|
|
16347
|
-
_this2.onChange(e, item.
|
|
16378
|
+
_this2.onChange(e, item.name);
|
|
16348
16379
|
}
|
|
16349
16380
|
}, item.label);
|
|
16350
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16381
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16351
16382
|
style: {
|
|
16352
16383
|
width: '144px'
|
|
16353
16384
|
}
|
|
16354
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16385
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16355
16386
|
className: 'sort_table_column_all_empty'
|
|
16356
16387
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16357
16388
|
className: 'sort_table_content_wrapper'
|
|
@@ -16777,7 +16808,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16777
16808
|
actionsRender = actionsRender.concat([{
|
|
16778
16809
|
type: 'text',
|
|
16779
16810
|
props: {
|
|
16780
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16811
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16781
16812
|
request: {
|
|
16782
16813
|
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),
|
|
16783
16814
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17023,7 +17054,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17023
17054
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17024
17055
|
bsTableCode: bsTableCode,
|
|
17025
17056
|
onlyModal: true
|
|
17026
|
-
}), (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, {
|
|
17057
|
+
}), (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, {
|
|
17027
17058
|
ref: exportTableRef,
|
|
17028
17059
|
setShowColumns: setShowExportColumns,
|
|
17029
17060
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17116,11 +17147,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17116
17147
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17117
17148
|
var resultList = [];
|
|
17118
17149
|
var newRouter = cloneDeep(router);
|
|
17119
|
-
var
|
|
17150
|
+
var deep = function deep(router) {
|
|
17120
17151
|
if (router && Array.isArray(router)) {
|
|
17121
17152
|
router.forEach(function (item) {
|
|
17122
17153
|
if (item.children && Array.isArray(item.children)) {
|
|
17123
|
-
|
|
17154
|
+
deep(item.children);
|
|
17124
17155
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17125
17156
|
return d === item.code;
|
|
17126
17157
|
})) {
|
|
@@ -17134,10 +17165,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17134
17165
|
resultList.push(_objectSpread2({}, router));
|
|
17135
17166
|
}
|
|
17136
17167
|
};
|
|
17137
|
-
|
|
17168
|
+
deep(newRouter);
|
|
17138
17169
|
callBack([].concat(resultList));
|
|
17139
17170
|
};
|
|
17140
|
-
var
|
|
17171
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17141
17172
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17142
17173
|
var _loop = function _loop(i) {
|
|
17143
17174
|
if (routesData[i].hideInMenu) {
|
|
@@ -17151,7 +17182,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17151
17182
|
return 0; // continue
|
|
17152
17183
|
}
|
|
17153
17184
|
if (routesData[i].children) {
|
|
17154
|
-
|
|
17185
|
+
setMenuTreeData(routesData[i].children);
|
|
17155
17186
|
}
|
|
17156
17187
|
},
|
|
17157
17188
|
_ret;
|
|
@@ -17172,16 +17203,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17172
17203
|
};
|
|
17173
17204
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17174
17205
|
var routerMap = {};
|
|
17175
|
-
var
|
|
17206
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
17176
17207
|
data.forEach(function (menuItem) {
|
|
17177
17208
|
if (menuItem.children) {
|
|
17178
|
-
|
|
17209
|
+
flattenMenuData(menuItem.children);
|
|
17179
17210
|
}
|
|
17180
17211
|
// Reduce memory usage
|
|
17181
17212
|
routerMap[menuItem.path] = menuItem;
|
|
17182
17213
|
});
|
|
17183
17214
|
};
|
|
17184
|
-
|
|
17215
|
+
flattenMenuData(menuData);
|
|
17185
17216
|
return routerMap;
|
|
17186
17217
|
};
|
|
17187
17218
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17327,7 +17358,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17327
17358
|
sethomepageData(homepageDataList);
|
|
17328
17359
|
setroutesData(routesDataList);
|
|
17329
17360
|
}, []);
|
|
17330
|
-
var
|
|
17361
|
+
var renderChildItem = function renderChildItem(child) {
|
|
17331
17362
|
if (!child.hideInMenu && child.children) {
|
|
17332
17363
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17333
17364
|
style: {
|
|
@@ -17337,7 +17368,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17337
17368
|
}, formatMessage({
|
|
17338
17369
|
id: "".concat(child.locale)
|
|
17339
17370
|
})), child.children.map(function (menuItem) {
|
|
17340
|
-
return
|
|
17371
|
+
return renderChildItem(menuItem);
|
|
17341
17372
|
}));
|
|
17342
17373
|
} else if (!child.hideInMenu && child.path) {
|
|
17343
17374
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17372,7 +17403,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17372
17403
|
className: 'drawerWarp'
|
|
17373
17404
|
}, homepageData && homepageData.filter(function (d) {
|
|
17374
17405
|
return !d.hideInMenu;
|
|
17375
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17406
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
17376
17407
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17377
17408
|
dataSource: homepageData,
|
|
17378
17409
|
renderItem: function renderItem(child) {
|
|
@@ -17407,7 +17438,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17407
17438
|
bordered: true,
|
|
17408
17439
|
dataSource: item.children,
|
|
17409
17440
|
renderItem: function renderItem(child) {
|
|
17410
|
-
return
|
|
17441
|
+
return renderChildItem(child);
|
|
17411
17442
|
}
|
|
17412
17443
|
});
|
|
17413
17444
|
})));
|
|
@@ -17467,7 +17498,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17467
17498
|
src: allfunc
|
|
17468
17499
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17469
17500
|
className: 'btnSpan2'
|
|
17470
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17501
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17471
17502
|
style: {
|
|
17472
17503
|
left: isDrawer ? 140 : 0,
|
|
17473
17504
|
top: 50
|
|
@@ -17513,7 +17544,7 @@ function outLogin(_x) {
|
|
|
17513
17544
|
return _outLogin.apply(this, arguments);
|
|
17514
17545
|
}
|
|
17515
17546
|
function _outLogin() {
|
|
17516
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17547
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17517
17548
|
var res;
|
|
17518
17549
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17519
17550
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17655,7 +17686,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17655
17686
|
});
|
|
17656
17687
|
};
|
|
17657
17688
|
var loginOut = /*#__PURE__*/function () {
|
|
17658
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17689
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17659
17690
|
var sessionId;
|
|
17660
17691
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17661
17692
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17759,7 +17790,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17759
17790
|
marginRight: '0px'
|
|
17760
17791
|
},
|
|
17761
17792
|
src: './xialajiantou-new.svg'
|
|
17762
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17793
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17763
17794
|
};
|
|
17764
17795
|
|
|
17765
17796
|
// -- 查询店铺 --
|
|
@@ -17767,7 +17798,7 @@ function getStoreByName(_x) {
|
|
|
17767
17798
|
return _getStoreByName.apply(this, arguments);
|
|
17768
17799
|
}
|
|
17769
17800
|
function _getStoreByName() {
|
|
17770
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17801
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17771
17802
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17772
17803
|
while (1) switch (_context.prev = _context.next) {
|
|
17773
17804
|
case 0:
|
|
@@ -17835,7 +17866,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17835
17866
|
return _fetchUserList.apply(this, arguments);
|
|
17836
17867
|
}
|
|
17837
17868
|
function _fetchUserList() {
|
|
17838
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17869
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17839
17870
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17840
17871
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17841
17872
|
case 0:
|
|
@@ -17883,7 +17914,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17883
17914
|
return debounce$1(loadOptions, debounceTimeout);
|
|
17884
17915
|
}, [debounceTimeout, key]);
|
|
17885
17916
|
var changeInput = /*#__PURE__*/function () {
|
|
17886
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17917
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17887
17918
|
var res;
|
|
17888
17919
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17889
17920
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17905,7 +17936,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17905
17936
|
};
|
|
17906
17937
|
}();
|
|
17907
17938
|
useEffect(function () {
|
|
17908
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17939
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17909
17940
|
var res;
|
|
17910
17941
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17911
17942
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18070,7 +18101,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18070
18101
|
var resultList = [];
|
|
18071
18102
|
var newRouter = cloneDeep$1(router);
|
|
18072
18103
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18073
|
-
var
|
|
18104
|
+
var deep = function deep(router) {
|
|
18074
18105
|
if (router && Array.isArray(router)) {
|
|
18075
18106
|
router.forEach(function (item) {
|
|
18076
18107
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18080,7 +18111,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18080
18111
|
d.nameEdit = true;
|
|
18081
18112
|
}
|
|
18082
18113
|
});
|
|
18083
|
-
|
|
18114
|
+
deep(item.routes);
|
|
18084
18115
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
18085
18116
|
id: "menu.".concat(item.name)
|
|
18086
18117
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18099,7 +18130,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18099
18130
|
}));
|
|
18100
18131
|
}
|
|
18101
18132
|
};
|
|
18102
|
-
|
|
18133
|
+
deep(newRouter);
|
|
18103
18134
|
setroutesData([].concat(resultList));
|
|
18104
18135
|
};
|
|
18105
18136
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18181,7 +18212,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18181
18212
|
},
|
|
18182
18213
|
title: item.fullPathName
|
|
18183
18214
|
}, renderLineStyl(item.fullPathName));
|
|
18184
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18215
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18185
18216
|
employeeCode: employeeCode
|
|
18186
18217
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18187
18218
|
};
|
|
@@ -18196,7 +18227,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18196
18227
|
var TreeNode = Tree.TreeNode;
|
|
18197
18228
|
var Search$2 = Input.Search;
|
|
18198
18229
|
var dataList = [];
|
|
18199
|
-
var
|
|
18230
|
+
var generateList = function generateList(data) {
|
|
18200
18231
|
for (var i = 0; i < data.length; i++) {
|
|
18201
18232
|
var node = data[i];
|
|
18202
18233
|
var path = node.path,
|
|
@@ -18206,11 +18237,11 @@ var _generateList = function generateList(data) {
|
|
|
18206
18237
|
name: name
|
|
18207
18238
|
});
|
|
18208
18239
|
if (node.children) {
|
|
18209
|
-
|
|
18240
|
+
generateList(node.children);
|
|
18210
18241
|
}
|
|
18211
18242
|
}
|
|
18212
18243
|
};
|
|
18213
|
-
var
|
|
18244
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
18214
18245
|
var parentKey;
|
|
18215
18246
|
for (var i = 0; i < tree.length; i++) {
|
|
18216
18247
|
var node = tree[i];
|
|
@@ -18219,8 +18250,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
18219
18250
|
return item.path === path;
|
|
18220
18251
|
})) {
|
|
18221
18252
|
parentKey = node.path;
|
|
18222
|
-
} else if (
|
|
18223
|
-
parentKey =
|
|
18253
|
+
} else if (getParentKey(path, node.children)) {
|
|
18254
|
+
parentKey = getParentKey(path, node.children);
|
|
18224
18255
|
}
|
|
18225
18256
|
}
|
|
18226
18257
|
}
|
|
@@ -18251,7 +18282,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18251
18282
|
var treeData = _this.state.treeData;
|
|
18252
18283
|
var expandedKeys = dataList.map(function (item) {
|
|
18253
18284
|
if (item.name.indexOf(value) > -1) {
|
|
18254
|
-
return
|
|
18285
|
+
return getParentKey(item.path, treeData);
|
|
18255
18286
|
}
|
|
18256
18287
|
return null;
|
|
18257
18288
|
}).filter(function (item, i, self) {
|
|
@@ -18265,22 +18296,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18265
18296
|
};
|
|
18266
18297
|
_this.getPathList = function (originData) {
|
|
18267
18298
|
var pathList = [];
|
|
18268
|
-
var
|
|
18299
|
+
var getList = function getList(data) {
|
|
18269
18300
|
if (Array.isArray(data)) {
|
|
18270
18301
|
data.forEach(function (item) {
|
|
18271
18302
|
pathList.push(item.path);
|
|
18272
18303
|
if (item.children) {
|
|
18273
|
-
|
|
18304
|
+
getList(item.children);
|
|
18274
18305
|
}
|
|
18275
18306
|
});
|
|
18276
18307
|
} else {
|
|
18277
18308
|
pathList.push(data.path);
|
|
18278
18309
|
if (data.children) {
|
|
18279
|
-
|
|
18310
|
+
getList(data.children);
|
|
18280
18311
|
}
|
|
18281
18312
|
}
|
|
18282
18313
|
};
|
|
18283
|
-
|
|
18314
|
+
getList(originData);
|
|
18284
18315
|
return pathList;
|
|
18285
18316
|
};
|
|
18286
18317
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18289,18 +18320,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18289
18320
|
customerMenuData = _this$props.customerMenuData,
|
|
18290
18321
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18291
18322
|
var filterItem;
|
|
18292
|
-
var
|
|
18323
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
18293
18324
|
menuData.forEach(function (item) {
|
|
18294
18325
|
if (item.path === path) {
|
|
18295
18326
|
filterItem = _objectSpread2({}, item);
|
|
18296
18327
|
return;
|
|
18297
18328
|
}
|
|
18298
18329
|
if (item.children) {
|
|
18299
|
-
|
|
18330
|
+
filterMenuItem(item.children);
|
|
18300
18331
|
}
|
|
18301
18332
|
});
|
|
18302
18333
|
};
|
|
18303
|
-
|
|
18334
|
+
filterMenuItem(treeData);
|
|
18304
18335
|
var addPathList = _this.getPathList(filterItem);
|
|
18305
18336
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18306
18337
|
var isRepet = false;
|
|
@@ -18330,8 +18361,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18330
18361
|
return item.path === '/';
|
|
18331
18362
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18332
18363
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18333
|
-
|
|
18334
|
-
|
|
18364
|
+
setMenuTreeData(routesData);
|
|
18365
|
+
generateList(routesData);
|
|
18335
18366
|
this.setState({
|
|
18336
18367
|
treeData: routesData
|
|
18337
18368
|
});
|
|
@@ -18345,16 +18376,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18345
18376
|
expandedKeys = _this$state.expandedKeys,
|
|
18346
18377
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18347
18378
|
treeData = _this$state.treeData;
|
|
18348
|
-
var
|
|
18379
|
+
var loop = function loop(data) {
|
|
18349
18380
|
return data.map(function (item) {
|
|
18350
18381
|
var index = item.name.indexOf(searchValue);
|
|
18351
18382
|
var beforeStr = item.name.substr(0, index);
|
|
18352
18383
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18353
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18384
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18354
18385
|
style: {
|
|
18355
18386
|
color: '#f50'
|
|
18356
18387
|
}
|
|
18357
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18388
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18358
18389
|
if (item.children && item.children.length) {
|
|
18359
18390
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18360
18391
|
path: item.path,
|
|
@@ -18376,7 +18407,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18376
18407
|
width: 18,
|
|
18377
18408
|
src: arrowRight
|
|
18378
18409
|
}))))
|
|
18379
|
-
},
|
|
18410
|
+
}, loop(item.children));
|
|
18380
18411
|
}
|
|
18381
18412
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18382
18413
|
path: item.path,
|
|
@@ -18426,7 +18457,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18426
18457
|
onExpand: this.onExpand,
|
|
18427
18458
|
expandedKeys: expandedKeys,
|
|
18428
18459
|
autoExpandParent: autoExpandParent
|
|
18429
|
-
},
|
|
18460
|
+
}, loop(treeData))));
|
|
18430
18461
|
}
|
|
18431
18462
|
}]);
|
|
18432
18463
|
}(React$1.Component);
|
|
@@ -18459,24 +18490,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18459
18490
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18460
18491
|
var dragObj;
|
|
18461
18492
|
var finalDropItem;
|
|
18462
|
-
var
|
|
18493
|
+
var loop = function loop(data, path, callback) {
|
|
18463
18494
|
for (var i = 0; i < data.length; i++) {
|
|
18464
18495
|
if (data[i].path === path) {
|
|
18465
18496
|
return callback(data[i], i, data);
|
|
18466
18497
|
}
|
|
18467
18498
|
if (data[i].children) {
|
|
18468
|
-
|
|
18499
|
+
loop(data[i].children, path, callback);
|
|
18469
18500
|
}
|
|
18470
18501
|
}
|
|
18471
18502
|
};
|
|
18472
18503
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18473
|
-
|
|
18504
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
18474
18505
|
arr.splice(index, 1);
|
|
18475
18506
|
dragObj = item;
|
|
18476
18507
|
});
|
|
18477
18508
|
if (!info.dropToGap) {
|
|
18478
18509
|
// Drop on the content
|
|
18479
|
-
|
|
18510
|
+
loop(data, dropKey, function (item) {
|
|
18480
18511
|
item.children = item.children || [];
|
|
18481
18512
|
item.children.unshift(dragObj);
|
|
18482
18513
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18487,7 +18518,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18487
18518
|
// Is expanded
|
|
18488
18519
|
dropPosition === 1 // On the bottom gap
|
|
18489
18520
|
) {
|
|
18490
|
-
|
|
18521
|
+
loop(data, dropKey, function (item) {
|
|
18491
18522
|
item.children = item.children || [];
|
|
18492
18523
|
item.children.unshift(dragObj);
|
|
18493
18524
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18495,7 +18526,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18495
18526
|
} else {
|
|
18496
18527
|
var ar;
|
|
18497
18528
|
var i;
|
|
18498
|
-
|
|
18529
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
18499
18530
|
ar = arr;
|
|
18500
18531
|
i = index;
|
|
18501
18532
|
});
|
|
@@ -18534,17 +18565,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18534
18565
|
title: '编辑名称',
|
|
18535
18566
|
callBack: function callBack(newName) {
|
|
18536
18567
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18537
|
-
var
|
|
18568
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18538
18569
|
oldTreeData.forEach(function (treeItem) {
|
|
18539
18570
|
if (treeItem.path === item.path) {
|
|
18540
18571
|
treeItem.name = newName;
|
|
18541
18572
|
}
|
|
18542
18573
|
if (treeItem.children) {
|
|
18543
|
-
|
|
18574
|
+
editTreeDataName(treeItem.children);
|
|
18544
18575
|
}
|
|
18545
18576
|
});
|
|
18546
18577
|
};
|
|
18547
|
-
|
|
18578
|
+
editTreeDataName(oldTreeData);
|
|
18548
18579
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18549
18580
|
_this.setState({
|
|
18550
18581
|
modalInfo: {
|
|
@@ -18589,7 +18620,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18589
18620
|
title: '新增子目录',
|
|
18590
18621
|
callBack: function callBack(newName) {
|
|
18591
18622
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18592
|
-
var
|
|
18623
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
18593
18624
|
oldTreeData.forEach(function (treeItem) {
|
|
18594
18625
|
if (treeItem.path === item.path) {
|
|
18595
18626
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18601,11 +18632,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18601
18632
|
}];
|
|
18602
18633
|
}
|
|
18603
18634
|
if (treeItem.children) {
|
|
18604
|
-
|
|
18635
|
+
addChildFolder(treeItem.children);
|
|
18605
18636
|
}
|
|
18606
18637
|
});
|
|
18607
18638
|
};
|
|
18608
|
-
|
|
18639
|
+
addChildFolder(oldTreeData);
|
|
18609
18640
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18610
18641
|
_this.setState({
|
|
18611
18642
|
modalInfo: {
|
|
@@ -18664,7 +18695,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18664
18695
|
var _this$state = this.state,
|
|
18665
18696
|
modalInfo = _this$state.modalInfo,
|
|
18666
18697
|
checkedKeys = _this$state.checkedKeys;
|
|
18667
|
-
var
|
|
18698
|
+
var loop = function loop(data) {
|
|
18668
18699
|
return data.map(function (item) {
|
|
18669
18700
|
if (item.children && item.children.length) {
|
|
18670
18701
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -18681,7 +18712,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18681
18712
|
e.stopPropagation();
|
|
18682
18713
|
}
|
|
18683
18714
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
18684
|
-
},
|
|
18715
|
+
}, loop(item.children));
|
|
18685
18716
|
}
|
|
18686
18717
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
18687
18718
|
path: item.path,
|
|
@@ -18760,7 +18791,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18760
18791
|
children: 'children'
|
|
18761
18792
|
},
|
|
18762
18793
|
onDrop: this.onDrop
|
|
18763
|
-
},
|
|
18794
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
18764
18795
|
width: 600,
|
|
18765
18796
|
bodyStyle: {
|
|
18766
18797
|
paddingTop: '32px',
|
|
@@ -18873,7 +18904,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18873
18904
|
pathname: item.path
|
|
18874
18905
|
});
|
|
18875
18906
|
};
|
|
18876
|
-
var
|
|
18907
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
18877
18908
|
return menuData.map(function (item) {
|
|
18878
18909
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18879
18910
|
style: {
|
|
@@ -18888,7 +18919,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18888
18919
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18889
18920
|
paddingLeft: '4px'
|
|
18890
18921
|
}
|
|
18891
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
18922
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
18892
18923
|
});
|
|
18893
18924
|
};
|
|
18894
18925
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18914,7 +18945,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18914
18945
|
style: {
|
|
18915
18946
|
paddingLeft: '5px'
|
|
18916
18947
|
}
|
|
18917
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18948
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18918
18949
|
style: {
|
|
18919
18950
|
left: isDrawer ? 140 : 0
|
|
18920
18951
|
},
|
|
@@ -18935,7 +18966,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18935
18966
|
visible: isDrawer
|
|
18936
18967
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
18937
18968
|
className: 'menu_title_line'
|
|
18938
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
18969
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
18939
18970
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
18940
18971
|
style: {
|
|
18941
18972
|
fontWeight: '600',
|
|
@@ -19009,7 +19040,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19009
19040
|
return item.path === '/';
|
|
19010
19041
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19011
19042
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19012
|
-
|
|
19043
|
+
setMenuTreeData(routesData);
|
|
19013
19044
|
routesData.forEach(function (item) {
|
|
19014
19045
|
if (item.children) {
|
|
19015
19046
|
routesDataList.push(item);
|
|
@@ -19039,7 +19070,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19039
19070
|
setHeight(clientHeight - 190);
|
|
19040
19071
|
setDrawHeight(clientHeight - 70);
|
|
19041
19072
|
};
|
|
19042
|
-
var
|
|
19073
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19043
19074
|
if (!child.hideInMenu && child.children) {
|
|
19044
19075
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19045
19076
|
style: {
|
|
@@ -19049,7 +19080,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19049
19080
|
}, formatMessage({
|
|
19050
19081
|
id: "".concat(child.locale)
|
|
19051
19082
|
})), child.children.map(function (menuItem) {
|
|
19052
|
-
return
|
|
19083
|
+
return renderChildItem(menuItem);
|
|
19053
19084
|
}));
|
|
19054
19085
|
} else if (!child.hideInMenu && child.path) {
|
|
19055
19086
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19191,7 +19222,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19191
19222
|
onMenuClick(e, item);
|
|
19192
19223
|
}
|
|
19193
19224
|
}, item.name);
|
|
19194
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19225
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
19195
19226
|
className: 'search_menu_content'
|
|
19196
19227
|
}, SearhData.map(function (item) {
|
|
19197
19228
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19200,7 +19231,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19200
19231
|
},
|
|
19201
19232
|
key: item.path
|
|
19202
19233
|
}, item.name);
|
|
19203
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19234
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19204
19235
|
style: {
|
|
19205
19236
|
height: "".concat(rightMenuHeight, "px"),
|
|
19206
19237
|
overflowY: 'scroll',
|
|
@@ -19212,7 +19243,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19212
19243
|
className: 'drawerWarp_right'
|
|
19213
19244
|
}, homepageData && homepageData.filter(function (d) {
|
|
19214
19245
|
return !d.hideInMenu;
|
|
19215
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19246
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
19216
19247
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19217
19248
|
dataSource: homepageData,
|
|
19218
19249
|
renderItem: function renderItem(child) {
|
|
@@ -19253,7 +19284,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19253
19284
|
bordered: true,
|
|
19254
19285
|
dataSource: item.children,
|
|
19255
19286
|
renderItem: function renderItem(child) {
|
|
19256
|
-
return
|
|
19287
|
+
return renderChildItem(child);
|
|
19257
19288
|
}
|
|
19258
19289
|
});
|
|
19259
19290
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19411,10 +19442,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19411
19442
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19412
19443
|
var menuKeys = [];
|
|
19413
19444
|
var docsId = [];
|
|
19414
|
-
var
|
|
19445
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19415
19446
|
data.forEach(function (item) {
|
|
19416
19447
|
if (item.children && item.children.length > 0) {
|
|
19417
|
-
|
|
19448
|
+
getLimitedMenuKeys(item.children);
|
|
19418
19449
|
} else {
|
|
19419
19450
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19420
19451
|
menuKeys.push(originPath);
|
|
@@ -19425,7 +19456,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19425
19456
|
});
|
|
19426
19457
|
};
|
|
19427
19458
|
try {
|
|
19428
|
-
|
|
19459
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
19429
19460
|
} catch (e) {}
|
|
19430
19461
|
return {
|
|
19431
19462
|
menuKeys: menuKeys,
|
|
@@ -19659,10 +19690,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19659
19690
|
return (node.path || '').includes('all-general-documents');
|
|
19660
19691
|
};
|
|
19661
19692
|
// 递归获取树列表
|
|
19662
|
-
var
|
|
19693
|
+
var getTreeList = function getTreeList(data) {
|
|
19663
19694
|
data.forEach(function (node) {
|
|
19664
19695
|
if (node.routes && node.routes.length > 0) {
|
|
19665
|
-
|
|
19696
|
+
getTreeList(node.routes);
|
|
19666
19697
|
return;
|
|
19667
19698
|
}
|
|
19668
19699
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19693,7 +19724,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19693
19724
|
}
|
|
19694
19725
|
});
|
|
19695
19726
|
};
|
|
19696
|
-
|
|
19727
|
+
getTreeList(treeData);
|
|
19697
19728
|
return treeList;
|
|
19698
19729
|
};
|
|
19699
19730
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20322,7 +20353,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20322
20353
|
updateState = _ref8.updateState;
|
|
20323
20354
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20324
20355
|
className: "tab_title_content"
|
|
20325
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20356
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20326
20357
|
info: item,
|
|
20327
20358
|
operateFun: _this3.operateFun,
|
|
20328
20359
|
listenRouterState: listenRouterState
|
|
@@ -20458,7 +20489,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20458
20489
|
};
|
|
20459
20490
|
}
|
|
20460
20491
|
var OperationsSlot = {
|
|
20461
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20492
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20462
20493
|
className: 'tab_left_operate'
|
|
20463
20494
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20464
20495
|
onClick: function onClick() {
|
|
@@ -20474,7 +20505,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20474
20505
|
_this3.setTabNavTransLate(-100);
|
|
20475
20506
|
}
|
|
20476
20507
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20477
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20508
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20478
20509
|
style: {
|
|
20479
20510
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20480
20511
|
},
|
|
@@ -20572,7 +20603,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20572
20603
|
onMouseLeave: function onMouseLeave() {
|
|
20573
20604
|
_this3.setShowMenu(false);
|
|
20574
20605
|
}
|
|
20575
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20606
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20576
20607
|
style: {
|
|
20577
20608
|
position: 'absolute',
|
|
20578
20609
|
top: '14px',
|
|
@@ -20591,7 +20622,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20591
20622
|
postMenuData: function postMenuData(menus) {
|
|
20592
20623
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20593
20624
|
},
|
|
20594
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20625
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20595
20626
|
ref: this.allFunc,
|
|
20596
20627
|
itemPath: itemPath,
|
|
20597
20628
|
handleClose: this.handleClose,
|
|
@@ -20609,7 +20640,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20609
20640
|
},
|
|
20610
20641
|
menu: {
|
|
20611
20642
|
request: function () {
|
|
20612
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20643
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20613
20644
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20614
20645
|
while (1) switch (_context.prev = _context.next) {
|
|
20615
20646
|
case 0:
|
|
@@ -20744,7 +20775,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20744
20775
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20745
20776
|
timeFormat = _this$props4.timeFormat,
|
|
20746
20777
|
transparentProps = _this$props4.transparentProps;
|
|
20747
|
-
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({
|
|
20778
|
+
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({
|
|
20748
20779
|
getDictionarySource: getDictionarySource,
|
|
20749
20780
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20750
20781
|
timeFormat: timeFormat
|
|
@@ -20768,12 +20799,12 @@ var index$5 = (function (props) {
|
|
|
20768
20799
|
});
|
|
20769
20800
|
|
|
20770
20801
|
// @ts-nocheck
|
|
20771
|
-
var
|
|
20802
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
20772
20803
|
var result = [];
|
|
20773
20804
|
columns.forEach(function (column) {
|
|
20774
20805
|
if (column.children) {
|
|
20775
20806
|
result.push(column);
|
|
20776
|
-
result.push.apply(result,
|
|
20807
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
20777
20808
|
} else {
|
|
20778
20809
|
result.push(column);
|
|
20779
20810
|
}
|
|
@@ -20782,7 +20813,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
20782
20813
|
};
|
|
20783
20814
|
var convertToRows = function convertToRows(originColumns) {
|
|
20784
20815
|
var maxLevel = 1;
|
|
20785
|
-
var
|
|
20816
|
+
var traverse = function traverse(column, parent) {
|
|
20786
20817
|
if (parent) {
|
|
20787
20818
|
column.level = parent.level + 1;
|
|
20788
20819
|
if (maxLevel < column.level) {
|
|
@@ -20792,7 +20823,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20792
20823
|
if (column.children) {
|
|
20793
20824
|
var colSpan = 0;
|
|
20794
20825
|
column.children.forEach(function (subColumn) {
|
|
20795
|
-
|
|
20826
|
+
traverse(subColumn, column);
|
|
20796
20827
|
colSpan += subColumn.colSpan;
|
|
20797
20828
|
});
|
|
20798
20829
|
column.colSpan = colSpan;
|
|
@@ -20802,13 +20833,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20802
20833
|
};
|
|
20803
20834
|
originColumns.forEach(function (column) {
|
|
20804
20835
|
column.level = 1;
|
|
20805
|
-
|
|
20836
|
+
traverse(column);
|
|
20806
20837
|
});
|
|
20807
20838
|
var rows = [];
|
|
20808
20839
|
for (var i = 0; i < maxLevel; i++) {
|
|
20809
20840
|
rows.push([]);
|
|
20810
20841
|
}
|
|
20811
|
-
var allColumns =
|
|
20842
|
+
var allColumns = getAllColumns(originColumns);
|
|
20812
20843
|
allColumns.forEach(function (column) {
|
|
20813
20844
|
if (!column.children) {
|
|
20814
20845
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20848,7 +20879,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20848
20879
|
};
|
|
20849
20880
|
var headersToRows = function headersToRows(originColumns) {
|
|
20850
20881
|
var maxLevel = 1;
|
|
20851
|
-
var
|
|
20882
|
+
var traverse = function traverse(column, parent) {
|
|
20852
20883
|
if (parent) {
|
|
20853
20884
|
//计算当前元素属于第几个层级
|
|
20854
20885
|
column.level = parent.level + 1;
|
|
@@ -20861,7 +20892,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20861
20892
|
var colSpan = 0;
|
|
20862
20893
|
column.children.forEach(function (subColumn) {
|
|
20863
20894
|
//进行递归
|
|
20864
|
-
|
|
20895
|
+
traverse(subColumn, column);
|
|
20865
20896
|
colSpan += subColumn.colSpan;
|
|
20866
20897
|
});
|
|
20867
20898
|
column.colSpan = colSpan;
|
|
@@ -20871,14 +20902,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20871
20902
|
};
|
|
20872
20903
|
originColumns.forEach(function (column) {
|
|
20873
20904
|
column.level = 1;
|
|
20874
|
-
|
|
20905
|
+
traverse(column);
|
|
20875
20906
|
});
|
|
20876
20907
|
var rows = [];
|
|
20877
20908
|
var lastData = [];
|
|
20878
20909
|
for (var i = 0; i < maxLevel; i++) {
|
|
20879
20910
|
rows.push([]);
|
|
20880
20911
|
}
|
|
20881
|
-
var allColumns =
|
|
20912
|
+
var allColumns = getAllColumns(originColumns);
|
|
20882
20913
|
allColumns.forEach(function (column) {
|
|
20883
20914
|
if (!column.children) {
|
|
20884
20915
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26895,7 +26926,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26895
26926
|
}
|
|
26896
26927
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26897
26928
|
};
|
|
26898
|
-
var
|
|
26929
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
26899
26930
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26900
26931
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26901
26932
|
var children = hightLightData.children,
|
|
@@ -26906,7 +26937,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26906
26937
|
lineEnd = _loc2[2];
|
|
26907
26938
|
if (children) {
|
|
26908
26939
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26909
|
-
return
|
|
26940
|
+
return hasHighLightChildren(v, highLightLine);
|
|
26910
26941
|
});
|
|
26911
26942
|
}
|
|
26912
26943
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26918,7 +26949,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26918
26949
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26919
26950
|
data.forEach(function (node) {
|
|
26920
26951
|
if (!node) return;
|
|
26921
|
-
node.toggled =
|
|
26952
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
26922
26953
|
node.active = isHightLight(node, highLightLine);
|
|
26923
26954
|
if (node.children) {
|
|
26924
26955
|
if (node.active) {
|
|
@@ -28349,7 +28380,7 @@ var valueType = {
|
|
|
28349
28380
|
};
|
|
28350
28381
|
|
|
28351
28382
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28352
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28383
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28353
28384
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28354
28385
|
while (1) switch (_context.prev = _context.next) {
|
|
28355
28386
|
case 0:
|
|
@@ -28417,7 +28448,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28417
28448
|
value: false
|
|
28418
28449
|
}];
|
|
28419
28450
|
var ref = useRef();
|
|
28420
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28451
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28421
28452
|
var _ref$current, source;
|
|
28422
28453
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28423
28454
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28531,7 +28562,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28531
28562
|
source: {
|
|
28532
28563
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28533
28564
|
type: function () {
|
|
28534
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28565
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28535
28566
|
var form, values, name, relates, source;
|
|
28536
28567
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28537
28568
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29011,7 +29042,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29011
29042
|
source: {
|
|
29012
29043
|
relates: ['choiceType', 'inputType'],
|
|
29013
29044
|
type: function () {
|
|
29014
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29045
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29015
29046
|
var values, name, form, source;
|
|
29016
29047
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29017
29048
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29233,7 +29264,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29233
29264
|
width: 900,
|
|
29234
29265
|
maskClosable: false,
|
|
29235
29266
|
onOk: function () {
|
|
29236
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29267
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29237
29268
|
var _ref$current4, _res$editableStatus;
|
|
29238
29269
|
var res, _res$defaultValue;
|
|
29239
29270
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29305,7 +29336,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29305
29336
|
}()
|
|
29306
29337
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29307
29338
|
ref: ref
|
|
29308
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29339
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29309
29340
|
};
|
|
29310
29341
|
|
|
29311
29342
|
// @ts-nocheck
|
|
@@ -29919,7 +29950,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29919
29950
|
return setVisible(false);
|
|
29920
29951
|
},
|
|
29921
29952
|
className: 'customFieldsDrawer'
|
|
29922
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
29953
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
29923
29954
|
style: {
|
|
29924
29955
|
display: 'flex'
|
|
29925
29956
|
}
|
|
@@ -29928,13 +29959,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29928
29959
|
flex: 1,
|
|
29929
29960
|
width: 500
|
|
29930
29961
|
}
|
|
29931
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29962
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29932
29963
|
style: {
|
|
29933
29964
|
padding: "10px 0",
|
|
29934
29965
|
fontSize: "16px",
|
|
29935
29966
|
fontWeight: "bolder"
|
|
29936
29967
|
}
|
|
29937
|
-
}, "\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", {
|
|
29968
|
+
}, "\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", {
|
|
29938
29969
|
style: {
|
|
29939
29970
|
flex: 1
|
|
29940
29971
|
}
|
|
@@ -29943,7 +29974,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29943
29974
|
onRun: onClickRun,
|
|
29944
29975
|
value: jsonEditorVal,
|
|
29945
29976
|
shallowHeight: height
|
|
29946
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
29977
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
29947
29978
|
defaultActiveKey: activeKey,
|
|
29948
29979
|
onChange: function onChange(v) {
|
|
29949
29980
|
return setActiveKey(v);
|
|
@@ -29960,13 +29991,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29960
29991
|
flex: 1,
|
|
29961
29992
|
width: 500
|
|
29962
29993
|
}
|
|
29963
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29994
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29964
29995
|
style: {
|
|
29965
29996
|
padding: "10px 0",
|
|
29966
29997
|
fontSize: "16px",
|
|
29967
29998
|
fontWeight: "bolder"
|
|
29968
29999
|
}
|
|
29969
|
-
}, "\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", {
|
|
30000
|
+
}, "\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", {
|
|
29970
30001
|
style: {
|
|
29971
30002
|
flex: 1
|
|
29972
30003
|
}
|
|
@@ -29988,13 +30019,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29988
30019
|
flex: 1,
|
|
29989
30020
|
width: 500
|
|
29990
30021
|
}
|
|
29991
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30022
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29992
30023
|
style: {
|
|
29993
30024
|
padding: "10px 0",
|
|
29994
30025
|
fontSize: "16px",
|
|
29995
30026
|
fontWeight: "bolder"
|
|
29996
30027
|
}
|
|
29997
|
-
}, "\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", {
|
|
30028
|
+
}, "\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", {
|
|
29998
30029
|
style: {
|
|
29999
30030
|
flex: 1
|
|
30000
30031
|
}
|
|
@@ -30140,7 +30171,7 @@ function getMetaData(_x) {
|
|
|
30140
30171
|
|
|
30141
30172
|
// 获取数据
|
|
30142
30173
|
function _getMetaData() {
|
|
30143
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30174
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30144
30175
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30145
30176
|
while (1) switch (_context.prev = _context.next) {
|
|
30146
30177
|
case 0:
|
|
@@ -30362,7 +30393,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30362
30393
|
tableState = _useState4[0],
|
|
30363
30394
|
setTableState = _useState4[1];
|
|
30364
30395
|
var handleOpen = /*#__PURE__*/function () {
|
|
30365
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30396
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30366
30397
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30367
30398
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30368
30399
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30681,7 +30712,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30681
30712
|
destroyOnClose: true
|
|
30682
30713
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
30683
30714
|
ref: queryTableRef
|
|
30684
|
-
}, 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, {
|
|
30715
|
+
}, 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, {
|
|
30685
30716
|
justify: "center",
|
|
30686
30717
|
style: {
|
|
30687
30718
|
marginBottom: 30,
|
|
@@ -30797,7 +30828,7 @@ var CustomSelector = (function (props) {
|
|
|
30797
30828
|
var _props$ctx7;
|
|
30798
30829
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30799
30830
|
}
|
|
30800
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30831
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
30801
30832
|
type: "primary",
|
|
30802
30833
|
style: {
|
|
30803
30834
|
width: '30px',
|
|
@@ -30883,7 +30914,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30883
30914
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30884
30915
|
handSource = _useState2[0],
|
|
30885
30916
|
setHandSource = _useState2[1];
|
|
30886
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30917
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30887
30918
|
var resData, data;
|
|
30888
30919
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30889
30920
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31035,7 +31066,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31035
31066
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31036
31067
|
}
|
|
31037
31068
|
function _getRegularThresholdRange() {
|
|
31038
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31069
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31039
31070
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31040
31071
|
while (1) switch (_context.prev = _context.next) {
|
|
31041
31072
|
case 0:
|
|
@@ -31189,7 +31220,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31189
31220
|
};
|
|
31190
31221
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31191
31222
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31192
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31223
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31193
31224
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31194
31225
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31195
31226
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32134,7 +32165,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32134
32165
|
isAll: true,
|
|
32135
32166
|
needNameAndCode: true,
|
|
32136
32167
|
notChangeOnSelect: true,
|
|
32137
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32168
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32138
32169
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32139
32170
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32140
32171
|
case 0:
|
|
@@ -32183,7 +32214,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32183
32214
|
isAll: true,
|
|
32184
32215
|
needNameAndCode: true,
|
|
32185
32216
|
notChangeOnSelect: true,
|
|
32186
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32217
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32187
32218
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32188
32219
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32189
32220
|
case 0:
|
|
@@ -32234,7 +32265,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32234
32265
|
isAll: true,
|
|
32235
32266
|
needNameAndCode: true,
|
|
32236
32267
|
notChangeOnSelect: true,
|
|
32237
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32268
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32238
32269
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32239
32270
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32240
32271
|
case 0:
|
|
@@ -34198,7 +34229,7 @@ var App$1 = function App(_ref) {
|
|
|
34198
34229
|
borderRadius: '5px',
|
|
34199
34230
|
cursor: 'pointer'
|
|
34200
34231
|
}
|
|
34201
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34232
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
34202
34233
|
autoFocus: true,
|
|
34203
34234
|
onClick: function onClick(e) {
|
|
34204
34235
|
return e.stopPropagation();
|
|
@@ -34485,7 +34516,7 @@ function RenderCompItem(props) {
|
|
|
34485
34516
|
dictData = _useState2[0],
|
|
34486
34517
|
setDictData = _useState2[1];
|
|
34487
34518
|
var getDictData = /*#__PURE__*/function () {
|
|
34488
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34519
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34489
34520
|
var _data$map;
|
|
34490
34521
|
var data;
|
|
34491
34522
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34527,7 +34558,7 @@ function RenderCompItem(props) {
|
|
|
34527
34558
|
var style2 = {
|
|
34528
34559
|
width: '100px'
|
|
34529
34560
|
};
|
|
34530
|
-
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, {
|
|
34561
|
+
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, {
|
|
34531
34562
|
disabled: disabled,
|
|
34532
34563
|
allowClear: true,
|
|
34533
34564
|
onClear: function onClear() {
|
|
@@ -34538,7 +34569,7 @@ function RenderCompItem(props) {
|
|
|
34538
34569
|
onBlur: function onBlur(e) {
|
|
34539
34570
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34540
34571
|
}
|
|
34541
|
-
})) || 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, {
|
|
34572
|
+
})) || 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, {
|
|
34542
34573
|
disabled: disabled,
|
|
34543
34574
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34544
34575
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34551,7 +34582,7 @@ function RenderCompItem(props) {
|
|
|
34551
34582
|
onChange: function onChange(value) {
|
|
34552
34583
|
handleEdit(ites.code, value);
|
|
34553
34584
|
}
|
|
34554
|
-
})) || 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, {
|
|
34585
|
+
})) || 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, {
|
|
34555
34586
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34556
34587
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34557
34588
|
disabled: disabled,
|
|
@@ -34561,7 +34592,7 @@ function RenderCompItem(props) {
|
|
|
34561
34592
|
onChange: function onChange(value, dateString) {
|
|
34562
34593
|
handleEdit(ites.code, dateString);
|
|
34563
34594
|
}
|
|
34564
|
-
})) || 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, {
|
|
34595
|
+
})) || 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, {
|
|
34565
34596
|
showTime: true,
|
|
34566
34597
|
disabled: disabled,
|
|
34567
34598
|
defaultValue: ites.defaultValue,
|
|
@@ -34570,7 +34601,7 @@ function RenderCompItem(props) {
|
|
|
34570
34601
|
onChange: function onChange(value, timeString) {
|
|
34571
34602
|
handleEdit(ites.code, timeString);
|
|
34572
34603
|
}
|
|
34573
|
-
})) || 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, {
|
|
34604
|
+
})) || 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, {
|
|
34574
34605
|
disabled: disabled,
|
|
34575
34606
|
defaultChecked: !!ites.defaultValue,
|
|
34576
34607
|
style: style2,
|
|
@@ -34578,7 +34609,7 @@ function RenderCompItem(props) {
|
|
|
34578
34609
|
onChange: function onChange(value) {
|
|
34579
34610
|
handleEdit(ites.code, value);
|
|
34580
34611
|
}
|
|
34581
|
-
})) || 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({
|
|
34612
|
+
})) || 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({
|
|
34582
34613
|
disabled: disabled,
|
|
34583
34614
|
allowClear: true,
|
|
34584
34615
|
showArrow: true
|
|
@@ -34596,7 +34627,7 @@ function RenderCompItem(props) {
|
|
|
34596
34627
|
key: it,
|
|
34597
34628
|
value: it
|
|
34598
34629
|
}, ites.enumeration[it]);
|
|
34599
|
-
}))) || 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, {
|
|
34630
|
+
}))) || 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, {
|
|
34600
34631
|
disabled: disabled,
|
|
34601
34632
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34602
34633
|
defaultValue: ites.defaultValue,
|
|
@@ -34606,7 +34637,7 @@ function RenderCompItem(props) {
|
|
|
34606
34637
|
handleEdit(ites.code, value);
|
|
34607
34638
|
},
|
|
34608
34639
|
dictionaryCode: ites.dictionaryCode
|
|
34609
|
-
})) || 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, {
|
|
34640
|
+
})) || 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, {
|
|
34610
34641
|
selectBusinessType: "physicalWarehouse",
|
|
34611
34642
|
selectProps: _objectSpread2({
|
|
34612
34643
|
style: styleCommon,
|
|
@@ -34628,7 +34659,7 @@ function RenderCompItem(props) {
|
|
|
34628
34659
|
getPopupContainer: function getPopupContainer() {
|
|
34629
34660
|
return document.body;
|
|
34630
34661
|
}
|
|
34631
|
-
})) || 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, {
|
|
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) === 120 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34632
34663
|
selectBusinessType: "realWarehouse",
|
|
34633
34664
|
selectProps: _objectSpread2({
|
|
34634
34665
|
style: styleCommon,
|
|
@@ -34650,7 +34681,7 @@ function RenderCompItem(props) {
|
|
|
34650
34681
|
getPopupContainer: function getPopupContainer() {
|
|
34651
34682
|
return document.body;
|
|
34652
34683
|
}
|
|
34653
|
-
})) || 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, {
|
|
34684
|
+
})) || 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, {
|
|
34654
34685
|
selectBusinessType: "virtualWarehouse",
|
|
34655
34686
|
selectProps: _objectSpread2({
|
|
34656
34687
|
style: styleCommon,
|
|
@@ -34672,7 +34703,7 @@ function RenderCompItem(props) {
|
|
|
34672
34703
|
getPopupContainer: function getPopupContainer() {
|
|
34673
34704
|
return document.body;
|
|
34674
34705
|
}
|
|
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) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34706
|
+
})) || 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, {
|
|
34676
34707
|
selectBusinessType: "channelWarehouse",
|
|
34677
34708
|
selectProps: _objectSpread2({
|
|
34678
34709
|
style: styleCommon,
|
|
@@ -34694,7 +34725,7 @@ function RenderCompItem(props) {
|
|
|
34694
34725
|
getPopupContainer: function getPopupContainer() {
|
|
34695
34726
|
return document.body;
|
|
34696
34727
|
}
|
|
34697
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34728
|
+
})) || 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, {
|
|
34698
34729
|
selectBusinessType: "spuCommodity",
|
|
34699
34730
|
selectProps: _objectSpread2({
|
|
34700
34731
|
style: styleCommon,
|
|
@@ -34715,7 +34746,7 @@ function RenderCompItem(props) {
|
|
|
34715
34746
|
getPopupContainer: function getPopupContainer() {
|
|
34716
34747
|
return document.body;
|
|
34717
34748
|
}
|
|
34718
|
-
})) || 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, {
|
|
34749
|
+
})) || 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, {
|
|
34719
34750
|
selectBusinessType: "skuCommodity",
|
|
34720
34751
|
selectProps: _objectSpread2({
|
|
34721
34752
|
style: styleCommon,
|
|
@@ -34736,13 +34767,13 @@ function RenderCompItem(props) {
|
|
|
34736
34767
|
getPopupContainer: function getPopupContainer() {
|
|
34737
34768
|
return document.body;
|
|
34738
34769
|
}
|
|
34739
|
-
})) || 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, {
|
|
34770
|
+
})) || 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, {
|
|
34740
34771
|
disabled: disabled,
|
|
34741
34772
|
isAll: true,
|
|
34742
34773
|
needNameAndCode: true,
|
|
34743
34774
|
notChangeOnSelect: true,
|
|
34744
34775
|
initRequestSource: function () {
|
|
34745
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34776
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34746
34777
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34747
34778
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34748
34779
|
case 0:
|
|
@@ -34784,7 +34815,7 @@ function RenderCompItem(props) {
|
|
|
34784
34815
|
getPopupContainer: function getPopupContainer() {
|
|
34785
34816
|
return document.body;
|
|
34786
34817
|
}
|
|
34787
|
-
})) || 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, {
|
|
34818
|
+
})) || 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, {
|
|
34788
34819
|
disabled: disabled,
|
|
34789
34820
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34790
34821
|
businessType: "department",
|
|
@@ -34797,7 +34828,7 @@ function RenderCompItem(props) {
|
|
|
34797
34828
|
getPopupContainer: function getPopupContainer() {
|
|
34798
34829
|
return document.body;
|
|
34799
34830
|
}
|
|
34800
|
-
})) || 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, {
|
|
34831
|
+
})) || 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, {
|
|
34801
34832
|
disabled: disabled,
|
|
34802
34833
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34803
34834
|
businessType: "purchase-organization",
|
|
@@ -34810,7 +34841,7 @@ function RenderCompItem(props) {
|
|
|
34810
34841
|
getPopupContainer: function getPopupContainer() {
|
|
34811
34842
|
return document.body;
|
|
34812
34843
|
}
|
|
34813
|
-
})) || 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, {
|
|
34844
|
+
})) || 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, {
|
|
34814
34845
|
disabled: disabled,
|
|
34815
34846
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34816
34847
|
businessType: "sales-organization",
|
|
@@ -34823,7 +34854,7 @@ function RenderCompItem(props) {
|
|
|
34823
34854
|
getPopupContainer: function getPopupContainer() {
|
|
34824
34855
|
return document.body;
|
|
34825
34856
|
}
|
|
34826
|
-
})) || 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, {
|
|
34857
|
+
})) || 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, {
|
|
34827
34858
|
selectBusinessType: "supplier2",
|
|
34828
34859
|
selectProps: _objectSpread2({
|
|
34829
34860
|
style: styleCommon,
|
|
@@ -34844,7 +34875,7 @@ function RenderCompItem(props) {
|
|
|
34844
34875
|
getPopupContainer: function getPopupContainer() {
|
|
34845
34876
|
return document.body;
|
|
34846
34877
|
}
|
|
34847
|
-
})) || 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, {
|
|
34878
|
+
})) || 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, {
|
|
34848
34879
|
selectBusinessType: "customer2",
|
|
34849
34880
|
selectProps: _objectSpread2({
|
|
34850
34881
|
style: styleCommon,
|
|
@@ -34865,7 +34896,7 @@ function RenderCompItem(props) {
|
|
|
34865
34896
|
getPopupContainer: function getPopupContainer() {
|
|
34866
34897
|
return document.body;
|
|
34867
34898
|
}
|
|
34868
|
-
})) || 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, {
|
|
34899
|
+
})) || 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, {
|
|
34869
34900
|
selectBusinessType: "shopFile2",
|
|
34870
34901
|
selectProps: _objectSpread2({
|
|
34871
34902
|
style: styleCommon,
|
|
@@ -34886,7 +34917,7 @@ function RenderCompItem(props) {
|
|
|
34886
34917
|
getPopupContainer: function getPopupContainer() {
|
|
34887
34918
|
return document.body;
|
|
34888
34919
|
}
|
|
34889
|
-
})) || 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, {
|
|
34920
|
+
})) || 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, {
|
|
34890
34921
|
selectBusinessType: "employee2",
|
|
34891
34922
|
selectProps: _objectSpread2({
|
|
34892
34923
|
style: styleCommon,
|
|
@@ -34907,7 +34938,7 @@ function RenderCompItem(props) {
|
|
|
34907
34938
|
getPopupContainer: function getPopupContainer() {
|
|
34908
34939
|
return document.body;
|
|
34909
34940
|
}
|
|
34910
|
-
})) || 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, {
|
|
34941
|
+
})) || 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, {
|
|
34911
34942
|
disabled: disabled,
|
|
34912
34943
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34913
34944
|
businessType: "stock-organization",
|
|
@@ -34920,7 +34951,7 @@ function RenderCompItem(props) {
|
|
|
34920
34951
|
getPopupContainer: function getPopupContainer() {
|
|
34921
34952
|
return document.body;
|
|
34922
34953
|
}
|
|
34923
|
-
})) || 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, {
|
|
34954
|
+
})) || 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, {
|
|
34924
34955
|
disabled: disabled,
|
|
34925
34956
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34926
34957
|
businessType: "settle-organization",
|
|
@@ -34933,7 +34964,7 @@ function RenderCompItem(props) {
|
|
|
34933
34964
|
getPopupContainer: function getPopupContainer() {
|
|
34934
34965
|
return document.body;
|
|
34935
34966
|
}
|
|
34936
|
-
})) || 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, {
|
|
34967
|
+
})) || 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, {
|
|
34937
34968
|
selectBusinessType: "deliveryMode",
|
|
34938
34969
|
selectProps: _objectSpread2({
|
|
34939
34970
|
style: styleCommon,
|
|
@@ -34954,7 +34985,7 @@ function RenderCompItem(props) {
|
|
|
34954
34985
|
getPopupContainer: function getPopupContainer() {
|
|
34955
34986
|
return document.body;
|
|
34956
34987
|
}
|
|
34957
|
-
})) || 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, {
|
|
34988
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34958
34989
|
selectBusinessType: "role",
|
|
34959
34990
|
selectProps: _objectSpread2({
|
|
34960
34991
|
style: styleCommon,
|
|
@@ -34975,7 +35006,7 @@ function RenderCompItem(props) {
|
|
|
34975
35006
|
getPopupContainer: function getPopupContainer() {
|
|
34976
35007
|
return document.body;
|
|
34977
35008
|
}
|
|
34978
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35009
|
+
})) || 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, {
|
|
34979
35010
|
selectBusinessType: "brand",
|
|
34980
35011
|
selectProps: _objectSpread2({
|
|
34981
35012
|
style: styleCommon,
|
|
@@ -34996,7 +35027,7 @@ function RenderCompItem(props) {
|
|
|
34996
35027
|
getPopupContainer: function getPopupContainer() {
|
|
34997
35028
|
return document.body;
|
|
34998
35029
|
}
|
|
34999
|
-
})) || 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, {
|
|
35030
|
+
})) || 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, {
|
|
35000
35031
|
disabled: disabled,
|
|
35001
35032
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35002
35033
|
businessType: "background-category",
|
|
@@ -35009,7 +35040,7 @@ function RenderCompItem(props) {
|
|
|
35009
35040
|
getPopupContainer: function getPopupContainer() {
|
|
35010
35041
|
return document.body;
|
|
35011
35042
|
}
|
|
35012
|
-
})) || 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, {
|
|
35043
|
+
})) || 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, {
|
|
35013
35044
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35014
35045
|
style: styleCommon,
|
|
35015
35046
|
placeholder: '请选择'
|
|
@@ -35032,7 +35063,7 @@ function RenderCompItem(props) {
|
|
|
35032
35063
|
onChange: function onChange(value) {
|
|
35033
35064
|
handleEdit(ites.code, value);
|
|
35034
35065
|
}
|
|
35035
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
35066
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
35036
35067
|
style: {
|
|
35037
35068
|
display: 'flex'
|
|
35038
35069
|
}
|
|
@@ -35544,7 +35575,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35544
35575
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35545
35576
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35546
35577
|
}
|
|
35547
|
-
var parallelTreeData =
|
|
35578
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
35548
35579
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35549
35580
|
var _i$key;
|
|
35550
35581
|
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);
|
|
@@ -36471,13 +36502,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36471
36502
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36472
36503
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36473
36504
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36474
|
-
var list =
|
|
36505
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36475
36506
|
var requiredList = list.filter(function (c) {
|
|
36476
36507
|
return c.required == 1;
|
|
36477
36508
|
}) || []; // 获取对象属性为true的集合
|
|
36478
36509
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36479
36510
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36480
|
-
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) ?
|
|
36511
|
+
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];
|
|
36481
36512
|
(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) {
|
|
36482
36513
|
if (requiredList.some(function (r) {
|
|
36483
36514
|
return r.id === e.elementId;
|
|
@@ -37066,7 +37097,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37066
37097
|
style: {
|
|
37067
37098
|
float: 'right'
|
|
37068
37099
|
}
|
|
37069
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37100
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37070
37101
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37071
37102
|
ruleGroupInfo: {
|
|
37072
37103
|
ruleGroupList: ruleGroupList,
|
|
@@ -37084,7 +37115,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37084
37115
|
callBack: function callBack(newData) {
|
|
37085
37116
|
upDateData(newData);
|
|
37086
37117
|
}
|
|
37087
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37118
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
37088
37119
|
style: {
|
|
37089
37120
|
padding: 20
|
|
37090
37121
|
}
|
|
@@ -37459,4 +37490,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37459
37490
|
}, children));
|
|
37460
37491
|
};
|
|
37461
37492
|
|
|
37462
|
-
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,
|
|
37493
|
+
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 };
|