@bit-sun/business-component 4.0.13-alpha.5 → 4.0.13-alpha.7
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/components/Functional/SearchSelect/utils.d.ts +1 -0
- package/dist/index.esm.js +461 -416
- package/dist/index.js +462 -417
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/setting.tsx +3 -3
- package/src/components/Functional/SearchSelect/index.tsx +3 -2
- package/src/components/Functional/SearchSelect/utils.tsx +7 -0
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 s = Object.getOwnPropertySymbols(e);
|
|
192
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(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 (e.includes(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,12 +415,180 @@ 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");
|
|
451
|
+
}
|
|
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;
|
|
553
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.");
|
|
554
592
|
}
|
|
555
593
|
|
|
556
594
|
var ENUM = {
|
|
@@ -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"
|
|
@@ -4439,7 +4477,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4439
4477
|
destroyTooltipOnHide: true,
|
|
4440
4478
|
placement: "topRight",
|
|
4441
4479
|
autoAdjustOverflow: false,
|
|
4442
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4480
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
4443
4481
|
style: {
|
|
4444
4482
|
margin: '6px 8px 0px'
|
|
4445
4483
|
},
|
|
@@ -4465,6 +4503,16 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4465
4503
|
})))
|
|
4466
4504
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4467
4505
|
};
|
|
4506
|
+
// 弹窗数据表头处理
|
|
4507
|
+
var handleTableColumns = function handleTableColumns(tableColumns) {
|
|
4508
|
+
// 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
|
|
4509
|
+
var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
|
|
4510
|
+
return typeof s.defaultSort == 'number';
|
|
4511
|
+
})) || tableColumns || [];
|
|
4512
|
+
return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
|
|
4513
|
+
return a.defaultSort - b.defaultSort;
|
|
4514
|
+
})) || [];
|
|
4515
|
+
};
|
|
4468
4516
|
// ------------------------------------------ 数据源展示 相关处理--结束----------------------------------------
|
|
4469
4517
|
// ------------------------------------------ 选中数据展示 相关处理--开始----------------------------------------
|
|
4470
4518
|
var getShowLabelTextStr = function getShowLabelTextStr(_ref4) {
|
|
@@ -4730,10 +4778,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4730
4778
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4731
4779
|
});
|
|
4732
4780
|
},
|
|
4733
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4781
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
4734
4782
|
size: "small",
|
|
4735
4783
|
className: 'searchSelectSpin'
|
|
4736
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4784
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
4737
4785
|
style: {
|
|
4738
4786
|
textAlign: 'center'
|
|
4739
4787
|
}
|
|
@@ -4965,7 +5013,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4965
5013
|
title: item.name,
|
|
4966
5014
|
className: "propertyGroup_checkbox_container"
|
|
4967
5015
|
}, item.name));
|
|
4968
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5016
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
4969
5017
|
style: {
|
|
4970
5018
|
width: '50px',
|
|
4971
5019
|
cursor: 'pointer',
|
|
@@ -4978,7 +5026,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4978
5026
|
setShowNotCommon(!showNotCommon);
|
|
4979
5027
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4980
5028
|
}
|
|
4981
|
-
}, 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"))))));
|
|
5029
|
+
}, 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"))))));
|
|
4982
5030
|
};
|
|
4983
5031
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4984
5032
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5208,7 +5256,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5208
5256
|
propertyData: item,
|
|
5209
5257
|
handleProperyItemChange: handleProperyItemChange
|
|
5210
5258
|
});
|
|
5211
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5259
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5212
5260
|
style: {
|
|
5213
5261
|
width: '50px',
|
|
5214
5262
|
cursor: 'pointer',
|
|
@@ -5218,12 +5266,12 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5218
5266
|
onClick: function onClick() {
|
|
5219
5267
|
return setShowNotCommon(!showNotCommon);
|
|
5220
5268
|
}
|
|
5221
|
-
}, 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"))))))));
|
|
5269
|
+
}, 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"))))))));
|
|
5222
5270
|
};
|
|
5223
5271
|
|
|
5224
5272
|
var Option$1 = Select.Option;
|
|
5225
5273
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
5226
|
-
var _pathname$match
|
|
5274
|
+
var _pathname$match;
|
|
5227
5275
|
var value = props.value,
|
|
5228
5276
|
onChangeTemp = props.onChange,
|
|
5229
5277
|
_props$selectProps = props.selectProps,
|
|
@@ -5446,14 +5494,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5446
5494
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5447
5495
|
tooltipVisible = _useState40[0],
|
|
5448
5496
|
setTooltipVisible = _useState40[1];
|
|
5449
|
-
var _useState41 = useState((modalTableProps === null || modalTableProps === void 0 ? void 0 :
|
|
5450
|
-
return typeof s.defaultSort == 'number';
|
|
5451
|
-
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
5452
|
-
return a.defaultSort - b.defaultSort;
|
|
5453
|
-
})) || []),
|
|
5497
|
+
var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5454
5498
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5455
5499
|
tableShowColumns = _useState42[0],
|
|
5456
|
-
setTabletShowColumns = _useState42[1];
|
|
5500
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5457
5501
|
var _useState43 = useState(false),
|
|
5458
5502
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5459
5503
|
confirmLoading = _useState44[0],
|
|
@@ -5655,6 +5699,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5655
5699
|
}, [value]);
|
|
5656
5700
|
useEffect(function () {
|
|
5657
5701
|
setUniqueValue(makeUniqueValue());
|
|
5702
|
+
setTabletShowColumns(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns));
|
|
5658
5703
|
}, [resultSourceKey]);
|
|
5659
5704
|
useEffect(function () {
|
|
5660
5705
|
if (init) {
|
|
@@ -6223,13 +6268,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6223
6268
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6224
6269
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6225
6270
|
className: 'search_select'
|
|
6226
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6271
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6227
6272
|
onClick: function onClick() {
|
|
6228
6273
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6229
6274
|
(_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);
|
|
6230
6275
|
showModal();
|
|
6231
6276
|
}
|
|
6232
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6277
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6233
6278
|
title: getShowStr({
|
|
6234
6279
|
viewShowValueStr: viewShowValueStr,
|
|
6235
6280
|
labelInValue: labelInValue,
|
|
@@ -6268,10 +6313,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6268
6313
|
dropdownRender: function dropdownRender(menu) {
|
|
6269
6314
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6270
6315
|
},
|
|
6271
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6316
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
6272
6317
|
size: "small",
|
|
6273
6318
|
className: 'searchSelectSpin'
|
|
6274
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6319
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
6275
6320
|
style: {
|
|
6276
6321
|
textAlign: 'center'
|
|
6277
6322
|
}
|
|
@@ -6311,7 +6356,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6311
6356
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6312
6357
|
filterTxt: searchValue
|
|
6313
6358
|
}));
|
|
6314
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6359
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6315
6360
|
maskClosable: false,
|
|
6316
6361
|
destroyOnClose: true,
|
|
6317
6362
|
width: "80%",
|
|
@@ -6908,7 +6953,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6908
6953
|
style: {
|
|
6909
6954
|
width: 525
|
|
6910
6955
|
}
|
|
6911
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6956
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6912
6957
|
checked: !dataSource.some(function (item) {
|
|
6913
6958
|
if (item.hidden) return true;
|
|
6914
6959
|
return false;
|
|
@@ -6946,13 +6991,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6946
6991
|
_this2.onChange(e, item.title);
|
|
6947
6992
|
}
|
|
6948
6993
|
}, item.title);
|
|
6949
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6994
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
6950
6995
|
style: {
|
|
6951
6996
|
width: '144px'
|
|
6952
6997
|
}
|
|
6953
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6998
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
6954
6999
|
className: 'sort_table_column_all_empty'
|
|
6955
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7000
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6956
7001
|
className: 'sort_table_column_special'
|
|
6957
7002
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6958
7003
|
className: 'sort_table_column_all'
|
|
@@ -7141,7 +7186,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7141
7186
|
});
|
|
7142
7187
|
};
|
|
7143
7188
|
// 格式化树选择器数据源
|
|
7144
|
-
var
|
|
7189
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7145
7190
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7146
7191
|
return {
|
|
7147
7192
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7151,7 +7196,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7151
7196
|
isLeaf: !haveChildren,
|
|
7152
7197
|
disabled: haveChildren,
|
|
7153
7198
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7154
|
-
return
|
|
7199
|
+
return mapSearchTree(i, resKeyValue);
|
|
7155
7200
|
}) : []
|
|
7156
7201
|
};
|
|
7157
7202
|
};
|
|
@@ -7160,7 +7205,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7160
7205
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7161
7206
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7162
7207
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7163
|
-
return
|
|
7208
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7164
7209
|
}) || [];
|
|
7165
7210
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7166
7211
|
};
|
|
@@ -7331,7 +7376,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7331
7376
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7332
7377
|
// FIXME: 特殊业务逻辑
|
|
7333
7378
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7334
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7379
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7335
7380
|
var result;
|
|
7336
7381
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7337
7382
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7584,7 +7629,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7584
7629
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7585
7630
|
value: text || null,
|
|
7586
7631
|
onChange: function () {
|
|
7587
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7632
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7588
7633
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7589
7634
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7590
7635
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8192,10 +8237,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8192
8237
|
var newColumns = arr.map(function (col) {
|
|
8193
8238
|
return _objectSpread2({}, col);
|
|
8194
8239
|
});
|
|
8195
|
-
var
|
|
8240
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8196
8241
|
var i = indexArr.shift();
|
|
8197
8242
|
if (indexArr.length > 0) {
|
|
8198
|
-
|
|
8243
|
+
handleIndex(arr[i].children, indexArr);
|
|
8199
8244
|
} else {
|
|
8200
8245
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8201
8246
|
width: size.width
|
|
@@ -8203,7 +8248,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8203
8248
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8204
8249
|
}
|
|
8205
8250
|
};
|
|
8206
|
-
|
|
8251
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8207
8252
|
callback(newColumns);
|
|
8208
8253
|
};
|
|
8209
8254
|
};
|
|
@@ -8213,13 +8258,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8213
8258
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8214
8259
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8215
8260
|
};
|
|
8216
|
-
var
|
|
8261
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8217
8262
|
arr.forEach(function (item, index) {
|
|
8218
8263
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8219
8264
|
return i || i === 0;
|
|
8220
8265
|
});
|
|
8221
8266
|
if (noEmptyArray$1(item.children)) {
|
|
8222
|
-
|
|
8267
|
+
handleColumns(item.children, indexArrInside);
|
|
8223
8268
|
} else {
|
|
8224
8269
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8225
8270
|
item.onHeaderCell = function (column) {
|
|
@@ -8235,14 +8280,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8235
8280
|
handleAntdColumnsSpecialParams(item);
|
|
8236
8281
|
return _objectSpread2({}, item);
|
|
8237
8282
|
});
|
|
8238
|
-
|
|
8283
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8239
8284
|
return setShowToChooseColumnsCallback(res);
|
|
8240
8285
|
});
|
|
8241
8286
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8242
8287
|
handleAntdColumnsSpecialParams(item);
|
|
8243
8288
|
return _objectSpread2({}, item);
|
|
8244
8289
|
});
|
|
8245
|
-
|
|
8290
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8246
8291
|
return setShowColumnsCallback(res);
|
|
8247
8292
|
});
|
|
8248
8293
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8253,7 +8298,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8253
8298
|
id: "add_select_div_".concat(uniqueValue)
|
|
8254
8299
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8255
8300
|
onClick: handleShowModal
|
|
8256
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8301
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
8257
8302
|
width: '1200px',
|
|
8258
8303
|
style: {
|
|
8259
8304
|
top: 20
|
|
@@ -9167,7 +9212,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9167
9212
|
});
|
|
9168
9213
|
};
|
|
9169
9214
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9170
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9215
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9171
9216
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9172
9217
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9173
9218
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9250,10 +9295,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9250
9295
|
var newColumns = arr.map(function (col) {
|
|
9251
9296
|
return _objectSpread2({}, col);
|
|
9252
9297
|
});
|
|
9253
|
-
var
|
|
9298
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9254
9299
|
var i = indexArr.shift();
|
|
9255
9300
|
if (indexArr.length > 0) {
|
|
9256
|
-
|
|
9301
|
+
handleIndex(arr[i].children, indexArr);
|
|
9257
9302
|
} else {
|
|
9258
9303
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9259
9304
|
width: size.width
|
|
@@ -9261,17 +9306,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9261
9306
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9262
9307
|
}
|
|
9263
9308
|
};
|
|
9264
|
-
|
|
9309
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9265
9310
|
callback(newColumns);
|
|
9266
9311
|
};
|
|
9267
9312
|
};
|
|
9268
|
-
var
|
|
9313
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9269
9314
|
arr.forEach(function (item, index) {
|
|
9270
9315
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9271
9316
|
return i || i === 0;
|
|
9272
9317
|
});
|
|
9273
9318
|
if (noEmptyArray$1(item.children)) {
|
|
9274
|
-
|
|
9319
|
+
handleColumns(item.children, indexArrInside);
|
|
9275
9320
|
} else {
|
|
9276
9321
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9277
9322
|
item.onHeaderCell = function (column) {
|
|
@@ -9287,7 +9332,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9287
9332
|
handleAntdColumnsSpecialParams(item);
|
|
9288
9333
|
return _objectSpread2({}, item);
|
|
9289
9334
|
});
|
|
9290
|
-
|
|
9335
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9291
9336
|
return setShowColumnsCallback(res);
|
|
9292
9337
|
});
|
|
9293
9338
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9602,7 +9647,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9602
9647
|
});
|
|
9603
9648
|
};
|
|
9604
9649
|
// 格式化树选择器数据源
|
|
9605
|
-
var
|
|
9650
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9606
9651
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9607
9652
|
return {
|
|
9608
9653
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9612,7 +9657,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9612
9657
|
isLeaf: !haveChildren,
|
|
9613
9658
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9614
9659
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9615
|
-
return
|
|
9660
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9616
9661
|
}) : []
|
|
9617
9662
|
};
|
|
9618
9663
|
};
|
|
@@ -9626,7 +9671,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9626
9671
|
disabledJudge = false;
|
|
9627
9672
|
}
|
|
9628
9673
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9629
|
-
return
|
|
9674
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9630
9675
|
}) || [];
|
|
9631
9676
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9632
9677
|
};
|
|
@@ -13736,7 +13781,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13736
13781
|
};
|
|
13737
13782
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13738
13783
|
onClick: handleShowModal
|
|
13739
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13784
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13740
13785
|
onOk: handleOk,
|
|
13741
13786
|
onCancel: handleCancel,
|
|
13742
13787
|
destroyOnClose: true,
|
|
@@ -13855,7 +13900,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13855
13900
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13856
13901
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13857
13902
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13858
|
-
var
|
|
13903
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13859
13904
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13860
13905
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13861
13906
|
return {
|
|
@@ -13867,7 +13912,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13867
13912
|
isLeaf: !haveChildren,
|
|
13868
13913
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13869
13914
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13870
|
-
return
|
|
13915
|
+
return mapSearchTree(i);
|
|
13871
13916
|
}) : []
|
|
13872
13917
|
};
|
|
13873
13918
|
};
|
|
@@ -13885,8 +13930,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13885
13930
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13886
13931
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13887
13932
|
headers: headers
|
|
13888
|
-
}).then(/*#__PURE__*/function () {
|
|
13889
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13933
|
+
}).then( /*#__PURE__*/function () {
|
|
13934
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13890
13935
|
var _ctx$form;
|
|
13891
13936
|
var resData, coverData, data, dataList;
|
|
13892
13937
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13913,7 +13958,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13913
13958
|
case 9:
|
|
13914
13959
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13915
13960
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13916
|
-
return
|
|
13961
|
+
return mapSearchTree(ites);
|
|
13917
13962
|
}) || [];
|
|
13918
13963
|
case 11:
|
|
13919
13964
|
_context.next = 14;
|
|
@@ -13951,11 +13996,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13951
13996
|
return _formatResult;
|
|
13952
13997
|
}
|
|
13953
13998
|
};
|
|
13954
|
-
var
|
|
13999
|
+
var parallelData = function parallelData(data, result) {
|
|
13955
14000
|
data.forEach(function (i) {
|
|
13956
14001
|
result.push(i);
|
|
13957
14002
|
if (i[treeChildrenRoom]) {
|
|
13958
|
-
|
|
14003
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13959
14004
|
}
|
|
13960
14005
|
});
|
|
13961
14006
|
return result;
|
|
@@ -13995,7 +14040,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13995
14040
|
var _ctx$form2;
|
|
13996
14041
|
var handleData = formatData(data);
|
|
13997
14042
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13998
|
-
var parallelTreeData =
|
|
14043
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13999
14044
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14000
14045
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14001
14046
|
onChangeName && onChangeName(dataName);
|
|
@@ -14038,7 +14083,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14038
14083
|
var getShowStr = function getShowStr() {
|
|
14039
14084
|
var isMultiple = multiple || treeCheckable;
|
|
14040
14085
|
var kongValue = '无';
|
|
14041
|
-
var parallelTreeData =
|
|
14086
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14042
14087
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14043
14088
|
if (isMultiple) {
|
|
14044
14089
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14050,7 +14095,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14050
14095
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14051
14096
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14052
14097
|
className: 'tree_search_select'
|
|
14053
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14098
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14054
14099
|
title: getShowStr(),
|
|
14055
14100
|
style: {
|
|
14056
14101
|
overflow: 'hidden',
|
|
@@ -14058,7 +14103,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14058
14103
|
whiteSpace: 'nowrap'
|
|
14059
14104
|
},
|
|
14060
14105
|
className: 'search_select_show'
|
|
14061
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14106
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14062
14107
|
treeCheckable: treeCheckable,
|
|
14063
14108
|
maxTagCount: maxTagCount,
|
|
14064
14109
|
showSearch: showSearch,
|
|
@@ -14255,7 +14300,7 @@ var index$2 = (function (props) {
|
|
|
14255
14300
|
} : {}
|
|
14256
14301
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14257
14302
|
className: 'status-label-operate'
|
|
14258
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14303
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14259
14304
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14260
14305
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14261
14306
|
style: {
|
|
@@ -15036,7 +15081,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15036
15081
|
style: {
|
|
15037
15082
|
width: 525
|
|
15038
15083
|
}
|
|
15039
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15084
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15040
15085
|
checked: !dataSource.some(function (item) {
|
|
15041
15086
|
if (item.hidden) return true;
|
|
15042
15087
|
return false;
|
|
@@ -15074,13 +15119,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15074
15119
|
_this2.onChange(e, item.title);
|
|
15075
15120
|
}
|
|
15076
15121
|
}, item.title);
|
|
15077
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15122
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15078
15123
|
style: {
|
|
15079
15124
|
width: '144px'
|
|
15080
15125
|
}
|
|
15081
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15126
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15082
15127
|
className: 'sort_table_column_all_empty'
|
|
15083
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15128
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15084
15129
|
className: 'sort_table_column_special'
|
|
15085
15130
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15086
15131
|
className: 'sort_table_column_all'
|
|
@@ -15259,10 +15304,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15259
15304
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15260
15305
|
return _objectSpread2({}, col);
|
|
15261
15306
|
});
|
|
15262
|
-
var
|
|
15307
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15263
15308
|
var i = indexArr.shift();
|
|
15264
15309
|
if (indexArr.length > 0) {
|
|
15265
|
-
|
|
15310
|
+
handleIndex(arr[i].children, indexArr);
|
|
15266
15311
|
} else {
|
|
15267
15312
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15268
15313
|
width: size.width
|
|
@@ -15270,7 +15315,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15270
15315
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15271
15316
|
}
|
|
15272
15317
|
};
|
|
15273
|
-
|
|
15318
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15274
15319
|
_this.setState({
|
|
15275
15320
|
showColumns: _toConsumableArray(newColumns)
|
|
15276
15321
|
});
|
|
@@ -15311,7 +15356,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15311
15356
|
};
|
|
15312
15357
|
setIsResizing(true);
|
|
15313
15358
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15314
|
-
document.addEventListener('mouseup',
|
|
15359
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15315
15360
|
};
|
|
15316
15361
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15317
15362
|
e.stopPropagation();
|
|
@@ -15327,9 +15372,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15327
15372
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15328
15373
|
}
|
|
15329
15374
|
};
|
|
15330
|
-
var
|
|
15375
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15331
15376
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15332
|
-
document.removeEventListener('mouseup',
|
|
15377
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15333
15378
|
setIsResizing(false);
|
|
15334
15379
|
};
|
|
15335
15380
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15450,13 +15495,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15450
15495
|
showSummary = summary;
|
|
15451
15496
|
}
|
|
15452
15497
|
}
|
|
15453
|
-
var
|
|
15498
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15454
15499
|
arr.forEach(function (item, index) {
|
|
15455
15500
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15456
15501
|
return i || i === 0;
|
|
15457
15502
|
});
|
|
15458
15503
|
if (noEmptyArray$1(item.children)) {
|
|
15459
|
-
|
|
15504
|
+
handleColumns(item.children, indexArrInside);
|
|
15460
15505
|
} else {
|
|
15461
15506
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15462
15507
|
item.onHeaderCell = function (column) {
|
|
@@ -15472,7 +15517,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15472
15517
|
handleBssulaColumnsSpecialParams(item);
|
|
15473
15518
|
return _objectSpread2({}, item);
|
|
15474
15519
|
});
|
|
15475
|
-
|
|
15520
|
+
handleColumns(showCol, []);
|
|
15476
15521
|
if (dynamicColumns.length) {
|
|
15477
15522
|
showCol = this.handledynamicColumns(showCol);
|
|
15478
15523
|
}
|
|
@@ -15513,7 +15558,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15513
15558
|
cell: this.ResizeableTitle
|
|
15514
15559
|
}
|
|
15515
15560
|
}
|
|
15516
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15561
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15517
15562
|
summary: summary
|
|
15518
15563
|
})));
|
|
15519
15564
|
}
|
|
@@ -15610,10 +15655,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15610
15655
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15611
15656
|
return _objectSpread2({}, col);
|
|
15612
15657
|
});
|
|
15613
|
-
var
|
|
15658
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15614
15659
|
var i = indexArr.shift();
|
|
15615
15660
|
if (indexArr.length > 0) {
|
|
15616
|
-
|
|
15661
|
+
handleIndex(arr[i].children, indexArr);
|
|
15617
15662
|
} else {
|
|
15618
15663
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15619
15664
|
width: size.width
|
|
@@ -15621,7 +15666,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15621
15666
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15622
15667
|
}
|
|
15623
15668
|
};
|
|
15624
|
-
|
|
15669
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15625
15670
|
_this.setState({
|
|
15626
15671
|
showColumns: _toConsumableArray(newColumns)
|
|
15627
15672
|
});
|
|
@@ -15697,13 +15742,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15697
15742
|
showSummary = summary;
|
|
15698
15743
|
}
|
|
15699
15744
|
}
|
|
15700
|
-
var
|
|
15745
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15701
15746
|
arr.forEach(function (item, index) {
|
|
15702
15747
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15703
15748
|
return i || i === 0;
|
|
15704
15749
|
});
|
|
15705
15750
|
if (noEmptyArray$1(item.children)) {
|
|
15706
|
-
|
|
15751
|
+
handleColumns(item.children, indexArrInside);
|
|
15707
15752
|
} else {
|
|
15708
15753
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15709
15754
|
item.onHeaderCell = function (column) {
|
|
@@ -15719,7 +15764,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15719
15764
|
handleAntdColumnsSpecialParams(item);
|
|
15720
15765
|
return _objectSpread2({}, item);
|
|
15721
15766
|
});
|
|
15722
|
-
|
|
15767
|
+
handleColumns(showCol, []);
|
|
15723
15768
|
if (dynamicColumns.length) {
|
|
15724
15769
|
showCol = this.handledynamicColumns(showCol);
|
|
15725
15770
|
}
|
|
@@ -15759,7 +15804,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15759
15804
|
cell: this.ResizeableTitle
|
|
15760
15805
|
}
|
|
15761
15806
|
}
|
|
15762
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15807
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15763
15808
|
summary: summary
|
|
15764
15809
|
})));
|
|
15765
15810
|
}
|
|
@@ -15819,20 +15864,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15819
15864
|
};
|
|
15820
15865
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15821
15866
|
var routerMap = {};
|
|
15822
|
-
var
|
|
15867
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15823
15868
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15824
15869
|
data.forEach(function (menuItem) {
|
|
15825
15870
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15826
15871
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15827
15872
|
});
|
|
15828
15873
|
if (newMenuItem.children) {
|
|
15829
|
-
|
|
15874
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15830
15875
|
}
|
|
15831
15876
|
// Reduce memory usage
|
|
15832
15877
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15833
15878
|
});
|
|
15834
15879
|
};
|
|
15835
|
-
|
|
15880
|
+
flattenMenuData(menuData, {});
|
|
15836
15881
|
return routerMap;
|
|
15837
15882
|
};
|
|
15838
15883
|
// mode类型判断
|
|
@@ -16158,7 +16203,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16158
16203
|
display: 'flex',
|
|
16159
16204
|
gap: '8px'
|
|
16160
16205
|
}
|
|
16161
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16206
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16162
16207
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16163
16208
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16164
16209
|
onClick: function onClick() {
|
|
@@ -16166,7 +16211,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16166
16211
|
},
|
|
16167
16212
|
width: 24,
|
|
16168
16213
|
src: scanning
|
|
16169
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16214
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16170
16215
|
title: "\u5168\u5C4F"
|
|
16171
16216
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16172
16217
|
onClick: function onClick() {
|
|
@@ -16174,7 +16219,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16174
16219
|
},
|
|
16175
16220
|
width: 24,
|
|
16176
16221
|
src: quanping
|
|
16177
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16222
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16178
16223
|
}, function (prevProps, nextProps) {
|
|
16179
16224
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16180
16225
|
return false;
|
|
@@ -16259,7 +16304,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16259
16304
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16260
16305
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16261
16306
|
}, item));
|
|
16262
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16307
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16263
16308
|
}, function (prevProps, nextProps) {
|
|
16264
16309
|
if (prevProps.title !== nextProps.title) {
|
|
16265
16310
|
return false;
|
|
@@ -16899,8 +16944,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16899
16944
|
});
|
|
16900
16945
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16901
16946
|
className: 'sort_table_wrapper'
|
|
16902
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16903
|
-
title: "\
|
|
16947
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16948
|
+
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
16904
16949
|
wrapClassName: 'sort_table_wrapper',
|
|
16905
16950
|
width: 810,
|
|
16906
16951
|
visible: visible,
|
|
@@ -16937,7 +16982,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16937
16982
|
className: 'sort_table_column_wrapper'
|
|
16938
16983
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16939
16984
|
className: 'sort_table_column_count'
|
|
16940
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\
|
|
16985
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u5C55\u793A\u7684\u8868\u683C\u5217")), /*#__PURE__*/React$1.createElement("div", {
|
|
16941
16986
|
className: 'sort_table_column'
|
|
16942
16987
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
16943
16988
|
prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
|
|
@@ -16950,7 +16995,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16950
16995
|
width: 525,
|
|
16951
16996
|
height: 24
|
|
16952
16997
|
}
|
|
16953
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16998
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16954
16999
|
checked: !dataSource.some(function (item) {
|
|
16955
17000
|
if (item.hidden) return true;
|
|
16956
17001
|
return false;
|
|
@@ -17004,13 +17049,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17004
17049
|
_this2.onChange(e, item.title);
|
|
17005
17050
|
}
|
|
17006
17051
|
}, item.title);
|
|
17007
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17052
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17008
17053
|
style: {
|
|
17009
17054
|
width: '144px'
|
|
17010
17055
|
}
|
|
17011
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17056
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17012
17057
|
className: 'sort_table_column_all_empty'
|
|
17013
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17058
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17014
17059
|
className: 'sort_table_column_special'
|
|
17015
17060
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
17016
17061
|
className: 'sort_table_column_all'
|
|
@@ -17032,7 +17077,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17032
17077
|
className: 'sort_table_content_wrapper'
|
|
17033
17078
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
17034
17079
|
className: 'sort_table_content_count'
|
|
17035
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\
|
|
17080
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u5C55\u793A\u5217\u6392\u5E8F")), /*#__PURE__*/React$1.createElement("div", {
|
|
17036
17081
|
className: 'sort_table_content'
|
|
17037
17082
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
17038
17083
|
style: {
|
|
@@ -17484,7 +17529,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17484
17529
|
});
|
|
17485
17530
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17486
17531
|
className: 'sort_table_wrapper'
|
|
17487
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17532
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17488
17533
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17489
17534
|
wrapClassName: 'sort_table_wrapper',
|
|
17490
17535
|
width: 820,
|
|
@@ -17529,7 +17574,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17529
17574
|
style: {
|
|
17530
17575
|
width: 525
|
|
17531
17576
|
}
|
|
17532
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17577
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17533
17578
|
checked: !dataSource.some(function (item) {
|
|
17534
17579
|
if (item.hidden) return true;
|
|
17535
17580
|
return false;
|
|
@@ -17565,11 +17610,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17565
17610
|
_this2.onChange(e, item.name);
|
|
17566
17611
|
}
|
|
17567
17612
|
}, item.label);
|
|
17568
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17613
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17569
17614
|
style: {
|
|
17570
17615
|
width: '144px'
|
|
17571
17616
|
}
|
|
17572
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17617
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17573
17618
|
className: 'sort_table_column_all_empty'
|
|
17574
17619
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17575
17620
|
className: 'sort_table_content_wrapper'
|
|
@@ -17668,7 +17713,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17668
17713
|
};
|
|
17669
17714
|
setIsResizing(true);
|
|
17670
17715
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17671
|
-
document.addEventListener('mouseup',
|
|
17716
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17672
17717
|
};
|
|
17673
17718
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17674
17719
|
e.stopPropagation();
|
|
@@ -17684,9 +17729,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17684
17729
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17685
17730
|
}
|
|
17686
17731
|
};
|
|
17687
|
-
var
|
|
17732
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17688
17733
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17689
|
-
document.removeEventListener('mouseup',
|
|
17734
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17690
17735
|
setIsResizing(false);
|
|
17691
17736
|
};
|
|
17692
17737
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18097,7 +18142,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18097
18142
|
actionsRender = actionsRender.concat([{
|
|
18098
18143
|
type: 'text',
|
|
18099
18144
|
props: {
|
|
18100
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18145
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18101
18146
|
request: {
|
|
18102
18147
|
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),
|
|
18103
18148
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18343,7 +18388,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18343
18388
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18344
18389
|
bsTableCode: bsTableCode,
|
|
18345
18390
|
onlyModal: true
|
|
18346
|
-
}), (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, {
|
|
18391
|
+
}), (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, {
|
|
18347
18392
|
ref: exportTableRef,
|
|
18348
18393
|
setShowColumns: setShowExportColumns,
|
|
18349
18394
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18436,11 +18481,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18436
18481
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18437
18482
|
var resultList = [];
|
|
18438
18483
|
var newRouter = cloneDeep(router);
|
|
18439
|
-
var
|
|
18484
|
+
var deep = function deep(router) {
|
|
18440
18485
|
if (router && Array.isArray(router)) {
|
|
18441
18486
|
router.forEach(function (item) {
|
|
18442
18487
|
if (item.children && Array.isArray(item.children)) {
|
|
18443
|
-
|
|
18488
|
+
deep(item.children);
|
|
18444
18489
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18445
18490
|
return d === item.code;
|
|
18446
18491
|
})) {
|
|
@@ -18454,10 +18499,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18454
18499
|
resultList.push(_objectSpread2({}, router));
|
|
18455
18500
|
}
|
|
18456
18501
|
};
|
|
18457
|
-
|
|
18502
|
+
deep(newRouter);
|
|
18458
18503
|
callBack([].concat(resultList));
|
|
18459
18504
|
};
|
|
18460
|
-
var
|
|
18505
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18461
18506
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18462
18507
|
var _loop = function _loop(i) {
|
|
18463
18508
|
if (routesData[i].hideInMenu) {
|
|
@@ -18471,7 +18516,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18471
18516
|
return 0; // continue
|
|
18472
18517
|
}
|
|
18473
18518
|
if (routesData[i].children) {
|
|
18474
|
-
|
|
18519
|
+
setMenuTreeData(routesData[i].children);
|
|
18475
18520
|
}
|
|
18476
18521
|
},
|
|
18477
18522
|
_ret;
|
|
@@ -18492,16 +18537,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18492
18537
|
};
|
|
18493
18538
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18494
18539
|
var routerMap = {};
|
|
18495
|
-
var
|
|
18540
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18496
18541
|
data.forEach(function (menuItem) {
|
|
18497
18542
|
if (menuItem.children) {
|
|
18498
|
-
|
|
18543
|
+
flattenMenuData(menuItem.children);
|
|
18499
18544
|
}
|
|
18500
18545
|
// Reduce memory usage
|
|
18501
18546
|
routerMap[menuItem.path] = menuItem;
|
|
18502
18547
|
});
|
|
18503
18548
|
};
|
|
18504
|
-
|
|
18549
|
+
flattenMenuData(menuData);
|
|
18505
18550
|
return routerMap;
|
|
18506
18551
|
};
|
|
18507
18552
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18647,7 +18692,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18647
18692
|
sethomepageData(homepageDataList);
|
|
18648
18693
|
setroutesData(routesDataList);
|
|
18649
18694
|
}, []);
|
|
18650
|
-
var
|
|
18695
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18651
18696
|
if (!child.hideInMenu && child.children) {
|
|
18652
18697
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18653
18698
|
style: {
|
|
@@ -18657,7 +18702,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18657
18702
|
}, formatMessage({
|
|
18658
18703
|
id: "".concat(child.locale)
|
|
18659
18704
|
})), child.children.map(function (menuItem) {
|
|
18660
|
-
return
|
|
18705
|
+
return renderChildItem(menuItem);
|
|
18661
18706
|
}));
|
|
18662
18707
|
} else if (!child.hideInMenu && child.path) {
|
|
18663
18708
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18692,7 +18737,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18692
18737
|
className: 'drawerWarp'
|
|
18693
18738
|
}, homepageData && homepageData.filter(function (d) {
|
|
18694
18739
|
return !d.hideInMenu;
|
|
18695
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18740
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
18696
18741
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18697
18742
|
dataSource: homepageData,
|
|
18698
18743
|
renderItem: function renderItem(child) {
|
|
@@ -18727,7 +18772,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18727
18772
|
bordered: true,
|
|
18728
18773
|
dataSource: item.children,
|
|
18729
18774
|
renderItem: function renderItem(child) {
|
|
18730
|
-
return
|
|
18775
|
+
return renderChildItem(child);
|
|
18731
18776
|
}
|
|
18732
18777
|
});
|
|
18733
18778
|
})));
|
|
@@ -18787,7 +18832,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18787
18832
|
src: allfunc
|
|
18788
18833
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18789
18834
|
className: 'btnSpan2'
|
|
18790
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18835
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18791
18836
|
style: {
|
|
18792
18837
|
left: isDrawer ? 140 : 0,
|
|
18793
18838
|
top: 50
|
|
@@ -18833,7 +18878,7 @@ function outLogin(_x) {
|
|
|
18833
18878
|
return _outLogin.apply(this, arguments);
|
|
18834
18879
|
}
|
|
18835
18880
|
function _outLogin() {
|
|
18836
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18881
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18837
18882
|
var res;
|
|
18838
18883
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18839
18884
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18975,7 +19020,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18975
19020
|
});
|
|
18976
19021
|
};
|
|
18977
19022
|
var loginOut = /*#__PURE__*/function () {
|
|
18978
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19023
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18979
19024
|
var sessionId;
|
|
18980
19025
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18981
19026
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19079,7 +19124,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19079
19124
|
marginRight: '0px'
|
|
19080
19125
|
},
|
|
19081
19126
|
src: './xialajiantou-new.svg'
|
|
19082
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19127
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19083
19128
|
};
|
|
19084
19129
|
|
|
19085
19130
|
// -- 查询店铺 --
|
|
@@ -19087,7 +19132,7 @@ function getStoreByName(_x) {
|
|
|
19087
19132
|
return _getStoreByName.apply(this, arguments);
|
|
19088
19133
|
}
|
|
19089
19134
|
function _getStoreByName() {
|
|
19090
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19135
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19091
19136
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19092
19137
|
while (1) switch (_context.prev = _context.next) {
|
|
19093
19138
|
case 0:
|
|
@@ -19155,7 +19200,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19155
19200
|
return _fetchUserList.apply(this, arguments);
|
|
19156
19201
|
}
|
|
19157
19202
|
function _fetchUserList() {
|
|
19158
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19203
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19159
19204
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19160
19205
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19161
19206
|
case 0:
|
|
@@ -19203,7 +19248,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19203
19248
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19204
19249
|
}, [debounceTimeout, key]);
|
|
19205
19250
|
var changeInput = /*#__PURE__*/function () {
|
|
19206
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19251
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19207
19252
|
var res;
|
|
19208
19253
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19209
19254
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19225,7 +19270,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19225
19270
|
};
|
|
19226
19271
|
}();
|
|
19227
19272
|
useEffect(function () {
|
|
19228
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19273
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19229
19274
|
var res;
|
|
19230
19275
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19231
19276
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19390,7 +19435,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19390
19435
|
var resultList = [];
|
|
19391
19436
|
var newRouter = cloneDeep$1(router);
|
|
19392
19437
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19393
|
-
var
|
|
19438
|
+
var deep = function deep(router) {
|
|
19394
19439
|
if (router && Array.isArray(router)) {
|
|
19395
19440
|
router.forEach(function (item) {
|
|
19396
19441
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19400,7 +19445,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19400
19445
|
d.nameEdit = true;
|
|
19401
19446
|
}
|
|
19402
19447
|
});
|
|
19403
|
-
|
|
19448
|
+
deep(item.routes);
|
|
19404
19449
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19405
19450
|
id: "menu.".concat(item.name)
|
|
19406
19451
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19419,7 +19464,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19419
19464
|
}));
|
|
19420
19465
|
}
|
|
19421
19466
|
};
|
|
19422
|
-
|
|
19467
|
+
deep(newRouter);
|
|
19423
19468
|
setroutesData([].concat(resultList));
|
|
19424
19469
|
};
|
|
19425
19470
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19501,7 +19546,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19501
19546
|
},
|
|
19502
19547
|
title: item.fullPathName
|
|
19503
19548
|
}, renderLineStyl(item.fullPathName));
|
|
19504
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19549
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19505
19550
|
employeeCode: employeeCode
|
|
19506
19551
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19507
19552
|
};
|
|
@@ -19516,7 +19561,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19516
19561
|
var TreeNode = Tree.TreeNode;
|
|
19517
19562
|
var Search$2 = Input.Search;
|
|
19518
19563
|
var dataList = [];
|
|
19519
|
-
var
|
|
19564
|
+
var generateList = function generateList(data) {
|
|
19520
19565
|
for (var i = 0; i < data.length; i++) {
|
|
19521
19566
|
var node = data[i];
|
|
19522
19567
|
var path = node.path,
|
|
@@ -19526,11 +19571,11 @@ var _generateList = function generateList(data) {
|
|
|
19526
19571
|
name: name
|
|
19527
19572
|
});
|
|
19528
19573
|
if (node.children) {
|
|
19529
|
-
|
|
19574
|
+
generateList(node.children);
|
|
19530
19575
|
}
|
|
19531
19576
|
}
|
|
19532
19577
|
};
|
|
19533
|
-
var
|
|
19578
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19534
19579
|
var parentKey;
|
|
19535
19580
|
for (var i = 0; i < tree.length; i++) {
|
|
19536
19581
|
var node = tree[i];
|
|
@@ -19539,8 +19584,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19539
19584
|
return item.path === path;
|
|
19540
19585
|
})) {
|
|
19541
19586
|
parentKey = node.path;
|
|
19542
|
-
} else if (
|
|
19543
|
-
parentKey =
|
|
19587
|
+
} else if (getParentKey(path, node.children)) {
|
|
19588
|
+
parentKey = getParentKey(path, node.children);
|
|
19544
19589
|
}
|
|
19545
19590
|
}
|
|
19546
19591
|
}
|
|
@@ -19571,7 +19616,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19571
19616
|
var treeData = _this.state.treeData;
|
|
19572
19617
|
var expandedKeys = dataList.map(function (item) {
|
|
19573
19618
|
if (item.name.indexOf(value) > -1) {
|
|
19574
|
-
return
|
|
19619
|
+
return getParentKey(item.path, treeData);
|
|
19575
19620
|
}
|
|
19576
19621
|
return null;
|
|
19577
19622
|
}).filter(function (item, i, self) {
|
|
@@ -19585,22 +19630,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19585
19630
|
};
|
|
19586
19631
|
_this.getPathList = function (originData) {
|
|
19587
19632
|
var pathList = [];
|
|
19588
|
-
var
|
|
19633
|
+
var getList = function getList(data) {
|
|
19589
19634
|
if (Array.isArray(data)) {
|
|
19590
19635
|
data.forEach(function (item) {
|
|
19591
19636
|
pathList.push(item.path);
|
|
19592
19637
|
if (item.children) {
|
|
19593
|
-
|
|
19638
|
+
getList(item.children);
|
|
19594
19639
|
}
|
|
19595
19640
|
});
|
|
19596
19641
|
} else {
|
|
19597
19642
|
pathList.push(data.path);
|
|
19598
19643
|
if (data.children) {
|
|
19599
|
-
|
|
19644
|
+
getList(data.children);
|
|
19600
19645
|
}
|
|
19601
19646
|
}
|
|
19602
19647
|
};
|
|
19603
|
-
|
|
19648
|
+
getList(originData);
|
|
19604
19649
|
return pathList;
|
|
19605
19650
|
};
|
|
19606
19651
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19609,18 +19654,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19609
19654
|
customerMenuData = _this$props.customerMenuData,
|
|
19610
19655
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19611
19656
|
var filterItem;
|
|
19612
|
-
var
|
|
19657
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19613
19658
|
menuData.forEach(function (item) {
|
|
19614
19659
|
if (item.path === path) {
|
|
19615
19660
|
filterItem = _objectSpread2({}, item);
|
|
19616
19661
|
return;
|
|
19617
19662
|
}
|
|
19618
19663
|
if (item.children) {
|
|
19619
|
-
|
|
19664
|
+
filterMenuItem(item.children);
|
|
19620
19665
|
}
|
|
19621
19666
|
});
|
|
19622
19667
|
};
|
|
19623
|
-
|
|
19668
|
+
filterMenuItem(treeData);
|
|
19624
19669
|
var addPathList = _this.getPathList(filterItem);
|
|
19625
19670
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19626
19671
|
var isRepet = false;
|
|
@@ -19650,8 +19695,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19650
19695
|
return item.path === '/';
|
|
19651
19696
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19652
19697
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19653
|
-
|
|
19654
|
-
|
|
19698
|
+
setMenuTreeData(routesData);
|
|
19699
|
+
generateList(routesData);
|
|
19655
19700
|
this.setState({
|
|
19656
19701
|
treeData: routesData
|
|
19657
19702
|
});
|
|
@@ -19665,16 +19710,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19665
19710
|
expandedKeys = _this$state.expandedKeys,
|
|
19666
19711
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19667
19712
|
treeData = _this$state.treeData;
|
|
19668
|
-
var
|
|
19713
|
+
var loop = function loop(data) {
|
|
19669
19714
|
return data.map(function (item) {
|
|
19670
19715
|
var index = item.name.indexOf(searchValue);
|
|
19671
19716
|
var beforeStr = item.name.substr(0, index);
|
|
19672
19717
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19673
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19718
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19674
19719
|
style: {
|
|
19675
19720
|
color: '#f50'
|
|
19676
19721
|
}
|
|
19677
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19722
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19678
19723
|
if (item.children && item.children.length) {
|
|
19679
19724
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19680
19725
|
path: item.path,
|
|
@@ -19696,7 +19741,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19696
19741
|
width: 18,
|
|
19697
19742
|
src: arrowRight
|
|
19698
19743
|
}))))
|
|
19699
|
-
},
|
|
19744
|
+
}, loop(item.children));
|
|
19700
19745
|
}
|
|
19701
19746
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19702
19747
|
path: item.path,
|
|
@@ -19746,7 +19791,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19746
19791
|
onExpand: this.onExpand,
|
|
19747
19792
|
expandedKeys: expandedKeys,
|
|
19748
19793
|
autoExpandParent: autoExpandParent
|
|
19749
|
-
},
|
|
19794
|
+
}, loop(treeData))));
|
|
19750
19795
|
}
|
|
19751
19796
|
}]);
|
|
19752
19797
|
}(React$1.Component);
|
|
@@ -19779,24 +19824,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19779
19824
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19780
19825
|
var dragObj;
|
|
19781
19826
|
var finalDropItem;
|
|
19782
|
-
var
|
|
19827
|
+
var loop = function loop(data, path, callback) {
|
|
19783
19828
|
for (var i = 0; i < data.length; i++) {
|
|
19784
19829
|
if (data[i].path === path) {
|
|
19785
19830
|
return callback(data[i], i, data);
|
|
19786
19831
|
}
|
|
19787
19832
|
if (data[i].children) {
|
|
19788
|
-
|
|
19833
|
+
loop(data[i].children, path, callback);
|
|
19789
19834
|
}
|
|
19790
19835
|
}
|
|
19791
19836
|
};
|
|
19792
19837
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19793
|
-
|
|
19838
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19794
19839
|
arr.splice(index, 1);
|
|
19795
19840
|
dragObj = item;
|
|
19796
19841
|
});
|
|
19797
19842
|
if (!info.dropToGap) {
|
|
19798
19843
|
// Drop on the content
|
|
19799
|
-
|
|
19844
|
+
loop(data, dropKey, function (item) {
|
|
19800
19845
|
item.children = item.children || [];
|
|
19801
19846
|
item.children.unshift(dragObj);
|
|
19802
19847
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19807,7 +19852,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19807
19852
|
// Is expanded
|
|
19808
19853
|
dropPosition === 1 // On the bottom gap
|
|
19809
19854
|
) {
|
|
19810
|
-
|
|
19855
|
+
loop(data, dropKey, function (item) {
|
|
19811
19856
|
item.children = item.children || [];
|
|
19812
19857
|
item.children.unshift(dragObj);
|
|
19813
19858
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19815,7 +19860,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19815
19860
|
} else {
|
|
19816
19861
|
var ar;
|
|
19817
19862
|
var i;
|
|
19818
|
-
|
|
19863
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19819
19864
|
ar = arr;
|
|
19820
19865
|
i = index;
|
|
19821
19866
|
});
|
|
@@ -19854,17 +19899,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19854
19899
|
title: '编辑名称',
|
|
19855
19900
|
callBack: function callBack(newName) {
|
|
19856
19901
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19857
|
-
var
|
|
19902
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19858
19903
|
oldTreeData.forEach(function (treeItem) {
|
|
19859
19904
|
if (treeItem.path === item.path) {
|
|
19860
19905
|
treeItem.name = newName;
|
|
19861
19906
|
}
|
|
19862
19907
|
if (treeItem.children) {
|
|
19863
|
-
|
|
19908
|
+
editTreeDataName(treeItem.children);
|
|
19864
19909
|
}
|
|
19865
19910
|
});
|
|
19866
19911
|
};
|
|
19867
|
-
|
|
19912
|
+
editTreeDataName(oldTreeData);
|
|
19868
19913
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19869
19914
|
_this.setState({
|
|
19870
19915
|
modalInfo: {
|
|
@@ -19909,7 +19954,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19909
19954
|
title: '新增子目录',
|
|
19910
19955
|
callBack: function callBack(newName) {
|
|
19911
19956
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19912
|
-
var
|
|
19957
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19913
19958
|
oldTreeData.forEach(function (treeItem) {
|
|
19914
19959
|
if (treeItem.path === item.path) {
|
|
19915
19960
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19921,11 +19966,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19921
19966
|
}];
|
|
19922
19967
|
}
|
|
19923
19968
|
if (treeItem.children) {
|
|
19924
|
-
|
|
19969
|
+
addChildFolder(treeItem.children);
|
|
19925
19970
|
}
|
|
19926
19971
|
});
|
|
19927
19972
|
};
|
|
19928
|
-
|
|
19973
|
+
addChildFolder(oldTreeData);
|
|
19929
19974
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19930
19975
|
_this.setState({
|
|
19931
19976
|
modalInfo: {
|
|
@@ -19984,7 +20029,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19984
20029
|
var _this$state = this.state,
|
|
19985
20030
|
modalInfo = _this$state.modalInfo,
|
|
19986
20031
|
checkedKeys = _this$state.checkedKeys;
|
|
19987
|
-
var
|
|
20032
|
+
var loop = function loop(data) {
|
|
19988
20033
|
return data.map(function (item) {
|
|
19989
20034
|
if (item.children && item.children.length) {
|
|
19990
20035
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -20001,7 +20046,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20001
20046
|
e.stopPropagation();
|
|
20002
20047
|
}
|
|
20003
20048
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
20004
|
-
},
|
|
20049
|
+
}, loop(item.children));
|
|
20005
20050
|
}
|
|
20006
20051
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
20007
20052
|
path: item.path,
|
|
@@ -20080,7 +20125,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20080
20125
|
children: 'children'
|
|
20081
20126
|
},
|
|
20082
20127
|
onDrop: this.onDrop
|
|
20083
|
-
},
|
|
20128
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20084
20129
|
width: 600,
|
|
20085
20130
|
bodyStyle: {
|
|
20086
20131
|
paddingTop: '32px',
|
|
@@ -20193,7 +20238,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20193
20238
|
pathname: item.path
|
|
20194
20239
|
});
|
|
20195
20240
|
};
|
|
20196
|
-
var
|
|
20241
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20197
20242
|
return menuData.map(function (item) {
|
|
20198
20243
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20199
20244
|
style: {
|
|
@@ -20208,7 +20253,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20208
20253
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20209
20254
|
paddingLeft: '4px'
|
|
20210
20255
|
}
|
|
20211
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20256
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20212
20257
|
});
|
|
20213
20258
|
};
|
|
20214
20259
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20234,7 +20279,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20234
20279
|
style: {
|
|
20235
20280
|
paddingLeft: '5px'
|
|
20236
20281
|
}
|
|
20237
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20282
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20238
20283
|
style: {
|
|
20239
20284
|
left: isDrawer ? 140 : 0
|
|
20240
20285
|
},
|
|
@@ -20255,7 +20300,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20255
20300
|
visible: isDrawer
|
|
20256
20301
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20257
20302
|
className: 'menu_title_line'
|
|
20258
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20303
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20259
20304
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20260
20305
|
style: {
|
|
20261
20306
|
fontWeight: '600',
|
|
@@ -20329,7 +20374,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20329
20374
|
return item.path === '/';
|
|
20330
20375
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20331
20376
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20332
|
-
|
|
20377
|
+
setMenuTreeData(routesData);
|
|
20333
20378
|
routesData.forEach(function (item) {
|
|
20334
20379
|
if (item.children) {
|
|
20335
20380
|
routesDataList.push(item);
|
|
@@ -20359,7 +20404,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20359
20404
|
setHeight(clientHeight - 190);
|
|
20360
20405
|
setDrawHeight(clientHeight - 70);
|
|
20361
20406
|
};
|
|
20362
|
-
var
|
|
20407
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20363
20408
|
if (!child.hideInMenu && child.children) {
|
|
20364
20409
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20365
20410
|
style: {
|
|
@@ -20369,7 +20414,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20369
20414
|
}, formatMessage({
|
|
20370
20415
|
id: "".concat(child.locale)
|
|
20371
20416
|
})), child.children.map(function (menuItem) {
|
|
20372
|
-
return
|
|
20417
|
+
return renderChildItem(menuItem);
|
|
20373
20418
|
}));
|
|
20374
20419
|
} else if (!child.hideInMenu && child.path) {
|
|
20375
20420
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20511,7 +20556,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20511
20556
|
onMenuClick(e, item);
|
|
20512
20557
|
}
|
|
20513
20558
|
}, item.name);
|
|
20514
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20559
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
20515
20560
|
className: 'search_menu_content'
|
|
20516
20561
|
}, SearhData.map(function (item) {
|
|
20517
20562
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20520,7 +20565,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20520
20565
|
},
|
|
20521
20566
|
key: item.path
|
|
20522
20567
|
}, item.name);
|
|
20523
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20568
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20524
20569
|
style: {
|
|
20525
20570
|
height: "".concat(rightMenuHeight, "px"),
|
|
20526
20571
|
overflowY: 'scroll',
|
|
@@ -20532,7 +20577,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20532
20577
|
className: 'drawerWarp_right'
|
|
20533
20578
|
}, homepageData && homepageData.filter(function (d) {
|
|
20534
20579
|
return !d.hideInMenu;
|
|
20535
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20580
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
20536
20581
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20537
20582
|
dataSource: homepageData,
|
|
20538
20583
|
renderItem: function renderItem(child) {
|
|
@@ -20573,7 +20618,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20573
20618
|
bordered: true,
|
|
20574
20619
|
dataSource: item.children,
|
|
20575
20620
|
renderItem: function renderItem(child) {
|
|
20576
|
-
return
|
|
20621
|
+
return renderChildItem(child);
|
|
20577
20622
|
}
|
|
20578
20623
|
});
|
|
20579
20624
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20731,10 +20776,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20731
20776
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20732
20777
|
var menuKeys = [];
|
|
20733
20778
|
var docsId = [];
|
|
20734
|
-
var
|
|
20779
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20735
20780
|
data.forEach(function (item) {
|
|
20736
20781
|
if (item.children && item.children.length > 0) {
|
|
20737
|
-
|
|
20782
|
+
getLimitedMenuKeys(item.children);
|
|
20738
20783
|
} else {
|
|
20739
20784
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20740
20785
|
menuKeys.push(originPath);
|
|
@@ -20745,7 +20790,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20745
20790
|
});
|
|
20746
20791
|
};
|
|
20747
20792
|
try {
|
|
20748
|
-
|
|
20793
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20749
20794
|
} catch (e) {}
|
|
20750
20795
|
return {
|
|
20751
20796
|
menuKeys: menuKeys,
|
|
@@ -20979,10 +21024,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20979
21024
|
return (node.path || '').includes('all-general-documents');
|
|
20980
21025
|
};
|
|
20981
21026
|
// 递归获取树列表
|
|
20982
|
-
var
|
|
21027
|
+
var getTreeList = function getTreeList(data) {
|
|
20983
21028
|
data.forEach(function (node) {
|
|
20984
21029
|
if (node.routes && node.routes.length > 0) {
|
|
20985
|
-
|
|
21030
|
+
getTreeList(node.routes);
|
|
20986
21031
|
return;
|
|
20987
21032
|
}
|
|
20988
21033
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21013,7 +21058,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21013
21058
|
}
|
|
21014
21059
|
});
|
|
21015
21060
|
};
|
|
21016
|
-
|
|
21061
|
+
getTreeList(treeData);
|
|
21017
21062
|
return treeList;
|
|
21018
21063
|
};
|
|
21019
21064
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21642,7 +21687,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21642
21687
|
updateState = _ref8.updateState;
|
|
21643
21688
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21644
21689
|
className: "tab_title_content"
|
|
21645
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21690
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21646
21691
|
info: item,
|
|
21647
21692
|
operateFun: _this3.operateFun,
|
|
21648
21693
|
listenRouterState: listenRouterState
|
|
@@ -21778,7 +21823,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21778
21823
|
};
|
|
21779
21824
|
}
|
|
21780
21825
|
var OperationsSlot = {
|
|
21781
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21826
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21782
21827
|
className: 'tab_left_operate'
|
|
21783
21828
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21784
21829
|
onClick: function onClick() {
|
|
@@ -21794,7 +21839,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21794
21839
|
_this3.setTabNavTransLate(-100);
|
|
21795
21840
|
}
|
|
21796
21841
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21797
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21842
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21798
21843
|
style: {
|
|
21799
21844
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21800
21845
|
},
|
|
@@ -21892,7 +21937,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21892
21937
|
onMouseLeave: function onMouseLeave() {
|
|
21893
21938
|
_this3.setShowMenu(false);
|
|
21894
21939
|
}
|
|
21895
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21940
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21896
21941
|
style: {
|
|
21897
21942
|
position: 'absolute',
|
|
21898
21943
|
top: '14px',
|
|
@@ -21911,7 +21956,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21911
21956
|
postMenuData: function postMenuData(menus) {
|
|
21912
21957
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21913
21958
|
},
|
|
21914
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21959
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21915
21960
|
ref: this.allFunc,
|
|
21916
21961
|
itemPath: itemPath,
|
|
21917
21962
|
handleClose: this.handleClose,
|
|
@@ -21929,7 +21974,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21929
21974
|
},
|
|
21930
21975
|
menu: {
|
|
21931
21976
|
request: function () {
|
|
21932
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21977
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21933
21978
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21934
21979
|
while (1) switch (_context.prev = _context.next) {
|
|
21935
21980
|
case 0:
|
|
@@ -22064,7 +22109,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22064
22109
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22065
22110
|
timeFormat = _this$props4.timeFormat,
|
|
22066
22111
|
transparentProps = _this$props4.transparentProps;
|
|
22067
|
-
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({
|
|
22112
|
+
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({
|
|
22068
22113
|
getDictionarySource: getDictionarySource,
|
|
22069
22114
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22070
22115
|
timeFormat: timeFormat
|
|
@@ -22088,12 +22133,12 @@ var index$5 = (function (props) {
|
|
|
22088
22133
|
});
|
|
22089
22134
|
|
|
22090
22135
|
// @ts-nocheck
|
|
22091
|
-
var
|
|
22136
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22092
22137
|
var result = [];
|
|
22093
22138
|
columns.forEach(function (column) {
|
|
22094
22139
|
if (column.children) {
|
|
22095
22140
|
result.push(column);
|
|
22096
|
-
result.push.apply(result,
|
|
22141
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22097
22142
|
} else {
|
|
22098
22143
|
result.push(column);
|
|
22099
22144
|
}
|
|
@@ -22102,7 +22147,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22102
22147
|
};
|
|
22103
22148
|
var convertToRows = function convertToRows(originColumns) {
|
|
22104
22149
|
var maxLevel = 1;
|
|
22105
|
-
var
|
|
22150
|
+
var traverse = function traverse(column, parent) {
|
|
22106
22151
|
if (parent) {
|
|
22107
22152
|
column.level = parent.level + 1;
|
|
22108
22153
|
if (maxLevel < column.level) {
|
|
@@ -22112,7 +22157,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22112
22157
|
if (column.children) {
|
|
22113
22158
|
var colSpan = 0;
|
|
22114
22159
|
column.children.forEach(function (subColumn) {
|
|
22115
|
-
|
|
22160
|
+
traverse(subColumn, column);
|
|
22116
22161
|
colSpan += subColumn.colSpan;
|
|
22117
22162
|
});
|
|
22118
22163
|
column.colSpan = colSpan;
|
|
@@ -22122,13 +22167,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22122
22167
|
};
|
|
22123
22168
|
originColumns.forEach(function (column) {
|
|
22124
22169
|
column.level = 1;
|
|
22125
|
-
|
|
22170
|
+
traverse(column);
|
|
22126
22171
|
});
|
|
22127
22172
|
var rows = [];
|
|
22128
22173
|
for (var i = 0; i < maxLevel; i++) {
|
|
22129
22174
|
rows.push([]);
|
|
22130
22175
|
}
|
|
22131
|
-
var allColumns =
|
|
22176
|
+
var allColumns = getAllColumns(originColumns);
|
|
22132
22177
|
allColumns.forEach(function (column) {
|
|
22133
22178
|
if (!column.children) {
|
|
22134
22179
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22168,7 +22213,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22168
22213
|
};
|
|
22169
22214
|
var headersToRows = function headersToRows(originColumns) {
|
|
22170
22215
|
var maxLevel = 1;
|
|
22171
|
-
var
|
|
22216
|
+
var traverse = function traverse(column, parent) {
|
|
22172
22217
|
if (parent) {
|
|
22173
22218
|
//计算当前元素属于第几个层级
|
|
22174
22219
|
column.level = parent.level + 1;
|
|
@@ -22181,7 +22226,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22181
22226
|
var colSpan = 0;
|
|
22182
22227
|
column.children.forEach(function (subColumn) {
|
|
22183
22228
|
//进行递归
|
|
22184
|
-
|
|
22229
|
+
traverse(subColumn, column);
|
|
22185
22230
|
colSpan += subColumn.colSpan;
|
|
22186
22231
|
});
|
|
22187
22232
|
column.colSpan = colSpan;
|
|
@@ -22191,14 +22236,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22191
22236
|
};
|
|
22192
22237
|
originColumns.forEach(function (column) {
|
|
22193
22238
|
column.level = 1;
|
|
22194
|
-
|
|
22239
|
+
traverse(column);
|
|
22195
22240
|
});
|
|
22196
22241
|
var rows = [];
|
|
22197
22242
|
var lastData = [];
|
|
22198
22243
|
for (var i = 0; i < maxLevel; i++) {
|
|
22199
22244
|
rows.push([]);
|
|
22200
22245
|
}
|
|
22201
|
-
var allColumns =
|
|
22246
|
+
var allColumns = getAllColumns(originColumns);
|
|
22202
22247
|
allColumns.forEach(function (column) {
|
|
22203
22248
|
if (!column.children) {
|
|
22204
22249
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28215,7 +28260,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28215
28260
|
}
|
|
28216
28261
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28217
28262
|
};
|
|
28218
|
-
var
|
|
28263
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28219
28264
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28220
28265
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28221
28266
|
var children = hightLightData.children,
|
|
@@ -28226,7 +28271,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28226
28271
|
lineEnd = _loc2[2];
|
|
28227
28272
|
if (children) {
|
|
28228
28273
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28229
|
-
return
|
|
28274
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28230
28275
|
});
|
|
28231
28276
|
}
|
|
28232
28277
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28238,7 +28283,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28238
28283
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28239
28284
|
data.forEach(function (node) {
|
|
28240
28285
|
if (!node) return;
|
|
28241
|
-
node.toggled =
|
|
28286
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28242
28287
|
node.active = isHightLight(node, highLightLine);
|
|
28243
28288
|
if (node.children) {
|
|
28244
28289
|
if (node.active) {
|
|
@@ -29669,7 +29714,7 @@ var valueType = {
|
|
|
29669
29714
|
};
|
|
29670
29715
|
|
|
29671
29716
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29672
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29717
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29673
29718
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29674
29719
|
while (1) switch (_context.prev = _context.next) {
|
|
29675
29720
|
case 0:
|
|
@@ -29737,7 +29782,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29737
29782
|
value: false
|
|
29738
29783
|
}];
|
|
29739
29784
|
var ref = useRef();
|
|
29740
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29785
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29741
29786
|
var _ref$current, source;
|
|
29742
29787
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29743
29788
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29851,7 +29896,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29851
29896
|
source: {
|
|
29852
29897
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29853
29898
|
type: function () {
|
|
29854
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29899
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29855
29900
|
var form, values, name, relates, source;
|
|
29856
29901
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29857
29902
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30331,7 +30376,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30331
30376
|
source: {
|
|
30332
30377
|
relates: ['choiceType', 'inputType'],
|
|
30333
30378
|
type: function () {
|
|
30334
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30379
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30335
30380
|
var values, name, form, source;
|
|
30336
30381
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30337
30382
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30553,7 +30598,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30553
30598
|
width: 900,
|
|
30554
30599
|
maskClosable: false,
|
|
30555
30600
|
onOk: function () {
|
|
30556
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30601
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30557
30602
|
var _ref$current4, _res$editableStatus;
|
|
30558
30603
|
var res, _res$defaultValue;
|
|
30559
30604
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30625,7 +30670,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30625
30670
|
}()
|
|
30626
30671
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30627
30672
|
ref: ref
|
|
30628
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30673
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30629
30674
|
};
|
|
30630
30675
|
|
|
30631
30676
|
// @ts-nocheck
|
|
@@ -31239,7 +31284,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31239
31284
|
return setVisible(false);
|
|
31240
31285
|
},
|
|
31241
31286
|
className: 'customFieldsDrawer'
|
|
31242
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31287
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
31243
31288
|
style: {
|
|
31244
31289
|
display: 'flex'
|
|
31245
31290
|
}
|
|
@@ -31248,13 +31293,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31248
31293
|
flex: 1,
|
|
31249
31294
|
width: 500
|
|
31250
31295
|
}
|
|
31251
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31296
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31252
31297
|
style: {
|
|
31253
31298
|
padding: "10px 0",
|
|
31254
31299
|
fontSize: "16px",
|
|
31255
31300
|
fontWeight: "bolder"
|
|
31256
31301
|
}
|
|
31257
|
-
}, "\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", {
|
|
31302
|
+
}, "\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", {
|
|
31258
31303
|
style: {
|
|
31259
31304
|
flex: 1
|
|
31260
31305
|
}
|
|
@@ -31263,7 +31308,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31263
31308
|
onRun: onClickRun,
|
|
31264
31309
|
value: jsonEditorVal,
|
|
31265
31310
|
shallowHeight: height
|
|
31266
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31311
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
31267
31312
|
defaultActiveKey: activeKey,
|
|
31268
31313
|
onChange: function onChange(v) {
|
|
31269
31314
|
return setActiveKey(v);
|
|
@@ -31280,13 +31325,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31280
31325
|
flex: 1,
|
|
31281
31326
|
width: 500
|
|
31282
31327
|
}
|
|
31283
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31328
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31284
31329
|
style: {
|
|
31285
31330
|
padding: "10px 0",
|
|
31286
31331
|
fontSize: "16px",
|
|
31287
31332
|
fontWeight: "bolder"
|
|
31288
31333
|
}
|
|
31289
|
-
}, "\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", {
|
|
31334
|
+
}, "\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", {
|
|
31290
31335
|
style: {
|
|
31291
31336
|
flex: 1
|
|
31292
31337
|
}
|
|
@@ -31308,13 +31353,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31308
31353
|
flex: 1,
|
|
31309
31354
|
width: 500
|
|
31310
31355
|
}
|
|
31311
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31356
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31312
31357
|
style: {
|
|
31313
31358
|
padding: "10px 0",
|
|
31314
31359
|
fontSize: "16px",
|
|
31315
31360
|
fontWeight: "bolder"
|
|
31316
31361
|
}
|
|
31317
|
-
}, "\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", {
|
|
31362
|
+
}, "\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", {
|
|
31318
31363
|
style: {
|
|
31319
31364
|
flex: 1
|
|
31320
31365
|
}
|
|
@@ -31460,7 +31505,7 @@ function getMetaData(_x) {
|
|
|
31460
31505
|
|
|
31461
31506
|
// 获取数据
|
|
31462
31507
|
function _getMetaData() {
|
|
31463
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31508
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31464
31509
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31465
31510
|
while (1) switch (_context.prev = _context.next) {
|
|
31466
31511
|
case 0:
|
|
@@ -31682,7 +31727,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31682
31727
|
tableState = _useState4[0],
|
|
31683
31728
|
setTableState = _useState4[1];
|
|
31684
31729
|
var handleOpen = /*#__PURE__*/function () {
|
|
31685
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31730
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31686
31731
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31687
31732
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31688
31733
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32001,7 +32046,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32001
32046
|
destroyOnClose: true
|
|
32002
32047
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
32003
32048
|
ref: queryTableRef
|
|
32004
|
-
}, 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, {
|
|
32049
|
+
}, 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, {
|
|
32005
32050
|
justify: "center",
|
|
32006
32051
|
style: {
|
|
32007
32052
|
marginBottom: 30,
|
|
@@ -32117,7 +32162,7 @@ var CustomSelector = (function (props) {
|
|
|
32117
32162
|
var _props$ctx7;
|
|
32118
32163
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32119
32164
|
}
|
|
32120
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32165
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
32121
32166
|
type: "primary",
|
|
32122
32167
|
style: {
|
|
32123
32168
|
width: '30px',
|
|
@@ -32203,7 +32248,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32203
32248
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32204
32249
|
handSource = _useState2[0],
|
|
32205
32250
|
setHandSource = _useState2[1];
|
|
32206
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32251
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32207
32252
|
var resData, data;
|
|
32208
32253
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32209
32254
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32355,7 +32400,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32355
32400
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32356
32401
|
}
|
|
32357
32402
|
function _getRegularThresholdRange() {
|
|
32358
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32403
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32359
32404
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32360
32405
|
while (1) switch (_context.prev = _context.next) {
|
|
32361
32406
|
case 0:
|
|
@@ -32509,7 +32554,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32509
32554
|
};
|
|
32510
32555
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32511
32556
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32512
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32557
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32513
32558
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32514
32559
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32515
32560
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33466,7 +33511,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33466
33511
|
isAll: true,
|
|
33467
33512
|
needNameAndCode: true,
|
|
33468
33513
|
notChangeOnSelect: true,
|
|
33469
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33514
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33470
33515
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33471
33516
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33472
33517
|
case 0:
|
|
@@ -33515,7 +33560,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33515
33560
|
isAll: true,
|
|
33516
33561
|
needNameAndCode: true,
|
|
33517
33562
|
notChangeOnSelect: true,
|
|
33518
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33563
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33519
33564
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33520
33565
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33521
33566
|
case 0:
|
|
@@ -33566,7 +33611,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33566
33611
|
isAll: true,
|
|
33567
33612
|
needNameAndCode: true,
|
|
33568
33613
|
notChangeOnSelect: true,
|
|
33569
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33614
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33570
33615
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33571
33616
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33572
33617
|
case 0:
|
|
@@ -35544,7 +35589,7 @@ var App$1 = function App(_ref) {
|
|
|
35544
35589
|
borderRadius: '5px',
|
|
35545
35590
|
cursor: 'pointer'
|
|
35546
35591
|
}
|
|
35547
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35592
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35548
35593
|
autoFocus: true,
|
|
35549
35594
|
onClick: function onClick(e) {
|
|
35550
35595
|
return e.stopPropagation();
|
|
@@ -35831,7 +35876,7 @@ function RenderCompItem(props) {
|
|
|
35831
35876
|
dictData = _useState2[0],
|
|
35832
35877
|
setDictData = _useState2[1];
|
|
35833
35878
|
var getDictData = /*#__PURE__*/function () {
|
|
35834
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35879
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35835
35880
|
var _data$map;
|
|
35836
35881
|
var data;
|
|
35837
35882
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35873,7 +35918,7 @@ function RenderCompItem(props) {
|
|
|
35873
35918
|
var style2 = {
|
|
35874
35919
|
width: '100px'
|
|
35875
35920
|
};
|
|
35876
|
-
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, {
|
|
35921
|
+
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, {
|
|
35877
35922
|
disabled: disabled,
|
|
35878
35923
|
allowClear: true,
|
|
35879
35924
|
onClear: function onClear() {
|
|
@@ -35884,7 +35929,7 @@ function RenderCompItem(props) {
|
|
|
35884
35929
|
onBlur: function onBlur(e) {
|
|
35885
35930
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35886
35931
|
}
|
|
35887
|
-
})) || 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, {
|
|
35932
|
+
})) || 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, {
|
|
35888
35933
|
disabled: disabled,
|
|
35889
35934
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35890
35935
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35897,7 +35942,7 @@ function RenderCompItem(props) {
|
|
|
35897
35942
|
onChange: function onChange(value) {
|
|
35898
35943
|
handleEdit(ites.code, value);
|
|
35899
35944
|
}
|
|
35900
|
-
})) || 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, {
|
|
35945
|
+
})) || 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, {
|
|
35901
35946
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35902
35947
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35903
35948
|
disabled: disabled,
|
|
@@ -35907,7 +35952,7 @@ function RenderCompItem(props) {
|
|
|
35907
35952
|
onChange: function onChange(value, dateString) {
|
|
35908
35953
|
handleEdit(ites.code, dateString);
|
|
35909
35954
|
}
|
|
35910
|
-
})) || 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, {
|
|
35955
|
+
})) || 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, {
|
|
35911
35956
|
showTime: true,
|
|
35912
35957
|
disabled: disabled,
|
|
35913
35958
|
defaultValue: ites.defaultValue,
|
|
@@ -35916,7 +35961,7 @@ function RenderCompItem(props) {
|
|
|
35916
35961
|
onChange: function onChange(value, timeString) {
|
|
35917
35962
|
handleEdit(ites.code, timeString);
|
|
35918
35963
|
}
|
|
35919
|
-
})) || 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, {
|
|
35964
|
+
})) || 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, {
|
|
35920
35965
|
disabled: disabled,
|
|
35921
35966
|
defaultChecked: !!ites.defaultValue,
|
|
35922
35967
|
style: style2,
|
|
@@ -35924,7 +35969,7 @@ function RenderCompItem(props) {
|
|
|
35924
35969
|
onChange: function onChange(value) {
|
|
35925
35970
|
handleEdit(ites.code, value);
|
|
35926
35971
|
}
|
|
35927
|
-
})) || 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({
|
|
35972
|
+
})) || 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({
|
|
35928
35973
|
disabled: disabled,
|
|
35929
35974
|
allowClear: true,
|
|
35930
35975
|
showArrow: true
|
|
@@ -35942,7 +35987,7 @@ function RenderCompItem(props) {
|
|
|
35942
35987
|
key: it,
|
|
35943
35988
|
value: it
|
|
35944
35989
|
}, ites.enumeration[it]);
|
|
35945
|
-
}))) || 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, {
|
|
35990
|
+
}))) || 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, {
|
|
35946
35991
|
disabled: disabled,
|
|
35947
35992
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35948
35993
|
defaultValue: ites.defaultValue,
|
|
@@ -35952,7 +35997,7 @@ function RenderCompItem(props) {
|
|
|
35952
35997
|
handleEdit(ites.code, value);
|
|
35953
35998
|
},
|
|
35954
35999
|
dictionaryCode: ites.dictionaryCode
|
|
35955
|
-
})) || 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, {
|
|
36000
|
+
})) || 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, {
|
|
35956
36001
|
selectBusinessType: "physicalWarehouse",
|
|
35957
36002
|
selectProps: _objectSpread2({
|
|
35958
36003
|
style: styleCommon,
|
|
@@ -35974,7 +36019,7 @@ function RenderCompItem(props) {
|
|
|
35974
36019
|
getPopupContainer: function getPopupContainer() {
|
|
35975
36020
|
return document.body;
|
|
35976
36021
|
}
|
|
35977
|
-
})) || 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, {
|
|
36022
|
+
})) || 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, {
|
|
35978
36023
|
selectBusinessType: "realWarehouse",
|
|
35979
36024
|
selectProps: _objectSpread2({
|
|
35980
36025
|
style: styleCommon,
|
|
@@ -35996,7 +36041,7 @@ function RenderCompItem(props) {
|
|
|
35996
36041
|
getPopupContainer: function getPopupContainer() {
|
|
35997
36042
|
return document.body;
|
|
35998
36043
|
}
|
|
35999
|
-
})) || 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, {
|
|
36044
|
+
})) || 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, {
|
|
36000
36045
|
selectBusinessType: "virtualWarehouse",
|
|
36001
36046
|
selectProps: _objectSpread2({
|
|
36002
36047
|
style: styleCommon,
|
|
@@ -36018,7 +36063,7 @@ function RenderCompItem(props) {
|
|
|
36018
36063
|
getPopupContainer: function getPopupContainer() {
|
|
36019
36064
|
return document.body;
|
|
36020
36065
|
}
|
|
36021
|
-
})) || 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, {
|
|
36066
|
+
})) || 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, {
|
|
36022
36067
|
selectBusinessType: "channelWarehouse",
|
|
36023
36068
|
selectProps: _objectSpread2({
|
|
36024
36069
|
style: styleCommon,
|
|
@@ -36040,7 +36085,7 @@ function RenderCompItem(props) {
|
|
|
36040
36085
|
getPopupContainer: function getPopupContainer() {
|
|
36041
36086
|
return document.body;
|
|
36042
36087
|
}
|
|
36043
|
-
})) || 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, {
|
|
36088
|
+
})) || 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, {
|
|
36044
36089
|
selectBusinessType: "spuCommodity",
|
|
36045
36090
|
selectProps: _objectSpread2({
|
|
36046
36091
|
style: styleCommon,
|
|
@@ -36061,7 +36106,7 @@ function RenderCompItem(props) {
|
|
|
36061
36106
|
getPopupContainer: function getPopupContainer() {
|
|
36062
36107
|
return document.body;
|
|
36063
36108
|
}
|
|
36064
|
-
})) || 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, {
|
|
36109
|
+
})) || 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, {
|
|
36065
36110
|
selectBusinessType: "skuCommodity",
|
|
36066
36111
|
selectProps: _objectSpread2({
|
|
36067
36112
|
style: styleCommon,
|
|
@@ -36082,13 +36127,13 @@ function RenderCompItem(props) {
|
|
|
36082
36127
|
getPopupContainer: function getPopupContainer() {
|
|
36083
36128
|
return document.body;
|
|
36084
36129
|
}
|
|
36085
|
-
})) || 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, {
|
|
36130
|
+
})) || 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, {
|
|
36086
36131
|
disabled: disabled,
|
|
36087
36132
|
isAll: true,
|
|
36088
36133
|
needNameAndCode: true,
|
|
36089
36134
|
notChangeOnSelect: true,
|
|
36090
36135
|
initRequestSource: function () {
|
|
36091
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36136
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36092
36137
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36093
36138
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36094
36139
|
case 0:
|
|
@@ -36130,7 +36175,7 @@ function RenderCompItem(props) {
|
|
|
36130
36175
|
getPopupContainer: function getPopupContainer() {
|
|
36131
36176
|
return document.body;
|
|
36132
36177
|
}
|
|
36133
|
-
})) || 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, {
|
|
36178
|
+
})) || 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, {
|
|
36134
36179
|
disabled: disabled,
|
|
36135
36180
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36136
36181
|
businessType: "department",
|
|
@@ -36143,7 +36188,7 @@ function RenderCompItem(props) {
|
|
|
36143
36188
|
getPopupContainer: function getPopupContainer() {
|
|
36144
36189
|
return document.body;
|
|
36145
36190
|
}
|
|
36146
|
-
})) || 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, {
|
|
36191
|
+
})) || 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, {
|
|
36147
36192
|
disabled: disabled,
|
|
36148
36193
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36149
36194
|
businessType: "purchase-organization",
|
|
@@ -36156,7 +36201,7 @@ function RenderCompItem(props) {
|
|
|
36156
36201
|
getPopupContainer: function getPopupContainer() {
|
|
36157
36202
|
return document.body;
|
|
36158
36203
|
}
|
|
36159
|
-
})) || 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, {
|
|
36204
|
+
})) || 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, {
|
|
36160
36205
|
disabled: disabled,
|
|
36161
36206
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36162
36207
|
businessType: "sales-organization",
|
|
@@ -36169,7 +36214,7 @@ function RenderCompItem(props) {
|
|
|
36169
36214
|
getPopupContainer: function getPopupContainer() {
|
|
36170
36215
|
return document.body;
|
|
36171
36216
|
}
|
|
36172
|
-
})) || 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, {
|
|
36217
|
+
})) || 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, {
|
|
36173
36218
|
selectBusinessType: "supplier2",
|
|
36174
36219
|
selectProps: _objectSpread2({
|
|
36175
36220
|
style: styleCommon,
|
|
@@ -36190,7 +36235,7 @@ function RenderCompItem(props) {
|
|
|
36190
36235
|
getPopupContainer: function getPopupContainer() {
|
|
36191
36236
|
return document.body;
|
|
36192
36237
|
}
|
|
36193
|
-
})) || 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, {
|
|
36238
|
+
})) || 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, {
|
|
36194
36239
|
selectBusinessType: "customer2",
|
|
36195
36240
|
selectProps: _objectSpread2({
|
|
36196
36241
|
style: styleCommon,
|
|
@@ -36211,7 +36256,7 @@ function RenderCompItem(props) {
|
|
|
36211
36256
|
getPopupContainer: function getPopupContainer() {
|
|
36212
36257
|
return document.body;
|
|
36213
36258
|
}
|
|
36214
|
-
})) || 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, {
|
|
36259
|
+
})) || 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, {
|
|
36215
36260
|
selectBusinessType: "shopFile2",
|
|
36216
36261
|
selectProps: _objectSpread2({
|
|
36217
36262
|
style: styleCommon,
|
|
@@ -36232,7 +36277,7 @@ function RenderCompItem(props) {
|
|
|
36232
36277
|
getPopupContainer: function getPopupContainer() {
|
|
36233
36278
|
return document.body;
|
|
36234
36279
|
}
|
|
36235
|
-
})) || 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, {
|
|
36280
|
+
})) || 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, {
|
|
36236
36281
|
selectBusinessType: "employee2",
|
|
36237
36282
|
selectProps: _objectSpread2({
|
|
36238
36283
|
style: styleCommon,
|
|
@@ -36253,7 +36298,7 @@ function RenderCompItem(props) {
|
|
|
36253
36298
|
getPopupContainer: function getPopupContainer() {
|
|
36254
36299
|
return document.body;
|
|
36255
36300
|
}
|
|
36256
|
-
})) || 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, {
|
|
36301
|
+
})) || 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, {
|
|
36257
36302
|
disabled: disabled,
|
|
36258
36303
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36259
36304
|
businessType: "stock-organization",
|
|
@@ -36266,7 +36311,7 @@ function RenderCompItem(props) {
|
|
|
36266
36311
|
getPopupContainer: function getPopupContainer() {
|
|
36267
36312
|
return document.body;
|
|
36268
36313
|
}
|
|
36269
|
-
})) || 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, {
|
|
36314
|
+
})) || 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, {
|
|
36270
36315
|
disabled: disabled,
|
|
36271
36316
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36272
36317
|
businessType: "settle-organization",
|
|
@@ -36279,7 +36324,7 @@ function RenderCompItem(props) {
|
|
|
36279
36324
|
getPopupContainer: function getPopupContainer() {
|
|
36280
36325
|
return document.body;
|
|
36281
36326
|
}
|
|
36282
|
-
})) || 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, {
|
|
36327
|
+
})) || 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, {
|
|
36283
36328
|
selectBusinessType: "deliveryMode",
|
|
36284
36329
|
selectProps: _objectSpread2({
|
|
36285
36330
|
style: styleCommon,
|
|
@@ -36300,7 +36345,7 @@ function RenderCompItem(props) {
|
|
|
36300
36345
|
getPopupContainer: function getPopupContainer() {
|
|
36301
36346
|
return document.body;
|
|
36302
36347
|
}
|
|
36303
|
-
})) || 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, {
|
|
36348
|
+
})) || 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, {
|
|
36304
36349
|
selectBusinessType: "role",
|
|
36305
36350
|
selectProps: _objectSpread2({
|
|
36306
36351
|
style: styleCommon,
|
|
@@ -36321,7 +36366,7 @@ function RenderCompItem(props) {
|
|
|
36321
36366
|
getPopupContainer: function getPopupContainer() {
|
|
36322
36367
|
return document.body;
|
|
36323
36368
|
}
|
|
36324
|
-
})) || 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, {
|
|
36369
|
+
})) || 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, {
|
|
36325
36370
|
selectBusinessType: "brand",
|
|
36326
36371
|
selectProps: _objectSpread2({
|
|
36327
36372
|
style: styleCommon,
|
|
@@ -36342,7 +36387,7 @@ function RenderCompItem(props) {
|
|
|
36342
36387
|
getPopupContainer: function getPopupContainer() {
|
|
36343
36388
|
return document.body;
|
|
36344
36389
|
}
|
|
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) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36390
|
+
})) || 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, {
|
|
36346
36391
|
disabled: disabled,
|
|
36347
36392
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36348
36393
|
businessType: "background-category",
|
|
@@ -36355,7 +36400,7 @@ function RenderCompItem(props) {
|
|
|
36355
36400
|
getPopupContainer: function getPopupContainer() {
|
|
36356
36401
|
return document.body;
|
|
36357
36402
|
}
|
|
36358
|
-
})) || 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, {
|
|
36403
|
+
})) || 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, {
|
|
36359
36404
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36360
36405
|
style: styleCommon,
|
|
36361
36406
|
placeholder: '请选择'
|
|
@@ -36378,7 +36423,7 @@ function RenderCompItem(props) {
|
|
|
36378
36423
|
onChange: function onChange(value) {
|
|
36379
36424
|
handleEdit(ites.code, value);
|
|
36380
36425
|
}
|
|
36381
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36426
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
36382
36427
|
style: {
|
|
36383
36428
|
display: 'flex'
|
|
36384
36429
|
}
|
|
@@ -36890,7 +36935,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36890
36935
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36891
36936
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36892
36937
|
}
|
|
36893
|
-
var parallelTreeData =
|
|
36938
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36894
36939
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36895
36940
|
var _i$key;
|
|
36896
36941
|
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);
|
|
@@ -37817,13 +37862,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37817
37862
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37818
37863
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37819
37864
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37820
|
-
var list =
|
|
37865
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37821
37866
|
var requiredList = list.filter(function (c) {
|
|
37822
37867
|
return c.required == 1;
|
|
37823
37868
|
}) || []; // 获取对象属性为true的集合
|
|
37824
37869
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37825
37870
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37826
|
-
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) ?
|
|
37871
|
+
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];
|
|
37827
37872
|
(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) {
|
|
37828
37873
|
if (requiredList.some(function (r) {
|
|
37829
37874
|
return r.id === e.elementId;
|
|
@@ -38412,7 +38457,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38412
38457
|
style: {
|
|
38413
38458
|
float: 'right'
|
|
38414
38459
|
}
|
|
38415
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38460
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38416
38461
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38417
38462
|
ruleGroupInfo: {
|
|
38418
38463
|
ruleGroupList: ruleGroupList,
|
|
@@ -38430,7 +38475,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38430
38475
|
callBack: function callBack(newData) {
|
|
38431
38476
|
upDateData(newData);
|
|
38432
38477
|
}
|
|
38433
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38478
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
38434
38479
|
style: {
|
|
38435
38480
|
padding: 20
|
|
38436
38481
|
}
|
|
@@ -38805,4 +38850,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38805
38850
|
}, children));
|
|
38806
38851
|
};
|
|
38807
38852
|
|
|
38808
|
-
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,
|
|
38853
|
+
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 };
|