@bit-sun/business-component 4.0.13-alpha.26 → 4.0.13-alpha.27
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 +454 -416
- package/dist/index.js +455 -417
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +8 -8
package/dist/index.esm.js
CHANGED
|
@@ -32,88 +32,9 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
32
32
|
import { visit } from 'ast-types';
|
|
33
33
|
import isArray$1 from 'lodash/isArray';
|
|
34
34
|
|
|
35
|
-
function _arrayLikeToArray(r, a) {
|
|
36
|
-
(null == a || a > r.length) && (a = r.length);
|
|
37
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
38
|
-
return n;
|
|
39
|
-
}
|
|
40
|
-
function _arrayWithHoles(r) {
|
|
41
|
-
if (Array.isArray(r)) return r;
|
|
42
|
-
}
|
|
43
|
-
function _arrayWithoutHoles(r) {
|
|
44
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
45
|
-
}
|
|
46
|
-
function _assertThisInitialized(e) {
|
|
47
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
48
|
-
return e;
|
|
49
|
-
}
|
|
50
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
51
|
-
try {
|
|
52
|
-
var i = n[a](c),
|
|
53
|
-
u = i.value;
|
|
54
|
-
} catch (n) {
|
|
55
|
-
return void e(n);
|
|
56
|
-
}
|
|
57
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
58
|
-
}
|
|
59
|
-
function _asyncToGenerator(n) {
|
|
60
|
-
return function () {
|
|
61
|
-
var t = this,
|
|
62
|
-
e = arguments;
|
|
63
|
-
return new Promise(function (r, o) {
|
|
64
|
-
var a = n.apply(t, e);
|
|
65
|
-
function _next(n) {
|
|
66
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
67
|
-
}
|
|
68
|
-
function _throw(n) {
|
|
69
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
70
|
-
}
|
|
71
|
-
_next(void 0);
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
35
|
function _callSuper(t, o, e) {
|
|
76
36
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
77
37
|
}
|
|
78
|
-
function _classCallCheck(a, n) {
|
|
79
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
80
|
-
}
|
|
81
|
-
function _defineProperties(e, r) {
|
|
82
|
-
for (var t = 0; t < r.length; t++) {
|
|
83
|
-
var o = r[t];
|
|
84
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function _createClass(e, r, t) {
|
|
88
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
89
|
-
writable: !1
|
|
90
|
-
}), e;
|
|
91
|
-
}
|
|
92
|
-
function _defineProperty(e, r, t) {
|
|
93
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
94
|
-
value: t,
|
|
95
|
-
enumerable: !0,
|
|
96
|
-
configurable: !0,
|
|
97
|
-
writable: !0
|
|
98
|
-
}) : e[r] = t, e;
|
|
99
|
-
}
|
|
100
|
-
function _getPrototypeOf(t) {
|
|
101
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
102
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
103
|
-
}, _getPrototypeOf(t);
|
|
104
|
-
}
|
|
105
|
-
function _inherits(t, e) {
|
|
106
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
107
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
108
|
-
constructor: {
|
|
109
|
-
value: t,
|
|
110
|
-
writable: !0,
|
|
111
|
-
configurable: !0
|
|
112
|
-
}
|
|
113
|
-
}), Object.defineProperty(t, "prototype", {
|
|
114
|
-
writable: !1
|
|
115
|
-
}), e && _setPrototypeOf(t, e);
|
|
116
|
-
}
|
|
117
38
|
function _isNativeReflectConstruct() {
|
|
118
39
|
try {
|
|
119
40
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -122,9 +43,6 @@ function _isNativeReflectConstruct() {
|
|
|
122
43
|
return !!t;
|
|
123
44
|
})();
|
|
124
45
|
}
|
|
125
|
-
function _iterableToArray(r) {
|
|
126
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
127
|
-
}
|
|
128
46
|
function _iterableToArrayLimit(r, l) {
|
|
129
47
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
130
48
|
if (null != t) {
|
|
@@ -152,15 +70,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
152
70
|
return a;
|
|
153
71
|
}
|
|
154
72
|
}
|
|
155
|
-
function _nonIterableRest() {
|
|
156
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
157
|
-
}
|
|
158
|
-
function _nonIterableSpread() {
|
|
159
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
160
|
-
}
|
|
161
|
-
function _objectDestructuringEmpty(t) {
|
|
162
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
163
|
-
}
|
|
164
73
|
function ownKeys(e, r) {
|
|
165
74
|
var t = Object.keys(e);
|
|
166
75
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -182,31 +91,6 @@ function _objectSpread2(e) {
|
|
|
182
91
|
}
|
|
183
92
|
return e;
|
|
184
93
|
}
|
|
185
|
-
function _objectWithoutProperties(e, t) {
|
|
186
|
-
if (null == e) return {};
|
|
187
|
-
var o,
|
|
188
|
-
r,
|
|
189
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
|
-
if (Object.getOwnPropertySymbols) {
|
|
191
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
192
|
-
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
|
-
}
|
|
194
|
-
return i;
|
|
195
|
-
}
|
|
196
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
197
|
-
if (null == r) return {};
|
|
198
|
-
var t = {};
|
|
199
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
201
|
-
t[n] = r[n];
|
|
202
|
-
}
|
|
203
|
-
return t;
|
|
204
|
-
}
|
|
205
|
-
function _possibleConstructorReturn(t, e) {
|
|
206
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
207
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
|
-
return _assertThisInitialized(t);
|
|
209
|
-
}
|
|
210
94
|
function _regeneratorRuntime() {
|
|
211
95
|
_regeneratorRuntime = function () {
|
|
212
96
|
return e;
|
|
@@ -508,20 +392,6 @@ function _regeneratorRuntime() {
|
|
|
508
392
|
}
|
|
509
393
|
}, e;
|
|
510
394
|
}
|
|
511
|
-
function _setPrototypeOf(t, e) {
|
|
512
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
513
|
-
return t.__proto__ = e, t;
|
|
514
|
-
}, _setPrototypeOf(t, e);
|
|
515
|
-
}
|
|
516
|
-
function _slicedToArray(r, e) {
|
|
517
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
518
|
-
}
|
|
519
|
-
function _toArray(r) {
|
|
520
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
521
|
-
}
|
|
522
|
-
function _toConsumableArray(r) {
|
|
523
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
524
|
-
}
|
|
525
395
|
function _toPrimitive(t, r) {
|
|
526
396
|
if ("object" != typeof t || !t) return t;
|
|
527
397
|
var e = t[Symbol.toPrimitive];
|
|
@@ -545,13 +415,181 @@ function _typeof(o) {
|
|
|
545
415
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
546
416
|
}, _typeof(o);
|
|
547
417
|
}
|
|
548
|
-
function
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
var
|
|
552
|
-
|
|
418
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
419
|
+
try {
|
|
420
|
+
var info = gen[key](arg);
|
|
421
|
+
var value = info.value;
|
|
422
|
+
} catch (error) {
|
|
423
|
+
reject(error);
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
if (info.done) {
|
|
427
|
+
resolve(value);
|
|
428
|
+
} else {
|
|
429
|
+
Promise.resolve(value).then(_next, _throw);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
function _asyncToGenerator(fn) {
|
|
433
|
+
return function () {
|
|
434
|
+
var self = this,
|
|
435
|
+
args = arguments;
|
|
436
|
+
return new Promise(function (resolve, reject) {
|
|
437
|
+
var gen = fn.apply(self, args);
|
|
438
|
+
function _next(value) {
|
|
439
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
440
|
+
}
|
|
441
|
+
function _throw(err) {
|
|
442
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
443
|
+
}
|
|
444
|
+
_next(undefined);
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
function _classCallCheck(instance, Constructor) {
|
|
449
|
+
if (!(instance instanceof Constructor)) {
|
|
450
|
+
throw new TypeError("Cannot call a class as a function");
|
|
553
451
|
}
|
|
554
452
|
}
|
|
453
|
+
function _defineProperties(target, props) {
|
|
454
|
+
for (var i = 0; i < props.length; i++) {
|
|
455
|
+
var descriptor = props[i];
|
|
456
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
457
|
+
descriptor.configurable = true;
|
|
458
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
459
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
463
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
464
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
465
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
466
|
+
writable: false
|
|
467
|
+
});
|
|
468
|
+
return Constructor;
|
|
469
|
+
}
|
|
470
|
+
function _defineProperty(obj, key, value) {
|
|
471
|
+
key = _toPropertyKey(key);
|
|
472
|
+
if (key in obj) {
|
|
473
|
+
Object.defineProperty(obj, key, {
|
|
474
|
+
value: value,
|
|
475
|
+
enumerable: true,
|
|
476
|
+
configurable: true,
|
|
477
|
+
writable: true
|
|
478
|
+
});
|
|
479
|
+
} else {
|
|
480
|
+
obj[key] = value;
|
|
481
|
+
}
|
|
482
|
+
return obj;
|
|
483
|
+
}
|
|
484
|
+
function _inherits(subClass, superClass) {
|
|
485
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
486
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
487
|
+
}
|
|
488
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
489
|
+
constructor: {
|
|
490
|
+
value: subClass,
|
|
491
|
+
writable: true,
|
|
492
|
+
configurable: true
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
Object.defineProperty(subClass, "prototype", {
|
|
496
|
+
writable: false
|
|
497
|
+
});
|
|
498
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
499
|
+
}
|
|
500
|
+
function _getPrototypeOf(o) {
|
|
501
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
502
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
503
|
+
};
|
|
504
|
+
return _getPrototypeOf(o);
|
|
505
|
+
}
|
|
506
|
+
function _setPrototypeOf(o, p) {
|
|
507
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
508
|
+
o.__proto__ = p;
|
|
509
|
+
return o;
|
|
510
|
+
};
|
|
511
|
+
return _setPrototypeOf(o, p);
|
|
512
|
+
}
|
|
513
|
+
function _objectDestructuringEmpty(obj) {
|
|
514
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
515
|
+
}
|
|
516
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
517
|
+
if (source == null) return {};
|
|
518
|
+
var target = {};
|
|
519
|
+
for (var key in source) {
|
|
520
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
521
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
522
|
+
target[key] = source[key];
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return target;
|
|
526
|
+
}
|
|
527
|
+
function _objectWithoutProperties(source, excluded) {
|
|
528
|
+
if (source == null) return {};
|
|
529
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
530
|
+
var key, i;
|
|
531
|
+
if (Object.getOwnPropertySymbols) {
|
|
532
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
533
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
534
|
+
key = sourceSymbolKeys[i];
|
|
535
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
536
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
537
|
+
target[key] = source[key];
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
return target;
|
|
541
|
+
}
|
|
542
|
+
function _assertThisInitialized(self) {
|
|
543
|
+
if (self === void 0) {
|
|
544
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
545
|
+
}
|
|
546
|
+
return self;
|
|
547
|
+
}
|
|
548
|
+
function _possibleConstructorReturn(self, call) {
|
|
549
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
550
|
+
return call;
|
|
551
|
+
} else if (call !== void 0) {
|
|
552
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
553
|
+
}
|
|
554
|
+
return _assertThisInitialized(self);
|
|
555
|
+
}
|
|
556
|
+
function _slicedToArray(arr, i) {
|
|
557
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
558
|
+
}
|
|
559
|
+
function _toArray(arr) {
|
|
560
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
561
|
+
}
|
|
562
|
+
function _toConsumableArray(arr) {
|
|
563
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
564
|
+
}
|
|
565
|
+
function _arrayWithoutHoles(arr) {
|
|
566
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
567
|
+
}
|
|
568
|
+
function _arrayWithHoles(arr) {
|
|
569
|
+
if (Array.isArray(arr)) return arr;
|
|
570
|
+
}
|
|
571
|
+
function _iterableToArray(iter) {
|
|
572
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
573
|
+
}
|
|
574
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
575
|
+
if (!o) return;
|
|
576
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
577
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
578
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
579
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
580
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
581
|
+
}
|
|
582
|
+
function _arrayLikeToArray(arr, len) {
|
|
583
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
584
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
585
|
+
return arr2;
|
|
586
|
+
}
|
|
587
|
+
function _nonIterableSpread() {
|
|
588
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
589
|
+
}
|
|
590
|
+
function _nonIterableRest() {
|
|
591
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
592
|
+
}
|
|
555
593
|
|
|
556
594
|
var ENUM = {
|
|
557
595
|
// 浏览器缓存信息
|
|
@@ -1060,13 +1098,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1060
1098
|
imgHtml.innerHTML = str;
|
|
1061
1099
|
}
|
|
1062
1100
|
// 测试使用 测试类型缩小 end
|
|
1063
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1101
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1064
1102
|
className: "clomnsImg"
|
|
1065
1103
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1066
1104
|
src: url,
|
|
1067
1105
|
width: "16px",
|
|
1068
1106
|
height: "16px"
|
|
1069
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1107
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1070
1108
|
className: "clomnsImg2"
|
|
1071
1109
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1072
1110
|
src: noImg
|
|
@@ -1203,7 +1241,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1203
1241
|
}
|
|
1204
1242
|
save_link.click();
|
|
1205
1243
|
}
|
|
1206
|
-
var
|
|
1244
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1207
1245
|
return data.map(function (item) {
|
|
1208
1246
|
if (!item.name || !item.path) {
|
|
1209
1247
|
return null;
|
|
@@ -1223,7 +1261,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1223
1261
|
authority: item.authority || parentAuthority
|
|
1224
1262
|
});
|
|
1225
1263
|
if (item.routes) {
|
|
1226
|
-
var children =
|
|
1264
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1227
1265
|
// Reduce memory usage
|
|
1228
1266
|
result.children = children;
|
|
1229
1267
|
}
|
|
@@ -1233,7 +1271,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1233
1271
|
return item;
|
|
1234
1272
|
});
|
|
1235
1273
|
};
|
|
1236
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1274
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1237
1275
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1238
1276
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1239
1277
|
if (backHistoryPath) {
|
|
@@ -1542,7 +1580,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1542
1580
|
// sheepMap是表头字段中英文映射
|
|
1543
1581
|
// sheetCount:表的数量,默认一张
|
|
1544
1582
|
var resolveFile = /*#__PURE__*/function () {
|
|
1545
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1583
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1546
1584
|
var config,
|
|
1547
1585
|
data,
|
|
1548
1586
|
_args = arguments;
|
|
@@ -1581,7 +1619,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1581
1619
|
}();
|
|
1582
1620
|
//读取文件
|
|
1583
1621
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1584
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1622
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1585
1623
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1586
1624
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1587
1625
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1674,14 +1712,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1674
1712
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1675
1713
|
|
|
1676
1714
|
// 获取树平行结构
|
|
1677
|
-
var
|
|
1715
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1678
1716
|
var childrenKey = chilKey || 'children';
|
|
1679
1717
|
treeData.forEach(function (el) {
|
|
1680
1718
|
var _el$childrenKey;
|
|
1681
1719
|
result.push(el);
|
|
1682
1720
|
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) {
|
|
1683
1721
|
// 子级递归
|
|
1684
|
-
|
|
1722
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1685
1723
|
}
|
|
1686
1724
|
});
|
|
1687
1725
|
return result;
|
|
@@ -1958,13 +1996,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1958
1996
|
imgHtml.innerHTML = str;
|
|
1959
1997
|
}
|
|
1960
1998
|
// 测试使用 测试类型缩小 end
|
|
1961
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1999
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1962
2000
|
className: "clomnsImg"
|
|
1963
2001
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1964
2002
|
src: url,
|
|
1965
2003
|
width: "16px",
|
|
1966
2004
|
height: "16px"
|
|
1967
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2005
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1968
2006
|
src: noImg
|
|
1969
2007
|
}))));
|
|
1970
2008
|
};
|
|
@@ -2026,7 +2064,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2026
2064
|
}
|
|
2027
2065
|
});
|
|
2028
2066
|
};
|
|
2029
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2067
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2030
2068
|
disabled: disabled,
|
|
2031
2069
|
onChange: function onChange(e) {
|
|
2032
2070
|
var v = e.target.value;
|
|
@@ -2036,7 +2074,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2036
2074
|
width: 170
|
|
2037
2075
|
},
|
|
2038
2076
|
value: inputValue
|
|
2039
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2077
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2040
2078
|
disabled: disabled,
|
|
2041
2079
|
onBlur: function onBlur(e) {
|
|
2042
2080
|
var v = parseFloat(e.target.value);
|
|
@@ -2415,16 +2453,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2415
2453
|
var handleExportBarCode = handleExport;
|
|
2416
2454
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2417
2455
|
var routerMap = {};
|
|
2418
|
-
var
|
|
2456
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2419
2457
|
data.forEach(function (menuItem) {
|
|
2420
2458
|
if (menuItem.children) {
|
|
2421
|
-
|
|
2459
|
+
flattenMenuData(menuItem.children);
|
|
2422
2460
|
}
|
|
2423
2461
|
// Reduce memory usage
|
|
2424
2462
|
routerMap[menuItem.path] = menuItem;
|
|
2425
2463
|
});
|
|
2426
2464
|
};
|
|
2427
|
-
|
|
2465
|
+
flattenMenuData(menuData);
|
|
2428
2466
|
return routerMap;
|
|
2429
2467
|
};
|
|
2430
2468
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2567,7 +2605,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2567
2605
|
return request$1(url, parms).then(handleResponseData);
|
|
2568
2606
|
};
|
|
2569
2607
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2570
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2608
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2571
2609
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2572
2610
|
while (1) switch (_context.prev = _context.next) {
|
|
2573
2611
|
case 0:
|
|
@@ -3245,7 +3283,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3245
3283
|
style: {
|
|
3246
3284
|
color: 'red'
|
|
3247
3285
|
}
|
|
3248
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__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, {
|
|
3286
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__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, {
|
|
3249
3287
|
trigger: ['click'],
|
|
3250
3288
|
overlay: this.menuList,
|
|
3251
3289
|
placement: "bottomRight"
|
|
@@ -3920,7 +3958,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3920
3958
|
placement: "bottomLeft"
|
|
3921
3959
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3922
3960
|
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"))
|
|
3923
|
-
}, /*#__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, {
|
|
3961
|
+
}, /*#__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, {
|
|
3924
3962
|
trigger: ['click'],
|
|
3925
3963
|
overlay: this.menuList,
|
|
3926
3964
|
placement: "bottomRight"
|
|
@@ -4441,7 +4479,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4441
4479
|
destroyTooltipOnHide: true,
|
|
4442
4480
|
placement: "topRight",
|
|
4443
4481
|
autoAdjustOverflow: false,
|
|
4444
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4482
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
4445
4483
|
style: {
|
|
4446
4484
|
margin: '6px 8px 0px'
|
|
4447
4485
|
},
|
|
@@ -4743,10 +4781,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4743
4781
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4744
4782
|
});
|
|
4745
4783
|
},
|
|
4746
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4784
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
4747
4785
|
size: "small",
|
|
4748
4786
|
className: 'searchSelectSpin'
|
|
4749
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4787
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
4750
4788
|
style: {
|
|
4751
4789
|
textAlign: 'center'
|
|
4752
4790
|
}
|
|
@@ -4978,7 +5016,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4978
5016
|
title: item.name,
|
|
4979
5017
|
className: "propertyGroup_checkbox_container"
|
|
4980
5018
|
}, item.name));
|
|
4981
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5019
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
4982
5020
|
style: {
|
|
4983
5021
|
width: '50px',
|
|
4984
5022
|
cursor: 'pointer',
|
|
@@ -4991,7 +5029,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4991
5029
|
setShowNotCommon(!showNotCommon);
|
|
4992
5030
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4993
5031
|
}
|
|
4994
|
-
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
5032
|
+
}, showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4995
5033
|
};
|
|
4996
5034
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4997
5035
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5221,7 +5259,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5221
5259
|
propertyData: item,
|
|
5222
5260
|
handleProperyItemChange: handleProperyItemChange
|
|
5223
5261
|
});
|
|
5224
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5262
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5225
5263
|
style: {
|
|
5226
5264
|
width: '50px',
|
|
5227
5265
|
cursor: 'pointer',
|
|
@@ -5231,7 +5269,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5231
5269
|
onClick: function onClick() {
|
|
5232
5270
|
return setShowNotCommon(!showNotCommon);
|
|
5233
5271
|
}
|
|
5234
|
-
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5272
|
+
}, showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5235
5273
|
};
|
|
5236
5274
|
|
|
5237
5275
|
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
@@ -6349,13 +6387,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6349
6387
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6350
6388
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6351
6389
|
className: 'search_select'
|
|
6352
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6390
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6353
6391
|
onClick: function onClick() {
|
|
6354
6392
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6355
6393
|
(_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);
|
|
6356
6394
|
showModal();
|
|
6357
6395
|
}
|
|
6358
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6396
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6359
6397
|
title: getShowStr({
|
|
6360
6398
|
viewShowValueStr: viewShowValueStr,
|
|
6361
6399
|
labelInValue: labelInValue,
|
|
@@ -6394,10 +6432,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6394
6432
|
dropdownRender: function dropdownRender(menu) {
|
|
6395
6433
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6396
6434
|
},
|
|
6397
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6435
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
6398
6436
|
size: "small",
|
|
6399
6437
|
className: 'searchSelectSpin'
|
|
6400
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6438
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
6401
6439
|
style: {
|
|
6402
6440
|
textAlign: 'center'
|
|
6403
6441
|
}
|
|
@@ -6437,7 +6475,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6437
6475
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6438
6476
|
filterTxt: searchValue
|
|
6439
6477
|
}));
|
|
6440
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6478
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6441
6479
|
maskClosable: false,
|
|
6442
6480
|
destroyOnClose: true,
|
|
6443
6481
|
width: "calc(100% - 320px)",
|
|
@@ -7036,7 +7074,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7036
7074
|
style: {
|
|
7037
7075
|
width: 525
|
|
7038
7076
|
}
|
|
7039
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
7077
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
7040
7078
|
checked: !dataSource.some(function (item) {
|
|
7041
7079
|
if (item.hidden) return true;
|
|
7042
7080
|
return false;
|
|
@@ -7074,13 +7112,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7074
7112
|
_this2.onChange(e, item.title);
|
|
7075
7113
|
}
|
|
7076
7114
|
}, item.title);
|
|
7077
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
7115
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
7078
7116
|
style: {
|
|
7079
7117
|
width: '144px'
|
|
7080
7118
|
}
|
|
7081
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
7119
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
7082
7120
|
className: 'sort_table_column_all_empty'
|
|
7083
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7121
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7084
7122
|
className: 'sort_table_column_special'
|
|
7085
7123
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
7086
7124
|
className: 'sort_table_column_all'
|
|
@@ -7269,7 +7307,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7269
7307
|
});
|
|
7270
7308
|
};
|
|
7271
7309
|
// 格式化树选择器数据源
|
|
7272
|
-
var
|
|
7310
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7273
7311
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7274
7312
|
return {
|
|
7275
7313
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7279,7 +7317,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7279
7317
|
isLeaf: !haveChildren,
|
|
7280
7318
|
disabled: haveChildren,
|
|
7281
7319
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7282
|
-
return
|
|
7320
|
+
return mapSearchTree(i, resKeyValue);
|
|
7283
7321
|
}) : []
|
|
7284
7322
|
};
|
|
7285
7323
|
};
|
|
@@ -7288,7 +7326,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7288
7326
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7289
7327
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7290
7328
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7291
|
-
return
|
|
7329
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7292
7330
|
}) || [];
|
|
7293
7331
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7294
7332
|
};
|
|
@@ -7459,7 +7497,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7459
7497
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7460
7498
|
// FIXME: 特殊业务逻辑
|
|
7461
7499
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7462
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7500
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7463
7501
|
var result;
|
|
7464
7502
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7465
7503
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7712,7 +7750,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7712
7750
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7713
7751
|
value: text || null,
|
|
7714
7752
|
onChange: function () {
|
|
7715
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7753
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7716
7754
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7717
7755
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7718
7756
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8320,10 +8358,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8320
8358
|
var newColumns = arr.map(function (col) {
|
|
8321
8359
|
return _objectSpread2({}, col);
|
|
8322
8360
|
});
|
|
8323
|
-
var
|
|
8361
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8324
8362
|
var i = indexArr.shift();
|
|
8325
8363
|
if (indexArr.length > 0) {
|
|
8326
|
-
|
|
8364
|
+
handleIndex(arr[i].children, indexArr);
|
|
8327
8365
|
} else {
|
|
8328
8366
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8329
8367
|
width: size.width
|
|
@@ -8331,7 +8369,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8331
8369
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8332
8370
|
}
|
|
8333
8371
|
};
|
|
8334
|
-
|
|
8372
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8335
8373
|
callback(newColumns);
|
|
8336
8374
|
};
|
|
8337
8375
|
};
|
|
@@ -8341,13 +8379,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8341
8379
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8342
8380
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8343
8381
|
};
|
|
8344
|
-
var
|
|
8382
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8345
8383
|
arr.forEach(function (item, index) {
|
|
8346
8384
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8347
8385
|
return i || i === 0;
|
|
8348
8386
|
});
|
|
8349
8387
|
if (noEmptyArray$1(item.children)) {
|
|
8350
|
-
|
|
8388
|
+
handleColumns(item.children, indexArrInside);
|
|
8351
8389
|
} else {
|
|
8352
8390
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8353
8391
|
item.onHeaderCell = function (column) {
|
|
@@ -8363,14 +8401,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8363
8401
|
handleAntdColumnsSpecialParams(item);
|
|
8364
8402
|
return _objectSpread2({}, item);
|
|
8365
8403
|
});
|
|
8366
|
-
|
|
8404
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8367
8405
|
return setShowToChooseColumnsCallback(res);
|
|
8368
8406
|
});
|
|
8369
8407
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8370
8408
|
handleAntdColumnsSpecialParams(item);
|
|
8371
8409
|
return _objectSpread2({}, item);
|
|
8372
8410
|
});
|
|
8373
|
-
|
|
8411
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8374
8412
|
return setShowColumnsCallback(res);
|
|
8375
8413
|
});
|
|
8376
8414
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8381,7 +8419,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8381
8419
|
id: "add_select_div_".concat(uniqueValue)
|
|
8382
8420
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8383
8421
|
onClick: handleShowModal
|
|
8384
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8422
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
8385
8423
|
width: "calc(100% - 320px)",
|
|
8386
8424
|
style: {
|
|
8387
8425
|
top: 20
|
|
@@ -9295,7 +9333,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9295
9333
|
});
|
|
9296
9334
|
};
|
|
9297
9335
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9298
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9336
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9299
9337
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9300
9338
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9301
9339
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9378,10 +9416,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9378
9416
|
var newColumns = arr.map(function (col) {
|
|
9379
9417
|
return _objectSpread2({}, col);
|
|
9380
9418
|
});
|
|
9381
|
-
var
|
|
9419
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9382
9420
|
var i = indexArr.shift();
|
|
9383
9421
|
if (indexArr.length > 0) {
|
|
9384
|
-
|
|
9422
|
+
handleIndex(arr[i].children, indexArr);
|
|
9385
9423
|
} else {
|
|
9386
9424
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9387
9425
|
width: size.width
|
|
@@ -9389,17 +9427,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9389
9427
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9390
9428
|
}
|
|
9391
9429
|
};
|
|
9392
|
-
|
|
9430
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9393
9431
|
callback(newColumns);
|
|
9394
9432
|
};
|
|
9395
9433
|
};
|
|
9396
|
-
var
|
|
9434
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9397
9435
|
arr.forEach(function (item, index) {
|
|
9398
9436
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9399
9437
|
return i || i === 0;
|
|
9400
9438
|
});
|
|
9401
9439
|
if (noEmptyArray$1(item.children)) {
|
|
9402
|
-
|
|
9440
|
+
handleColumns(item.children, indexArrInside);
|
|
9403
9441
|
} else {
|
|
9404
9442
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9405
9443
|
item.onHeaderCell = function (column) {
|
|
@@ -9415,7 +9453,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9415
9453
|
handleAntdColumnsSpecialParams(item);
|
|
9416
9454
|
return _objectSpread2({}, item);
|
|
9417
9455
|
});
|
|
9418
|
-
|
|
9456
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9419
9457
|
return setShowColumnsCallback(res);
|
|
9420
9458
|
});
|
|
9421
9459
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9731,7 +9769,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9731
9769
|
});
|
|
9732
9770
|
};
|
|
9733
9771
|
// 格式化树选择器数据源
|
|
9734
|
-
var
|
|
9772
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9735
9773
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9736
9774
|
return {
|
|
9737
9775
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9741,7 +9779,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9741
9779
|
isLeaf: !haveChildren,
|
|
9742
9780
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9743
9781
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9744
|
-
return
|
|
9782
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9745
9783
|
}) : []
|
|
9746
9784
|
};
|
|
9747
9785
|
};
|
|
@@ -9755,7 +9793,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9755
9793
|
disabledJudge = false;
|
|
9756
9794
|
}
|
|
9757
9795
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9758
|
-
return
|
|
9796
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9759
9797
|
}) || [];
|
|
9760
9798
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9761
9799
|
};
|
|
@@ -10065,14 +10103,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10065
10103
|
}
|
|
10066
10104
|
}
|
|
10067
10105
|
}
|
|
10068
|
-
},
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10106
|
+
},
|
|
10107
|
+
// { name: 'qp-eancode-in', label: '商品条码', field: {
|
|
10108
|
+
// type: 'multipleQueryInput',
|
|
10109
|
+
// props: {
|
|
10110
|
+
// ...(requestConfigProp?.itemEancodeValueRequestConfig || {}),
|
|
10111
|
+
// },
|
|
10112
|
+
// }},
|
|
10113
|
+
{
|
|
10076
10114
|
name: 'qp-brandId-in',
|
|
10077
10115
|
type: 'select',
|
|
10078
10116
|
label: '品牌',
|
|
@@ -10132,8 +10170,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10132
10170
|
pageSize: 5000,
|
|
10133
10171
|
currentPage: 1
|
|
10134
10172
|
})]).then(function (x) {
|
|
10135
|
-
formatSource(x, 0,
|
|
10136
|
-
formatTreeDataSource(x, 1,
|
|
10173
|
+
formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
|
|
10174
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
10137
10175
|
});
|
|
10138
10176
|
modalTableProps = _objectSpread2({
|
|
10139
10177
|
modalTableTitle: '选择SKU',
|
|
@@ -14057,7 +14095,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
14057
14095
|
};
|
|
14058
14096
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
14059
14097
|
onClick: handleShowModal
|
|
14060
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14098
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14061
14099
|
onOk: handleOk,
|
|
14062
14100
|
onCancel: handleCancel,
|
|
14063
14101
|
destroyOnClose: true,
|
|
@@ -14176,7 +14214,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14176
14214
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
14177
14215
|
_remoteSource$special = remoteSource.specialBracket,
|
|
14178
14216
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
14179
|
-
var
|
|
14217
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
14180
14218
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
14181
14219
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
14182
14220
|
return {
|
|
@@ -14188,7 +14226,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14188
14226
|
isLeaf: !haveChildren,
|
|
14189
14227
|
disabled: isDisabled(haveChildren, isRoot),
|
|
14190
14228
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
14191
|
-
return
|
|
14229
|
+
return mapSearchTree(i);
|
|
14192
14230
|
}) : []
|
|
14193
14231
|
};
|
|
14194
14232
|
};
|
|
@@ -14206,8 +14244,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14206
14244
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
14207
14245
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14208
14246
|
headers: headers
|
|
14209
|
-
}).then(/*#__PURE__*/function () {
|
|
14210
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14247
|
+
}).then( /*#__PURE__*/function () {
|
|
14248
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14211
14249
|
var _ctx$form;
|
|
14212
14250
|
var resData, coverData, data, dataList;
|
|
14213
14251
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -14234,7 +14272,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14234
14272
|
case 9:
|
|
14235
14273
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14236
14274
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14237
|
-
return
|
|
14275
|
+
return mapSearchTree(ites);
|
|
14238
14276
|
}) || [];
|
|
14239
14277
|
case 11:
|
|
14240
14278
|
_context.next = 14;
|
|
@@ -14272,11 +14310,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14272
14310
|
return _formatResult;
|
|
14273
14311
|
}
|
|
14274
14312
|
};
|
|
14275
|
-
var
|
|
14313
|
+
var parallelData = function parallelData(data, result) {
|
|
14276
14314
|
data.forEach(function (i) {
|
|
14277
14315
|
result.push(i);
|
|
14278
14316
|
if (i[treeChildrenRoom]) {
|
|
14279
|
-
|
|
14317
|
+
parallelData(i[treeChildrenRoom], result);
|
|
14280
14318
|
}
|
|
14281
14319
|
});
|
|
14282
14320
|
return result;
|
|
@@ -14316,7 +14354,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14316
14354
|
var _ctx$form2;
|
|
14317
14355
|
var handleData = formatData(data);
|
|
14318
14356
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14319
|
-
var parallelTreeData =
|
|
14357
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14320
14358
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14321
14359
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14322
14360
|
onChangeName && onChangeName(dataName);
|
|
@@ -14359,7 +14397,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14359
14397
|
var getShowStr = function getShowStr() {
|
|
14360
14398
|
var isMultiple = multiple || treeCheckable;
|
|
14361
14399
|
var kongValue = '无';
|
|
14362
|
-
var parallelTreeData =
|
|
14400
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14363
14401
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14364
14402
|
if (isMultiple) {
|
|
14365
14403
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14371,7 +14409,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14371
14409
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14372
14410
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14373
14411
|
className: 'tree_search_select'
|
|
14374
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14412
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14375
14413
|
title: getShowStr(),
|
|
14376
14414
|
style: {
|
|
14377
14415
|
overflow: 'hidden',
|
|
@@ -14379,7 +14417,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14379
14417
|
whiteSpace: 'nowrap'
|
|
14380
14418
|
},
|
|
14381
14419
|
className: 'search_select_show'
|
|
14382
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14420
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14383
14421
|
treeCheckable: treeCheckable,
|
|
14384
14422
|
maxTagCount: maxTagCount,
|
|
14385
14423
|
showSearch: showSearch,
|
|
@@ -14576,7 +14614,7 @@ var index$2 = (function (props) {
|
|
|
14576
14614
|
} : {}
|
|
14577
14615
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14578
14616
|
className: 'status-label-operate'
|
|
14579
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14617
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14580
14618
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14581
14619
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14582
14620
|
style: {
|
|
@@ -15357,7 +15395,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15357
15395
|
style: {
|
|
15358
15396
|
width: 525
|
|
15359
15397
|
}
|
|
15360
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15398
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15361
15399
|
checked: !dataSource.some(function (item) {
|
|
15362
15400
|
if (item.hidden) return true;
|
|
15363
15401
|
return false;
|
|
@@ -15395,13 +15433,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15395
15433
|
_this2.onChange(e, item.title);
|
|
15396
15434
|
}
|
|
15397
15435
|
}, item.title);
|
|
15398
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15436
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15399
15437
|
style: {
|
|
15400
15438
|
width: '144px'
|
|
15401
15439
|
}
|
|
15402
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15440
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15403
15441
|
className: 'sort_table_column_all_empty'
|
|
15404
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15442
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15405
15443
|
className: 'sort_table_column_special'
|
|
15406
15444
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15407
15445
|
className: 'sort_table_column_all'
|
|
@@ -15580,10 +15618,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15580
15618
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15581
15619
|
return _objectSpread2({}, col);
|
|
15582
15620
|
});
|
|
15583
|
-
var
|
|
15621
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15584
15622
|
var i = indexArr.shift();
|
|
15585
15623
|
if (indexArr.length > 0) {
|
|
15586
|
-
|
|
15624
|
+
handleIndex(arr[i].children, indexArr);
|
|
15587
15625
|
} else {
|
|
15588
15626
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15589
15627
|
width: size.width
|
|
@@ -15591,7 +15629,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15591
15629
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15592
15630
|
}
|
|
15593
15631
|
};
|
|
15594
|
-
|
|
15632
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15595
15633
|
_this.setState({
|
|
15596
15634
|
showColumns: _toConsumableArray(newColumns)
|
|
15597
15635
|
});
|
|
@@ -15632,7 +15670,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15632
15670
|
};
|
|
15633
15671
|
setIsResizing(true);
|
|
15634
15672
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15635
|
-
document.addEventListener('mouseup',
|
|
15673
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15636
15674
|
};
|
|
15637
15675
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15638
15676
|
e.stopPropagation();
|
|
@@ -15648,9 +15686,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15648
15686
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15649
15687
|
}
|
|
15650
15688
|
};
|
|
15651
|
-
var
|
|
15689
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15652
15690
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15653
|
-
document.removeEventListener('mouseup',
|
|
15691
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15654
15692
|
setIsResizing(false);
|
|
15655
15693
|
};
|
|
15656
15694
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15771,13 +15809,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15771
15809
|
showSummary = summary;
|
|
15772
15810
|
}
|
|
15773
15811
|
}
|
|
15774
|
-
var
|
|
15812
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15775
15813
|
arr.forEach(function (item, index) {
|
|
15776
15814
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15777
15815
|
return i || i === 0;
|
|
15778
15816
|
});
|
|
15779
15817
|
if (noEmptyArray$1(item.children)) {
|
|
15780
|
-
|
|
15818
|
+
handleColumns(item.children, indexArrInside);
|
|
15781
15819
|
} else {
|
|
15782
15820
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15783
15821
|
item.onHeaderCell = function (column) {
|
|
@@ -15793,7 +15831,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15793
15831
|
handleBssulaColumnsSpecialParams(item);
|
|
15794
15832
|
return _objectSpread2({}, item);
|
|
15795
15833
|
});
|
|
15796
|
-
|
|
15834
|
+
handleColumns(showCol, []);
|
|
15797
15835
|
if (dynamicColumns.length) {
|
|
15798
15836
|
showCol = this.handledynamicColumns(showCol);
|
|
15799
15837
|
}
|
|
@@ -15834,7 +15872,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15834
15872
|
cell: this.ResizeableTitle
|
|
15835
15873
|
}
|
|
15836
15874
|
}
|
|
15837
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15875
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15838
15876
|
summary: summary
|
|
15839
15877
|
})));
|
|
15840
15878
|
}
|
|
@@ -15931,10 +15969,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15931
15969
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15932
15970
|
return _objectSpread2({}, col);
|
|
15933
15971
|
});
|
|
15934
|
-
var
|
|
15972
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15935
15973
|
var i = indexArr.shift();
|
|
15936
15974
|
if (indexArr.length > 0) {
|
|
15937
|
-
|
|
15975
|
+
handleIndex(arr[i].children, indexArr);
|
|
15938
15976
|
} else {
|
|
15939
15977
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15940
15978
|
width: size.width
|
|
@@ -15942,7 +15980,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15942
15980
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15943
15981
|
}
|
|
15944
15982
|
};
|
|
15945
|
-
|
|
15983
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15946
15984
|
_this.setState({
|
|
15947
15985
|
showColumns: _toConsumableArray(newColumns)
|
|
15948
15986
|
});
|
|
@@ -16018,13 +16056,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16018
16056
|
showSummary = summary;
|
|
16019
16057
|
}
|
|
16020
16058
|
}
|
|
16021
|
-
var
|
|
16059
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
16022
16060
|
arr.forEach(function (item, index) {
|
|
16023
16061
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
16024
16062
|
return i || i === 0;
|
|
16025
16063
|
});
|
|
16026
16064
|
if (noEmptyArray$1(item.children)) {
|
|
16027
|
-
|
|
16065
|
+
handleColumns(item.children, indexArrInside);
|
|
16028
16066
|
} else {
|
|
16029
16067
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
16030
16068
|
item.onHeaderCell = function (column) {
|
|
@@ -16040,7 +16078,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16040
16078
|
handleAntdColumnsSpecialParams(item);
|
|
16041
16079
|
return _objectSpread2({}, item);
|
|
16042
16080
|
});
|
|
16043
|
-
|
|
16081
|
+
handleColumns(showCol, []);
|
|
16044
16082
|
if (dynamicColumns.length) {
|
|
16045
16083
|
showCol = this.handledynamicColumns(showCol);
|
|
16046
16084
|
}
|
|
@@ -16080,7 +16118,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16080
16118
|
cell: this.ResizeableTitle
|
|
16081
16119
|
}
|
|
16082
16120
|
}
|
|
16083
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16121
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16084
16122
|
summary: summary
|
|
16085
16123
|
})));
|
|
16086
16124
|
}
|
|
@@ -16140,7 +16178,7 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
16140
16178
|
};
|
|
16141
16179
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
16142
16180
|
var routerMap = {};
|
|
16143
|
-
var
|
|
16181
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
16144
16182
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
16145
16183
|
data.forEach(function (menuItem) {
|
|
16146
16184
|
// 面包屑路径,增加显示一级导航路径显示
|
|
@@ -16155,13 +16193,13 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
16155
16193
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
16156
16194
|
});
|
|
16157
16195
|
if (newMenuItem.children) {
|
|
16158
|
-
|
|
16196
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
16159
16197
|
}
|
|
16160
16198
|
// Reduce memory usage
|
|
16161
16199
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
16162
16200
|
});
|
|
16163
16201
|
};
|
|
16164
|
-
|
|
16202
|
+
flattenMenuData(menuData, {
|
|
16165
16203
|
isMenuRoot: true
|
|
16166
16204
|
});
|
|
16167
16205
|
return routerMap;
|
|
@@ -16526,7 +16564,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16526
16564
|
display: 'flex',
|
|
16527
16565
|
gap: '8px'
|
|
16528
16566
|
}
|
|
16529
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16567
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16530
16568
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16531
16569
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16532
16570
|
onClick: function onClick() {
|
|
@@ -16534,7 +16572,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16534
16572
|
},
|
|
16535
16573
|
width: 24,
|
|
16536
16574
|
src: scanning
|
|
16537
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16575
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16538
16576
|
title: "\u5168\u5C4F"
|
|
16539
16577
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16540
16578
|
onClick: function onClick() {
|
|
@@ -16542,7 +16580,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16542
16580
|
},
|
|
16543
16581
|
width: 24,
|
|
16544
16582
|
src: quanping
|
|
16545
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16583
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16546
16584
|
}, function (prevProps, nextProps) {
|
|
16547
16585
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16548
16586
|
return false;
|
|
@@ -16627,7 +16665,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16627
16665
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16628
16666
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16629
16667
|
}, item));
|
|
16630
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16668
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16631
16669
|
}, function (prevProps, nextProps) {
|
|
16632
16670
|
if (prevProps.title !== nextProps.title) {
|
|
16633
16671
|
return false;
|
|
@@ -17267,7 +17305,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17267
17305
|
});
|
|
17268
17306
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17269
17307
|
className: 'sort_table_wrapper'
|
|
17270
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17308
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17271
17309
|
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
17272
17310
|
wrapClassName: 'sort_table_wrapper',
|
|
17273
17311
|
width: 810,
|
|
@@ -17318,7 +17356,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17318
17356
|
width: 525,
|
|
17319
17357
|
height: 24
|
|
17320
17358
|
}
|
|
17321
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17359
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17322
17360
|
checked: !dataSource.some(function (item) {
|
|
17323
17361
|
if (item.hidden) return true;
|
|
17324
17362
|
return false;
|
|
@@ -17372,13 +17410,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17372
17410
|
_this2.onChange(e, item.title);
|
|
17373
17411
|
}
|
|
17374
17412
|
}, item.title);
|
|
17375
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17413
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17376
17414
|
style: {
|
|
17377
17415
|
width: '144px'
|
|
17378
17416
|
}
|
|
17379
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17417
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17380
17418
|
className: 'sort_table_column_all_empty'
|
|
17381
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17419
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17382
17420
|
className: 'sort_table_column_special'
|
|
17383
17421
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
17384
17422
|
className: 'sort_table_column_all'
|
|
@@ -17852,7 +17890,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17852
17890
|
});
|
|
17853
17891
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17854
17892
|
className: 'sort_table_wrapper'
|
|
17855
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17893
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17856
17894
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17857
17895
|
wrapClassName: 'sort_table_wrapper',
|
|
17858
17896
|
width: 820,
|
|
@@ -17897,7 +17935,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17897
17935
|
style: {
|
|
17898
17936
|
width: 525
|
|
17899
17937
|
}
|
|
17900
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17938
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17901
17939
|
checked: !dataSource.some(function (item) {
|
|
17902
17940
|
if (item.hidden) return true;
|
|
17903
17941
|
return false;
|
|
@@ -17933,11 +17971,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17933
17971
|
_this2.onChange(e, item.name);
|
|
17934
17972
|
}
|
|
17935
17973
|
}, item.label);
|
|
17936
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17974
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17937
17975
|
style: {
|
|
17938
17976
|
width: '144px'
|
|
17939
17977
|
}
|
|
17940
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17978
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17941
17979
|
className: 'sort_table_column_all_empty'
|
|
17942
17980
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17943
17981
|
className: 'sort_table_content_wrapper'
|
|
@@ -18036,7 +18074,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18036
18074
|
};
|
|
18037
18075
|
setIsResizing(true);
|
|
18038
18076
|
document.addEventListener('mousemove', handleMouseMove);
|
|
18039
|
-
document.addEventListener('mouseup',
|
|
18077
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
18040
18078
|
};
|
|
18041
18079
|
var handleMouseMove = function handleMouseMove(e) {
|
|
18042
18080
|
e.stopPropagation();
|
|
@@ -18052,9 +18090,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18052
18090
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
18053
18091
|
}
|
|
18054
18092
|
};
|
|
18055
|
-
var
|
|
18093
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
18056
18094
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
18057
|
-
document.removeEventListener('mouseup',
|
|
18095
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
18058
18096
|
setIsResizing(false);
|
|
18059
18097
|
};
|
|
18060
18098
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18465,7 +18503,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18465
18503
|
actionsRender = actionsRender.concat([{
|
|
18466
18504
|
type: 'text',
|
|
18467
18505
|
props: {
|
|
18468
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18506
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18469
18507
|
request: {
|
|
18470
18508
|
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),
|
|
18471
18509
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18711,7 +18749,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18711
18749
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18712
18750
|
bsTableCode: bsTableCode,
|
|
18713
18751
|
onlyModal: true
|
|
18714
|
-
}), (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, {
|
|
18752
|
+
}), (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, {
|
|
18715
18753
|
ref: exportTableRef,
|
|
18716
18754
|
setShowColumns: setShowExportColumns,
|
|
18717
18755
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18804,11 +18842,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18804
18842
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18805
18843
|
var resultList = [];
|
|
18806
18844
|
var newRouter = cloneDeep(router);
|
|
18807
|
-
var
|
|
18845
|
+
var deep = function deep(router) {
|
|
18808
18846
|
if (router && Array.isArray(router)) {
|
|
18809
18847
|
router.forEach(function (item) {
|
|
18810
18848
|
if (item.children && Array.isArray(item.children)) {
|
|
18811
|
-
|
|
18849
|
+
deep(item.children);
|
|
18812
18850
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18813
18851
|
return d === item.code;
|
|
18814
18852
|
})) {
|
|
@@ -18822,10 +18860,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18822
18860
|
resultList.push(_objectSpread2({}, router));
|
|
18823
18861
|
}
|
|
18824
18862
|
};
|
|
18825
|
-
|
|
18863
|
+
deep(newRouter);
|
|
18826
18864
|
callBack([].concat(resultList));
|
|
18827
18865
|
};
|
|
18828
|
-
var
|
|
18866
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18829
18867
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18830
18868
|
var _loop = function _loop(i) {
|
|
18831
18869
|
if (routesData[i].hideInMenu) {
|
|
@@ -18839,7 +18877,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18839
18877
|
return 0; // continue
|
|
18840
18878
|
}
|
|
18841
18879
|
if (routesData[i].children) {
|
|
18842
|
-
|
|
18880
|
+
setMenuTreeData(routesData[i].children);
|
|
18843
18881
|
}
|
|
18844
18882
|
},
|
|
18845
18883
|
_ret;
|
|
@@ -18860,16 +18898,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18860
18898
|
};
|
|
18861
18899
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18862
18900
|
var routerMap = {};
|
|
18863
|
-
var
|
|
18901
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18864
18902
|
data.forEach(function (menuItem) {
|
|
18865
18903
|
if (menuItem.children) {
|
|
18866
|
-
|
|
18904
|
+
flattenMenuData(menuItem.children);
|
|
18867
18905
|
}
|
|
18868
18906
|
// Reduce memory usage
|
|
18869
18907
|
routerMap[menuItem.path] = menuItem;
|
|
18870
18908
|
});
|
|
18871
18909
|
};
|
|
18872
|
-
|
|
18910
|
+
flattenMenuData(menuData);
|
|
18873
18911
|
return routerMap;
|
|
18874
18912
|
};
|
|
18875
18913
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -19015,7 +19053,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19015
19053
|
sethomepageData(homepageDataList);
|
|
19016
19054
|
setroutesData(routesDataList);
|
|
19017
19055
|
}, []);
|
|
19018
|
-
var
|
|
19056
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19019
19057
|
if (!child.hideInMenu && child.children) {
|
|
19020
19058
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19021
19059
|
style: {
|
|
@@ -19025,7 +19063,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19025
19063
|
}, formatMessage({
|
|
19026
19064
|
id: "".concat(child.locale)
|
|
19027
19065
|
})), child.children.map(function (menuItem) {
|
|
19028
|
-
return
|
|
19066
|
+
return renderChildItem(menuItem);
|
|
19029
19067
|
}));
|
|
19030
19068
|
} else if (!child.hideInMenu && child.path) {
|
|
19031
19069
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19060,7 +19098,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19060
19098
|
className: 'drawerWarp'
|
|
19061
19099
|
}, homepageData && homepageData.filter(function (d) {
|
|
19062
19100
|
return !d.hideInMenu;
|
|
19063
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19101
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
19064
19102
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19065
19103
|
dataSource: homepageData,
|
|
19066
19104
|
renderItem: function renderItem(child) {
|
|
@@ -19095,7 +19133,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19095
19133
|
bordered: true,
|
|
19096
19134
|
dataSource: item.children,
|
|
19097
19135
|
renderItem: function renderItem(child) {
|
|
19098
|
-
return
|
|
19136
|
+
return renderChildItem(child);
|
|
19099
19137
|
}
|
|
19100
19138
|
});
|
|
19101
19139
|
})));
|
|
@@ -19155,7 +19193,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19155
19193
|
src: allfunc
|
|
19156
19194
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
19157
19195
|
className: 'btnSpan2'
|
|
19158
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19196
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19159
19197
|
style: {
|
|
19160
19198
|
left: isDrawer ? 140 : 0,
|
|
19161
19199
|
top: 50
|
|
@@ -19201,7 +19239,7 @@ function outLogin(_x) {
|
|
|
19201
19239
|
return _outLogin.apply(this, arguments);
|
|
19202
19240
|
}
|
|
19203
19241
|
function _outLogin() {
|
|
19204
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19242
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19205
19243
|
var res;
|
|
19206
19244
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19207
19245
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19343,7 +19381,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19343
19381
|
});
|
|
19344
19382
|
};
|
|
19345
19383
|
var loginOut = /*#__PURE__*/function () {
|
|
19346
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19384
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19347
19385
|
var sessionId;
|
|
19348
19386
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19349
19387
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19447,7 +19485,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19447
19485
|
marginRight: '0px'
|
|
19448
19486
|
},
|
|
19449
19487
|
src: './xialajiantou-new.svg'
|
|
19450
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19488
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19451
19489
|
};
|
|
19452
19490
|
|
|
19453
19491
|
// -- 查询店铺 --
|
|
@@ -19455,7 +19493,7 @@ function getStoreByName(_x) {
|
|
|
19455
19493
|
return _getStoreByName.apply(this, arguments);
|
|
19456
19494
|
}
|
|
19457
19495
|
function _getStoreByName() {
|
|
19458
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19496
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19459
19497
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19460
19498
|
while (1) switch (_context.prev = _context.next) {
|
|
19461
19499
|
case 0:
|
|
@@ -19523,7 +19561,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19523
19561
|
return _fetchUserList.apply(this, arguments);
|
|
19524
19562
|
}
|
|
19525
19563
|
function _fetchUserList() {
|
|
19526
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19564
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19527
19565
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19528
19566
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19529
19567
|
case 0:
|
|
@@ -19571,7 +19609,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19571
19609
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19572
19610
|
}, [debounceTimeout, key]);
|
|
19573
19611
|
var changeInput = /*#__PURE__*/function () {
|
|
19574
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19612
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19575
19613
|
var res;
|
|
19576
19614
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19577
19615
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19593,7 +19631,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19593
19631
|
};
|
|
19594
19632
|
}();
|
|
19595
19633
|
useEffect(function () {
|
|
19596
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19634
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19597
19635
|
var res;
|
|
19598
19636
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19599
19637
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19758,7 +19796,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19758
19796
|
var resultList = [];
|
|
19759
19797
|
var newRouter = cloneDeep$1(router);
|
|
19760
19798
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19761
|
-
var
|
|
19799
|
+
var deep = function deep(router) {
|
|
19762
19800
|
if (router && Array.isArray(router)) {
|
|
19763
19801
|
router.forEach(function (item) {
|
|
19764
19802
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19768,7 +19806,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19768
19806
|
d.nameEdit = true;
|
|
19769
19807
|
}
|
|
19770
19808
|
});
|
|
19771
|
-
|
|
19809
|
+
deep(item.routes);
|
|
19772
19810
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19773
19811
|
id: "menu.".concat(item.name)
|
|
19774
19812
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19787,7 +19825,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19787
19825
|
}));
|
|
19788
19826
|
}
|
|
19789
19827
|
};
|
|
19790
|
-
|
|
19828
|
+
deep(newRouter);
|
|
19791
19829
|
setroutesData([].concat(resultList));
|
|
19792
19830
|
};
|
|
19793
19831
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19869,7 +19907,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19869
19907
|
},
|
|
19870
19908
|
title: item.fullPathName
|
|
19871
19909
|
}, renderLineStyl(item.fullPathName));
|
|
19872
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19910
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19873
19911
|
employeeCode: employeeCode
|
|
19874
19912
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19875
19913
|
};
|
|
@@ -19884,7 +19922,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19884
19922
|
var TreeNode = Tree.TreeNode;
|
|
19885
19923
|
var Search$2 = Input.Search;
|
|
19886
19924
|
var dataList = [];
|
|
19887
|
-
var
|
|
19925
|
+
var generateList = function generateList(data) {
|
|
19888
19926
|
for (var i = 0; i < data.length; i++) {
|
|
19889
19927
|
var node = data[i];
|
|
19890
19928
|
var path = node.path,
|
|
@@ -19894,11 +19932,11 @@ var _generateList = function generateList(data) {
|
|
|
19894
19932
|
name: name
|
|
19895
19933
|
});
|
|
19896
19934
|
if (node.children) {
|
|
19897
|
-
|
|
19935
|
+
generateList(node.children);
|
|
19898
19936
|
}
|
|
19899
19937
|
}
|
|
19900
19938
|
};
|
|
19901
|
-
var
|
|
19939
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19902
19940
|
var parentKey;
|
|
19903
19941
|
for (var i = 0; i < tree.length; i++) {
|
|
19904
19942
|
var node = tree[i];
|
|
@@ -19907,8 +19945,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19907
19945
|
return item.path === path;
|
|
19908
19946
|
})) {
|
|
19909
19947
|
parentKey = node.path;
|
|
19910
|
-
} else if (
|
|
19911
|
-
parentKey =
|
|
19948
|
+
} else if (getParentKey(path, node.children)) {
|
|
19949
|
+
parentKey = getParentKey(path, node.children);
|
|
19912
19950
|
}
|
|
19913
19951
|
}
|
|
19914
19952
|
}
|
|
@@ -19939,7 +19977,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19939
19977
|
var treeData = _this.state.treeData;
|
|
19940
19978
|
var expandedKeys = dataList.map(function (item) {
|
|
19941
19979
|
if (item.name.indexOf(value) > -1) {
|
|
19942
|
-
return
|
|
19980
|
+
return getParentKey(item.path, treeData);
|
|
19943
19981
|
}
|
|
19944
19982
|
return null;
|
|
19945
19983
|
}).filter(function (item, i, self) {
|
|
@@ -19953,22 +19991,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19953
19991
|
};
|
|
19954
19992
|
_this.getPathList = function (originData) {
|
|
19955
19993
|
var pathList = [];
|
|
19956
|
-
var
|
|
19994
|
+
var getList = function getList(data) {
|
|
19957
19995
|
if (Array.isArray(data)) {
|
|
19958
19996
|
data.forEach(function (item) {
|
|
19959
19997
|
pathList.push(item.path);
|
|
19960
19998
|
if (item.children) {
|
|
19961
|
-
|
|
19999
|
+
getList(item.children);
|
|
19962
20000
|
}
|
|
19963
20001
|
});
|
|
19964
20002
|
} else {
|
|
19965
20003
|
pathList.push(data.path);
|
|
19966
20004
|
if (data.children) {
|
|
19967
|
-
|
|
20005
|
+
getList(data.children);
|
|
19968
20006
|
}
|
|
19969
20007
|
}
|
|
19970
20008
|
};
|
|
19971
|
-
|
|
20009
|
+
getList(originData);
|
|
19972
20010
|
return pathList;
|
|
19973
20011
|
};
|
|
19974
20012
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19977,18 +20015,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19977
20015
|
customerMenuData = _this$props.customerMenuData,
|
|
19978
20016
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19979
20017
|
var filterItem;
|
|
19980
|
-
var
|
|
20018
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19981
20019
|
menuData.forEach(function (item) {
|
|
19982
20020
|
if (item.path === path) {
|
|
19983
20021
|
filterItem = _objectSpread2({}, item);
|
|
19984
20022
|
return;
|
|
19985
20023
|
}
|
|
19986
20024
|
if (item.children) {
|
|
19987
|
-
|
|
20025
|
+
filterMenuItem(item.children);
|
|
19988
20026
|
}
|
|
19989
20027
|
});
|
|
19990
20028
|
};
|
|
19991
|
-
|
|
20029
|
+
filterMenuItem(treeData);
|
|
19992
20030
|
var addPathList = _this.getPathList(filterItem);
|
|
19993
20031
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19994
20032
|
var isRepet = false;
|
|
@@ -20018,8 +20056,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20018
20056
|
return item.path === '/';
|
|
20019
20057
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20020
20058
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20021
|
-
|
|
20022
|
-
|
|
20059
|
+
setMenuTreeData(routesData);
|
|
20060
|
+
generateList(routesData);
|
|
20023
20061
|
this.setState({
|
|
20024
20062
|
treeData: routesData
|
|
20025
20063
|
});
|
|
@@ -20033,16 +20071,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20033
20071
|
expandedKeys = _this$state.expandedKeys,
|
|
20034
20072
|
autoExpandParent = _this$state.autoExpandParent,
|
|
20035
20073
|
treeData = _this$state.treeData;
|
|
20036
|
-
var
|
|
20074
|
+
var loop = function loop(data) {
|
|
20037
20075
|
return data.map(function (item) {
|
|
20038
20076
|
var index = item.name.indexOf(searchValue);
|
|
20039
20077
|
var beforeStr = item.name.substr(0, index);
|
|
20040
20078
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
20041
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
20079
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
20042
20080
|
style: {
|
|
20043
20081
|
color: '#f50'
|
|
20044
20082
|
}
|
|
20045
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
20083
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
20046
20084
|
if (item.children && item.children.length) {
|
|
20047
20085
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20048
20086
|
path: item.path,
|
|
@@ -20064,7 +20102,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20064
20102
|
width: 18,
|
|
20065
20103
|
src: arrowRight
|
|
20066
20104
|
}))))
|
|
20067
|
-
},
|
|
20105
|
+
}, loop(item.children));
|
|
20068
20106
|
}
|
|
20069
20107
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20070
20108
|
path: item.path,
|
|
@@ -20114,7 +20152,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20114
20152
|
onExpand: this.onExpand,
|
|
20115
20153
|
expandedKeys: expandedKeys,
|
|
20116
20154
|
autoExpandParent: autoExpandParent
|
|
20117
|
-
},
|
|
20155
|
+
}, loop(treeData))));
|
|
20118
20156
|
}
|
|
20119
20157
|
}]);
|
|
20120
20158
|
}(React$1.Component);
|
|
@@ -20147,24 +20185,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20147
20185
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
20148
20186
|
var dragObj;
|
|
20149
20187
|
var finalDropItem;
|
|
20150
|
-
var
|
|
20188
|
+
var loop = function loop(data, path, callback) {
|
|
20151
20189
|
for (var i = 0; i < data.length; i++) {
|
|
20152
20190
|
if (data[i].path === path) {
|
|
20153
20191
|
return callback(data[i], i, data);
|
|
20154
20192
|
}
|
|
20155
20193
|
if (data[i].children) {
|
|
20156
|
-
|
|
20194
|
+
loop(data[i].children, path, callback);
|
|
20157
20195
|
}
|
|
20158
20196
|
}
|
|
20159
20197
|
};
|
|
20160
20198
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
20161
|
-
|
|
20199
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
20162
20200
|
arr.splice(index, 1);
|
|
20163
20201
|
dragObj = item;
|
|
20164
20202
|
});
|
|
20165
20203
|
if (!info.dropToGap) {
|
|
20166
20204
|
// Drop on the content
|
|
20167
|
-
|
|
20205
|
+
loop(data, dropKey, function (item) {
|
|
20168
20206
|
item.children = item.children || [];
|
|
20169
20207
|
item.children.unshift(dragObj);
|
|
20170
20208
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20175,7 +20213,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20175
20213
|
// Is expanded
|
|
20176
20214
|
dropPosition === 1 // On the bottom gap
|
|
20177
20215
|
) {
|
|
20178
|
-
|
|
20216
|
+
loop(data, dropKey, function (item) {
|
|
20179
20217
|
item.children = item.children || [];
|
|
20180
20218
|
item.children.unshift(dragObj);
|
|
20181
20219
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20183,7 +20221,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20183
20221
|
} else {
|
|
20184
20222
|
var ar;
|
|
20185
20223
|
var i;
|
|
20186
|
-
|
|
20224
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
20187
20225
|
ar = arr;
|
|
20188
20226
|
i = index;
|
|
20189
20227
|
});
|
|
@@ -20222,17 +20260,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20222
20260
|
title: '编辑名称',
|
|
20223
20261
|
callBack: function callBack(newName) {
|
|
20224
20262
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20225
|
-
var
|
|
20263
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
20226
20264
|
oldTreeData.forEach(function (treeItem) {
|
|
20227
20265
|
if (treeItem.path === item.path) {
|
|
20228
20266
|
treeItem.name = newName;
|
|
20229
20267
|
}
|
|
20230
20268
|
if (treeItem.children) {
|
|
20231
|
-
|
|
20269
|
+
editTreeDataName(treeItem.children);
|
|
20232
20270
|
}
|
|
20233
20271
|
});
|
|
20234
20272
|
};
|
|
20235
|
-
|
|
20273
|
+
editTreeDataName(oldTreeData);
|
|
20236
20274
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20237
20275
|
_this.setState({
|
|
20238
20276
|
modalInfo: {
|
|
@@ -20277,7 +20315,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20277
20315
|
title: '新增子目录',
|
|
20278
20316
|
callBack: function callBack(newName) {
|
|
20279
20317
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20280
|
-
var
|
|
20318
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
20281
20319
|
oldTreeData.forEach(function (treeItem) {
|
|
20282
20320
|
if (treeItem.path === item.path) {
|
|
20283
20321
|
treeItem.children ? treeItem.children.push({
|
|
@@ -20289,11 +20327,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20289
20327
|
}];
|
|
20290
20328
|
}
|
|
20291
20329
|
if (treeItem.children) {
|
|
20292
|
-
|
|
20330
|
+
addChildFolder(treeItem.children);
|
|
20293
20331
|
}
|
|
20294
20332
|
});
|
|
20295
20333
|
};
|
|
20296
|
-
|
|
20334
|
+
addChildFolder(oldTreeData);
|
|
20297
20335
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20298
20336
|
_this.setState({
|
|
20299
20337
|
modalInfo: {
|
|
@@ -20352,7 +20390,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20352
20390
|
var _this$state = this.state,
|
|
20353
20391
|
modalInfo = _this$state.modalInfo,
|
|
20354
20392
|
checkedKeys = _this$state.checkedKeys;
|
|
20355
|
-
var
|
|
20393
|
+
var loop = function loop(data) {
|
|
20356
20394
|
return data.map(function (item) {
|
|
20357
20395
|
if (item.children && item.children.length) {
|
|
20358
20396
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -20369,7 +20407,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20369
20407
|
e.stopPropagation();
|
|
20370
20408
|
}
|
|
20371
20409
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
20372
|
-
},
|
|
20410
|
+
}, loop(item.children));
|
|
20373
20411
|
}
|
|
20374
20412
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
20375
20413
|
path: item.path,
|
|
@@ -20448,7 +20486,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20448
20486
|
children: 'children'
|
|
20449
20487
|
},
|
|
20450
20488
|
onDrop: this.onDrop
|
|
20451
|
-
},
|
|
20489
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20452
20490
|
width: 600,
|
|
20453
20491
|
bodyStyle: {
|
|
20454
20492
|
paddingTop: '32px',
|
|
@@ -20561,7 +20599,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20561
20599
|
pathname: item.path
|
|
20562
20600
|
});
|
|
20563
20601
|
};
|
|
20564
|
-
var
|
|
20602
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20565
20603
|
return menuData.map(function (item) {
|
|
20566
20604
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20567
20605
|
style: {
|
|
@@ -20576,7 +20614,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20576
20614
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20577
20615
|
paddingLeft: '4px'
|
|
20578
20616
|
}
|
|
20579
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20617
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20580
20618
|
});
|
|
20581
20619
|
};
|
|
20582
20620
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20602,7 +20640,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20602
20640
|
style: {
|
|
20603
20641
|
paddingLeft: '5px'
|
|
20604
20642
|
}
|
|
20605
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20643
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20606
20644
|
style: {
|
|
20607
20645
|
left: isDrawer ? 140 : 0
|
|
20608
20646
|
},
|
|
@@ -20623,7 +20661,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20623
20661
|
visible: isDrawer
|
|
20624
20662
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20625
20663
|
className: 'menu_title_line'
|
|
20626
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20664
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20627
20665
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20628
20666
|
style: {
|
|
20629
20667
|
fontWeight: '600',
|
|
@@ -20697,7 +20735,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20697
20735
|
return item.path === '/';
|
|
20698
20736
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20699
20737
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20700
|
-
|
|
20738
|
+
setMenuTreeData(routesData);
|
|
20701
20739
|
routesData.forEach(function (item) {
|
|
20702
20740
|
if (item.children) {
|
|
20703
20741
|
routesDataList.push(item);
|
|
@@ -20727,7 +20765,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20727
20765
|
setHeight(clientHeight - 190);
|
|
20728
20766
|
setDrawHeight(clientHeight - 70);
|
|
20729
20767
|
};
|
|
20730
|
-
var
|
|
20768
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20731
20769
|
if (!child.hideInMenu && child.children) {
|
|
20732
20770
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20733
20771
|
style: {
|
|
@@ -20737,7 +20775,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20737
20775
|
}, formatMessage({
|
|
20738
20776
|
id: "".concat(child.locale)
|
|
20739
20777
|
})), child.children.map(function (menuItem) {
|
|
20740
|
-
return
|
|
20778
|
+
return renderChildItem(menuItem);
|
|
20741
20779
|
}));
|
|
20742
20780
|
} else if (!child.hideInMenu && child.path) {
|
|
20743
20781
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20879,7 +20917,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20879
20917
|
onMenuClick(e, item);
|
|
20880
20918
|
}
|
|
20881
20919
|
}, item.name);
|
|
20882
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20920
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
20883
20921
|
className: 'search_menu_content'
|
|
20884
20922
|
}, SearhData.map(function (item) {
|
|
20885
20923
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20888,7 +20926,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20888
20926
|
},
|
|
20889
20927
|
key: item.path
|
|
20890
20928
|
}, item.name);
|
|
20891
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20929
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20892
20930
|
style: {
|
|
20893
20931
|
height: "".concat(rightMenuHeight, "px"),
|
|
20894
20932
|
overflowY: 'scroll',
|
|
@@ -20900,7 +20938,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20900
20938
|
className: 'drawerWarp_right'
|
|
20901
20939
|
}, homepageData && homepageData.filter(function (d) {
|
|
20902
20940
|
return !d.hideInMenu;
|
|
20903
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20941
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
20904
20942
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20905
20943
|
dataSource: homepageData,
|
|
20906
20944
|
renderItem: function renderItem(child) {
|
|
@@ -20941,7 +20979,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20941
20979
|
bordered: true,
|
|
20942
20980
|
dataSource: item.children,
|
|
20943
20981
|
renderItem: function renderItem(child) {
|
|
20944
|
-
return
|
|
20982
|
+
return renderChildItem(child);
|
|
20945
20983
|
}
|
|
20946
20984
|
});
|
|
20947
20985
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -21099,10 +21137,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21099
21137
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
21100
21138
|
var menuKeys = [];
|
|
21101
21139
|
var docsId = [];
|
|
21102
|
-
var
|
|
21140
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
21103
21141
|
data.forEach(function (item) {
|
|
21104
21142
|
if (item.children && item.children.length > 0) {
|
|
21105
|
-
|
|
21143
|
+
getLimitedMenuKeys(item.children);
|
|
21106
21144
|
} else {
|
|
21107
21145
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
21108
21146
|
menuKeys.push(originPath);
|
|
@@ -21113,7 +21151,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21113
21151
|
});
|
|
21114
21152
|
};
|
|
21115
21153
|
try {
|
|
21116
|
-
|
|
21154
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
21117
21155
|
} catch (e) {}
|
|
21118
21156
|
return {
|
|
21119
21157
|
menuKeys: menuKeys,
|
|
@@ -21347,10 +21385,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21347
21385
|
return (node.path || '').includes('all-general-documents');
|
|
21348
21386
|
};
|
|
21349
21387
|
// 递归获取树列表
|
|
21350
|
-
var
|
|
21388
|
+
var getTreeList = function getTreeList(data) {
|
|
21351
21389
|
data.forEach(function (node) {
|
|
21352
21390
|
if (node.routes && node.routes.length > 0) {
|
|
21353
|
-
|
|
21391
|
+
getTreeList(node.routes);
|
|
21354
21392
|
return;
|
|
21355
21393
|
}
|
|
21356
21394
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21381,7 +21419,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21381
21419
|
}
|
|
21382
21420
|
});
|
|
21383
21421
|
};
|
|
21384
|
-
|
|
21422
|
+
getTreeList(treeData);
|
|
21385
21423
|
return treeList;
|
|
21386
21424
|
};
|
|
21387
21425
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -22010,7 +22048,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22010
22048
|
updateState = _ref8.updateState;
|
|
22011
22049
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
22012
22050
|
className: "tab_title_content"
|
|
22013
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
22051
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
22014
22052
|
info: item,
|
|
22015
22053
|
operateFun: _this3.operateFun,
|
|
22016
22054
|
listenRouterState: listenRouterState
|
|
@@ -22146,7 +22184,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22146
22184
|
};
|
|
22147
22185
|
}
|
|
22148
22186
|
var OperationsSlot = {
|
|
22149
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
22187
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
22150
22188
|
className: 'tab_left_operate'
|
|
22151
22189
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
22152
22190
|
onClick: function onClick() {
|
|
@@ -22162,7 +22200,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22162
22200
|
_this3.setTabNavTransLate(-100);
|
|
22163
22201
|
}
|
|
22164
22202
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
22165
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
22203
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
22166
22204
|
style: {
|
|
22167
22205
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
22168
22206
|
},
|
|
@@ -22260,7 +22298,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22260
22298
|
onMouseLeave: function onMouseLeave() {
|
|
22261
22299
|
_this3.setShowMenu(false);
|
|
22262
22300
|
}
|
|
22263
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
22301
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
22264
22302
|
style: {
|
|
22265
22303
|
position: 'absolute',
|
|
22266
22304
|
top: '14px',
|
|
@@ -22279,7 +22317,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22279
22317
|
postMenuData: function postMenuData(menus) {
|
|
22280
22318
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
22281
22319
|
},
|
|
22282
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
22320
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
22283
22321
|
ref: this.allFunc,
|
|
22284
22322
|
itemPath: itemPath,
|
|
22285
22323
|
handleClose: this.handleClose,
|
|
@@ -22297,7 +22335,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22297
22335
|
},
|
|
22298
22336
|
menu: {
|
|
22299
22337
|
request: function () {
|
|
22300
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22338
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22301
22339
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22302
22340
|
while (1) switch (_context.prev = _context.next) {
|
|
22303
22341
|
case 0:
|
|
@@ -22432,7 +22470,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22432
22470
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22433
22471
|
timeFormat = _this$props4.timeFormat,
|
|
22434
22472
|
transparentProps = _this$props4.transparentProps;
|
|
22435
|
-
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({
|
|
22473
|
+
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({
|
|
22436
22474
|
getDictionarySource: getDictionarySource,
|
|
22437
22475
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22438
22476
|
timeFormat: timeFormat
|
|
@@ -22456,12 +22494,12 @@ var index$5 = (function (props) {
|
|
|
22456
22494
|
});
|
|
22457
22495
|
|
|
22458
22496
|
// @ts-nocheck
|
|
22459
|
-
var
|
|
22497
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22460
22498
|
var result = [];
|
|
22461
22499
|
columns.forEach(function (column) {
|
|
22462
22500
|
if (column.children) {
|
|
22463
22501
|
result.push(column);
|
|
22464
|
-
result.push.apply(result,
|
|
22502
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22465
22503
|
} else {
|
|
22466
22504
|
result.push(column);
|
|
22467
22505
|
}
|
|
@@ -22470,7 +22508,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22470
22508
|
};
|
|
22471
22509
|
var convertToRows = function convertToRows(originColumns) {
|
|
22472
22510
|
var maxLevel = 1;
|
|
22473
|
-
var
|
|
22511
|
+
var traverse = function traverse(column, parent) {
|
|
22474
22512
|
if (parent) {
|
|
22475
22513
|
column.level = parent.level + 1;
|
|
22476
22514
|
if (maxLevel < column.level) {
|
|
@@ -22480,7 +22518,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22480
22518
|
if (column.children) {
|
|
22481
22519
|
var colSpan = 0;
|
|
22482
22520
|
column.children.forEach(function (subColumn) {
|
|
22483
|
-
|
|
22521
|
+
traverse(subColumn, column);
|
|
22484
22522
|
colSpan += subColumn.colSpan;
|
|
22485
22523
|
});
|
|
22486
22524
|
column.colSpan = colSpan;
|
|
@@ -22490,13 +22528,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22490
22528
|
};
|
|
22491
22529
|
originColumns.forEach(function (column) {
|
|
22492
22530
|
column.level = 1;
|
|
22493
|
-
|
|
22531
|
+
traverse(column);
|
|
22494
22532
|
});
|
|
22495
22533
|
var rows = [];
|
|
22496
22534
|
for (var i = 0; i < maxLevel; i++) {
|
|
22497
22535
|
rows.push([]);
|
|
22498
22536
|
}
|
|
22499
|
-
var allColumns =
|
|
22537
|
+
var allColumns = getAllColumns(originColumns);
|
|
22500
22538
|
allColumns.forEach(function (column) {
|
|
22501
22539
|
if (!column.children) {
|
|
22502
22540
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22536,7 +22574,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22536
22574
|
};
|
|
22537
22575
|
var headersToRows = function headersToRows(originColumns) {
|
|
22538
22576
|
var maxLevel = 1;
|
|
22539
|
-
var
|
|
22577
|
+
var traverse = function traverse(column, parent) {
|
|
22540
22578
|
if (parent) {
|
|
22541
22579
|
//计算当前元素属于第几个层级
|
|
22542
22580
|
column.level = parent.level + 1;
|
|
@@ -22549,7 +22587,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22549
22587
|
var colSpan = 0;
|
|
22550
22588
|
column.children.forEach(function (subColumn) {
|
|
22551
22589
|
//进行递归
|
|
22552
|
-
|
|
22590
|
+
traverse(subColumn, column);
|
|
22553
22591
|
colSpan += subColumn.colSpan;
|
|
22554
22592
|
});
|
|
22555
22593
|
column.colSpan = colSpan;
|
|
@@ -22559,14 +22597,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22559
22597
|
};
|
|
22560
22598
|
originColumns.forEach(function (column) {
|
|
22561
22599
|
column.level = 1;
|
|
22562
|
-
|
|
22600
|
+
traverse(column);
|
|
22563
22601
|
});
|
|
22564
22602
|
var rows = [];
|
|
22565
22603
|
var lastData = [];
|
|
22566
22604
|
for (var i = 0; i < maxLevel; i++) {
|
|
22567
22605
|
rows.push([]);
|
|
22568
22606
|
}
|
|
22569
|
-
var allColumns =
|
|
22607
|
+
var allColumns = getAllColumns(originColumns);
|
|
22570
22608
|
allColumns.forEach(function (column) {
|
|
22571
22609
|
if (!column.children) {
|
|
22572
22610
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28583,7 +28621,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28583
28621
|
}
|
|
28584
28622
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28585
28623
|
};
|
|
28586
|
-
var
|
|
28624
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28587
28625
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28588
28626
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28589
28627
|
var children = hightLightData.children,
|
|
@@ -28594,7 +28632,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28594
28632
|
lineEnd = _loc2[2];
|
|
28595
28633
|
if (children) {
|
|
28596
28634
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28597
|
-
return
|
|
28635
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28598
28636
|
});
|
|
28599
28637
|
}
|
|
28600
28638
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28606,7 +28644,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28606
28644
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28607
28645
|
data.forEach(function (node) {
|
|
28608
28646
|
if (!node) return;
|
|
28609
|
-
node.toggled =
|
|
28647
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28610
28648
|
node.active = isHightLight(node, highLightLine);
|
|
28611
28649
|
if (node.children) {
|
|
28612
28650
|
if (node.active) {
|
|
@@ -30037,7 +30075,7 @@ var valueType = {
|
|
|
30037
30075
|
};
|
|
30038
30076
|
|
|
30039
30077
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30040
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30078
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30041
30079
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30042
30080
|
while (1) switch (_context.prev = _context.next) {
|
|
30043
30081
|
case 0:
|
|
@@ -30105,7 +30143,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30105
30143
|
value: false
|
|
30106
30144
|
}];
|
|
30107
30145
|
var ref = useRef();
|
|
30108
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30146
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30109
30147
|
var _ref$current, source;
|
|
30110
30148
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30111
30149
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30219,7 +30257,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30219
30257
|
source: {
|
|
30220
30258
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30221
30259
|
type: function () {
|
|
30222
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30260
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30223
30261
|
var form, values, name, relates, source;
|
|
30224
30262
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30225
30263
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30699,7 +30737,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30699
30737
|
source: {
|
|
30700
30738
|
relates: ['choiceType', 'inputType'],
|
|
30701
30739
|
type: function () {
|
|
30702
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30740
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30703
30741
|
var values, name, form, source;
|
|
30704
30742
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30705
30743
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30921,7 +30959,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30921
30959
|
width: 900,
|
|
30922
30960
|
maskClosable: false,
|
|
30923
30961
|
onOk: function () {
|
|
30924
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30962
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30925
30963
|
var _ref$current4, _res$editableStatus;
|
|
30926
30964
|
var res, _res$defaultValue;
|
|
30927
30965
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30993,7 +31031,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30993
31031
|
}()
|
|
30994
31032
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30995
31033
|
ref: ref
|
|
30996
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31034
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30997
31035
|
};
|
|
30998
31036
|
|
|
30999
31037
|
// @ts-nocheck
|
|
@@ -31607,7 +31645,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31607
31645
|
return setVisible(false);
|
|
31608
31646
|
},
|
|
31609
31647
|
className: 'customFieldsDrawer'
|
|
31610
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31648
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
31611
31649
|
style: {
|
|
31612
31650
|
display: 'flex'
|
|
31613
31651
|
}
|
|
@@ -31616,13 +31654,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31616
31654
|
flex: 1,
|
|
31617
31655
|
width: 500
|
|
31618
31656
|
}
|
|
31619
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31657
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31620
31658
|
style: {
|
|
31621
31659
|
padding: "10px 0",
|
|
31622
31660
|
fontSize: "16px",
|
|
31623
31661
|
fontWeight: "bolder"
|
|
31624
31662
|
}
|
|
31625
|
-
}, "\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", {
|
|
31663
|
+
}, "\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", {
|
|
31626
31664
|
style: {
|
|
31627
31665
|
flex: 1
|
|
31628
31666
|
}
|
|
@@ -31631,7 +31669,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31631
31669
|
onRun: onClickRun,
|
|
31632
31670
|
value: jsonEditorVal,
|
|
31633
31671
|
shallowHeight: height
|
|
31634
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31672
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
31635
31673
|
defaultActiveKey: activeKey,
|
|
31636
31674
|
onChange: function onChange(v) {
|
|
31637
31675
|
return setActiveKey(v);
|
|
@@ -31648,13 +31686,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31648
31686
|
flex: 1,
|
|
31649
31687
|
width: 500
|
|
31650
31688
|
}
|
|
31651
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31689
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31652
31690
|
style: {
|
|
31653
31691
|
padding: "10px 0",
|
|
31654
31692
|
fontSize: "16px",
|
|
31655
31693
|
fontWeight: "bolder"
|
|
31656
31694
|
}
|
|
31657
|
-
}, "\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", {
|
|
31695
|
+
}, "\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", {
|
|
31658
31696
|
style: {
|
|
31659
31697
|
flex: 1
|
|
31660
31698
|
}
|
|
@@ -31676,13 +31714,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31676
31714
|
flex: 1,
|
|
31677
31715
|
width: 500
|
|
31678
31716
|
}
|
|
31679
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31717
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31680
31718
|
style: {
|
|
31681
31719
|
padding: "10px 0",
|
|
31682
31720
|
fontSize: "16px",
|
|
31683
31721
|
fontWeight: "bolder"
|
|
31684
31722
|
}
|
|
31685
|
-
}, "\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", {
|
|
31723
|
+
}, "\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", {
|
|
31686
31724
|
style: {
|
|
31687
31725
|
flex: 1
|
|
31688
31726
|
}
|
|
@@ -31828,7 +31866,7 @@ function getMetaData(_x) {
|
|
|
31828
31866
|
|
|
31829
31867
|
// 获取数据
|
|
31830
31868
|
function _getMetaData() {
|
|
31831
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31869
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31832
31870
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31833
31871
|
while (1) switch (_context.prev = _context.next) {
|
|
31834
31872
|
case 0:
|
|
@@ -32050,7 +32088,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32050
32088
|
tableState = _useState4[0],
|
|
32051
32089
|
setTableState = _useState4[1];
|
|
32052
32090
|
var handleOpen = /*#__PURE__*/function () {
|
|
32053
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32091
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32054
32092
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32055
32093
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32056
32094
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32369,7 +32407,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32369
32407
|
destroyOnClose: true
|
|
32370
32408
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
32371
32409
|
ref: queryTableRef
|
|
32372
|
-
}, 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, {
|
|
32410
|
+
}, 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, {
|
|
32373
32411
|
justify: "center",
|
|
32374
32412
|
style: {
|
|
32375
32413
|
marginBottom: 30,
|
|
@@ -32485,7 +32523,7 @@ var CustomSelector = (function (props) {
|
|
|
32485
32523
|
var _props$ctx7;
|
|
32486
32524
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32487
32525
|
}
|
|
32488
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32526
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
32489
32527
|
type: "primary",
|
|
32490
32528
|
style: {
|
|
32491
32529
|
width: '30px',
|
|
@@ -32571,7 +32609,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32571
32609
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32572
32610
|
handSource = _useState2[0],
|
|
32573
32611
|
setHandSource = _useState2[1];
|
|
32574
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32612
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32575
32613
|
var resData, data;
|
|
32576
32614
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32577
32615
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32723,7 +32761,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32723
32761
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32724
32762
|
}
|
|
32725
32763
|
function _getRegularThresholdRange() {
|
|
32726
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32764
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32727
32765
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32728
32766
|
while (1) switch (_context.prev = _context.next) {
|
|
32729
32767
|
case 0:
|
|
@@ -32877,7 +32915,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32877
32915
|
};
|
|
32878
32916
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32879
32917
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32880
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32918
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32881
32919
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32882
32920
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32883
32921
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33834,7 +33872,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33834
33872
|
isAll: true,
|
|
33835
33873
|
needNameAndCode: true,
|
|
33836
33874
|
notChangeOnSelect: true,
|
|
33837
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33875
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33838
33876
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33839
33877
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33840
33878
|
case 0:
|
|
@@ -33883,7 +33921,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33883
33921
|
isAll: true,
|
|
33884
33922
|
needNameAndCode: true,
|
|
33885
33923
|
notChangeOnSelect: true,
|
|
33886
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33924
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33887
33925
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33888
33926
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33889
33927
|
case 0:
|
|
@@ -33934,7 +33972,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33934
33972
|
isAll: true,
|
|
33935
33973
|
needNameAndCode: true,
|
|
33936
33974
|
notChangeOnSelect: true,
|
|
33937
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33975
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33938
33976
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33939
33977
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33940
33978
|
case 0:
|
|
@@ -35912,7 +35950,7 @@ var App$1 = function App(_ref) {
|
|
|
35912
35950
|
borderRadius: '5px',
|
|
35913
35951
|
cursor: 'pointer'
|
|
35914
35952
|
}
|
|
35915
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35953
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35916
35954
|
autoFocus: true,
|
|
35917
35955
|
onClick: function onClick(e) {
|
|
35918
35956
|
return e.stopPropagation();
|
|
@@ -36199,7 +36237,7 @@ function RenderCompItem(props) {
|
|
|
36199
36237
|
dictData = _useState2[0],
|
|
36200
36238
|
setDictData = _useState2[1];
|
|
36201
36239
|
var getDictData = /*#__PURE__*/function () {
|
|
36202
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36240
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36203
36241
|
var _data$map;
|
|
36204
36242
|
var data;
|
|
36205
36243
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -36241,7 +36279,7 @@ function RenderCompItem(props) {
|
|
|
36241
36279
|
var style2 = {
|
|
36242
36280
|
width: '100px'
|
|
36243
36281
|
};
|
|
36244
|
-
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, {
|
|
36282
|
+
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, {
|
|
36245
36283
|
disabled: disabled,
|
|
36246
36284
|
allowClear: true,
|
|
36247
36285
|
onClear: function onClear() {
|
|
@@ -36252,7 +36290,7 @@ function RenderCompItem(props) {
|
|
|
36252
36290
|
onBlur: function onBlur(e) {
|
|
36253
36291
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
36254
36292
|
}
|
|
36255
|
-
})) || 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, {
|
|
36293
|
+
})) || 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, {
|
|
36256
36294
|
disabled: disabled,
|
|
36257
36295
|
// max={Number.MAX_SAFE_INTEGER}
|
|
36258
36296
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -36265,7 +36303,7 @@ function RenderCompItem(props) {
|
|
|
36265
36303
|
onChange: function onChange(value) {
|
|
36266
36304
|
handleEdit(ites.code, value);
|
|
36267
36305
|
}
|
|
36268
|
-
})) || 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, {
|
|
36306
|
+
})) || 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, {
|
|
36269
36307
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
36270
36308
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
36271
36309
|
disabled: disabled,
|
|
@@ -36275,7 +36313,7 @@ function RenderCompItem(props) {
|
|
|
36275
36313
|
onChange: function onChange(value, dateString) {
|
|
36276
36314
|
handleEdit(ites.code, dateString);
|
|
36277
36315
|
}
|
|
36278
|
-
})) || 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, {
|
|
36316
|
+
})) || 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, {
|
|
36279
36317
|
showTime: true,
|
|
36280
36318
|
disabled: disabled,
|
|
36281
36319
|
defaultValue: ites.defaultValue,
|
|
@@ -36284,7 +36322,7 @@ function RenderCompItem(props) {
|
|
|
36284
36322
|
onChange: function onChange(value, timeString) {
|
|
36285
36323
|
handleEdit(ites.code, timeString);
|
|
36286
36324
|
}
|
|
36287
|
-
})) || 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, {
|
|
36325
|
+
})) || 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, {
|
|
36288
36326
|
disabled: disabled,
|
|
36289
36327
|
defaultChecked: !!ites.defaultValue,
|
|
36290
36328
|
style: style2,
|
|
@@ -36292,7 +36330,7 @@ function RenderCompItem(props) {
|
|
|
36292
36330
|
onChange: function onChange(value) {
|
|
36293
36331
|
handleEdit(ites.code, value);
|
|
36294
36332
|
}
|
|
36295
|
-
})) || 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({
|
|
36333
|
+
})) || 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({
|
|
36296
36334
|
disabled: disabled,
|
|
36297
36335
|
allowClear: true,
|
|
36298
36336
|
showArrow: true
|
|
@@ -36310,7 +36348,7 @@ function RenderCompItem(props) {
|
|
|
36310
36348
|
key: it,
|
|
36311
36349
|
value: it
|
|
36312
36350
|
}, ites.enumeration[it]);
|
|
36313
|
-
}))) || 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, {
|
|
36351
|
+
}))) || 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, {
|
|
36314
36352
|
disabled: disabled,
|
|
36315
36353
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
36316
36354
|
defaultValue: ites.defaultValue,
|
|
@@ -36320,7 +36358,7 @@ function RenderCompItem(props) {
|
|
|
36320
36358
|
handleEdit(ites.code, value);
|
|
36321
36359
|
},
|
|
36322
36360
|
dictionaryCode: ites.dictionaryCode
|
|
36323
|
-
})) || 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, {
|
|
36361
|
+
})) || 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, {
|
|
36324
36362
|
selectBusinessType: "physicalWarehouse",
|
|
36325
36363
|
selectProps: _objectSpread2({
|
|
36326
36364
|
style: styleCommon,
|
|
@@ -36342,7 +36380,7 @@ function RenderCompItem(props) {
|
|
|
36342
36380
|
getPopupContainer: function getPopupContainer() {
|
|
36343
36381
|
return document.body;
|
|
36344
36382
|
}
|
|
36345
|
-
})) || 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, {
|
|
36383
|
+
})) || 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, {
|
|
36346
36384
|
selectBusinessType: "realWarehouse",
|
|
36347
36385
|
selectProps: _objectSpread2({
|
|
36348
36386
|
style: styleCommon,
|
|
@@ -36364,7 +36402,7 @@ function RenderCompItem(props) {
|
|
|
36364
36402
|
getPopupContainer: function getPopupContainer() {
|
|
36365
36403
|
return document.body;
|
|
36366
36404
|
}
|
|
36367
|
-
})) || 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, {
|
|
36405
|
+
})) || 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, {
|
|
36368
36406
|
selectBusinessType: "virtualWarehouse",
|
|
36369
36407
|
selectProps: _objectSpread2({
|
|
36370
36408
|
style: styleCommon,
|
|
@@ -36386,7 +36424,7 @@ function RenderCompItem(props) {
|
|
|
36386
36424
|
getPopupContainer: function getPopupContainer() {
|
|
36387
36425
|
return document.body;
|
|
36388
36426
|
}
|
|
36389
|
-
})) || 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, {
|
|
36427
|
+
})) || 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, {
|
|
36390
36428
|
selectBusinessType: "channelWarehouse",
|
|
36391
36429
|
selectProps: _objectSpread2({
|
|
36392
36430
|
style: styleCommon,
|
|
@@ -36408,7 +36446,7 @@ function RenderCompItem(props) {
|
|
|
36408
36446
|
getPopupContainer: function getPopupContainer() {
|
|
36409
36447
|
return document.body;
|
|
36410
36448
|
}
|
|
36411
|
-
})) || 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, {
|
|
36449
|
+
})) || 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, {
|
|
36412
36450
|
selectBusinessType: "spuCommodity",
|
|
36413
36451
|
selectProps: _objectSpread2({
|
|
36414
36452
|
style: styleCommon,
|
|
@@ -36429,7 +36467,7 @@ function RenderCompItem(props) {
|
|
|
36429
36467
|
getPopupContainer: function getPopupContainer() {
|
|
36430
36468
|
return document.body;
|
|
36431
36469
|
}
|
|
36432
|
-
})) || 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, {
|
|
36470
|
+
})) || 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, {
|
|
36433
36471
|
selectBusinessType: "skuCommodity",
|
|
36434
36472
|
selectProps: _objectSpread2({
|
|
36435
36473
|
style: styleCommon,
|
|
@@ -36450,13 +36488,13 @@ function RenderCompItem(props) {
|
|
|
36450
36488
|
getPopupContainer: function getPopupContainer() {
|
|
36451
36489
|
return document.body;
|
|
36452
36490
|
}
|
|
36453
|
-
})) || 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, {
|
|
36491
|
+
})) || 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, {
|
|
36454
36492
|
disabled: disabled,
|
|
36455
36493
|
isAll: true,
|
|
36456
36494
|
needNameAndCode: true,
|
|
36457
36495
|
notChangeOnSelect: true,
|
|
36458
36496
|
initRequestSource: function () {
|
|
36459
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36497
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36460
36498
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36461
36499
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36462
36500
|
case 0:
|
|
@@ -36498,7 +36536,7 @@ function RenderCompItem(props) {
|
|
|
36498
36536
|
getPopupContainer: function getPopupContainer() {
|
|
36499
36537
|
return document.body;
|
|
36500
36538
|
}
|
|
36501
|
-
})) || 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, {
|
|
36539
|
+
})) || 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, {
|
|
36502
36540
|
disabled: disabled,
|
|
36503
36541
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36504
36542
|
businessType: "department",
|
|
@@ -36511,7 +36549,7 @@ function RenderCompItem(props) {
|
|
|
36511
36549
|
getPopupContainer: function getPopupContainer() {
|
|
36512
36550
|
return document.body;
|
|
36513
36551
|
}
|
|
36514
|
-
})) || 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, {
|
|
36552
|
+
})) || 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, {
|
|
36515
36553
|
disabled: disabled,
|
|
36516
36554
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36517
36555
|
businessType: "purchase-organization",
|
|
@@ -36524,7 +36562,7 @@ function RenderCompItem(props) {
|
|
|
36524
36562
|
getPopupContainer: function getPopupContainer() {
|
|
36525
36563
|
return document.body;
|
|
36526
36564
|
}
|
|
36527
|
-
})) || 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, {
|
|
36565
|
+
})) || 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, {
|
|
36528
36566
|
disabled: disabled,
|
|
36529
36567
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36530
36568
|
businessType: "sales-organization",
|
|
@@ -36537,7 +36575,7 @@ function RenderCompItem(props) {
|
|
|
36537
36575
|
getPopupContainer: function getPopupContainer() {
|
|
36538
36576
|
return document.body;
|
|
36539
36577
|
}
|
|
36540
|
-
})) || 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, {
|
|
36578
|
+
})) || 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, {
|
|
36541
36579
|
selectBusinessType: "supplier2",
|
|
36542
36580
|
selectProps: _objectSpread2({
|
|
36543
36581
|
style: styleCommon,
|
|
@@ -36558,7 +36596,7 @@ function RenderCompItem(props) {
|
|
|
36558
36596
|
getPopupContainer: function getPopupContainer() {
|
|
36559
36597
|
return document.body;
|
|
36560
36598
|
}
|
|
36561
|
-
})) || 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, {
|
|
36599
|
+
})) || 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, {
|
|
36562
36600
|
selectBusinessType: "customer2",
|
|
36563
36601
|
selectProps: _objectSpread2({
|
|
36564
36602
|
style: styleCommon,
|
|
@@ -36579,7 +36617,7 @@ function RenderCompItem(props) {
|
|
|
36579
36617
|
getPopupContainer: function getPopupContainer() {
|
|
36580
36618
|
return document.body;
|
|
36581
36619
|
}
|
|
36582
|
-
})) || 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, {
|
|
36620
|
+
})) || 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, {
|
|
36583
36621
|
selectBusinessType: "shopFile2",
|
|
36584
36622
|
selectProps: _objectSpread2({
|
|
36585
36623
|
style: styleCommon,
|
|
@@ -36600,7 +36638,7 @@ function RenderCompItem(props) {
|
|
|
36600
36638
|
getPopupContainer: function getPopupContainer() {
|
|
36601
36639
|
return document.body;
|
|
36602
36640
|
}
|
|
36603
|
-
})) || 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, {
|
|
36641
|
+
})) || 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, {
|
|
36604
36642
|
selectBusinessType: "employee2",
|
|
36605
36643
|
selectProps: _objectSpread2({
|
|
36606
36644
|
style: styleCommon,
|
|
@@ -36621,7 +36659,7 @@ function RenderCompItem(props) {
|
|
|
36621
36659
|
getPopupContainer: function getPopupContainer() {
|
|
36622
36660
|
return document.body;
|
|
36623
36661
|
}
|
|
36624
|
-
})) || 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, {
|
|
36662
|
+
})) || 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, {
|
|
36625
36663
|
disabled: disabled,
|
|
36626
36664
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36627
36665
|
businessType: "stock-organization",
|
|
@@ -36634,7 +36672,7 @@ function RenderCompItem(props) {
|
|
|
36634
36672
|
getPopupContainer: function getPopupContainer() {
|
|
36635
36673
|
return document.body;
|
|
36636
36674
|
}
|
|
36637
|
-
})) || 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, {
|
|
36675
|
+
})) || 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, {
|
|
36638
36676
|
disabled: disabled,
|
|
36639
36677
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36640
36678
|
businessType: "settle-organization",
|
|
@@ -36647,7 +36685,7 @@ function RenderCompItem(props) {
|
|
|
36647
36685
|
getPopupContainer: function getPopupContainer() {
|
|
36648
36686
|
return document.body;
|
|
36649
36687
|
}
|
|
36650
|
-
})) || 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, {
|
|
36688
|
+
})) || 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, {
|
|
36651
36689
|
selectBusinessType: "deliveryMode",
|
|
36652
36690
|
selectProps: _objectSpread2({
|
|
36653
36691
|
style: styleCommon,
|
|
@@ -36668,7 +36706,7 @@ function RenderCompItem(props) {
|
|
|
36668
36706
|
getPopupContainer: function getPopupContainer() {
|
|
36669
36707
|
return document.body;
|
|
36670
36708
|
}
|
|
36671
|
-
})) || 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, {
|
|
36709
|
+
})) || 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, {
|
|
36672
36710
|
selectBusinessType: "role",
|
|
36673
36711
|
selectProps: _objectSpread2({
|
|
36674
36712
|
style: styleCommon,
|
|
@@ -36689,7 +36727,7 @@ function RenderCompItem(props) {
|
|
|
36689
36727
|
getPopupContainer: function getPopupContainer() {
|
|
36690
36728
|
return document.body;
|
|
36691
36729
|
}
|
|
36692
|
-
})) || 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, {
|
|
36730
|
+
})) || 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, {
|
|
36693
36731
|
selectBusinessType: "brand",
|
|
36694
36732
|
selectProps: _objectSpread2({
|
|
36695
36733
|
style: styleCommon,
|
|
@@ -36710,7 +36748,7 @@ function RenderCompItem(props) {
|
|
|
36710
36748
|
getPopupContainer: function getPopupContainer() {
|
|
36711
36749
|
return document.body;
|
|
36712
36750
|
}
|
|
36713
|
-
})) || 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, {
|
|
36751
|
+
})) || 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, {
|
|
36714
36752
|
disabled: disabled,
|
|
36715
36753
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36716
36754
|
businessType: "background-category",
|
|
@@ -36723,7 +36761,7 @@ function RenderCompItem(props) {
|
|
|
36723
36761
|
getPopupContainer: function getPopupContainer() {
|
|
36724
36762
|
return document.body;
|
|
36725
36763
|
}
|
|
36726
|
-
})) || 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, {
|
|
36764
|
+
})) || 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, {
|
|
36727
36765
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36728
36766
|
style: styleCommon,
|
|
36729
36767
|
placeholder: '请选择'
|
|
@@ -36746,7 +36784,7 @@ function RenderCompItem(props) {
|
|
|
36746
36784
|
onChange: function onChange(value) {
|
|
36747
36785
|
handleEdit(ites.code, value);
|
|
36748
36786
|
}
|
|
36749
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36787
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
36750
36788
|
style: {
|
|
36751
36789
|
display: 'flex'
|
|
36752
36790
|
}
|
|
@@ -37259,7 +37297,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37259
37297
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
37260
37298
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
37261
37299
|
}
|
|
37262
|
-
var parallelTreeData =
|
|
37300
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
37263
37301
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
37264
37302
|
var _i$key;
|
|
37265
37303
|
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);
|
|
@@ -38228,13 +38266,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
38228
38266
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
38229
38267
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
38230
38268
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
38231
|
-
var list =
|
|
38269
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
38232
38270
|
var requiredList = list.filter(function (c) {
|
|
38233
38271
|
return c.required == 1;
|
|
38234
38272
|
}) || []; // 获取对象属性为true的集合
|
|
38235
38273
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
38236
38274
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
38237
|
-
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) ?
|
|
38275
|
+
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];
|
|
38238
38276
|
(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) {
|
|
38239
38277
|
if (requiredList.some(function (r) {
|
|
38240
38278
|
return r.id === e.elementId;
|
|
@@ -38823,7 +38861,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38823
38861
|
style: {
|
|
38824
38862
|
float: 'right'
|
|
38825
38863
|
}
|
|
38826
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38864
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38827
38865
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38828
38866
|
ruleGroupInfo: {
|
|
38829
38867
|
ruleGroupList: ruleGroupList,
|
|
@@ -38841,7 +38879,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38841
38879
|
callBack: function callBack(newData) {
|
|
38842
38880
|
upDateData(newData);
|
|
38843
38881
|
}
|
|
38844
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38882
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
38845
38883
|
style: {
|
|
38846
38884
|
padding: 20
|
|
38847
38885
|
}
|
|
@@ -39216,4 +39254,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
39216
39254
|
}, children));
|
|
39217
39255
|
};
|
|
39218
39256
|
|
|
39219
|
-
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, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
39257
|
+
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, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, 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 };
|