@bit-sun/business-component 4.0.11-alpha.25 → 4.0.11-alpha.26
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 +260 -256
- package/dist/index.js +261 -257
- package/package.json +1 -1
- package/src/components/Functional/QueryMutipleInput/index.tsx +2 -0
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"
|
|
@@ -3976,6 +3976,10 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
3976
3976
|
}, [value]);
|
|
3977
3977
|
var showModal = function showModal() {
|
|
3978
3978
|
setIsModalVisible(true);
|
|
3979
|
+
//弹窗打开时 默认搜索内容换行显示
|
|
3980
|
+
setPopValue(function (data) {
|
|
3981
|
+
return data.replace(/,/g, '\n');
|
|
3982
|
+
});
|
|
3979
3983
|
};
|
|
3980
3984
|
var handleOk = function handleOk() {
|
|
3981
3985
|
formaData(popvalue);
|
|
@@ -5309,13 +5313,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5309
5313
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5310
5314
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5311
5315
|
className: 'search_select'
|
|
5312
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5316
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5313
5317
|
onClick: function onClick() {
|
|
5314
5318
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5315
5319
|
(_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);
|
|
5316
5320
|
showModal();
|
|
5317
5321
|
}
|
|
5318
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5322
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5319
5323
|
title: getShowStr(),
|
|
5320
5324
|
style: {
|
|
5321
5325
|
overflow: 'hidden',
|
|
@@ -5342,10 +5346,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5342
5346
|
dropdownRender: function dropdownRender(menu) {
|
|
5343
5347
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5344
5348
|
},
|
|
5345
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5349
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5346
5350
|
size: "small",
|
|
5347
5351
|
className: 'searchSelectSpin'
|
|
5348
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5352
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5349
5353
|
style: {
|
|
5350
5354
|
textAlign: 'center'
|
|
5351
5355
|
}
|
|
@@ -5376,7 +5380,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5376
5380
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5377
5381
|
filterTxt: searchValue
|
|
5378
5382
|
}));
|
|
5379
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5383
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5380
5384
|
maskClosable: false,
|
|
5381
5385
|
destroyOnClose: true,
|
|
5382
5386
|
width: "80%",
|
|
@@ -5973,7 +5977,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5973
5977
|
style: {
|
|
5974
5978
|
width: 525
|
|
5975
5979
|
}
|
|
5976
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5980
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5977
5981
|
checked: !dataSource.some(function (item) {
|
|
5978
5982
|
if (item.hidden) return true;
|
|
5979
5983
|
return false;
|
|
@@ -6011,13 +6015,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6011
6015
|
_this2.onChange(e, item.title);
|
|
6012
6016
|
}
|
|
6013
6017
|
}, item.title);
|
|
6014
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6018
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
6015
6019
|
style: {
|
|
6016
6020
|
width: '144px'
|
|
6017
6021
|
}
|
|
6018
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6022
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
6019
6023
|
className: 'sort_table_column_all_empty'
|
|
6020
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6024
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6021
6025
|
className: 'sort_table_column_special'
|
|
6022
6026
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6023
6027
|
className: 'sort_table_column_all'
|
|
@@ -6206,7 +6210,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6206
6210
|
});
|
|
6207
6211
|
};
|
|
6208
6212
|
// 格式化树选择器数据源
|
|
6209
|
-
var
|
|
6213
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6210
6214
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6211
6215
|
return {
|
|
6212
6216
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6216,7 +6220,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6216
6220
|
isLeaf: !haveChildren,
|
|
6217
6221
|
disabled: haveChildren,
|
|
6218
6222
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6219
|
-
return
|
|
6223
|
+
return mapSearchTree(i, resKeyValue);
|
|
6220
6224
|
}) : []
|
|
6221
6225
|
};
|
|
6222
6226
|
};
|
|
@@ -6225,7 +6229,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6225
6229
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6226
6230
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6227
6231
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6228
|
-
return
|
|
6232
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6229
6233
|
}) || [];
|
|
6230
6234
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6231
6235
|
};
|
|
@@ -6396,7 +6400,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6396
6400
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6397
6401
|
// FIXME: 特殊业务逻辑
|
|
6398
6402
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6399
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6403
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6400
6404
|
var result;
|
|
6401
6405
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6402
6406
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6649,7 +6653,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6649
6653
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6650
6654
|
value: text || null,
|
|
6651
6655
|
onChange: function () {
|
|
6652
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6656
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6653
6657
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6654
6658
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6655
6659
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7257,10 +7261,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7257
7261
|
var newColumns = arr.map(function (col) {
|
|
7258
7262
|
return _objectSpread2({}, col);
|
|
7259
7263
|
});
|
|
7260
|
-
var
|
|
7264
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7261
7265
|
var i = indexArr.shift();
|
|
7262
7266
|
if (indexArr.length > 0) {
|
|
7263
|
-
|
|
7267
|
+
handleIndex(arr[i].children, indexArr);
|
|
7264
7268
|
} else {
|
|
7265
7269
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7266
7270
|
width: size.width
|
|
@@ -7268,7 +7272,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7268
7272
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7269
7273
|
}
|
|
7270
7274
|
};
|
|
7271
|
-
|
|
7275
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7272
7276
|
callback(newColumns);
|
|
7273
7277
|
};
|
|
7274
7278
|
};
|
|
@@ -7278,13 +7282,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7278
7282
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7279
7283
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7280
7284
|
};
|
|
7281
|
-
var
|
|
7285
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7282
7286
|
arr.forEach(function (item, index) {
|
|
7283
7287
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7284
7288
|
return i || i === 0;
|
|
7285
7289
|
});
|
|
7286
7290
|
if (noEmptyArray$1(item.children)) {
|
|
7287
|
-
|
|
7291
|
+
handleColumns(item.children, indexArrInside);
|
|
7288
7292
|
} else {
|
|
7289
7293
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7290
7294
|
item.onHeaderCell = function (column) {
|
|
@@ -7300,14 +7304,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7300
7304
|
handleAntdColumnsSpecialParams(item);
|
|
7301
7305
|
return _objectSpread2({}, item);
|
|
7302
7306
|
});
|
|
7303
|
-
|
|
7307
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7304
7308
|
return setShowToChooseColumnsCallback(res);
|
|
7305
7309
|
});
|
|
7306
7310
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7307
7311
|
handleAntdColumnsSpecialParams(item);
|
|
7308
7312
|
return _objectSpread2({}, item);
|
|
7309
7313
|
});
|
|
7310
|
-
|
|
7314
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7311
7315
|
return setShowColumnsCallback(res);
|
|
7312
7316
|
});
|
|
7313
7317
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7318,7 +7322,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7318
7322
|
id: "add_select_div_".concat(uniqueValue)
|
|
7319
7323
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7320
7324
|
onClick: handleShowModal
|
|
7321
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7325
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7322
7326
|
width: '1200px',
|
|
7323
7327
|
style: {
|
|
7324
7328
|
top: 20
|
|
@@ -8232,7 +8236,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8232
8236
|
});
|
|
8233
8237
|
};
|
|
8234
8238
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8235
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8239
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8236
8240
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8237
8241
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8238
8242
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8315,10 +8319,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8315
8319
|
var newColumns = arr.map(function (col) {
|
|
8316
8320
|
return _objectSpread2({}, col);
|
|
8317
8321
|
});
|
|
8318
|
-
var
|
|
8322
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8319
8323
|
var i = indexArr.shift();
|
|
8320
8324
|
if (indexArr.length > 0) {
|
|
8321
|
-
|
|
8325
|
+
handleIndex(arr[i].children, indexArr);
|
|
8322
8326
|
} else {
|
|
8323
8327
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8324
8328
|
width: size.width
|
|
@@ -8326,17 +8330,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8326
8330
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8327
8331
|
}
|
|
8328
8332
|
};
|
|
8329
|
-
|
|
8333
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8330
8334
|
callback(newColumns);
|
|
8331
8335
|
};
|
|
8332
8336
|
};
|
|
8333
|
-
var
|
|
8337
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8334
8338
|
arr.forEach(function (item, index) {
|
|
8335
8339
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8336
8340
|
return i || i === 0;
|
|
8337
8341
|
});
|
|
8338
8342
|
if (noEmptyArray$1(item.children)) {
|
|
8339
|
-
|
|
8343
|
+
handleColumns(item.children, indexArrInside);
|
|
8340
8344
|
} else {
|
|
8341
8345
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8342
8346
|
item.onHeaderCell = function (column) {
|
|
@@ -8352,7 +8356,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8352
8356
|
handleAntdColumnsSpecialParams(item);
|
|
8353
8357
|
return _objectSpread2({}, item);
|
|
8354
8358
|
});
|
|
8355
|
-
|
|
8359
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8356
8360
|
return setShowColumnsCallback(res);
|
|
8357
8361
|
});
|
|
8358
8362
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8666,7 +8670,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8666
8670
|
});
|
|
8667
8671
|
};
|
|
8668
8672
|
// 格式化树选择器数据源
|
|
8669
|
-
var
|
|
8673
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8670
8674
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8671
8675
|
return {
|
|
8672
8676
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8676,7 +8680,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8676
8680
|
isLeaf: !haveChildren,
|
|
8677
8681
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8678
8682
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8679
|
-
return
|
|
8683
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8680
8684
|
}) : []
|
|
8681
8685
|
};
|
|
8682
8686
|
};
|
|
@@ -8690,7 +8694,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8690
8694
|
disabledJudge = false;
|
|
8691
8695
|
}
|
|
8692
8696
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8693
|
-
return
|
|
8697
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8694
8698
|
}) || [];
|
|
8695
8699
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8696
8700
|
};
|
|
@@ -12736,7 +12740,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12736
12740
|
};
|
|
12737
12741
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12738
12742
|
onClick: handleShowModal
|
|
12739
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12743
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12740
12744
|
onOk: handleOk,
|
|
12741
12745
|
onCancel: handleCancel,
|
|
12742
12746
|
destroyOnClose: true,
|
|
@@ -12855,7 +12859,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12855
12859
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12856
12860
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12857
12861
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12858
|
-
var
|
|
12862
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12859
12863
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12860
12864
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12861
12865
|
return {
|
|
@@ -12867,7 +12871,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12867
12871
|
isLeaf: !haveChildren,
|
|
12868
12872
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12869
12873
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12870
|
-
return
|
|
12874
|
+
return mapSearchTree(i);
|
|
12871
12875
|
}) : []
|
|
12872
12876
|
};
|
|
12873
12877
|
};
|
|
@@ -12885,8 +12889,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12885
12889
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12886
12890
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12887
12891
|
headers: headers
|
|
12888
|
-
}).then(/*#__PURE__*/function () {
|
|
12889
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12892
|
+
}).then( /*#__PURE__*/function () {
|
|
12893
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12890
12894
|
var _ctx$form;
|
|
12891
12895
|
var resData, coverData, data, dataList;
|
|
12892
12896
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12913,7 +12917,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12913
12917
|
case 9:
|
|
12914
12918
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12915
12919
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12916
|
-
return
|
|
12920
|
+
return mapSearchTree(ites);
|
|
12917
12921
|
}) || [];
|
|
12918
12922
|
case 11:
|
|
12919
12923
|
_context.next = 14;
|
|
@@ -12951,11 +12955,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12951
12955
|
return _formatResult;
|
|
12952
12956
|
}
|
|
12953
12957
|
};
|
|
12954
|
-
var
|
|
12958
|
+
var parallelData = function parallelData(data, result) {
|
|
12955
12959
|
data.forEach(function (i) {
|
|
12956
12960
|
result.push(i);
|
|
12957
12961
|
if (i[treeChildrenRoom]) {
|
|
12958
|
-
|
|
12962
|
+
parallelData(i[treeChildrenRoom], result);
|
|
12959
12963
|
}
|
|
12960
12964
|
});
|
|
12961
12965
|
return result;
|
|
@@ -12995,7 +12999,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12995
12999
|
var _ctx$form2;
|
|
12996
13000
|
var handleData = formatData(data);
|
|
12997
13001
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12998
|
-
var parallelTreeData =
|
|
13002
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12999
13003
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13000
13004
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13001
13005
|
onChangeName && onChangeName(dataName);
|
|
@@ -13038,7 +13042,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13038
13042
|
var getShowStr = function getShowStr() {
|
|
13039
13043
|
var isMultiple = multiple || treeCheckable;
|
|
13040
13044
|
var kongValue = '无';
|
|
13041
|
-
var parallelTreeData =
|
|
13045
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13042
13046
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13043
13047
|
if (isMultiple) {
|
|
13044
13048
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13050,7 +13054,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13050
13054
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13051
13055
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13052
13056
|
className: 'tree_search_select'
|
|
13053
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13057
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13054
13058
|
title: getShowStr(),
|
|
13055
13059
|
style: {
|
|
13056
13060
|
overflow: 'hidden',
|
|
@@ -13058,7 +13062,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13058
13062
|
whiteSpace: 'nowrap'
|
|
13059
13063
|
},
|
|
13060
13064
|
className: 'search_select_show'
|
|
13061
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13065
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13062
13066
|
treeCheckable: treeCheckable,
|
|
13063
13067
|
maxTagCount: maxTagCount,
|
|
13064
13068
|
showSearch: showSearch,
|
|
@@ -13255,7 +13259,7 @@ var index$2 = (function (props) {
|
|
|
13255
13259
|
} : {}
|
|
13256
13260
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13257
13261
|
className: 'status-label-operate'
|
|
13258
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13262
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13259
13263
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13260
13264
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13261
13265
|
style: {
|
|
@@ -14036,7 +14040,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14036
14040
|
style: {
|
|
14037
14041
|
width: 525
|
|
14038
14042
|
}
|
|
14039
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14043
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14040
14044
|
checked: !dataSource.some(function (item) {
|
|
14041
14045
|
if (item.hidden) return true;
|
|
14042
14046
|
return false;
|
|
@@ -14074,13 +14078,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14074
14078
|
_this2.onChange(e, item.title);
|
|
14075
14079
|
}
|
|
14076
14080
|
}, item.title);
|
|
14077
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14081
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
14078
14082
|
style: {
|
|
14079
14083
|
width: '144px'
|
|
14080
14084
|
}
|
|
14081
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14085
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
14082
14086
|
className: 'sort_table_column_all_empty'
|
|
14083
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14087
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14084
14088
|
className: 'sort_table_column_special'
|
|
14085
14089
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14086
14090
|
className: 'sort_table_column_all'
|
|
@@ -14237,10 +14241,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14237
14241
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14238
14242
|
return _objectSpread2({}, col);
|
|
14239
14243
|
});
|
|
14240
|
-
var
|
|
14244
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14241
14245
|
var i = indexArr.shift();
|
|
14242
14246
|
if (indexArr.length > 0) {
|
|
14243
|
-
|
|
14247
|
+
handleIndex(arr[i].children, indexArr);
|
|
14244
14248
|
} else {
|
|
14245
14249
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14246
14250
|
width: size.width
|
|
@@ -14248,7 +14252,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14248
14252
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14249
14253
|
}
|
|
14250
14254
|
};
|
|
14251
|
-
|
|
14255
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14252
14256
|
_this.setState({
|
|
14253
14257
|
showColumns: _toConsumableArray(newColumns)
|
|
14254
14258
|
});
|
|
@@ -14326,13 +14330,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14326
14330
|
showSummary = summary;
|
|
14327
14331
|
}
|
|
14328
14332
|
}
|
|
14329
|
-
var
|
|
14333
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14330
14334
|
arr.forEach(function (item, index) {
|
|
14331
14335
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14332
14336
|
return i || i === 0;
|
|
14333
14337
|
});
|
|
14334
14338
|
if (noEmptyArray$1(item.children)) {
|
|
14335
|
-
|
|
14339
|
+
handleColumns(item.children, indexArrInside);
|
|
14336
14340
|
} else {
|
|
14337
14341
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14338
14342
|
item.onHeaderCell = function (column) {
|
|
@@ -14348,7 +14352,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14348
14352
|
handleBssulaColumnsSpecialParams(item);
|
|
14349
14353
|
return _objectSpread2({}, item);
|
|
14350
14354
|
});
|
|
14351
|
-
|
|
14355
|
+
handleColumns(showCol, []);
|
|
14352
14356
|
if (dynamicColumns.length) {
|
|
14353
14357
|
showCol = this.handledynamicColumns(showCol);
|
|
14354
14358
|
}
|
|
@@ -14482,10 +14486,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14482
14486
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14483
14487
|
return _objectSpread2({}, col);
|
|
14484
14488
|
});
|
|
14485
|
-
var
|
|
14489
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14486
14490
|
var i = indexArr.shift();
|
|
14487
14491
|
if (indexArr.length > 0) {
|
|
14488
|
-
|
|
14492
|
+
handleIndex(arr[i].children, indexArr);
|
|
14489
14493
|
} else {
|
|
14490
14494
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14491
14495
|
width: size.width
|
|
@@ -14493,7 +14497,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14493
14497
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14494
14498
|
}
|
|
14495
14499
|
};
|
|
14496
|
-
|
|
14500
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14497
14501
|
_this.setState({
|
|
14498
14502
|
showColumns: _toConsumableArray(newColumns)
|
|
14499
14503
|
});
|
|
@@ -14569,13 +14573,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14569
14573
|
showSummary = summary;
|
|
14570
14574
|
}
|
|
14571
14575
|
}
|
|
14572
|
-
var
|
|
14576
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14573
14577
|
arr.forEach(function (item, index) {
|
|
14574
14578
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14575
14579
|
return i || i === 0;
|
|
14576
14580
|
});
|
|
14577
14581
|
if (noEmptyArray$1(item.children)) {
|
|
14578
|
-
|
|
14582
|
+
handleColumns(item.children, indexArrInside);
|
|
14579
14583
|
} else {
|
|
14580
14584
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14581
14585
|
item.onHeaderCell = function (column) {
|
|
@@ -14591,7 +14595,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14591
14595
|
handleAntdColumnsSpecialParams(item);
|
|
14592
14596
|
return _objectSpread2({}, item);
|
|
14593
14597
|
});
|
|
14594
|
-
|
|
14598
|
+
handleColumns(showCol, []);
|
|
14595
14599
|
if (dynamicColumns.length) {
|
|
14596
14600
|
showCol = this.handledynamicColumns(showCol);
|
|
14597
14601
|
}
|
|
@@ -14688,20 +14692,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14688
14692
|
};
|
|
14689
14693
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14690
14694
|
var routerMap = {};
|
|
14691
|
-
var
|
|
14695
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
14692
14696
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14693
14697
|
data.forEach(function (menuItem) {
|
|
14694
14698
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14695
14699
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14696
14700
|
});
|
|
14697
14701
|
if (newMenuItem.children) {
|
|
14698
|
-
|
|
14702
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
14699
14703
|
}
|
|
14700
14704
|
// Reduce memory usage
|
|
14701
14705
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14702
14706
|
});
|
|
14703
14707
|
};
|
|
14704
|
-
|
|
14708
|
+
flattenMenuData(menuData, {});
|
|
14705
14709
|
return routerMap;
|
|
14706
14710
|
};
|
|
14707
14711
|
// mode类型判断
|
|
@@ -15007,7 +15011,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15007
15011
|
display: 'flex',
|
|
15008
15012
|
gap: '8px'
|
|
15009
15013
|
}
|
|
15010
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15014
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15011
15015
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15012
15016
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15013
15017
|
onClick: function onClick() {
|
|
@@ -15015,7 +15019,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15015
15019
|
},
|
|
15016
15020
|
width: 24,
|
|
15017
15021
|
src: scanning
|
|
15018
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15022
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15019
15023
|
title: "\u5168\u5C4F"
|
|
15020
15024
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15021
15025
|
onClick: function onClick() {
|
|
@@ -15023,7 +15027,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15023
15027
|
},
|
|
15024
15028
|
width: 24,
|
|
15025
15029
|
src: quanping
|
|
15026
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15030
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15027
15031
|
}, function (prevProps, nextProps) {
|
|
15028
15032
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15029
15033
|
return false;
|
|
@@ -15108,7 +15112,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15108
15112
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15109
15113
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15110
15114
|
}, item));
|
|
15111
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15115
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15112
15116
|
}, function (prevProps, nextProps) {
|
|
15113
15117
|
if (prevProps.title !== nextProps.title) {
|
|
15114
15118
|
return false;
|
|
@@ -15748,7 +15752,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15748
15752
|
});
|
|
15749
15753
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15750
15754
|
className: 'sort_table_wrapper'
|
|
15751
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15755
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
15752
15756
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15753
15757
|
wrapClassName: 'sort_table_wrapper',
|
|
15754
15758
|
width: 810,
|
|
@@ -15799,7 +15803,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15799
15803
|
width: 525,
|
|
15800
15804
|
height: 24
|
|
15801
15805
|
}
|
|
15802
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15806
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15803
15807
|
checked: !dataSource.some(function (item) {
|
|
15804
15808
|
if (item.hidden) return true;
|
|
15805
15809
|
return false;
|
|
@@ -15853,13 +15857,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15853
15857
|
_this2.onChange(e, item.title);
|
|
15854
15858
|
}
|
|
15855
15859
|
}, item.title);
|
|
15856
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15860
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15857
15861
|
style: {
|
|
15858
15862
|
width: '144px'
|
|
15859
15863
|
}
|
|
15860
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15864
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15861
15865
|
className: 'sort_table_column_all_empty'
|
|
15862
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15866
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15863
15867
|
className: 'sort_table_column_special'
|
|
15864
15868
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15865
15869
|
className: 'sort_table_column_all'
|
|
@@ -16333,7 +16337,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16333
16337
|
});
|
|
16334
16338
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16335
16339
|
className: 'sort_table_wrapper'
|
|
16336
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16340
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16337
16341
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16338
16342
|
wrapClassName: 'sort_table_wrapper',
|
|
16339
16343
|
width: 820,
|
|
@@ -16378,7 +16382,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16378
16382
|
style: {
|
|
16379
16383
|
width: 525
|
|
16380
16384
|
}
|
|
16381
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16385
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16382
16386
|
checked: !dataSource.some(function (item) {
|
|
16383
16387
|
if (item.hidden) return true;
|
|
16384
16388
|
return false;
|
|
@@ -16414,11 +16418,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16414
16418
|
_this2.onChange(e, item.name);
|
|
16415
16419
|
}
|
|
16416
16420
|
}, item.label);
|
|
16417
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16421
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16418
16422
|
style: {
|
|
16419
16423
|
width: '144px'
|
|
16420
16424
|
}
|
|
16421
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16425
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16422
16426
|
className: 'sort_table_column_all_empty'
|
|
16423
16427
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16424
16428
|
className: 'sort_table_content_wrapper'
|
|
@@ -16844,7 +16848,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16844
16848
|
actionsRender = actionsRender.concat([{
|
|
16845
16849
|
type: 'text',
|
|
16846
16850
|
props: {
|
|
16847
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16851
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16848
16852
|
request: {
|
|
16849
16853
|
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),
|
|
16850
16854
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17090,7 +17094,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17090
17094
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17091
17095
|
bsTableCode: bsTableCode,
|
|
17092
17096
|
onlyModal: true
|
|
17093
|
-
}), (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, {
|
|
17097
|
+
}), (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, {
|
|
17094
17098
|
ref: exportTableRef,
|
|
17095
17099
|
setShowColumns: setShowExportColumns,
|
|
17096
17100
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17183,11 +17187,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17183
17187
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17184
17188
|
var resultList = [];
|
|
17185
17189
|
var newRouter = cloneDeep(router);
|
|
17186
|
-
var
|
|
17190
|
+
var deep = function deep(router) {
|
|
17187
17191
|
if (router && Array.isArray(router)) {
|
|
17188
17192
|
router.forEach(function (item) {
|
|
17189
17193
|
if (item.children && Array.isArray(item.children)) {
|
|
17190
|
-
|
|
17194
|
+
deep(item.children);
|
|
17191
17195
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17192
17196
|
return d === item.code;
|
|
17193
17197
|
})) {
|
|
@@ -17201,10 +17205,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17201
17205
|
resultList.push(_objectSpread2({}, router));
|
|
17202
17206
|
}
|
|
17203
17207
|
};
|
|
17204
|
-
|
|
17208
|
+
deep(newRouter);
|
|
17205
17209
|
callBack([].concat(resultList));
|
|
17206
17210
|
};
|
|
17207
|
-
var
|
|
17211
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17208
17212
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17209
17213
|
var _loop = function _loop(i) {
|
|
17210
17214
|
if (routesData[i].hideInMenu) {
|
|
@@ -17218,7 +17222,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17218
17222
|
return 0; // continue
|
|
17219
17223
|
}
|
|
17220
17224
|
if (routesData[i].children) {
|
|
17221
|
-
|
|
17225
|
+
setMenuTreeData(routesData[i].children);
|
|
17222
17226
|
}
|
|
17223
17227
|
},
|
|
17224
17228
|
_ret;
|
|
@@ -17239,16 +17243,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17239
17243
|
};
|
|
17240
17244
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17241
17245
|
var routerMap = {};
|
|
17242
|
-
var
|
|
17246
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
17243
17247
|
data.forEach(function (menuItem) {
|
|
17244
17248
|
if (menuItem.children) {
|
|
17245
|
-
|
|
17249
|
+
flattenMenuData(menuItem.children);
|
|
17246
17250
|
}
|
|
17247
17251
|
// Reduce memory usage
|
|
17248
17252
|
routerMap[menuItem.path] = menuItem;
|
|
17249
17253
|
});
|
|
17250
17254
|
};
|
|
17251
|
-
|
|
17255
|
+
flattenMenuData(menuData);
|
|
17252
17256
|
return routerMap;
|
|
17253
17257
|
};
|
|
17254
17258
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17394,7 +17398,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17394
17398
|
sethomepageData(homepageDataList);
|
|
17395
17399
|
setroutesData(routesDataList);
|
|
17396
17400
|
}, []);
|
|
17397
|
-
var
|
|
17401
|
+
var renderChildItem = function renderChildItem(child) {
|
|
17398
17402
|
if (!child.hideInMenu && child.children) {
|
|
17399
17403
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17400
17404
|
style: {
|
|
@@ -17404,7 +17408,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17404
17408
|
}, formatMessage({
|
|
17405
17409
|
id: "".concat(child.locale)
|
|
17406
17410
|
})), child.children.map(function (menuItem) {
|
|
17407
|
-
return
|
|
17411
|
+
return renderChildItem(menuItem);
|
|
17408
17412
|
}));
|
|
17409
17413
|
} else if (!child.hideInMenu && child.path) {
|
|
17410
17414
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17439,7 +17443,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17439
17443
|
className: 'drawerWarp'
|
|
17440
17444
|
}, homepageData && homepageData.filter(function (d) {
|
|
17441
17445
|
return !d.hideInMenu;
|
|
17442
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17446
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
17443
17447
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17444
17448
|
dataSource: homepageData,
|
|
17445
17449
|
renderItem: function renderItem(child) {
|
|
@@ -17474,7 +17478,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17474
17478
|
bordered: true,
|
|
17475
17479
|
dataSource: item.children,
|
|
17476
17480
|
renderItem: function renderItem(child) {
|
|
17477
|
-
return
|
|
17481
|
+
return renderChildItem(child);
|
|
17478
17482
|
}
|
|
17479
17483
|
});
|
|
17480
17484
|
})));
|
|
@@ -17534,7 +17538,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17534
17538
|
src: allfunc
|
|
17535
17539
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17536
17540
|
className: 'btnSpan2'
|
|
17537
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17541
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17538
17542
|
style: {
|
|
17539
17543
|
left: isDrawer ? 140 : 0,
|
|
17540
17544
|
top: 50
|
|
@@ -17580,7 +17584,7 @@ function outLogin(_x) {
|
|
|
17580
17584
|
return _outLogin.apply(this, arguments);
|
|
17581
17585
|
}
|
|
17582
17586
|
function _outLogin() {
|
|
17583
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17587
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17584
17588
|
var res;
|
|
17585
17589
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17586
17590
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17722,7 +17726,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17722
17726
|
});
|
|
17723
17727
|
};
|
|
17724
17728
|
var loginOut = /*#__PURE__*/function () {
|
|
17725
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17729
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
17726
17730
|
var sessionId;
|
|
17727
17731
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17728
17732
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17826,7 +17830,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
17826
17830
|
marginRight: '0px'
|
|
17827
17831
|
},
|
|
17828
17832
|
src: './xialajiantou-new.svg'
|
|
17829
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17833
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17830
17834
|
};
|
|
17831
17835
|
|
|
17832
17836
|
// -- 查询店铺 --
|
|
@@ -17834,7 +17838,7 @@ function getStoreByName(_x) {
|
|
|
17834
17838
|
return _getStoreByName.apply(this, arguments);
|
|
17835
17839
|
}
|
|
17836
17840
|
function _getStoreByName() {
|
|
17837
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17841
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17838
17842
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17839
17843
|
while (1) switch (_context.prev = _context.next) {
|
|
17840
17844
|
case 0:
|
|
@@ -17902,7 +17906,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17902
17906
|
return _fetchUserList.apply(this, arguments);
|
|
17903
17907
|
}
|
|
17904
17908
|
function _fetchUserList() {
|
|
17905
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17909
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17906
17910
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17907
17911
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17908
17912
|
case 0:
|
|
@@ -17950,7 +17954,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17950
17954
|
return debounce$1(loadOptions, debounceTimeout);
|
|
17951
17955
|
}, [debounceTimeout, key]);
|
|
17952
17956
|
var changeInput = /*#__PURE__*/function () {
|
|
17953
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17957
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17954
17958
|
var res;
|
|
17955
17959
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17956
17960
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17972,7 +17976,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17972
17976
|
};
|
|
17973
17977
|
}();
|
|
17974
17978
|
useEffect(function () {
|
|
17975
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17979
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17976
17980
|
var res;
|
|
17977
17981
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17978
17982
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18137,7 +18141,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18137
18141
|
var resultList = [];
|
|
18138
18142
|
var newRouter = cloneDeep$1(router);
|
|
18139
18143
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18140
|
-
var
|
|
18144
|
+
var deep = function deep(router) {
|
|
18141
18145
|
if (router && Array.isArray(router)) {
|
|
18142
18146
|
router.forEach(function (item) {
|
|
18143
18147
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18147,7 +18151,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18147
18151
|
d.nameEdit = true;
|
|
18148
18152
|
}
|
|
18149
18153
|
});
|
|
18150
|
-
|
|
18154
|
+
deep(item.routes);
|
|
18151
18155
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
18152
18156
|
id: "menu.".concat(item.name)
|
|
18153
18157
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18166,7 +18170,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18166
18170
|
}));
|
|
18167
18171
|
}
|
|
18168
18172
|
};
|
|
18169
|
-
|
|
18173
|
+
deep(newRouter);
|
|
18170
18174
|
setroutesData([].concat(resultList));
|
|
18171
18175
|
};
|
|
18172
18176
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18248,7 +18252,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18248
18252
|
},
|
|
18249
18253
|
title: item.fullPathName
|
|
18250
18254
|
}, renderLineStyl(item.fullPathName));
|
|
18251
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18255
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18252
18256
|
employeeCode: employeeCode
|
|
18253
18257
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18254
18258
|
};
|
|
@@ -18263,7 +18267,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18263
18267
|
var TreeNode = Tree.TreeNode;
|
|
18264
18268
|
var Search$2 = Input.Search;
|
|
18265
18269
|
var dataList = [];
|
|
18266
|
-
var
|
|
18270
|
+
var generateList = function generateList(data) {
|
|
18267
18271
|
for (var i = 0; i < data.length; i++) {
|
|
18268
18272
|
var node = data[i];
|
|
18269
18273
|
var path = node.path,
|
|
@@ -18273,11 +18277,11 @@ var _generateList = function generateList(data) {
|
|
|
18273
18277
|
name: name
|
|
18274
18278
|
});
|
|
18275
18279
|
if (node.children) {
|
|
18276
|
-
|
|
18280
|
+
generateList(node.children);
|
|
18277
18281
|
}
|
|
18278
18282
|
}
|
|
18279
18283
|
};
|
|
18280
|
-
var
|
|
18284
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
18281
18285
|
var parentKey;
|
|
18282
18286
|
for (var i = 0; i < tree.length; i++) {
|
|
18283
18287
|
var node = tree[i];
|
|
@@ -18286,8 +18290,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
18286
18290
|
return item.path === path;
|
|
18287
18291
|
})) {
|
|
18288
18292
|
parentKey = node.path;
|
|
18289
|
-
} else if (
|
|
18290
|
-
parentKey =
|
|
18293
|
+
} else if (getParentKey(path, node.children)) {
|
|
18294
|
+
parentKey = getParentKey(path, node.children);
|
|
18291
18295
|
}
|
|
18292
18296
|
}
|
|
18293
18297
|
}
|
|
@@ -18318,7 +18322,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18318
18322
|
var treeData = _this.state.treeData;
|
|
18319
18323
|
var expandedKeys = dataList.map(function (item) {
|
|
18320
18324
|
if (item.name.indexOf(value) > -1) {
|
|
18321
|
-
return
|
|
18325
|
+
return getParentKey(item.path, treeData);
|
|
18322
18326
|
}
|
|
18323
18327
|
return null;
|
|
18324
18328
|
}).filter(function (item, i, self) {
|
|
@@ -18332,22 +18336,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18332
18336
|
};
|
|
18333
18337
|
_this.getPathList = function (originData) {
|
|
18334
18338
|
var pathList = [];
|
|
18335
|
-
var
|
|
18339
|
+
var getList = function getList(data) {
|
|
18336
18340
|
if (Array.isArray(data)) {
|
|
18337
18341
|
data.forEach(function (item) {
|
|
18338
18342
|
pathList.push(item.path);
|
|
18339
18343
|
if (item.children) {
|
|
18340
|
-
|
|
18344
|
+
getList(item.children);
|
|
18341
18345
|
}
|
|
18342
18346
|
});
|
|
18343
18347
|
} else {
|
|
18344
18348
|
pathList.push(data.path);
|
|
18345
18349
|
if (data.children) {
|
|
18346
|
-
|
|
18350
|
+
getList(data.children);
|
|
18347
18351
|
}
|
|
18348
18352
|
}
|
|
18349
18353
|
};
|
|
18350
|
-
|
|
18354
|
+
getList(originData);
|
|
18351
18355
|
return pathList;
|
|
18352
18356
|
};
|
|
18353
18357
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18356,18 +18360,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18356
18360
|
customerMenuData = _this$props.customerMenuData,
|
|
18357
18361
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18358
18362
|
var filterItem;
|
|
18359
|
-
var
|
|
18363
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
18360
18364
|
menuData.forEach(function (item) {
|
|
18361
18365
|
if (item.path === path) {
|
|
18362
18366
|
filterItem = _objectSpread2({}, item);
|
|
18363
18367
|
return;
|
|
18364
18368
|
}
|
|
18365
18369
|
if (item.children) {
|
|
18366
|
-
|
|
18370
|
+
filterMenuItem(item.children);
|
|
18367
18371
|
}
|
|
18368
18372
|
});
|
|
18369
18373
|
};
|
|
18370
|
-
|
|
18374
|
+
filterMenuItem(treeData);
|
|
18371
18375
|
var addPathList = _this.getPathList(filterItem);
|
|
18372
18376
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18373
18377
|
var isRepet = false;
|
|
@@ -18397,8 +18401,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18397
18401
|
return item.path === '/';
|
|
18398
18402
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18399
18403
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18400
|
-
|
|
18401
|
-
|
|
18404
|
+
setMenuTreeData(routesData);
|
|
18405
|
+
generateList(routesData);
|
|
18402
18406
|
this.setState({
|
|
18403
18407
|
treeData: routesData
|
|
18404
18408
|
});
|
|
@@ -18412,16 +18416,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18412
18416
|
expandedKeys = _this$state.expandedKeys,
|
|
18413
18417
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18414
18418
|
treeData = _this$state.treeData;
|
|
18415
|
-
var
|
|
18419
|
+
var loop = function loop(data) {
|
|
18416
18420
|
return data.map(function (item) {
|
|
18417
18421
|
var index = item.name.indexOf(searchValue);
|
|
18418
18422
|
var beforeStr = item.name.substr(0, index);
|
|
18419
18423
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18420
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18424
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18421
18425
|
style: {
|
|
18422
18426
|
color: '#f50'
|
|
18423
18427
|
}
|
|
18424
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18428
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18425
18429
|
if (item.children && item.children.length) {
|
|
18426
18430
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18427
18431
|
path: item.path,
|
|
@@ -18443,7 +18447,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18443
18447
|
width: 18,
|
|
18444
18448
|
src: arrowRight
|
|
18445
18449
|
}))))
|
|
18446
|
-
},
|
|
18450
|
+
}, loop(item.children));
|
|
18447
18451
|
}
|
|
18448
18452
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18449
18453
|
path: item.path,
|
|
@@ -18493,7 +18497,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18493
18497
|
onExpand: this.onExpand,
|
|
18494
18498
|
expandedKeys: expandedKeys,
|
|
18495
18499
|
autoExpandParent: autoExpandParent
|
|
18496
|
-
},
|
|
18500
|
+
}, loop(treeData))));
|
|
18497
18501
|
}
|
|
18498
18502
|
}]);
|
|
18499
18503
|
}(React$1.Component);
|
|
@@ -18526,24 +18530,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18526
18530
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18527
18531
|
var dragObj;
|
|
18528
18532
|
var finalDropItem;
|
|
18529
|
-
var
|
|
18533
|
+
var loop = function loop(data, path, callback) {
|
|
18530
18534
|
for (var i = 0; i < data.length; i++) {
|
|
18531
18535
|
if (data[i].path === path) {
|
|
18532
18536
|
return callback(data[i], i, data);
|
|
18533
18537
|
}
|
|
18534
18538
|
if (data[i].children) {
|
|
18535
|
-
|
|
18539
|
+
loop(data[i].children, path, callback);
|
|
18536
18540
|
}
|
|
18537
18541
|
}
|
|
18538
18542
|
};
|
|
18539
18543
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18540
|
-
|
|
18544
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
18541
18545
|
arr.splice(index, 1);
|
|
18542
18546
|
dragObj = item;
|
|
18543
18547
|
});
|
|
18544
18548
|
if (!info.dropToGap) {
|
|
18545
18549
|
// Drop on the content
|
|
18546
|
-
|
|
18550
|
+
loop(data, dropKey, function (item) {
|
|
18547
18551
|
item.children = item.children || [];
|
|
18548
18552
|
item.children.unshift(dragObj);
|
|
18549
18553
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18554,7 +18558,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18554
18558
|
// Is expanded
|
|
18555
18559
|
dropPosition === 1 // On the bottom gap
|
|
18556
18560
|
) {
|
|
18557
|
-
|
|
18561
|
+
loop(data, dropKey, function (item) {
|
|
18558
18562
|
item.children = item.children || [];
|
|
18559
18563
|
item.children.unshift(dragObj);
|
|
18560
18564
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18562,7 +18566,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18562
18566
|
} else {
|
|
18563
18567
|
var ar;
|
|
18564
18568
|
var i;
|
|
18565
|
-
|
|
18569
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
18566
18570
|
ar = arr;
|
|
18567
18571
|
i = index;
|
|
18568
18572
|
});
|
|
@@ -18601,17 +18605,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18601
18605
|
title: '编辑名称',
|
|
18602
18606
|
callBack: function callBack(newName) {
|
|
18603
18607
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18604
|
-
var
|
|
18608
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18605
18609
|
oldTreeData.forEach(function (treeItem) {
|
|
18606
18610
|
if (treeItem.path === item.path) {
|
|
18607
18611
|
treeItem.name = newName;
|
|
18608
18612
|
}
|
|
18609
18613
|
if (treeItem.children) {
|
|
18610
|
-
|
|
18614
|
+
editTreeDataName(treeItem.children);
|
|
18611
18615
|
}
|
|
18612
18616
|
});
|
|
18613
18617
|
};
|
|
18614
|
-
|
|
18618
|
+
editTreeDataName(oldTreeData);
|
|
18615
18619
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18616
18620
|
_this.setState({
|
|
18617
18621
|
modalInfo: {
|
|
@@ -18656,7 +18660,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18656
18660
|
title: '新增子目录',
|
|
18657
18661
|
callBack: function callBack(newName) {
|
|
18658
18662
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18659
|
-
var
|
|
18663
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
18660
18664
|
oldTreeData.forEach(function (treeItem) {
|
|
18661
18665
|
if (treeItem.path === item.path) {
|
|
18662
18666
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18668,11 +18672,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18668
18672
|
}];
|
|
18669
18673
|
}
|
|
18670
18674
|
if (treeItem.children) {
|
|
18671
|
-
|
|
18675
|
+
addChildFolder(treeItem.children);
|
|
18672
18676
|
}
|
|
18673
18677
|
});
|
|
18674
18678
|
};
|
|
18675
|
-
|
|
18679
|
+
addChildFolder(oldTreeData);
|
|
18676
18680
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18677
18681
|
_this.setState({
|
|
18678
18682
|
modalInfo: {
|
|
@@ -18731,7 +18735,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18731
18735
|
var _this$state = this.state,
|
|
18732
18736
|
modalInfo = _this$state.modalInfo,
|
|
18733
18737
|
checkedKeys = _this$state.checkedKeys;
|
|
18734
|
-
var
|
|
18738
|
+
var loop = function loop(data) {
|
|
18735
18739
|
return data.map(function (item) {
|
|
18736
18740
|
if (item.children && item.children.length) {
|
|
18737
18741
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -18748,7 +18752,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18748
18752
|
e.stopPropagation();
|
|
18749
18753
|
}
|
|
18750
18754
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
18751
|
-
},
|
|
18755
|
+
}, loop(item.children));
|
|
18752
18756
|
}
|
|
18753
18757
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
18754
18758
|
path: item.path,
|
|
@@ -18827,7 +18831,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18827
18831
|
children: 'children'
|
|
18828
18832
|
},
|
|
18829
18833
|
onDrop: this.onDrop
|
|
18830
|
-
},
|
|
18834
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
18831
18835
|
width: 600,
|
|
18832
18836
|
bodyStyle: {
|
|
18833
18837
|
paddingTop: '32px',
|
|
@@ -18940,7 +18944,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18940
18944
|
pathname: item.path
|
|
18941
18945
|
});
|
|
18942
18946
|
};
|
|
18943
|
-
var
|
|
18947
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
18944
18948
|
return menuData.map(function (item) {
|
|
18945
18949
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18946
18950
|
style: {
|
|
@@ -18955,7 +18959,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18955
18959
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18956
18960
|
paddingLeft: '4px'
|
|
18957
18961
|
}
|
|
18958
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
18962
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
18959
18963
|
});
|
|
18960
18964
|
};
|
|
18961
18965
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18981,7 +18985,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18981
18985
|
style: {
|
|
18982
18986
|
paddingLeft: '5px'
|
|
18983
18987
|
}
|
|
18984
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18988
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18985
18989
|
style: {
|
|
18986
18990
|
left: isDrawer ? 140 : 0
|
|
18987
18991
|
},
|
|
@@ -19002,7 +19006,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19002
19006
|
visible: isDrawer
|
|
19003
19007
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19004
19008
|
className: 'menu_title_line'
|
|
19005
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19009
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19006
19010
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19007
19011
|
style: {
|
|
19008
19012
|
fontWeight: '600',
|
|
@@ -19076,7 +19080,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19076
19080
|
return item.path === '/';
|
|
19077
19081
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19078
19082
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19079
|
-
|
|
19083
|
+
setMenuTreeData(routesData);
|
|
19080
19084
|
routesData.forEach(function (item) {
|
|
19081
19085
|
if (item.children) {
|
|
19082
19086
|
routesDataList.push(item);
|
|
@@ -19106,7 +19110,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19106
19110
|
setHeight(clientHeight - 190);
|
|
19107
19111
|
setDrawHeight(clientHeight - 70);
|
|
19108
19112
|
};
|
|
19109
|
-
var
|
|
19113
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19110
19114
|
if (!child.hideInMenu && child.children) {
|
|
19111
19115
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19112
19116
|
style: {
|
|
@@ -19116,7 +19120,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19116
19120
|
}, formatMessage({
|
|
19117
19121
|
id: "".concat(child.locale)
|
|
19118
19122
|
})), child.children.map(function (menuItem) {
|
|
19119
|
-
return
|
|
19123
|
+
return renderChildItem(menuItem);
|
|
19120
19124
|
}));
|
|
19121
19125
|
} else if (!child.hideInMenu && child.path) {
|
|
19122
19126
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19258,7 +19262,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19258
19262
|
onMenuClick(e, item);
|
|
19259
19263
|
}
|
|
19260
19264
|
}, item.name);
|
|
19261
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19265
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
19262
19266
|
className: 'search_menu_content'
|
|
19263
19267
|
}, SearhData.map(function (item) {
|
|
19264
19268
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19267,7 +19271,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19267
19271
|
},
|
|
19268
19272
|
key: item.path
|
|
19269
19273
|
}, item.name);
|
|
19270
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19274
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19271
19275
|
style: {
|
|
19272
19276
|
height: "".concat(rightMenuHeight, "px"),
|
|
19273
19277
|
overflowY: 'scroll',
|
|
@@ -19279,7 +19283,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19279
19283
|
className: 'drawerWarp_right'
|
|
19280
19284
|
}, homepageData && homepageData.filter(function (d) {
|
|
19281
19285
|
return !d.hideInMenu;
|
|
19282
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19286
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
19283
19287
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19284
19288
|
dataSource: homepageData,
|
|
19285
19289
|
renderItem: function renderItem(child) {
|
|
@@ -19320,7 +19324,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19320
19324
|
bordered: true,
|
|
19321
19325
|
dataSource: item.children,
|
|
19322
19326
|
renderItem: function renderItem(child) {
|
|
19323
|
-
return
|
|
19327
|
+
return renderChildItem(child);
|
|
19324
19328
|
}
|
|
19325
19329
|
});
|
|
19326
19330
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19478,10 +19482,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19478
19482
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19479
19483
|
var menuKeys = [];
|
|
19480
19484
|
var docsId = [];
|
|
19481
|
-
var
|
|
19485
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19482
19486
|
data.forEach(function (item) {
|
|
19483
19487
|
if (item.children && item.children.length > 0) {
|
|
19484
|
-
|
|
19488
|
+
getLimitedMenuKeys(item.children);
|
|
19485
19489
|
} else {
|
|
19486
19490
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19487
19491
|
menuKeys.push(originPath);
|
|
@@ -19492,7 +19496,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19492
19496
|
});
|
|
19493
19497
|
};
|
|
19494
19498
|
try {
|
|
19495
|
-
|
|
19499
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
19496
19500
|
} catch (e) {}
|
|
19497
19501
|
return {
|
|
19498
19502
|
menuKeys: menuKeys,
|
|
@@ -19726,10 +19730,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19726
19730
|
return (node.path || '').includes('all-general-documents');
|
|
19727
19731
|
};
|
|
19728
19732
|
// 递归获取树列表
|
|
19729
|
-
var
|
|
19733
|
+
var getTreeList = function getTreeList(data) {
|
|
19730
19734
|
data.forEach(function (node) {
|
|
19731
19735
|
if (node.routes && node.routes.length > 0) {
|
|
19732
|
-
|
|
19736
|
+
getTreeList(node.routes);
|
|
19733
19737
|
return;
|
|
19734
19738
|
}
|
|
19735
19739
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -19760,7 +19764,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19760
19764
|
}
|
|
19761
19765
|
});
|
|
19762
19766
|
};
|
|
19763
|
-
|
|
19767
|
+
getTreeList(treeData);
|
|
19764
19768
|
return treeList;
|
|
19765
19769
|
};
|
|
19766
19770
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20389,7 +20393,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20389
20393
|
updateState = _ref8.updateState;
|
|
20390
20394
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20391
20395
|
className: "tab_title_content"
|
|
20392
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20396
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20393
20397
|
info: item,
|
|
20394
20398
|
operateFun: _this3.operateFun,
|
|
20395
20399
|
listenRouterState: listenRouterState
|
|
@@ -20525,7 +20529,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20525
20529
|
};
|
|
20526
20530
|
}
|
|
20527
20531
|
var OperationsSlot = {
|
|
20528
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20532
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20529
20533
|
className: 'tab_left_operate'
|
|
20530
20534
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20531
20535
|
onClick: function onClick() {
|
|
@@ -20541,7 +20545,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20541
20545
|
_this3.setTabNavTransLate(-100);
|
|
20542
20546
|
}
|
|
20543
20547
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20544
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20548
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20545
20549
|
style: {
|
|
20546
20550
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20547
20551
|
},
|
|
@@ -20639,7 +20643,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20639
20643
|
onMouseLeave: function onMouseLeave() {
|
|
20640
20644
|
_this3.setShowMenu(false);
|
|
20641
20645
|
}
|
|
20642
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20646
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20643
20647
|
style: {
|
|
20644
20648
|
position: 'absolute',
|
|
20645
20649
|
top: '14px',
|
|
@@ -20658,7 +20662,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20658
20662
|
postMenuData: function postMenuData(menus) {
|
|
20659
20663
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20660
20664
|
},
|
|
20661
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20665
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20662
20666
|
ref: this.allFunc,
|
|
20663
20667
|
itemPath: itemPath,
|
|
20664
20668
|
handleClose: this.handleClose,
|
|
@@ -20676,7 +20680,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20676
20680
|
},
|
|
20677
20681
|
menu: {
|
|
20678
20682
|
request: function () {
|
|
20679
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20683
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20680
20684
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20681
20685
|
while (1) switch (_context.prev = _context.next) {
|
|
20682
20686
|
case 0:
|
|
@@ -20811,7 +20815,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
20811
20815
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
20812
20816
|
timeFormat = _this$props4.timeFormat,
|
|
20813
20817
|
transparentProps = _this$props4.transparentProps;
|
|
20814
|
-
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({
|
|
20818
|
+
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({
|
|
20815
20819
|
getDictionarySource: getDictionarySource,
|
|
20816
20820
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
20817
20821
|
timeFormat: timeFormat
|
|
@@ -20835,12 +20839,12 @@ var index$5 = (function (props) {
|
|
|
20835
20839
|
});
|
|
20836
20840
|
|
|
20837
20841
|
// @ts-nocheck
|
|
20838
|
-
var
|
|
20842
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
20839
20843
|
var result = [];
|
|
20840
20844
|
columns.forEach(function (column) {
|
|
20841
20845
|
if (column.children) {
|
|
20842
20846
|
result.push(column);
|
|
20843
|
-
result.push.apply(result,
|
|
20847
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
20844
20848
|
} else {
|
|
20845
20849
|
result.push(column);
|
|
20846
20850
|
}
|
|
@@ -20849,7 +20853,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
20849
20853
|
};
|
|
20850
20854
|
var convertToRows = function convertToRows(originColumns) {
|
|
20851
20855
|
var maxLevel = 1;
|
|
20852
|
-
var
|
|
20856
|
+
var traverse = function traverse(column, parent) {
|
|
20853
20857
|
if (parent) {
|
|
20854
20858
|
column.level = parent.level + 1;
|
|
20855
20859
|
if (maxLevel < column.level) {
|
|
@@ -20859,7 +20863,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20859
20863
|
if (column.children) {
|
|
20860
20864
|
var colSpan = 0;
|
|
20861
20865
|
column.children.forEach(function (subColumn) {
|
|
20862
|
-
|
|
20866
|
+
traverse(subColumn, column);
|
|
20863
20867
|
colSpan += subColumn.colSpan;
|
|
20864
20868
|
});
|
|
20865
20869
|
column.colSpan = colSpan;
|
|
@@ -20869,13 +20873,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20869
20873
|
};
|
|
20870
20874
|
originColumns.forEach(function (column) {
|
|
20871
20875
|
column.level = 1;
|
|
20872
|
-
|
|
20876
|
+
traverse(column);
|
|
20873
20877
|
});
|
|
20874
20878
|
var rows = [];
|
|
20875
20879
|
for (var i = 0; i < maxLevel; i++) {
|
|
20876
20880
|
rows.push([]);
|
|
20877
20881
|
}
|
|
20878
|
-
var allColumns =
|
|
20882
|
+
var allColumns = getAllColumns(originColumns);
|
|
20879
20883
|
allColumns.forEach(function (column) {
|
|
20880
20884
|
if (!column.children) {
|
|
20881
20885
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20915,7 +20919,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20915
20919
|
};
|
|
20916
20920
|
var headersToRows = function headersToRows(originColumns) {
|
|
20917
20921
|
var maxLevel = 1;
|
|
20918
|
-
var
|
|
20922
|
+
var traverse = function traverse(column, parent) {
|
|
20919
20923
|
if (parent) {
|
|
20920
20924
|
//计算当前元素属于第几个层级
|
|
20921
20925
|
column.level = parent.level + 1;
|
|
@@ -20928,7 +20932,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20928
20932
|
var colSpan = 0;
|
|
20929
20933
|
column.children.forEach(function (subColumn) {
|
|
20930
20934
|
//进行递归
|
|
20931
|
-
|
|
20935
|
+
traverse(subColumn, column);
|
|
20932
20936
|
colSpan += subColumn.colSpan;
|
|
20933
20937
|
});
|
|
20934
20938
|
column.colSpan = colSpan;
|
|
@@ -20938,14 +20942,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20938
20942
|
};
|
|
20939
20943
|
originColumns.forEach(function (column) {
|
|
20940
20944
|
column.level = 1;
|
|
20941
|
-
|
|
20945
|
+
traverse(column);
|
|
20942
20946
|
});
|
|
20943
20947
|
var rows = [];
|
|
20944
20948
|
var lastData = [];
|
|
20945
20949
|
for (var i = 0; i < maxLevel; i++) {
|
|
20946
20950
|
rows.push([]);
|
|
20947
20951
|
}
|
|
20948
|
-
var allColumns =
|
|
20952
|
+
var allColumns = getAllColumns(originColumns);
|
|
20949
20953
|
allColumns.forEach(function (column) {
|
|
20950
20954
|
if (!column.children) {
|
|
20951
20955
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26962,7 +26966,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26962
26966
|
}
|
|
26963
26967
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26964
26968
|
};
|
|
26965
|
-
var
|
|
26969
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
26966
26970
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26967
26971
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26968
26972
|
var children = hightLightData.children,
|
|
@@ -26973,7 +26977,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26973
26977
|
lineEnd = _loc2[2];
|
|
26974
26978
|
if (children) {
|
|
26975
26979
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26976
|
-
return
|
|
26980
|
+
return hasHighLightChildren(v, highLightLine);
|
|
26977
26981
|
});
|
|
26978
26982
|
}
|
|
26979
26983
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26985,7 +26989,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26985
26989
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26986
26990
|
data.forEach(function (node) {
|
|
26987
26991
|
if (!node) return;
|
|
26988
|
-
node.toggled =
|
|
26992
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
26989
26993
|
node.active = isHightLight(node, highLightLine);
|
|
26990
26994
|
if (node.children) {
|
|
26991
26995
|
if (node.active) {
|
|
@@ -28416,7 +28420,7 @@ var valueType = {
|
|
|
28416
28420
|
};
|
|
28417
28421
|
|
|
28418
28422
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28419
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28423
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28420
28424
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28421
28425
|
while (1) switch (_context.prev = _context.next) {
|
|
28422
28426
|
case 0:
|
|
@@ -28484,7 +28488,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28484
28488
|
value: false
|
|
28485
28489
|
}];
|
|
28486
28490
|
var ref = useRef();
|
|
28487
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28491
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28488
28492
|
var _ref$current, source;
|
|
28489
28493
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28490
28494
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28598,7 +28602,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28598
28602
|
source: {
|
|
28599
28603
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28600
28604
|
type: function () {
|
|
28601
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28605
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28602
28606
|
var form, values, name, relates, source;
|
|
28603
28607
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28604
28608
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29078,7 +29082,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29078
29082
|
source: {
|
|
29079
29083
|
relates: ['choiceType', 'inputType'],
|
|
29080
29084
|
type: function () {
|
|
29081
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29085
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29082
29086
|
var values, name, form, source;
|
|
29083
29087
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29084
29088
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29300,7 +29304,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29300
29304
|
width: 900,
|
|
29301
29305
|
maskClosable: false,
|
|
29302
29306
|
onOk: function () {
|
|
29303
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29307
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29304
29308
|
var _ref$current4, _res$editableStatus;
|
|
29305
29309
|
var res, _res$defaultValue;
|
|
29306
29310
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29372,7 +29376,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29372
29376
|
}()
|
|
29373
29377
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29374
29378
|
ref: ref
|
|
29375
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29379
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29376
29380
|
};
|
|
29377
29381
|
|
|
29378
29382
|
// @ts-nocheck
|
|
@@ -29986,7 +29990,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29986
29990
|
return setVisible(false);
|
|
29987
29991
|
},
|
|
29988
29992
|
className: 'customFieldsDrawer'
|
|
29989
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
29993
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
29990
29994
|
style: {
|
|
29991
29995
|
display: 'flex'
|
|
29992
29996
|
}
|
|
@@ -29995,13 +29999,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29995
29999
|
flex: 1,
|
|
29996
30000
|
width: 500
|
|
29997
30001
|
}
|
|
29998
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30002
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29999
30003
|
style: {
|
|
30000
30004
|
padding: "10px 0",
|
|
30001
30005
|
fontSize: "16px",
|
|
30002
30006
|
fontWeight: "bolder"
|
|
30003
30007
|
}
|
|
30004
|
-
}, "\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", {
|
|
30008
|
+
}, "\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", {
|
|
30005
30009
|
style: {
|
|
30006
30010
|
flex: 1
|
|
30007
30011
|
}
|
|
@@ -30010,7 +30014,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30010
30014
|
onRun: onClickRun,
|
|
30011
30015
|
value: jsonEditorVal,
|
|
30012
30016
|
shallowHeight: height
|
|
30013
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30017
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
30014
30018
|
defaultActiveKey: activeKey,
|
|
30015
30019
|
onChange: function onChange(v) {
|
|
30016
30020
|
return setActiveKey(v);
|
|
@@ -30027,13 +30031,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30027
30031
|
flex: 1,
|
|
30028
30032
|
width: 500
|
|
30029
30033
|
}
|
|
30030
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30034
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30031
30035
|
style: {
|
|
30032
30036
|
padding: "10px 0",
|
|
30033
30037
|
fontSize: "16px",
|
|
30034
30038
|
fontWeight: "bolder"
|
|
30035
30039
|
}
|
|
30036
|
-
}, "\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", {
|
|
30040
|
+
}, "\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", {
|
|
30037
30041
|
style: {
|
|
30038
30042
|
flex: 1
|
|
30039
30043
|
}
|
|
@@ -30055,13 +30059,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30055
30059
|
flex: 1,
|
|
30056
30060
|
width: 500
|
|
30057
30061
|
}
|
|
30058
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30062
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30059
30063
|
style: {
|
|
30060
30064
|
padding: "10px 0",
|
|
30061
30065
|
fontSize: "16px",
|
|
30062
30066
|
fontWeight: "bolder"
|
|
30063
30067
|
}
|
|
30064
|
-
}, "\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", {
|
|
30068
|
+
}, "\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", {
|
|
30065
30069
|
style: {
|
|
30066
30070
|
flex: 1
|
|
30067
30071
|
}
|
|
@@ -30207,7 +30211,7 @@ function getMetaData(_x) {
|
|
|
30207
30211
|
|
|
30208
30212
|
// 获取数据
|
|
30209
30213
|
function _getMetaData() {
|
|
30210
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30214
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30211
30215
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30212
30216
|
while (1) switch (_context.prev = _context.next) {
|
|
30213
30217
|
case 0:
|
|
@@ -30429,7 +30433,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30429
30433
|
tableState = _useState4[0],
|
|
30430
30434
|
setTableState = _useState4[1];
|
|
30431
30435
|
var handleOpen = /*#__PURE__*/function () {
|
|
30432
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30436
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30433
30437
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30434
30438
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30435
30439
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -30748,7 +30752,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30748
30752
|
destroyOnClose: true
|
|
30749
30753
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
30750
30754
|
ref: queryTableRef
|
|
30751
|
-
}, 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, {
|
|
30755
|
+
}, 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, {
|
|
30752
30756
|
justify: "center",
|
|
30753
30757
|
style: {
|
|
30754
30758
|
marginBottom: 30,
|
|
@@ -30864,7 +30868,7 @@ var CustomSelector = (function (props) {
|
|
|
30864
30868
|
var _props$ctx7;
|
|
30865
30869
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30866
30870
|
}
|
|
30867
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30871
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
30868
30872
|
type: "primary",
|
|
30869
30873
|
style: {
|
|
30870
30874
|
width: '30px',
|
|
@@ -30950,7 +30954,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30950
30954
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30951
30955
|
handSource = _useState2[0],
|
|
30952
30956
|
setHandSource = _useState2[1];
|
|
30953
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30957
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30954
30958
|
var resData, data;
|
|
30955
30959
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30956
30960
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31102,7 +31106,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31102
31106
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31103
31107
|
}
|
|
31104
31108
|
function _getRegularThresholdRange() {
|
|
31105
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31109
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31106
31110
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31107
31111
|
while (1) switch (_context.prev = _context.next) {
|
|
31108
31112
|
case 0:
|
|
@@ -31256,7 +31260,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31256
31260
|
};
|
|
31257
31261
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31258
31262
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31259
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31263
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31260
31264
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31261
31265
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31262
31266
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32201,7 +32205,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32201
32205
|
isAll: true,
|
|
32202
32206
|
needNameAndCode: true,
|
|
32203
32207
|
notChangeOnSelect: true,
|
|
32204
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32208
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32205
32209
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32206
32210
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32207
32211
|
case 0:
|
|
@@ -32250,7 +32254,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32250
32254
|
isAll: true,
|
|
32251
32255
|
needNameAndCode: true,
|
|
32252
32256
|
notChangeOnSelect: true,
|
|
32253
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32257
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32254
32258
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32255
32259
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32256
32260
|
case 0:
|
|
@@ -32301,7 +32305,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32301
32305
|
isAll: true,
|
|
32302
32306
|
needNameAndCode: true,
|
|
32303
32307
|
notChangeOnSelect: true,
|
|
32304
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32308
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32305
32309
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32306
32310
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32307
32311
|
case 0:
|
|
@@ -34265,7 +34269,7 @@ var App$1 = function App(_ref) {
|
|
|
34265
34269
|
borderRadius: '5px',
|
|
34266
34270
|
cursor: 'pointer'
|
|
34267
34271
|
}
|
|
34268
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34272
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
34269
34273
|
autoFocus: true,
|
|
34270
34274
|
onClick: function onClick(e) {
|
|
34271
34275
|
return e.stopPropagation();
|
|
@@ -34552,7 +34556,7 @@ function RenderCompItem(props) {
|
|
|
34552
34556
|
dictData = _useState2[0],
|
|
34553
34557
|
setDictData = _useState2[1];
|
|
34554
34558
|
var getDictData = /*#__PURE__*/function () {
|
|
34555
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34559
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34556
34560
|
var _data$map;
|
|
34557
34561
|
var data;
|
|
34558
34562
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34594,7 +34598,7 @@ function RenderCompItem(props) {
|
|
|
34594
34598
|
var style2 = {
|
|
34595
34599
|
width: '100px'
|
|
34596
34600
|
};
|
|
34597
|
-
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, {
|
|
34601
|
+
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, {
|
|
34598
34602
|
disabled: disabled,
|
|
34599
34603
|
allowClear: true,
|
|
34600
34604
|
onClear: function onClear() {
|
|
@@ -34605,7 +34609,7 @@ function RenderCompItem(props) {
|
|
|
34605
34609
|
onBlur: function onBlur(e) {
|
|
34606
34610
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34607
34611
|
}
|
|
34608
|
-
})) || 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, {
|
|
34612
|
+
})) || 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, {
|
|
34609
34613
|
disabled: disabled,
|
|
34610
34614
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34611
34615
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34618,7 +34622,7 @@ function RenderCompItem(props) {
|
|
|
34618
34622
|
onChange: function onChange(value) {
|
|
34619
34623
|
handleEdit(ites.code, value);
|
|
34620
34624
|
}
|
|
34621
|
-
})) || 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, {
|
|
34625
|
+
})) || 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, {
|
|
34622
34626
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34623
34627
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34624
34628
|
disabled: disabled,
|
|
@@ -34628,7 +34632,7 @@ function RenderCompItem(props) {
|
|
|
34628
34632
|
onChange: function onChange(value, dateString) {
|
|
34629
34633
|
handleEdit(ites.code, dateString);
|
|
34630
34634
|
}
|
|
34631
|
-
})) || 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, {
|
|
34635
|
+
})) || 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, {
|
|
34632
34636
|
showTime: true,
|
|
34633
34637
|
disabled: disabled,
|
|
34634
34638
|
defaultValue: ites.defaultValue,
|
|
@@ -34637,7 +34641,7 @@ function RenderCompItem(props) {
|
|
|
34637
34641
|
onChange: function onChange(value, timeString) {
|
|
34638
34642
|
handleEdit(ites.code, timeString);
|
|
34639
34643
|
}
|
|
34640
|
-
})) || 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, {
|
|
34644
|
+
})) || 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, {
|
|
34641
34645
|
disabled: disabled,
|
|
34642
34646
|
defaultChecked: !!ites.defaultValue,
|
|
34643
34647
|
style: style2,
|
|
@@ -34645,7 +34649,7 @@ function RenderCompItem(props) {
|
|
|
34645
34649
|
onChange: function onChange(value) {
|
|
34646
34650
|
handleEdit(ites.code, value);
|
|
34647
34651
|
}
|
|
34648
|
-
})) || 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({
|
|
34652
|
+
})) || 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({
|
|
34649
34653
|
disabled: disabled,
|
|
34650
34654
|
allowClear: true,
|
|
34651
34655
|
showArrow: true
|
|
@@ -34663,7 +34667,7 @@ function RenderCompItem(props) {
|
|
|
34663
34667
|
key: it,
|
|
34664
34668
|
value: it
|
|
34665
34669
|
}, ites.enumeration[it]);
|
|
34666
|
-
}))) || 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, {
|
|
34670
|
+
}))) || 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, {
|
|
34667
34671
|
disabled: disabled,
|
|
34668
34672
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34669
34673
|
defaultValue: ites.defaultValue,
|
|
@@ -34673,7 +34677,7 @@ function RenderCompItem(props) {
|
|
|
34673
34677
|
handleEdit(ites.code, value);
|
|
34674
34678
|
},
|
|
34675
34679
|
dictionaryCode: ites.dictionaryCode
|
|
34676
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34680
|
+
})) || 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, {
|
|
34677
34681
|
selectBusinessType: "physicalWarehouse",
|
|
34678
34682
|
selectProps: _objectSpread2({
|
|
34679
34683
|
style: styleCommon,
|
|
@@ -34695,7 +34699,7 @@ function RenderCompItem(props) {
|
|
|
34695
34699
|
getPopupContainer: function getPopupContainer() {
|
|
34696
34700
|
return document.body;
|
|
34697
34701
|
}
|
|
34698
|
-
})) || 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, {
|
|
34702
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34699
34703
|
selectBusinessType: "realWarehouse",
|
|
34700
34704
|
selectProps: _objectSpread2({
|
|
34701
34705
|
style: styleCommon,
|
|
@@ -34717,7 +34721,7 @@ function RenderCompItem(props) {
|
|
|
34717
34721
|
getPopupContainer: function getPopupContainer() {
|
|
34718
34722
|
return document.body;
|
|
34719
34723
|
}
|
|
34720
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34724
|
+
})) || 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, {
|
|
34721
34725
|
selectBusinessType: "virtualWarehouse",
|
|
34722
34726
|
selectProps: _objectSpread2({
|
|
34723
34727
|
style: styleCommon,
|
|
@@ -34739,7 +34743,7 @@ function RenderCompItem(props) {
|
|
|
34739
34743
|
getPopupContainer: function getPopupContainer() {
|
|
34740
34744
|
return document.body;
|
|
34741
34745
|
}
|
|
34742
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34746
|
+
})) || 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, {
|
|
34743
34747
|
selectBusinessType: "channelWarehouse",
|
|
34744
34748
|
selectProps: _objectSpread2({
|
|
34745
34749
|
style: styleCommon,
|
|
@@ -34761,7 +34765,7 @@ function RenderCompItem(props) {
|
|
|
34761
34765
|
getPopupContainer: function getPopupContainer() {
|
|
34762
34766
|
return document.body;
|
|
34763
34767
|
}
|
|
34764
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34768
|
+
})) || 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, {
|
|
34765
34769
|
selectBusinessType: "spuCommodity",
|
|
34766
34770
|
selectProps: _objectSpread2({
|
|
34767
34771
|
style: styleCommon,
|
|
@@ -34782,7 +34786,7 @@ function RenderCompItem(props) {
|
|
|
34782
34786
|
getPopupContainer: function getPopupContainer() {
|
|
34783
34787
|
return document.body;
|
|
34784
34788
|
}
|
|
34785
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34789
|
+
})) || 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, {
|
|
34786
34790
|
selectBusinessType: "skuCommodity",
|
|
34787
34791
|
selectProps: _objectSpread2({
|
|
34788
34792
|
style: styleCommon,
|
|
@@ -34803,13 +34807,13 @@ function RenderCompItem(props) {
|
|
|
34803
34807
|
getPopupContainer: function getPopupContainer() {
|
|
34804
34808
|
return document.body;
|
|
34805
34809
|
}
|
|
34806
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
34810
|
+
})) || 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, {
|
|
34807
34811
|
disabled: disabled,
|
|
34808
34812
|
isAll: true,
|
|
34809
34813
|
needNameAndCode: true,
|
|
34810
34814
|
notChangeOnSelect: true,
|
|
34811
34815
|
initRequestSource: function () {
|
|
34812
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34816
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34813
34817
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34814
34818
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34815
34819
|
case 0:
|
|
@@ -34851,7 +34855,7 @@ function RenderCompItem(props) {
|
|
|
34851
34855
|
getPopupContainer: function getPopupContainer() {
|
|
34852
34856
|
return document.body;
|
|
34853
34857
|
}
|
|
34854
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34858
|
+
})) || 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, {
|
|
34855
34859
|
disabled: disabled,
|
|
34856
34860
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34857
34861
|
businessType: "department",
|
|
@@ -34864,7 +34868,7 @@ function RenderCompItem(props) {
|
|
|
34864
34868
|
getPopupContainer: function getPopupContainer() {
|
|
34865
34869
|
return document.body;
|
|
34866
34870
|
}
|
|
34867
|
-
})) || 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, {
|
|
34871
|
+
})) || 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, {
|
|
34868
34872
|
disabled: disabled,
|
|
34869
34873
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34870
34874
|
businessType: "purchase-organization",
|
|
@@ -34877,7 +34881,7 @@ function RenderCompItem(props) {
|
|
|
34877
34881
|
getPopupContainer: function getPopupContainer() {
|
|
34878
34882
|
return document.body;
|
|
34879
34883
|
}
|
|
34880
|
-
})) || 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, {
|
|
34884
|
+
})) || 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, {
|
|
34881
34885
|
disabled: disabled,
|
|
34882
34886
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34883
34887
|
businessType: "sales-organization",
|
|
@@ -34890,7 +34894,7 @@ function RenderCompItem(props) {
|
|
|
34890
34894
|
getPopupContainer: function getPopupContainer() {
|
|
34891
34895
|
return document.body;
|
|
34892
34896
|
}
|
|
34893
|
-
})) || 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, {
|
|
34897
|
+
})) || 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, {
|
|
34894
34898
|
selectBusinessType: "supplier2",
|
|
34895
34899
|
selectProps: _objectSpread2({
|
|
34896
34900
|
style: styleCommon,
|
|
@@ -34911,7 +34915,7 @@ function RenderCompItem(props) {
|
|
|
34911
34915
|
getPopupContainer: function getPopupContainer() {
|
|
34912
34916
|
return document.body;
|
|
34913
34917
|
}
|
|
34914
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34918
|
+
})) || 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, {
|
|
34915
34919
|
selectBusinessType: "customer2",
|
|
34916
34920
|
selectProps: _objectSpread2({
|
|
34917
34921
|
style: styleCommon,
|
|
@@ -34932,7 +34936,7 @@ function RenderCompItem(props) {
|
|
|
34932
34936
|
getPopupContainer: function getPopupContainer() {
|
|
34933
34937
|
return document.body;
|
|
34934
34938
|
}
|
|
34935
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34939
|
+
})) || 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, {
|
|
34936
34940
|
selectBusinessType: "shopFile2",
|
|
34937
34941
|
selectProps: _objectSpread2({
|
|
34938
34942
|
style: styleCommon,
|
|
@@ -34953,7 +34957,7 @@ function RenderCompItem(props) {
|
|
|
34953
34957
|
getPopupContainer: function getPopupContainer() {
|
|
34954
34958
|
return document.body;
|
|
34955
34959
|
}
|
|
34956
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34960
|
+
})) || 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, {
|
|
34957
34961
|
selectBusinessType: "employee2",
|
|
34958
34962
|
selectProps: _objectSpread2({
|
|
34959
34963
|
style: styleCommon,
|
|
@@ -34974,7 +34978,7 @@ function RenderCompItem(props) {
|
|
|
34974
34978
|
getPopupContainer: function getPopupContainer() {
|
|
34975
34979
|
return document.body;
|
|
34976
34980
|
}
|
|
34977
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34981
|
+
})) || 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, {
|
|
34978
34982
|
disabled: disabled,
|
|
34979
34983
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34980
34984
|
businessType: "stock-organization",
|
|
@@ -34987,7 +34991,7 @@ function RenderCompItem(props) {
|
|
|
34987
34991
|
getPopupContainer: function getPopupContainer() {
|
|
34988
34992
|
return document.body;
|
|
34989
34993
|
}
|
|
34990
|
-
})) || 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, {
|
|
34994
|
+
})) || 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, {
|
|
34991
34995
|
disabled: disabled,
|
|
34992
34996
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34993
34997
|
businessType: "settle-organization",
|
|
@@ -35000,7 +35004,7 @@ function RenderCompItem(props) {
|
|
|
35000
35004
|
getPopupContainer: function getPopupContainer() {
|
|
35001
35005
|
return document.body;
|
|
35002
35006
|
}
|
|
35003
|
-
})) || 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, {
|
|
35007
|
+
})) || 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, {
|
|
35004
35008
|
selectBusinessType: "deliveryMode",
|
|
35005
35009
|
selectProps: _objectSpread2({
|
|
35006
35010
|
style: styleCommon,
|
|
@@ -35021,7 +35025,7 @@ function RenderCompItem(props) {
|
|
|
35021
35025
|
getPopupContainer: function getPopupContainer() {
|
|
35022
35026
|
return document.body;
|
|
35023
35027
|
}
|
|
35024
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35028
|
+
})) || 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, {
|
|
35025
35029
|
selectBusinessType: "role",
|
|
35026
35030
|
selectProps: _objectSpread2({
|
|
35027
35031
|
style: styleCommon,
|
|
@@ -35042,7 +35046,7 @@ function RenderCompItem(props) {
|
|
|
35042
35046
|
getPopupContainer: function getPopupContainer() {
|
|
35043
35047
|
return document.body;
|
|
35044
35048
|
}
|
|
35045
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35049
|
+
})) || 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, {
|
|
35046
35050
|
selectBusinessType: "brand",
|
|
35047
35051
|
selectProps: _objectSpread2({
|
|
35048
35052
|
style: styleCommon,
|
|
@@ -35063,7 +35067,7 @@ function RenderCompItem(props) {
|
|
|
35063
35067
|
getPopupContainer: function getPopupContainer() {
|
|
35064
35068
|
return document.body;
|
|
35065
35069
|
}
|
|
35066
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35070
|
+
})) || 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, {
|
|
35067
35071
|
disabled: disabled,
|
|
35068
35072
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35069
35073
|
businessType: "background-category",
|
|
@@ -35076,7 +35080,7 @@ function RenderCompItem(props) {
|
|
|
35076
35080
|
getPopupContainer: function getPopupContainer() {
|
|
35077
35081
|
return document.body;
|
|
35078
35082
|
}
|
|
35079
|
-
})) || 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, {
|
|
35083
|
+
})) || 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, {
|
|
35080
35084
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35081
35085
|
style: styleCommon,
|
|
35082
35086
|
placeholder: '请选择'
|
|
@@ -35099,7 +35103,7 @@ function RenderCompItem(props) {
|
|
|
35099
35103
|
onChange: function onChange(value) {
|
|
35100
35104
|
handleEdit(ites.code, value);
|
|
35101
35105
|
}
|
|
35102
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
35106
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
35103
35107
|
style: {
|
|
35104
35108
|
display: 'flex'
|
|
35105
35109
|
}
|
|
@@ -35611,7 +35615,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35611
35615
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35612
35616
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35613
35617
|
}
|
|
35614
|
-
var parallelTreeData =
|
|
35618
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
35615
35619
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35616
35620
|
var _i$key;
|
|
35617
35621
|
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);
|
|
@@ -36538,13 +36542,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36538
36542
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36539
36543
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36540
36544
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36541
|
-
var list =
|
|
36545
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36542
36546
|
var requiredList = list.filter(function (c) {
|
|
36543
36547
|
return c.required == 1;
|
|
36544
36548
|
}) || []; // 获取对象属性为true的集合
|
|
36545
36549
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36546
36550
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36547
|
-
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) ?
|
|
36551
|
+
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];
|
|
36548
36552
|
(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) {
|
|
36549
36553
|
if (requiredList.some(function (r) {
|
|
36550
36554
|
return r.id === e.elementId;
|
|
@@ -37133,7 +37137,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37133
37137
|
style: {
|
|
37134
37138
|
float: 'right'
|
|
37135
37139
|
}
|
|
37136
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37140
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37137
37141
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37138
37142
|
ruleGroupInfo: {
|
|
37139
37143
|
ruleGroupList: ruleGroupList,
|
|
@@ -37151,7 +37155,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37151
37155
|
callBack: function callBack(newData) {
|
|
37152
37156
|
upDateData(newData);
|
|
37153
37157
|
}
|
|
37154
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37158
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
37155
37159
|
style: {
|
|
37156
37160
|
padding: 20
|
|
37157
37161
|
}
|
|
@@ -37526,4 +37530,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37526
37530
|
}, children));
|
|
37527
37531
|
};
|
|
37528
37532
|
|
|
37529
|
-
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,
|
|
37533
|
+
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 };
|