@bit-sun/business-component 3.1.9-alpha.2 → 3.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -31,9 +31,88 @@ import { parse as parse$1 } from '@babel/parser';
31
31
  import { visit } from 'ast-types';
32
32
  import isArray$1 from 'lodash/isArray';
33
33
 
34
+ function _arrayLikeToArray(r, a) {
35
+ (null == a || a > r.length) && (a = r.length);
36
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
37
+ return n;
38
+ }
39
+ function _arrayWithHoles(r) {
40
+ if (Array.isArray(r)) return r;
41
+ }
42
+ function _arrayWithoutHoles(r) {
43
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
44
+ }
45
+ function _assertThisInitialized(e) {
46
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
47
+ return e;
48
+ }
49
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
50
+ try {
51
+ var i = n[a](c),
52
+ u = i.value;
53
+ } catch (n) {
54
+ return void e(n);
55
+ }
56
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
57
+ }
58
+ function _asyncToGenerator(n) {
59
+ return function () {
60
+ var t = this,
61
+ e = arguments;
62
+ return new Promise(function (r, o) {
63
+ var a = n.apply(t, e);
64
+ function _next(n) {
65
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
66
+ }
67
+ function _throw(n) {
68
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
69
+ }
70
+ _next(void 0);
71
+ });
72
+ };
73
+ }
34
74
  function _callSuper(t, o, e) {
35
75
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
36
76
  }
77
+ function _classCallCheck(a, n) {
78
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
79
+ }
80
+ function _defineProperties(e, r) {
81
+ for (var t = 0; t < r.length; t++) {
82
+ var o = r[t];
83
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
84
+ }
85
+ }
86
+ function _createClass(e, r, t) {
87
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
88
+ writable: !1
89
+ }), e;
90
+ }
91
+ function _defineProperty(e, r, t) {
92
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
93
+ value: t,
94
+ enumerable: !0,
95
+ configurable: !0,
96
+ writable: !0
97
+ }) : e[r] = t, e;
98
+ }
99
+ function _getPrototypeOf(t) {
100
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
101
+ return t.__proto__ || Object.getPrototypeOf(t);
102
+ }, _getPrototypeOf(t);
103
+ }
104
+ function _inherits(t, e) {
105
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
106
+ t.prototype = Object.create(e && e.prototype, {
107
+ constructor: {
108
+ value: t,
109
+ writable: !0,
110
+ configurable: !0
111
+ }
112
+ }), Object.defineProperty(t, "prototype", {
113
+ writable: !1
114
+ }), e && _setPrototypeOf(t, e);
115
+ }
37
116
  function _isNativeReflectConstruct() {
38
117
  try {
39
118
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -42,6 +121,9 @@ function _isNativeReflectConstruct() {
42
121
  return !!t;
43
122
  })();
44
123
  }
124
+ function _iterableToArray(r) {
125
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
126
+ }
45
127
  function _iterableToArrayLimit(r, l) {
46
128
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
47
129
  if (null != t) {
@@ -69,6 +151,15 @@ function _iterableToArrayLimit(r, l) {
69
151
  return a;
70
152
  }
71
153
  }
154
+ function _nonIterableRest() {
155
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
156
+ }
157
+ function _nonIterableSpread() {
158
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
159
+ }
160
+ function _objectDestructuringEmpty(t) {
161
+ if (null == t) throw new TypeError("Cannot destructure " + t);
162
+ }
72
163
  function ownKeys(e, r) {
73
164
  var t = Object.keys(e);
74
165
  if (Object.getOwnPropertySymbols) {
@@ -90,6 +181,31 @@ function _objectSpread2(e) {
90
181
  }
91
182
  return e;
92
183
  }
184
+ function _objectWithoutProperties(e, t) {
185
+ if (null == e) return {};
186
+ var o,
187
+ r,
188
+ i = _objectWithoutPropertiesLoose(e, t);
189
+ if (Object.getOwnPropertySymbols) {
190
+ var s = Object.getOwnPropertySymbols(e);
191
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
192
+ }
193
+ return i;
194
+ }
195
+ function _objectWithoutPropertiesLoose(r, e) {
196
+ if (null == r) return {};
197
+ var t = {};
198
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
199
+ if (e.includes(n)) continue;
200
+ t[n] = r[n];
201
+ }
202
+ return t;
203
+ }
204
+ function _possibleConstructorReturn(t, e) {
205
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
206
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
207
+ return _assertThisInitialized(t);
208
+ }
93
209
  function _regeneratorRuntime() {
94
210
  _regeneratorRuntime = function () {
95
211
  return e;
@@ -391,6 +507,20 @@ function _regeneratorRuntime() {
391
507
  }
392
508
  }, e;
393
509
  }
510
+ function _setPrototypeOf(t, e) {
511
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
512
+ return t.__proto__ = e, t;
513
+ }, _setPrototypeOf(t, e);
514
+ }
515
+ function _slicedToArray(r, e) {
516
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
517
+ }
518
+ function _toArray(r) {
519
+ return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
520
+ }
521
+ function _toConsumableArray(r) {
522
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
523
+ }
394
524
  function _toPrimitive(t, r) {
395
525
  if ("object" != typeof t || !t) return t;
396
526
  var e = t[Symbol.toPrimitive];
@@ -414,180 +544,12 @@ function _typeof(o) {
414
544
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
415
545
  }, _typeof(o);
416
546
  }
417
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
418
- try {
419
- var info = gen[key](arg);
420
- var value = info.value;
421
- } catch (error) {
422
- reject(error);
423
- return;
424
- }
425
- if (info.done) {
426
- resolve(value);
427
- } else {
428
- Promise.resolve(value).then(_next, _throw);
429
- }
430
- }
431
- function _asyncToGenerator(fn) {
432
- return function () {
433
- var self = this,
434
- args = arguments;
435
- return new Promise(function (resolve, reject) {
436
- var gen = fn.apply(self, args);
437
- function _next(value) {
438
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
439
- }
440
- function _throw(err) {
441
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
442
- }
443
- _next(undefined);
444
- });
445
- };
446
- }
447
- function _classCallCheck(instance, Constructor) {
448
- if (!(instance instanceof Constructor)) {
449
- throw new TypeError("Cannot call a class as a function");
450
- }
451
- }
452
- function _defineProperties(target, props) {
453
- for (var i = 0; i < props.length; i++) {
454
- var descriptor = props[i];
455
- descriptor.enumerable = descriptor.enumerable || false;
456
- descriptor.configurable = true;
457
- if ("value" in descriptor) descriptor.writable = true;
458
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
459
- }
460
- }
461
- function _createClass(Constructor, protoProps, staticProps) {
462
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
463
- if (staticProps) _defineProperties(Constructor, staticProps);
464
- Object.defineProperty(Constructor, "prototype", {
465
- writable: false
466
- });
467
- return Constructor;
468
- }
469
- function _defineProperty(obj, key, value) {
470
- key = _toPropertyKey(key);
471
- if (key in obj) {
472
- Object.defineProperty(obj, key, {
473
- value: value,
474
- enumerable: true,
475
- configurable: true,
476
- writable: true
477
- });
478
- } else {
479
- obj[key] = value;
480
- }
481
- return obj;
482
- }
483
- function _inherits(subClass, superClass) {
484
- if (typeof superClass !== "function" && superClass !== null) {
485
- throw new TypeError("Super expression must either be null or a function");
486
- }
487
- subClass.prototype = Object.create(superClass && superClass.prototype, {
488
- constructor: {
489
- value: subClass,
490
- writable: true,
491
- configurable: true
492
- }
493
- });
494
- Object.defineProperty(subClass, "prototype", {
495
- writable: false
496
- });
497
- if (superClass) _setPrototypeOf(subClass, superClass);
498
- }
499
- function _getPrototypeOf(o) {
500
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
501
- return o.__proto__ || Object.getPrototypeOf(o);
502
- };
503
- return _getPrototypeOf(o);
504
- }
505
- function _setPrototypeOf(o, p) {
506
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
507
- o.__proto__ = p;
508
- return o;
509
- };
510
- return _setPrototypeOf(o, p);
511
- }
512
- function _objectDestructuringEmpty(obj) {
513
- if (obj == null) throw new TypeError("Cannot destructure " + obj);
514
- }
515
- function _objectWithoutPropertiesLoose(source, excluded) {
516
- if (source == null) return {};
517
- var target = {};
518
- for (var key in source) {
519
- if (Object.prototype.hasOwnProperty.call(source, key)) {
520
- if (excluded.indexOf(key) >= 0) continue;
521
- target[key] = source[key];
522
- }
547
+ function _unsupportedIterableToArray(r, a) {
548
+ if (r) {
549
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
550
+ var t = {}.toString.call(r).slice(8, -1);
551
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
523
552
  }
524
- return target;
525
- }
526
- function _objectWithoutProperties(source, excluded) {
527
- if (source == null) return {};
528
- var target = _objectWithoutPropertiesLoose(source, excluded);
529
- var key, i;
530
- if (Object.getOwnPropertySymbols) {
531
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
532
- for (i = 0; i < sourceSymbolKeys.length; i++) {
533
- key = sourceSymbolKeys[i];
534
- if (excluded.indexOf(key) >= 0) continue;
535
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
536
- target[key] = source[key];
537
- }
538
- }
539
- return target;
540
- }
541
- function _assertThisInitialized(self) {
542
- if (self === void 0) {
543
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
544
- }
545
- return self;
546
- }
547
- function _possibleConstructorReturn(self, call) {
548
- if (call && (typeof call === "object" || typeof call === "function")) {
549
- return call;
550
- } else if (call !== void 0) {
551
- throw new TypeError("Derived constructors may only return object or undefined");
552
- }
553
- return _assertThisInitialized(self);
554
- }
555
- function _slicedToArray(arr, i) {
556
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
557
- }
558
- function _toArray(arr) {
559
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
560
- }
561
- function _toConsumableArray(arr) {
562
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
563
- }
564
- function _arrayWithoutHoles(arr) {
565
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
566
- }
567
- function _arrayWithHoles(arr) {
568
- if (Array.isArray(arr)) return arr;
569
- }
570
- function _iterableToArray(iter) {
571
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
572
- }
573
- function _unsupportedIterableToArray(o, minLen) {
574
- if (!o) return;
575
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
576
- var n = Object.prototype.toString.call(o).slice(8, -1);
577
- if (n === "Object" && o.constructor) n = o.constructor.name;
578
- if (n === "Map" || n === "Set") return Array.from(o);
579
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
580
- }
581
- function _arrayLikeToArray(arr, len) {
582
- if (len == null || len > arr.length) len = arr.length;
583
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
584
- return arr2;
585
- }
586
- function _nonIterableSpread() {
587
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
588
- }
589
- function _nonIterableRest() {
590
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
591
553
  }
592
554
 
593
555
  var ENUM = {
@@ -1227,7 +1189,7 @@ function downloadExcel(data, fileName, isResUrl) {
1227
1189
  }
1228
1190
  save_link.click();
1229
1191
  }
1230
- var formatter = function formatter(data, parentAuthority, parentName) {
1192
+ var _formatter = function formatter(data, parentAuthority, parentName) {
1231
1193
  return data.map(function (item) {
1232
1194
  if (!item.name || !item.path) {
1233
1195
  return null;
@@ -1247,7 +1209,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1247
1209
  authority: item.authority || parentAuthority
1248
1210
  });
1249
1211
  if (item.routes) {
1250
- var children = formatter(item.routes, item.authority, locale);
1212
+ var children = _formatter(item.routes, item.authority, locale);
1251
1213
  // Reduce memory usage
1252
1214
  result.children = children;
1253
1215
  }
@@ -1257,7 +1219,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
1257
1219
  return item;
1258
1220
  });
1259
1221
  };
1260
- var memoizeOneFormatter = memoizeOne(formatter, isEqual);
1222
+ var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
1261
1223
  var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
1262
1224
  localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
1263
1225
  if (backHistoryPath) {
@@ -1588,37 +1550,38 @@ var resolveFile = /*#__PURE__*/function () {
1588
1550
  //读取文件
1589
1551
  var readerXlsxToList = /*#__PURE__*/function () {
1590
1552
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1591
- var _ref5, callback, sheetMap, data2, data;
1553
+ var _ref5, callback, sheetMap, nowFile, data2, data;
1592
1554
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1593
1555
  while (1) switch (_context2.prev = _context2.next) {
1594
1556
  case 0:
1595
1557
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1596
1558
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1597
- _context2.next = 14;
1559
+ _context2.next = 15;
1598
1560
  break;
1599
1561
  }
1600
- _context2.next = 4;
1601
- return resolveFile(file.originFileObj, {
1562
+ nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1563
+ _context2.next = 5;
1564
+ return resolveFile(nowFile.originFileObj, {
1602
1565
  sheetMap: fieldMappingReverse(sheetMap),
1603
1566
  sheetCount: 1
1604
1567
  });
1605
- case 4:
1568
+ case 5:
1606
1569
  data2 = _context2.sent;
1607
1570
  data = data2[0];
1608
1571
  if (data.length) {
1609
- _context2.next = 9;
1572
+ _context2.next = 10;
1610
1573
  break;
1611
1574
  }
1612
1575
  message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1613
1576
  return _context2.abrupt("return");
1614
- case 9:
1577
+ case 10:
1615
1578
  if (callback) callback(data);
1616
1579
  !callback && message$1.success("\u5BFC\u5165\u6210\u529F");
1617
1580
  return _context2.abrupt("return", data);
1618
- case 14:
1581
+ case 15:
1619
1582
  message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1620
1583
  return _context2.abrupt("return");
1621
- case 16:
1584
+ case 17:
1622
1585
  case "end":
1623
1586
  return _context2.stop();
1624
1587
  }
@@ -2409,16 +2372,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
2409
2372
  var handleExportBarCode = handleExport;
2410
2373
  var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
2411
2374
  var routerMap = {};
2412
- var flattenMenuData = function flattenMenuData(data) {
2375
+ var _flattenMenuData = function flattenMenuData(data) {
2413
2376
  data.forEach(function (menuItem) {
2414
2377
  if (menuItem.children) {
2415
- flattenMenuData(menuItem.children);
2378
+ _flattenMenuData(menuItem.children);
2416
2379
  }
2417
2380
  // Reduce memory usage
2418
2381
  routerMap[menuItem.path] = menuItem;
2419
2382
  });
2420
2383
  };
2421
- flattenMenuData(menuData);
2384
+ _flattenMenuData(menuData);
2422
2385
  return routerMap;
2423
2386
  };
2424
2387
  var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
@@ -3181,7 +3144,6 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3181
3144
  var callBackFun = this.importExcelToLuckySheet;
3182
3145
  var uploadProps = {
3183
3146
  name: 'file',
3184
- action: '',
3185
3147
  headers: {},
3186
3148
  accept: accept || ['.xlsx', '.xls'],
3187
3149
  showUploadList: false,
@@ -3196,7 +3158,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3196
3158
  message$1.error("\u8BF7\u4E0A\u4F20".concat(suffixRule.toString(), "\u7B49\u683C\u5F0F\u7684\u6587\u4EF6!"));
3197
3159
  return Upload.LIST_IGNORE;
3198
3160
  }
3199
- return true;
3161
+ return false; // 阻止默认上传
3200
3162
  },
3201
3163
  onChange: function onChange(info) {
3202
3164
  var _Object$keys;
@@ -3857,7 +3819,6 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
3857
3819
  var callBackFun = this.importExcelToLuckySheet;
3858
3820
  var uploadProps = {
3859
3821
  name: 'file',
3860
- action: '',
3861
3822
  headers: {},
3862
3823
  accept: accept || ['.xlsx', '.xls'],
3863
3824
  showUploadList: false,
@@ -3872,7 +3833,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
3872
3833
  message$1.error("\u8BF7\u4E0A\u4F20".concat(suffixRule.toString(), "\u7B49\u683C\u5F0F\u7684\u6587\u4EF6!"));
3873
3834
  return Upload.LIST_IGNORE;
3874
3835
  }
3875
- return true;
3836
+ return false; // 阻止默认上传
3876
3837
  },
3877
3838
  onChange: function onChange(info) {
3878
3839
  var _Object$keys;
@@ -5906,7 +5867,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
5906
5867
  });
5907
5868
  };
5908
5869
  // 格式化树选择器数据源
5909
- var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
5870
+ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
5910
5871
  var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
5911
5872
  return {
5912
5873
  title: treeDataItem[resKeyValue[1]],
@@ -5916,7 +5877,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
5916
5877
  isLeaf: !haveChildren,
5917
5878
  disabled: haveChildren,
5918
5879
  children: haveChildren ? treeDataItem.children.map(function (i) {
5919
- return mapSearchTree(i, resKeyValue);
5880
+ return _mapSearchTree(i, resKeyValue);
5920
5881
  }) : []
5921
5882
  };
5922
5883
  };
@@ -5925,7 +5886,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
5925
5886
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
5926
5887
  var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
5927
5888
  var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
5928
- return mapSearchTree(ites, resKeyValue);
5889
+ return _mapSearchTree(ites, resKeyValue);
5929
5890
  }) || [];
5930
5891
  changeSearchForm[changePosition].field.props.treeData = formatData;
5931
5892
  };
@@ -6951,10 +6912,10 @@ var AddSelect = function AddSelect(props) {
6951
6912
  var newColumns = arr.map(function (col) {
6952
6913
  return _objectSpread2({}, col);
6953
6914
  });
6954
- var handleIndex = function handleIndex(arr, indexArr) {
6915
+ var _handleIndex = function handleIndex(arr, indexArr) {
6955
6916
  var i = indexArr.shift();
6956
6917
  if (indexArr.length > 0) {
6957
- handleIndex(arr[i].children, indexArr);
6918
+ _handleIndex(arr[i].children, indexArr);
6958
6919
  } else {
6959
6920
  arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
6960
6921
  width: size.width
@@ -6962,7 +6923,7 @@ var AddSelect = function AddSelect(props) {
6962
6923
  handleAntdColumnsSpecialParams(arr[i]);
6963
6924
  }
6964
6925
  };
6965
- handleIndex(newColumns, _toConsumableArray(index));
6926
+ _handleIndex(newColumns, _toConsumableArray(index));
6966
6927
  callback(newColumns);
6967
6928
  };
6968
6929
  };
@@ -6972,13 +6933,13 @@ var AddSelect = function AddSelect(props) {
6972
6933
  var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
6973
6934
  setShowToChooseColumns(_toConsumableArray(newColumns));
6974
6935
  };
6975
- var handleColumns = function handleColumns(arr, indexArr, callback) {
6936
+ var _handleColumns = function handleColumns(arr, indexArr, callback) {
6976
6937
  arr.forEach(function (item, index) {
6977
6938
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
6978
6939
  return i || i === 0;
6979
6940
  });
6980
6941
  if (noEmptyArray(item.children)) {
6981
- handleColumns(item.children, indexArrInside);
6942
+ _handleColumns(item.children, indexArrInside);
6982
6943
  } else {
6983
6944
  item.width = item.width || getItemDefaultWidth$2(item);
6984
6945
  item.onHeaderCell = function (column) {
@@ -6994,14 +6955,14 @@ var AddSelect = function AddSelect(props) {
6994
6955
  handleAntdColumnsSpecialParams(item);
6995
6956
  return _objectSpread2({}, item);
6996
6957
  });
6997
- handleColumns(showToChooseCol, [], function (res) {
6958
+ _handleColumns(showToChooseCol, [], function (res) {
6998
6959
  return setShowToChooseColumnsCallback(res);
6999
6960
  });
7000
6961
  var showSelectedCol = showColumns.map(function (item) {
7001
6962
  handleAntdColumnsSpecialParams(item);
7002
6963
  return _objectSpread2({}, item);
7003
6964
  });
7004
- handleColumns(showSelectedCol, [], function (res) {
6965
+ _handleColumns(showSelectedCol, [], function (res) {
7005
6966
  return setShowColumnsCallback(res);
7006
6967
  });
7007
6968
  var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
@@ -8009,10 +7970,10 @@ var BillEntry = function BillEntry(_ref3) {
8009
7970
  var newColumns = arr.map(function (col) {
8010
7971
  return _objectSpread2({}, col);
8011
7972
  });
8012
- var handleIndex = function handleIndex(arr, indexArr) {
7973
+ var _handleIndex = function handleIndex(arr, indexArr) {
8013
7974
  var i = indexArr.shift();
8014
7975
  if (indexArr.length > 0) {
8015
- handleIndex(arr[i].children, indexArr);
7976
+ _handleIndex(arr[i].children, indexArr);
8016
7977
  } else {
8017
7978
  arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
8018
7979
  width: size.width
@@ -8020,17 +7981,17 @@ var BillEntry = function BillEntry(_ref3) {
8020
7981
  handleAntdColumnsSpecialParams(arr[i]);
8021
7982
  }
8022
7983
  };
8023
- handleIndex(newColumns, _toConsumableArray(index));
7984
+ _handleIndex(newColumns, _toConsumableArray(index));
8024
7985
  callback(newColumns);
8025
7986
  };
8026
7987
  };
8027
- var handleColumns = function handleColumns(arr, indexArr, callback) {
7988
+ var _handleColumns = function handleColumns(arr, indexArr, callback) {
8028
7989
  arr.forEach(function (item, index) {
8029
7990
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
8030
7991
  return i || i === 0;
8031
7992
  });
8032
7993
  if (noEmptyArray(item.children)) {
8033
- handleColumns(item.children, indexArrInside);
7994
+ _handleColumns(item.children, indexArrInside);
8034
7995
  } else {
8035
7996
  item.width = item.width || getItemDefaultWidth$2(item);
8036
7997
  item.onHeaderCell = function (column) {
@@ -8046,7 +8007,7 @@ var BillEntry = function BillEntry(_ref3) {
8046
8007
  handleAntdColumnsSpecialParams(item);
8047
8008
  return _objectSpread2({}, item);
8048
8009
  });
8049
- handleColumns(showSelectedCol, [], function (res) {
8010
+ _handleColumns(showSelectedCol, [], function (res) {
8050
8011
  return setShowColumnsCallback(res);
8051
8012
  });
8052
8013
  return /*#__PURE__*/React$1.createElement("div", {
@@ -8343,7 +8304,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
8343
8304
  });
8344
8305
  };
8345
8306
  // 格式化树选择器数据源
8346
- var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
8307
+ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
8347
8308
  var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
8348
8309
  return {
8349
8310
  title: treeDataItem[resKeyValue[1]],
@@ -8353,7 +8314,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
8353
8314
  isLeaf: !haveChildren,
8354
8315
  disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
8355
8316
  children: haveChildren ? treeDataItem.children.map(function (i) {
8356
- return mapSearchTree(i, resKeyValue, disabledJudge);
8317
+ return _mapSearchTree(i, resKeyValue, disabledJudge);
8357
8318
  }) : []
8358
8319
  };
8359
8320
  };
@@ -8367,7 +8328,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
8367
8328
  disabledJudge = false;
8368
8329
  }
8369
8330
  var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
8370
- return mapSearchTree(ites, resKeyValue, disabledJudge);
8331
+ return _mapSearchTree(ites, resKeyValue, disabledJudge);
8371
8332
  }) || [];
8372
8333
  changeSearchForm[changePosition].field.props.treeData = formatData;
8373
8334
  };
@@ -12025,7 +11986,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
12025
11986
  treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
12026
11987
  _remoteSource$special = remoteSource.specialBracket,
12027
11988
  specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
12028
- var mapSearchTree = function mapSearchTree(treeDataItem) {
11989
+ var _mapSearchTree = function mapSearchTree(treeDataItem) {
12029
11990
  var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
12030
11991
  var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
12031
11992
  return {
@@ -12037,7 +11998,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
12037
11998
  isLeaf: !haveChildren,
12038
11999
  disabled: isDisabled(haveChildren, isRoot),
12039
12000
  children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
12040
- return mapSearchTree(i);
12001
+ return _mapSearchTree(i);
12041
12002
  }) : []
12042
12003
  };
12043
12004
  };
@@ -12083,7 +12044,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
12083
12044
  case 9:
12084
12045
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
12085
12046
  coverData = dataList.length && dataList.map(function (ites) {
12086
- return mapSearchTree(ites);
12047
+ return _mapSearchTree(ites);
12087
12048
  }) || [];
12088
12049
  case 11:
12089
12050
  _context.next = 14;
@@ -12121,11 +12082,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
12121
12082
  return _formatResult;
12122
12083
  }
12123
12084
  };
12124
- var parallelData = function parallelData(data, result) {
12085
+ var _parallelData = function parallelData(data, result) {
12125
12086
  data.forEach(function (i) {
12126
12087
  result.push(i);
12127
12088
  if (i[treeChildrenRoom]) {
12128
- parallelData(i[treeChildrenRoom], result);
12089
+ _parallelData(i[treeChildrenRoom], result);
12129
12090
  }
12130
12091
  });
12131
12092
  return result;
@@ -12165,7 +12126,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
12165
12126
  var _ctx$form2;
12166
12127
  var handleData = formatData(data);
12167
12128
  // 获取选中树节点当条数据,并返回给调用业务
12168
- var parallelTreeData = parallelData(treeData, []);
12129
+ var parallelTreeData = _parallelData(treeData, []);
12169
12130
  var currentItem = getSelectItem(parallelTreeData, data);
12170
12131
  onChange(handleData, data, currentItem, parallelTreeData);
12171
12132
  onChangeName && onChangeName(dataName);
@@ -12208,7 +12169,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
12208
12169
  var getShowStr = function getShowStr() {
12209
12170
  var isMultiple = multiple || treeCheckable;
12210
12171
  var kongValue = '无';
12211
- var parallelTreeData = parallelData(treeData, []);
12172
+ var parallelTreeData = _parallelData(treeData, []);
12212
12173
  var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
12213
12174
  if (isMultiple) {
12214
12175
  return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
@@ -12350,6 +12311,16 @@ var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
12350
12311
  }, otherRequestConfig)
12351
12312
  };
12352
12313
  break;
12314
+ case 'background-category':
12315
+ result = {
12316
+ isChoose: true,
12317
+ remoteSource: _objectSpread2({
12318
+ url: "/items/category/queryCategoryTree",
12319
+ headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
12320
+ resKeyValue: ['categoryCode', 'name']
12321
+ }, otherRequestConfig)
12322
+ };
12323
+ break;
12353
12324
  default:
12354
12325
  result = {
12355
12326
  treeCheckable: true,
@@ -13371,10 +13342,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
13371
13342
  var newColumns = _this.state.showColumns.map(function (col) {
13372
13343
  return _objectSpread2({}, col);
13373
13344
  });
13374
- var handleIndex = function handleIndex(arr, indexArr) {
13345
+ var _handleIndex = function handleIndex(arr, indexArr) {
13375
13346
  var i = indexArr.shift();
13376
13347
  if (indexArr.length > 0) {
13377
- handleIndex(arr[i].children, indexArr);
13348
+ _handleIndex(arr[i].children, indexArr);
13378
13349
  } else {
13379
13350
  arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
13380
13351
  width: size.width
@@ -13382,7 +13353,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
13382
13353
  handleBssulaColumnsSpecialParams(arr[i]);
13383
13354
  }
13384
13355
  };
13385
- handleIndex(newColumns, _toConsumableArray(index));
13356
+ _handleIndex(newColumns, _toConsumableArray(index));
13386
13357
  _this.setState({
13387
13358
  showColumns: _toConsumableArray(newColumns)
13388
13359
  });
@@ -13461,13 +13432,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
13461
13432
  showSummary = summary;
13462
13433
  }
13463
13434
  }
13464
- var handleColumns = function handleColumns(arr, indexArr) {
13435
+ var _handleColumns = function handleColumns(arr, indexArr) {
13465
13436
  arr.forEach(function (item, index) {
13466
13437
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
13467
13438
  return i || i === 0;
13468
13439
  });
13469
13440
  if (noEmptyArray(item.children)) {
13470
- handleColumns(item.children, indexArrInside);
13441
+ _handleColumns(item.children, indexArrInside);
13471
13442
  } else {
13472
13443
  item.width = item.width || getItemDefaultWidth$2(item);
13473
13444
  item.onHeaderCell = function (column) {
@@ -13483,7 +13454,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
13483
13454
  handleBssulaColumnsSpecialParams(item);
13484
13455
  return _objectSpread2({}, item);
13485
13456
  });
13486
- handleColumns(showCol, []);
13457
+ _handleColumns(showCol, []);
13487
13458
  if (dynamicColumns.length) {
13488
13459
  showCol = this.handledynamicColumns(showCol);
13489
13460
  }
@@ -13608,10 +13579,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13608
13579
  var newColumns = _this.state.showColumns.map(function (col) {
13609
13580
  return _objectSpread2({}, col);
13610
13581
  });
13611
- var handleIndex = function handleIndex(arr, indexArr) {
13582
+ var _handleIndex = function handleIndex(arr, indexArr) {
13612
13583
  var i = indexArr.shift();
13613
13584
  if (indexArr.length > 0) {
13614
- handleIndex(arr[i].children, indexArr);
13585
+ _handleIndex(arr[i].children, indexArr);
13615
13586
  } else {
13616
13587
  arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
13617
13588
  width: size.width
@@ -13619,7 +13590,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13619
13590
  handleAntdColumnsSpecialParams(arr[i]);
13620
13591
  }
13621
13592
  };
13622
- handleIndex(newColumns, _toConsumableArray(index));
13593
+ _handleIndex(newColumns, _toConsumableArray(index));
13623
13594
  _this.setState({
13624
13595
  showColumns: _toConsumableArray(newColumns)
13625
13596
  });
@@ -13695,13 +13666,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13695
13666
  showSummary = summary;
13696
13667
  }
13697
13668
  }
13698
- var handleColumns = function handleColumns(arr, indexArr) {
13669
+ var _handleColumns = function handleColumns(arr, indexArr) {
13699
13670
  arr.forEach(function (item, index) {
13700
13671
  var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
13701
13672
  return i || i === 0;
13702
13673
  });
13703
13674
  if (noEmptyArray(item.children)) {
13704
- handleColumns(item.children, indexArrInside);
13675
+ _handleColumns(item.children, indexArrInside);
13705
13676
  } else {
13706
13677
  item.width = item.width || getItemDefaultWidth$2(item);
13707
13678
  item.onHeaderCell = function (column) {
@@ -13717,7 +13688,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
13717
13688
  handleAntdColumnsSpecialParams(item);
13718
13689
  return _objectSpread2({}, item);
13719
13690
  });
13720
- handleColumns(showCol, []);
13691
+ _handleColumns(showCol, []);
13721
13692
  if (dynamicColumns.length) {
13722
13693
  showCol = this.handledynamicColumns(showCol);
13723
13694
  }
@@ -13810,20 +13781,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
13810
13781
  };
13811
13782
  var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
13812
13783
  var routerMap = {};
13813
- var flattenMenuData = function flattenMenuData(data, parent) {
13784
+ var _flattenMenuData2 = function flattenMenuData(data, parent) {
13814
13785
  var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
13815
13786
  data.forEach(function (menuItem) {
13816
13787
  var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
13817
13788
  nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
13818
13789
  });
13819
13790
  if (newMenuItem.children) {
13820
- flattenMenuData(newMenuItem.children, newMenuItem);
13791
+ _flattenMenuData2(newMenuItem.children, newMenuItem);
13821
13792
  }
13822
13793
  // Reduce memory usage
13823
13794
  routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
13824
13795
  });
13825
13796
  };
13826
- flattenMenuData(menuData, {});
13797
+ _flattenMenuData2(menuData, {});
13827
13798
  return routerMap;
13828
13799
  };
13829
13800
  // mode类型判断
@@ -16261,11 +16232,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
16261
16232
  var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
16262
16233
  var resultList = [];
16263
16234
  var newRouter = cloneDeep(router);
16264
- var deep = function deep(router) {
16235
+ var _deep = function deep(router) {
16265
16236
  if (router && Array.isArray(router)) {
16266
16237
  router.forEach(function (item) {
16267
16238
  if (item.children && Array.isArray(item.children)) {
16268
- deep(item.children);
16239
+ _deep(item.children);
16269
16240
  } else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
16270
16241
  return d === item.code;
16271
16242
  })) {
@@ -16279,10 +16250,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
16279
16250
  resultList.push(_objectSpread2({}, router));
16280
16251
  }
16281
16252
  };
16282
- deep(newRouter);
16253
+ _deep(newRouter);
16283
16254
  callBack([].concat(resultList));
16284
16255
  };
16285
- var setMenuTreeData = function setMenuTreeData(routesData) {
16256
+ var _setMenuTreeData = function setMenuTreeData(routesData) {
16286
16257
  var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
16287
16258
  var _loop = function _loop(i) {
16288
16259
  if (routesData[i].hideInMenu) {
@@ -16296,7 +16267,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
16296
16267
  return 0; // continue
16297
16268
  }
16298
16269
  if (routesData[i].children) {
16299
- setMenuTreeData(routesData[i].children);
16270
+ _setMenuTreeData(routesData[i].children);
16300
16271
  }
16301
16272
  },
16302
16273
  _ret;
@@ -16317,16 +16288,16 @@ var setLoginOutPath = function setLoginOutPath() {
16317
16288
  };
16318
16289
  var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
16319
16290
  var routerMap = {};
16320
- var flattenMenuData = function flattenMenuData(data) {
16291
+ var _flattenMenuData = function flattenMenuData(data) {
16321
16292
  data.forEach(function (menuItem) {
16322
16293
  if (menuItem.children) {
16323
- flattenMenuData(menuItem.children);
16294
+ _flattenMenuData(menuItem.children);
16324
16295
  }
16325
16296
  // Reduce memory usage
16326
16297
  routerMap[menuItem.path] = menuItem;
16327
16298
  });
16328
16299
  };
16329
- flattenMenuData(menuData);
16300
+ _flattenMenuData(menuData);
16330
16301
  return routerMap;
16331
16302
  };
16332
16303
  var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
@@ -16472,7 +16443,7 @@ var DrawContent = function DrawContent(_ref) {
16472
16443
  sethomepageData(homepageDataList);
16473
16444
  setroutesData(routesDataList);
16474
16445
  }, []);
16475
- var renderChildItem = function renderChildItem(child) {
16446
+ var _renderChildItem = function renderChildItem(child) {
16476
16447
  if (!child.hideInMenu && child.children) {
16477
16448
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
16478
16449
  style: {
@@ -16482,7 +16453,7 @@ var DrawContent = function DrawContent(_ref) {
16482
16453
  }, formatMessage({
16483
16454
  id: "".concat(child.locale)
16484
16455
  })), child.children.map(function (menuItem) {
16485
- return renderChildItem(menuItem);
16456
+ return _renderChildItem(menuItem);
16486
16457
  }));
16487
16458
  } else if (!child.hideInMenu && child.path) {
16488
16459
  return /*#__PURE__*/React$1.createElement(List.Item, {
@@ -16552,7 +16523,7 @@ var DrawContent = function DrawContent(_ref) {
16552
16523
  bordered: true,
16553
16524
  dataSource: item.children,
16554
16525
  renderItem: function renderItem(child) {
16555
- return renderChildItem(child);
16526
+ return _renderChildItem(child);
16556
16527
  }
16557
16528
  });
16558
16529
  })));
@@ -17215,7 +17186,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
17215
17186
  var resultList = [];
17216
17187
  var newRouter = cloneDeep$1(router);
17217
17188
  var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
17218
- var deep = function deep(router) {
17189
+ var _deep = function deep(router) {
17219
17190
  if (router && Array.isArray(router)) {
17220
17191
  router.forEach(function (item) {
17221
17192
  if (item.routes && Array.isArray(item.routes)) {
@@ -17225,7 +17196,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
17225
17196
  d.nameEdit = true;
17226
17197
  }
17227
17198
  });
17228
- deep(item.routes);
17199
+ _deep(item.routes);
17229
17200
  } else if (!item.hideInMenu && (name ? formatMessage({
17230
17201
  id: "menu.".concat(item.name)
17231
17202
  }).indexOf(name) !== -1 : true)) {
@@ -17244,7 +17215,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
17244
17215
  }));
17245
17216
  }
17246
17217
  };
17247
- deep(newRouter);
17218
+ _deep(newRouter);
17248
17219
  setroutesData([].concat(resultList));
17249
17220
  };
17250
17221
  var renderLineStyl = function renderLineStyl(name) {
@@ -17341,7 +17312,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
17341
17312
  var TreeNode = Tree.TreeNode;
17342
17313
  var Search$2 = Input.Search;
17343
17314
  var dataList = [];
17344
- var generateList = function generateList(data) {
17315
+ var _generateList = function generateList(data) {
17345
17316
  for (var i = 0; i < data.length; i++) {
17346
17317
  var node = data[i];
17347
17318
  var path = node.path,
@@ -17351,11 +17322,11 @@ var generateList = function generateList(data) {
17351
17322
  name: name
17352
17323
  });
17353
17324
  if (node.children) {
17354
- generateList(node.children);
17325
+ _generateList(node.children);
17355
17326
  }
17356
17327
  }
17357
17328
  };
17358
- var getParentKey = function getParentKey(path, tree) {
17329
+ var _getParentKey = function getParentKey(path, tree) {
17359
17330
  var parentKey;
17360
17331
  for (var i = 0; i < tree.length; i++) {
17361
17332
  var node = tree[i];
@@ -17364,8 +17335,8 @@ var getParentKey = function getParentKey(path, tree) {
17364
17335
  return item.path === path;
17365
17336
  })) {
17366
17337
  parentKey = node.path;
17367
- } else if (getParentKey(path, node.children)) {
17368
- parentKey = getParentKey(path, node.children);
17338
+ } else if (_getParentKey(path, node.children)) {
17339
+ parentKey = _getParentKey(path, node.children);
17369
17340
  }
17370
17341
  }
17371
17342
  }
@@ -17396,7 +17367,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
17396
17367
  var treeData = _this.state.treeData;
17397
17368
  var expandedKeys = dataList.map(function (item) {
17398
17369
  if (item.name.indexOf(value) > -1) {
17399
- return getParentKey(item.path, treeData);
17370
+ return _getParentKey(item.path, treeData);
17400
17371
  }
17401
17372
  return null;
17402
17373
  }).filter(function (item, i, self) {
@@ -17410,22 +17381,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
17410
17381
  };
17411
17382
  _this.getPathList = function (originData) {
17412
17383
  var pathList = [];
17413
- var getList = function getList(data) {
17384
+ var _getList = function getList(data) {
17414
17385
  if (Array.isArray(data)) {
17415
17386
  data.forEach(function (item) {
17416
17387
  pathList.push(item.path);
17417
17388
  if (item.children) {
17418
- getList(item.children);
17389
+ _getList(item.children);
17419
17390
  }
17420
17391
  });
17421
17392
  } else {
17422
17393
  pathList.push(data.path);
17423
17394
  if (data.children) {
17424
- getList(data.children);
17395
+ _getList(data.children);
17425
17396
  }
17426
17397
  }
17427
17398
  };
17428
- getList(originData);
17399
+ _getList(originData);
17429
17400
  return pathList;
17430
17401
  };
17431
17402
  _this.handleAdd2Menu = function (path) {
@@ -17434,18 +17405,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
17434
17405
  customerMenuData = _this$props.customerMenuData,
17435
17406
  setCustomerMenuData = _this$props.setCustomerMenuData;
17436
17407
  var filterItem;
17437
- var filterMenuItem = function filterMenuItem(menuData) {
17408
+ var _filterMenuItem = function filterMenuItem(menuData) {
17438
17409
  menuData.forEach(function (item) {
17439
17410
  if (item.path === path) {
17440
17411
  filterItem = _objectSpread2({}, item);
17441
17412
  return;
17442
17413
  }
17443
17414
  if (item.children) {
17444
- filterMenuItem(item.children);
17415
+ _filterMenuItem(item.children);
17445
17416
  }
17446
17417
  });
17447
17418
  };
17448
- filterMenuItem(treeData);
17419
+ _filterMenuItem(treeData);
17449
17420
  var addPathList = _this.getPathList(filterItem);
17450
17421
  var oldPathList = _this.getPathList(customerMenuData);
17451
17422
  var isRepet = false;
@@ -17475,8 +17446,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
17475
17446
  return item.path === '/';
17476
17447
  })) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
17477
17448
  var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
17478
- setMenuTreeData(routesData);
17479
- generateList(routesData);
17449
+ _setMenuTreeData(routesData);
17450
+ _generateList(routesData);
17480
17451
  this.setState({
17481
17452
  treeData: routesData
17482
17453
  });
@@ -17490,7 +17461,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
17490
17461
  expandedKeys = _this$state.expandedKeys,
17491
17462
  autoExpandParent = _this$state.autoExpandParent,
17492
17463
  treeData = _this$state.treeData;
17493
- var loop = function loop(data) {
17464
+ var _loop = function loop(data) {
17494
17465
  return data.map(function (item) {
17495
17466
  var index = item.name.indexOf(searchValue);
17496
17467
  var beforeStr = item.name.substr(0, index);
@@ -17521,7 +17492,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
17521
17492
  width: 18,
17522
17493
  src: arrowRight
17523
17494
  }))))
17524
- }, loop(item.children));
17495
+ }, _loop(item.children));
17525
17496
  }
17526
17497
  return /*#__PURE__*/React$1.createElement(TreeNode, {
17527
17498
  path: item.path,
@@ -17571,7 +17542,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
17571
17542
  onExpand: this.onExpand,
17572
17543
  expandedKeys: expandedKeys,
17573
17544
  autoExpandParent: autoExpandParent
17574
- }, loop(treeData))));
17545
+ }, _loop(treeData))));
17575
17546
  }
17576
17547
  }]);
17577
17548
  }(React$1.Component);
@@ -17604,24 +17575,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
17604
17575
  var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
17605
17576
  var dragObj;
17606
17577
  var finalDropItem;
17607
- var loop = function loop(data, path, callback) {
17578
+ var _loop = function loop(data, path, callback) {
17608
17579
  for (var i = 0; i < data.length; i++) {
17609
17580
  if (data[i].path === path) {
17610
17581
  return callback(data[i], i, data);
17611
17582
  }
17612
17583
  if (data[i].children) {
17613
- loop(data[i].children, path, callback);
17584
+ _loop(data[i].children, path, callback);
17614
17585
  }
17615
17586
  }
17616
17587
  };
17617
17588
  var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
17618
- loop(data, dragKey, function (item, index, arr) {
17589
+ _loop(data, dragKey, function (item, index, arr) {
17619
17590
  arr.splice(index, 1);
17620
17591
  dragObj = item;
17621
17592
  });
17622
17593
  if (!info.dropToGap) {
17623
17594
  // Drop on the content
17624
- loop(data, dropKey, function (item) {
17595
+ _loop(data, dropKey, function (item) {
17625
17596
  item.children = item.children || [];
17626
17597
  item.children.unshift(dragObj);
17627
17598
  finalDropItem = _objectSpread2({}, item);
@@ -17632,7 +17603,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
17632
17603
  // Is expanded
17633
17604
  dropPosition === 1 // On the bottom gap
17634
17605
  ) {
17635
- loop(data, dropKey, function (item) {
17606
+ _loop(data, dropKey, function (item) {
17636
17607
  item.children = item.children || [];
17637
17608
  item.children.unshift(dragObj);
17638
17609
  finalDropItem = _objectSpread2({}, item);
@@ -17640,7 +17611,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
17640
17611
  } else {
17641
17612
  var ar;
17642
17613
  var i;
17643
- loop(data, dropKey, function (item, index, arr) {
17614
+ _loop(data, dropKey, function (item, index, arr) {
17644
17615
  ar = arr;
17645
17616
  i = index;
17646
17617
  });
@@ -17679,17 +17650,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
17679
17650
  title: '编辑名称',
17680
17651
  callBack: function callBack(newName) {
17681
17652
  var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
17682
- var editTreeDataName = function editTreeDataName(oldTreeData) {
17653
+ var _editTreeDataName = function editTreeDataName(oldTreeData) {
17683
17654
  oldTreeData.forEach(function (treeItem) {
17684
17655
  if (treeItem.path === item.path) {
17685
17656
  treeItem.name = newName;
17686
17657
  }
17687
17658
  if (treeItem.children) {
17688
- editTreeDataName(treeItem.children);
17659
+ _editTreeDataName(treeItem.children);
17689
17660
  }
17690
17661
  });
17691
17662
  };
17692
- editTreeDataName(oldTreeData);
17663
+ _editTreeDataName(oldTreeData);
17693
17664
  _this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
17694
17665
  _this.setState({
17695
17666
  modalInfo: {
@@ -17734,7 +17705,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
17734
17705
  title: '新增子目录',
17735
17706
  callBack: function callBack(newName) {
17736
17707
  var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
17737
- var addChildFolder = function addChildFolder(oldTreeData) {
17708
+ var _addChildFolder = function addChildFolder(oldTreeData) {
17738
17709
  oldTreeData.forEach(function (treeItem) {
17739
17710
  if (treeItem.path === item.path) {
17740
17711
  treeItem.children ? treeItem.children.push({
@@ -17746,11 +17717,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
17746
17717
  }];
17747
17718
  }
17748
17719
  if (treeItem.children) {
17749
- addChildFolder(treeItem.children);
17720
+ _addChildFolder(treeItem.children);
17750
17721
  }
17751
17722
  });
17752
17723
  };
17753
- addChildFolder(oldTreeData);
17724
+ _addChildFolder(oldTreeData);
17754
17725
  _this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
17755
17726
  _this.setState({
17756
17727
  modalInfo: {
@@ -17809,7 +17780,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
17809
17780
  var _this$state = this.state,
17810
17781
  modalInfo = _this$state.modalInfo,
17811
17782
  checkedKeys = _this$state.checkedKeys;
17812
- var loop = function loop(data) {
17783
+ var _loop2 = function loop(data) {
17813
17784
  return data.map(function (item) {
17814
17785
  if (item.children && item.children.length) {
17815
17786
  return /*#__PURE__*/React$1.createElement(TreeNode$1, {
@@ -17826,7 +17797,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
17826
17797
  e.stopPropagation();
17827
17798
  }
17828
17799
  }, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
17829
- }, loop(item.children));
17800
+ }, _loop2(item.children));
17830
17801
  }
17831
17802
  return /*#__PURE__*/React$1.createElement(TreeNode$1, {
17832
17803
  path: item.path,
@@ -17905,7 +17876,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
17905
17876
  children: 'children'
17906
17877
  },
17907
17878
  onDrop: this.onDrop
17908
- }, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
17879
+ }, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
17909
17880
  width: 600,
17910
17881
  bodyStyle: {
17911
17882
  paddingTop: '32px',
@@ -18018,7 +17989,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
18018
17989
  pathname: item.path
18019
17990
  });
18020
17991
  };
18021
- var getMenuDom = function getMenuDom(menuData) {
17992
+ var _getMenuDom = function getMenuDom(menuData) {
18022
17993
  return menuData.map(function (item) {
18023
17994
  return /*#__PURE__*/React$1.createElement("div", {
18024
17995
  style: {
@@ -18033,7 +18004,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
18033
18004
  fontWeight: item.children || !item.component ? 'bolder' : '400',
18034
18005
  paddingLeft: '4px'
18035
18006
  }
18036
- }, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
18007
+ }, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
18037
18008
  });
18038
18009
  };
18039
18010
  return /*#__PURE__*/React$1.createElement("div", {
@@ -18080,7 +18051,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
18080
18051
  visible: isDrawer
18081
18052
  }, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
18082
18053
  className: 'menu_title_line'
18083
- }, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
18054
+ }, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
18084
18055
  title: /*#__PURE__*/React$1.createElement("span", {
18085
18056
  style: {
18086
18057
  fontWeight: '600',
@@ -18154,7 +18125,7 @@ var DrawContent$1 = function DrawContent(_ref) {
18154
18125
  return item.path === '/';
18155
18126
  })) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
18156
18127
  var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
18157
- setMenuTreeData(routesData);
18128
+ _setMenuTreeData(routesData);
18158
18129
  routesData.forEach(function (item) {
18159
18130
  if (item.children) {
18160
18131
  routesDataList.push(item);
@@ -18184,7 +18155,7 @@ var DrawContent$1 = function DrawContent(_ref) {
18184
18155
  setHeight(clientHeight - 190);
18185
18156
  setDrawHeight(clientHeight - 70);
18186
18157
  };
18187
- var renderChildItem = function renderChildItem(child) {
18158
+ var _renderChildItem = function renderChildItem(child) {
18188
18159
  if (!child.hideInMenu && child.children) {
18189
18160
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
18190
18161
  style: {
@@ -18194,7 +18165,7 @@ var DrawContent$1 = function DrawContent(_ref) {
18194
18165
  }, formatMessage({
18195
18166
  id: "".concat(child.locale)
18196
18167
  })), child.children.map(function (menuItem) {
18197
- return renderChildItem(menuItem);
18168
+ return _renderChildItem(menuItem);
18198
18169
  }));
18199
18170
  } else if (!child.hideInMenu && child.path) {
18200
18171
  return /*#__PURE__*/React$1.createElement(List.Item, {
@@ -18398,7 +18369,7 @@ var DrawContent$1 = function DrawContent(_ref) {
18398
18369
  bordered: true,
18399
18370
  dataSource: item.children,
18400
18371
  renderItem: function renderItem(child) {
18401
- return renderChildItem(child);
18372
+ return _renderChildItem(child);
18402
18373
  }
18403
18374
  });
18404
18375
  })), /*#__PURE__*/React$1.createElement("div", {
@@ -18556,10 +18527,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
18556
18527
  var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
18557
18528
  var menuKeys = [];
18558
18529
  var docsId = [];
18559
- var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
18530
+ var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
18560
18531
  data.forEach(function (item) {
18561
18532
  if (item.children && item.children.length > 0) {
18562
- getLimitedMenuKeys(item.children);
18533
+ _getLimitedMenuKeys(item.children);
18563
18534
  } else {
18564
18535
  var originPath = item.path.replace(/^\/\w+\//, '/');
18565
18536
  menuKeys.push(originPath);
@@ -18570,7 +18541,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
18570
18541
  });
18571
18542
  };
18572
18543
  try {
18573
- getLimitedMenuKeys(limitedMenuData);
18544
+ _getLimitedMenuKeys(limitedMenuData);
18574
18545
  } catch (e) {}
18575
18546
  return {
18576
18547
  menuKeys: menuKeys,
@@ -18804,10 +18775,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
18804
18775
  return (node.path || '').includes('all-general-documents');
18805
18776
  };
18806
18777
  // 递归获取树列表
18807
- var getTreeList = function getTreeList(data) {
18778
+ var _getTreeList = function getTreeList(data) {
18808
18779
  data.forEach(function (node) {
18809
18780
  if (node.routes && node.routes.length > 0) {
18810
- getTreeList(node.routes);
18781
+ _getTreeList(node.routes);
18811
18782
  return;
18812
18783
  }
18813
18784
  // todo:暂时处理非wujie环境不做404管控
@@ -18838,7 +18809,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
18838
18809
  }
18839
18810
  });
18840
18811
  };
18841
- getTreeList(treeData);
18812
+ _getTreeList(treeData);
18842
18813
  return treeList;
18843
18814
  };
18844
18815
  _this.getDictionarySource = function (dicCode) {
@@ -19899,12 +19870,12 @@ var index$5 = (function (props) {
19899
19870
  });
19900
19871
 
19901
19872
  // @ts-nocheck
19902
- var getAllColumns = function getAllColumns(columns) {
19873
+ var _getAllColumns = function getAllColumns(columns) {
19903
19874
  var result = [];
19904
19875
  columns.forEach(function (column) {
19905
19876
  if (column.children) {
19906
19877
  result.push(column);
19907
- result.push.apply(result, getAllColumns(column.children));
19878
+ result.push.apply(result, _getAllColumns(column.children));
19908
19879
  } else {
19909
19880
  result.push(column);
19910
19881
  }
@@ -19913,7 +19884,7 @@ var getAllColumns = function getAllColumns(columns) {
19913
19884
  };
19914
19885
  var convertToRows = function convertToRows(originColumns) {
19915
19886
  var maxLevel = 1;
19916
- var traverse = function traverse(column, parent) {
19887
+ var _traverse = function traverse(column, parent) {
19917
19888
  if (parent) {
19918
19889
  column.level = parent.level + 1;
19919
19890
  if (maxLevel < column.level) {
@@ -19923,7 +19894,7 @@ var convertToRows = function convertToRows(originColumns) {
19923
19894
  if (column.children) {
19924
19895
  var colSpan = 0;
19925
19896
  column.children.forEach(function (subColumn) {
19926
- traverse(subColumn, column);
19897
+ _traverse(subColumn, column);
19927
19898
  colSpan += subColumn.colSpan;
19928
19899
  });
19929
19900
  column.colSpan = colSpan;
@@ -19933,13 +19904,13 @@ var convertToRows = function convertToRows(originColumns) {
19933
19904
  };
19934
19905
  originColumns.forEach(function (column) {
19935
19906
  column.level = 1;
19936
- traverse(column);
19907
+ _traverse(column);
19937
19908
  });
19938
19909
  var rows = [];
19939
19910
  for (var i = 0; i < maxLevel; i++) {
19940
19911
  rows.push([]);
19941
19912
  }
19942
- var allColumns = getAllColumns(originColumns);
19913
+ var allColumns = _getAllColumns(originColumns);
19943
19914
  allColumns.forEach(function (column) {
19944
19915
  if (!column.children) {
19945
19916
  column.rowSpan = maxLevel - column.level + 1;
@@ -19979,7 +19950,7 @@ var convertToRows = function convertToRows(originColumns) {
19979
19950
  };
19980
19951
  var headersToRows = function headersToRows(originColumns) {
19981
19952
  var maxLevel = 1;
19982
- var traverse = function traverse(column, parent) {
19953
+ var _traverse2 = function traverse(column, parent) {
19983
19954
  if (parent) {
19984
19955
  //计算当前元素属于第几个层级
19985
19956
  column.level = parent.level + 1;
@@ -19992,7 +19963,7 @@ var headersToRows = function headersToRows(originColumns) {
19992
19963
  var colSpan = 0;
19993
19964
  column.children.forEach(function (subColumn) {
19994
19965
  //进行递归
19995
- traverse(subColumn, column);
19966
+ _traverse2(subColumn, column);
19996
19967
  colSpan += subColumn.colSpan;
19997
19968
  });
19998
19969
  column.colSpan = colSpan;
@@ -20002,14 +19973,14 @@ var headersToRows = function headersToRows(originColumns) {
20002
19973
  };
20003
19974
  originColumns.forEach(function (column) {
20004
19975
  column.level = 1;
20005
- traverse(column);
19976
+ _traverse2(column);
20006
19977
  });
20007
19978
  var rows = [];
20008
19979
  var lastData = [];
20009
19980
  for (var i = 0; i < maxLevel; i++) {
20010
19981
  rows.push([]);
20011
19982
  }
20012
- var allColumns = getAllColumns(originColumns);
19983
+ var allColumns = _getAllColumns(originColumns);
20013
19984
  allColumns.forEach(function (column) {
20014
19985
  if (!column.children) {
20015
19986
  column.rowSpan = maxLevel - column.level + 1;
@@ -26026,7 +25997,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
26026
25997
  }
26027
25998
  return lineStart <= highLightLine && lineEnd >= highLightLine;
26028
25999
  };
26029
- var hasHighLightChildren = function hasHighLightChildren() {
26000
+ var _hasHighLightChildren = function hasHighLightChildren() {
26030
26001
  var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
26031
26002
  var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
26032
26003
  var children = hightLightData.children,
@@ -26037,7 +26008,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
26037
26008
  lineEnd = _loc2[2];
26038
26009
  if (children) {
26039
26010
  return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
26040
- return hasHighLightChildren(v, highLightLine);
26011
+ return _hasHighLightChildren(v, highLightLine);
26041
26012
  });
26042
26013
  }
26043
26014
  return lineStart <= highLightLine && lineEnd >= highLightLine;
@@ -26049,7 +26020,7 @@ function createHighLightTreeData(treeData, highLightLine) {
26049
26020
  var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
26050
26021
  data.forEach(function (node) {
26051
26022
  if (!node) return;
26052
- node.toggled = hasHighLightChildren(node, highLightLine);
26023
+ node.toggled = _hasHighLightChildren(node, highLightLine);
26053
26024
  node.active = isHightLight(node, highLightLine);
26054
26025
  if (node.children) {
26055
26026
  if (node.active) {
@@ -31701,6 +31672,200 @@ var RuleField = /*#__PURE__*/function (_Component) {
31701
31672
  });
31702
31673
  }
31703
31674
  }
31675
+ // 品牌选择器
31676
+ if (dataChoiceBusinessType == 410) {
31677
+ if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31678
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31679
+ selectBusinessType: "brand",
31680
+ selectProps: _objectSpread2({
31681
+ style: styleCommon,
31682
+ placeholder: '请选择品牌'
31683
+ }, dataInputBusinessType === 12 ? {
31684
+ mode: 'multiple',
31685
+ maxTagCount: 1
31686
+ } : {}),
31687
+ disabled: disabled,
31688
+ labelInValue: true,
31689
+ value: values[0],
31690
+ requestConfig: {
31691
+ filterInit: 'qp-brandCode-in'
31692
+ },
31693
+ onChange: function onChange(value) {
31694
+ if (dataInputBusinessType === 12) {
31695
+ values[0] = value.map(function (i) {
31696
+ return i.key;
31697
+ });
31698
+ valueNames[0] = value.map(function (i) {
31699
+ return i.label || '';
31700
+ });
31701
+ } else {
31702
+ values[0] = [value.key];
31703
+ valueNames[0] = [value.label || ''];
31704
+ }
31705
+ callback(values, valueNames);
31706
+ },
31707
+ getPopupContainer: function getPopupContainer() {
31708
+ return document.body;
31709
+ }
31710
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31711
+ selectBusinessType: "brand",
31712
+ selectProps: _objectSpread2({
31713
+ style: styleCommon,
31714
+ placeholder: '请选择品牌'
31715
+ }, dataInputBusinessType === 12 ? {
31716
+ mode: 'multiple',
31717
+ maxTagCount: 1
31718
+ } : {}),
31719
+ disabled: disabled,
31720
+ labelInValue: true,
31721
+ value: values[1],
31722
+ requestConfig: {
31723
+ filterInit: 'qp-brandCode-in'
31724
+ },
31725
+ onChange: function onChange(value) {
31726
+ if (dataInputBusinessType === 12) {
31727
+ values[1] = value.map(function (i) {
31728
+ return i.key;
31729
+ });
31730
+ valueNames[1] = value.map(function (i) {
31731
+ return i.label || '';
31732
+ });
31733
+ } else {
31734
+ values[1] = [value.key];
31735
+ valueNames[1] = [value.label || ''];
31736
+ }
31737
+ callback(values, valueNames);
31738
+ },
31739
+ getPopupContainer: function getPopupContainer() {
31740
+ return document.body;
31741
+ }
31742
+ }));
31743
+ } else {
31744
+ var _values13;
31745
+ var _currentValue12 = dataInputBusinessType === 12 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
31746
+ return {
31747
+ key: s,
31748
+ label: valueNames[vIndex]
31749
+ };
31750
+ })) || [] : values[0] && {
31751
+ key: values[0],
31752
+ label: valueNames[0]
31753
+ } || {};
31754
+ return /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
31755
+ selectBusinessType: "brand",
31756
+ selectProps: _objectSpread2({
31757
+ style: styleCommon,
31758
+ placeholder: '请选择品牌'
31759
+ }, dataInputBusinessType === 12 ? {
31760
+ mode: 'multiple',
31761
+ maxTagCount: 1
31762
+ } : {}),
31763
+ disabled: disabled,
31764
+ labelInValue: true,
31765
+ value: _currentValue12,
31766
+ requestConfig: {
31767
+ filterInit: 'qp-brandCode-in'
31768
+ },
31769
+ onChange: function onChange(value) {
31770
+ if (dataInputBusinessType === 12) {
31771
+ values = value.map(function (i) {
31772
+ return i.key;
31773
+ }) || [];
31774
+ valueNames = value.map(function (i) {
31775
+ return i.label || '';
31776
+ }) || [];
31777
+ } else {
31778
+ values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31779
+ valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
31780
+ }
31781
+ callback(values, valueNames);
31782
+ },
31783
+ getPopupContainer: function getPopupContainer() {
31784
+ return document.body;
31785
+ }
31786
+ });
31787
+ }
31788
+ }
31789
+ // 类目选择器
31790
+ if (dataChoiceBusinessType == 420) {
31791
+ if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
31792
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31793
+ disabled: disabled,
31794
+ treeCheckable: dataInputBusinessType === 12,
31795
+ businessType: "background-category",
31796
+ labelInValue: true,
31797
+ value: values[0],
31798
+ style: styleCommon,
31799
+ onChange: function onChange(value) {
31800
+ if (dataInputBusinessType === 12) {
31801
+ values[0] = value.map(function (i) {
31802
+ return i.key;
31803
+ });
31804
+ valueNames[0] = value.map(function (i) {
31805
+ return i.label || '';
31806
+ });
31807
+ } else {
31808
+ values[0] = [value.key];
31809
+ valueNames[0] = [value.label || ''];
31810
+ }
31811
+ callback(values, valueNames);
31812
+ },
31813
+ getPopupContainer: function getPopupContainer() {
31814
+ return document.body;
31815
+ }
31816
+ }), /*#__PURE__*/React$1.createElement("span", null, "~"), /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31817
+ disabled: disabled,
31818
+ treeCheckable: dataInputBusinessType === 12,
31819
+ businessType: "background-category",
31820
+ labelInValue: true,
31821
+ value: values[0],
31822
+ style: styleCommon,
31823
+ onChange: function onChange(value) {
31824
+ if (dataInputBusinessType === 12) {
31825
+ values[1] = value.map(function (i) {
31826
+ return i.key;
31827
+ });
31828
+ valueNames[1] = value.map(function (i) {
31829
+ return i.label || '';
31830
+ });
31831
+ } else {
31832
+ values[1] = [value.key];
31833
+ valueNames[1] = [value.label || ''];
31834
+ }
31835
+ callback(values, valueNames);
31836
+ },
31837
+ getPopupContainer: function getPopupContainer() {
31838
+ return document.body;
31839
+ }
31840
+ }));
31841
+ } else {
31842
+ return /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
31843
+ disabled: disabled,
31844
+ treeCheckable: dataInputBusinessType === 12,
31845
+ businessType: "background-category",
31846
+ labelInValue: true,
31847
+ value: values[0],
31848
+ style: styleCommon,
31849
+ onChange: function onChange(value) {
31850
+ if (dataInputBusinessType === 12) {
31851
+ values = value.map(function (i) {
31852
+ return i.key;
31853
+ }) || [];
31854
+ valueNames = value.map(function (i) {
31855
+ return i.label || '';
31856
+ }) || [];
31857
+ } else {
31858
+ values = (value === null || value === void 0 ? void 0 : value.key) ? [value.key] : [];
31859
+ valueNames = (value === null || value === void 0 ? void 0 : value.label) ? [value.label] : [];
31860
+ }
31861
+ callback(values, valueNames);
31862
+ },
31863
+ getPopupContainer: function getPopupContainer() {
31864
+ return document.body;
31865
+ }
31866
+ });
31867
+ }
31868
+ }
31704
31869
  } else {
31705
31870
  if (dataTypeCode == 22 || dataTypeCode == 21 || dataTypeCode == 24 || dataTypeCode == 23) {
31706
31871
  //数值22, 字符串21, 布尔类型24, long23
@@ -32954,6 +33119,40 @@ function RenderCompItem(props) {
32954
33119
  getPopupContainer: function getPopupContainer() {
32955
33120
  return document.body;
32956
33121
  }
33122
+ })) || 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, {
33123
+ selectBusinessType: "brand",
33124
+ selectProps: _objectSpread2({
33125
+ style: styleCommon,
33126
+ placeholder: '请选择品牌'
33127
+ }, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30 ? {
33128
+ mode: 'multiple',
33129
+ maxTagCount: 1
33130
+ } : {}),
33131
+ disabled: disabled,
33132
+ labelInValue: true,
33133
+ value: showValue(ites.code),
33134
+ requestConfig: {
33135
+ filterInit: 'qp-brandCode-in'
33136
+ },
33137
+ onChange: function onChange(value) {
33138
+ handleEdit(ites.code, value);
33139
+ },
33140
+ getPopupContainer: function getPopupContainer() {
33141
+ return document.body;
33142
+ }
33143
+ })) || 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, {
33144
+ disabled: disabled,
33145
+ treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
33146
+ businessType: "background-category",
33147
+ labelInValue: true,
33148
+ value: showValue(ites.code),
33149
+ style: styleCommon,
33150
+ onChange: function onChange(value) {
33151
+ handleEdit(ites.code, value);
33152
+ },
33153
+ getPopupContainer: function getPopupContainer() {
33154
+ return document.body;
33155
+ }
32957
33156
  })) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
32958
33157
  style: {
32959
33158
  display: 'flex'
@@ -35161,4 +35360,4 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
35161
35360
  })));
35162
35361
  });
35163
35362
 
35164
- 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, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, 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, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, 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, 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 };
35363
+ 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, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, 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, 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 };