@bit-sun/business-component 4.0.12-alpha.12 → 4.0.12-alpha.17
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 -1
- package/dist/index.esm.js +522 -462
- package/dist/index.js +523 -463
- package/package.json +1 -1
- package/src/components/Functional/SearchSelect/index.less +21 -0
- package/src/components/Functional/SearchSelect/index.tsx +31 -9
- package/src/components/Functional/SearchSelect/utils.ts +4 -1
package/dist/index.esm.js
CHANGED
|
@@ -31,88 +31,9 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
31
31
|
import { visit } from 'ast-types';
|
|
32
32
|
import isArray$1 from 'lodash/isArray';
|
|
33
33
|
|
|
34
|
-
function _arrayLikeToArray(r, a) {
|
|
35
|
-
(null == a || a > r.length) && (a = r.length);
|
|
36
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
37
|
-
return n;
|
|
38
|
-
}
|
|
39
|
-
function _arrayWithHoles(r) {
|
|
40
|
-
if (Array.isArray(r)) return r;
|
|
41
|
-
}
|
|
42
|
-
function _arrayWithoutHoles(r) {
|
|
43
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
44
|
-
}
|
|
45
|
-
function _assertThisInitialized(e) {
|
|
46
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
47
|
-
return e;
|
|
48
|
-
}
|
|
49
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
50
|
-
try {
|
|
51
|
-
var i = n[a](c),
|
|
52
|
-
u = i.value;
|
|
53
|
-
} catch (n) {
|
|
54
|
-
return void e(n);
|
|
55
|
-
}
|
|
56
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
57
|
-
}
|
|
58
|
-
function _asyncToGenerator(n) {
|
|
59
|
-
return function () {
|
|
60
|
-
var t = this,
|
|
61
|
-
e = arguments;
|
|
62
|
-
return new Promise(function (r, o) {
|
|
63
|
-
var a = n.apply(t, e);
|
|
64
|
-
function _next(n) {
|
|
65
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
66
|
-
}
|
|
67
|
-
function _throw(n) {
|
|
68
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
69
|
-
}
|
|
70
|
-
_next(void 0);
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
34
|
function _callSuper(t, o, e) {
|
|
75
35
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
76
36
|
}
|
|
77
|
-
function _classCallCheck(a, n) {
|
|
78
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
79
|
-
}
|
|
80
|
-
function _defineProperties(e, r) {
|
|
81
|
-
for (var t = 0; t < r.length; t++) {
|
|
82
|
-
var o = r[t];
|
|
83
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function _createClass(e, r, t) {
|
|
87
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
88
|
-
writable: !1
|
|
89
|
-
}), e;
|
|
90
|
-
}
|
|
91
|
-
function _defineProperty(e, r, t) {
|
|
92
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
93
|
-
value: t,
|
|
94
|
-
enumerable: !0,
|
|
95
|
-
configurable: !0,
|
|
96
|
-
writable: !0
|
|
97
|
-
}) : e[r] = t, e;
|
|
98
|
-
}
|
|
99
|
-
function _getPrototypeOf(t) {
|
|
100
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
101
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
102
|
-
}, _getPrototypeOf(t);
|
|
103
|
-
}
|
|
104
|
-
function _inherits(t, e) {
|
|
105
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
106
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
107
|
-
constructor: {
|
|
108
|
-
value: t,
|
|
109
|
-
writable: !0,
|
|
110
|
-
configurable: !0
|
|
111
|
-
}
|
|
112
|
-
}), Object.defineProperty(t, "prototype", {
|
|
113
|
-
writable: !1
|
|
114
|
-
}), e && _setPrototypeOf(t, e);
|
|
115
|
-
}
|
|
116
37
|
function _isNativeReflectConstruct() {
|
|
117
38
|
try {
|
|
118
39
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -121,9 +42,6 @@ function _isNativeReflectConstruct() {
|
|
|
121
42
|
return !!t;
|
|
122
43
|
})();
|
|
123
44
|
}
|
|
124
|
-
function _iterableToArray(r) {
|
|
125
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
126
|
-
}
|
|
127
45
|
function _iterableToArrayLimit(r, l) {
|
|
128
46
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
129
47
|
if (null != t) {
|
|
@@ -151,15 +69,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
151
69
|
return a;
|
|
152
70
|
}
|
|
153
71
|
}
|
|
154
|
-
function _nonIterableRest() {
|
|
155
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
|
-
}
|
|
157
|
-
function _nonIterableSpread() {
|
|
158
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
159
|
-
}
|
|
160
|
-
function _objectDestructuringEmpty(t) {
|
|
161
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
162
|
-
}
|
|
163
72
|
function ownKeys(e, r) {
|
|
164
73
|
var t = Object.keys(e);
|
|
165
74
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -181,31 +90,6 @@ function _objectSpread2(e) {
|
|
|
181
90
|
}
|
|
182
91
|
return e;
|
|
183
92
|
}
|
|
184
|
-
function _objectWithoutProperties(e, t) {
|
|
185
|
-
if (null == e) return {};
|
|
186
|
-
var o,
|
|
187
|
-
r,
|
|
188
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
189
|
-
if (Object.getOwnPropertySymbols) {
|
|
190
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
191
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
192
|
-
}
|
|
193
|
-
return i;
|
|
194
|
-
}
|
|
195
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
196
|
-
if (null == r) return {};
|
|
197
|
-
var t = {};
|
|
198
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
199
|
-
if (e.includes(n)) continue;
|
|
200
|
-
t[n] = r[n];
|
|
201
|
-
}
|
|
202
|
-
return t;
|
|
203
|
-
}
|
|
204
|
-
function _possibleConstructorReturn(t, e) {
|
|
205
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
206
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
207
|
-
return _assertThisInitialized(t);
|
|
208
|
-
}
|
|
209
93
|
function _regeneratorRuntime() {
|
|
210
94
|
_regeneratorRuntime = function () {
|
|
211
95
|
return e;
|
|
@@ -507,20 +391,6 @@ function _regeneratorRuntime() {
|
|
|
507
391
|
}
|
|
508
392
|
}, e;
|
|
509
393
|
}
|
|
510
|
-
function _setPrototypeOf(t, e) {
|
|
511
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
512
|
-
return t.__proto__ = e, t;
|
|
513
|
-
}, _setPrototypeOf(t, e);
|
|
514
|
-
}
|
|
515
|
-
function _slicedToArray(r, e) {
|
|
516
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
517
|
-
}
|
|
518
|
-
function _toArray(r) {
|
|
519
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
520
|
-
}
|
|
521
|
-
function _toConsumableArray(r) {
|
|
522
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
523
|
-
}
|
|
524
394
|
function _toPrimitive(t, r) {
|
|
525
395
|
if ("object" != typeof t || !t) return t;
|
|
526
396
|
var e = t[Symbol.toPrimitive];
|
|
@@ -544,12 +414,180 @@ function _typeof(o) {
|
|
|
544
414
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
545
415
|
}, _typeof(o);
|
|
546
416
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
var
|
|
551
|
-
|
|
417
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
418
|
+
try {
|
|
419
|
+
var info = gen[key](arg);
|
|
420
|
+
var value = info.value;
|
|
421
|
+
} catch (error) {
|
|
422
|
+
reject(error);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
if (info.done) {
|
|
426
|
+
resolve(value);
|
|
427
|
+
} else {
|
|
428
|
+
Promise.resolve(value).then(_next, _throw);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function _asyncToGenerator(fn) {
|
|
432
|
+
return function () {
|
|
433
|
+
var self = this,
|
|
434
|
+
args = arguments;
|
|
435
|
+
return new Promise(function (resolve, reject) {
|
|
436
|
+
var gen = fn.apply(self, args);
|
|
437
|
+
function _next(value) {
|
|
438
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
439
|
+
}
|
|
440
|
+
function _throw(err) {
|
|
441
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
442
|
+
}
|
|
443
|
+
_next(undefined);
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function _classCallCheck(instance, Constructor) {
|
|
448
|
+
if (!(instance instanceof Constructor)) {
|
|
449
|
+
throw new TypeError("Cannot call a class as a function");
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function _defineProperties(target, props) {
|
|
453
|
+
for (var i = 0; i < props.length; i++) {
|
|
454
|
+
var descriptor = props[i];
|
|
455
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
456
|
+
descriptor.configurable = true;
|
|
457
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
458
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
+
writable: false
|
|
466
|
+
});
|
|
467
|
+
return Constructor;
|
|
468
|
+
}
|
|
469
|
+
function _defineProperty(obj, key, value) {
|
|
470
|
+
key = _toPropertyKey(key);
|
|
471
|
+
if (key in obj) {
|
|
472
|
+
Object.defineProperty(obj, key, {
|
|
473
|
+
value: value,
|
|
474
|
+
enumerable: true,
|
|
475
|
+
configurable: true,
|
|
476
|
+
writable: true
|
|
477
|
+
});
|
|
478
|
+
} else {
|
|
479
|
+
obj[key] = value;
|
|
480
|
+
}
|
|
481
|
+
return obj;
|
|
482
|
+
}
|
|
483
|
+
function _inherits(subClass, superClass) {
|
|
484
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
486
|
+
}
|
|
487
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
+
constructor: {
|
|
489
|
+
value: subClass,
|
|
490
|
+
writable: true,
|
|
491
|
+
configurable: true
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(subClass, "prototype", {
|
|
495
|
+
writable: false
|
|
496
|
+
});
|
|
497
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
+
}
|
|
499
|
+
function _getPrototypeOf(o) {
|
|
500
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
+
};
|
|
503
|
+
return _getPrototypeOf(o);
|
|
504
|
+
}
|
|
505
|
+
function _setPrototypeOf(o, p) {
|
|
506
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
+
o.__proto__ = p;
|
|
508
|
+
return o;
|
|
509
|
+
};
|
|
510
|
+
return _setPrototypeOf(o, p);
|
|
511
|
+
}
|
|
512
|
+
function _objectDestructuringEmpty(obj) {
|
|
513
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
+
}
|
|
515
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
+
if (source == null) return {};
|
|
517
|
+
var target = {};
|
|
518
|
+
for (var key in source) {
|
|
519
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
+
target[key] = source[key];
|
|
522
|
+
}
|
|
552
523
|
}
|
|
524
|
+
return target;
|
|
525
|
+
}
|
|
526
|
+
function _objectWithoutProperties(source, excluded) {
|
|
527
|
+
if (source == null) return {};
|
|
528
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
+
var key, i;
|
|
530
|
+
if (Object.getOwnPropertySymbols) {
|
|
531
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
+
key = sourceSymbolKeys[i];
|
|
534
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
+
target[key] = source[key];
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return target;
|
|
540
|
+
}
|
|
541
|
+
function _assertThisInitialized(self) {
|
|
542
|
+
if (self === void 0) {
|
|
543
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
544
|
+
}
|
|
545
|
+
return self;
|
|
546
|
+
}
|
|
547
|
+
function _possibleConstructorReturn(self, call) {
|
|
548
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
549
|
+
return call;
|
|
550
|
+
} else if (call !== void 0) {
|
|
551
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
552
|
+
}
|
|
553
|
+
return _assertThisInitialized(self);
|
|
554
|
+
}
|
|
555
|
+
function _slicedToArray(arr, i) {
|
|
556
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
557
|
+
}
|
|
558
|
+
function _toArray(arr) {
|
|
559
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
560
|
+
}
|
|
561
|
+
function _toConsumableArray(arr) {
|
|
562
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
563
|
+
}
|
|
564
|
+
function _arrayWithoutHoles(arr) {
|
|
565
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
566
|
+
}
|
|
567
|
+
function _arrayWithHoles(arr) {
|
|
568
|
+
if (Array.isArray(arr)) return arr;
|
|
569
|
+
}
|
|
570
|
+
function _iterableToArray(iter) {
|
|
571
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
572
|
+
}
|
|
573
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
574
|
+
if (!o) return;
|
|
575
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
576
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
577
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
578
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
579
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
580
|
+
}
|
|
581
|
+
function _arrayLikeToArray(arr, len) {
|
|
582
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
583
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
584
|
+
return arr2;
|
|
585
|
+
}
|
|
586
|
+
function _nonIterableSpread() {
|
|
587
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
588
|
+
}
|
|
589
|
+
function _nonIterableRest() {
|
|
590
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
553
591
|
}
|
|
554
592
|
|
|
555
593
|
var ENUM = {
|
|
@@ -1059,13 +1097,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1059
1097
|
imgHtml.innerHTML = str;
|
|
1060
1098
|
}
|
|
1061
1099
|
// 测试使用 测试类型缩小 end
|
|
1062
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1100
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1063
1101
|
className: "clomnsImg"
|
|
1064
1102
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1065
1103
|
src: url,
|
|
1066
1104
|
width: "16px",
|
|
1067
1105
|
height: "16px"
|
|
1068
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1106
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1069
1107
|
className: "clomnsImg2"
|
|
1070
1108
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1071
1109
|
src: noImg
|
|
@@ -1204,7 +1242,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1204
1242
|
}
|
|
1205
1243
|
save_link.click();
|
|
1206
1244
|
}
|
|
1207
|
-
var
|
|
1245
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1208
1246
|
return data.map(function (item) {
|
|
1209
1247
|
if (!item.name || !item.path) {
|
|
1210
1248
|
return null;
|
|
@@ -1224,7 +1262,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1224
1262
|
authority: item.authority || parentAuthority
|
|
1225
1263
|
});
|
|
1226
1264
|
if (item.routes) {
|
|
1227
|
-
var children =
|
|
1265
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1228
1266
|
// Reduce memory usage
|
|
1229
1267
|
result.children = children;
|
|
1230
1268
|
}
|
|
@@ -1234,7 +1272,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1234
1272
|
return item;
|
|
1235
1273
|
});
|
|
1236
1274
|
};
|
|
1237
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1275
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1238
1276
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1239
1277
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1240
1278
|
if (backHistoryPath) {
|
|
@@ -1543,7 +1581,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1543
1581
|
// sheepMap是表头字段中英文映射
|
|
1544
1582
|
// sheetCount:表的数量,默认一张
|
|
1545
1583
|
var resolveFile = /*#__PURE__*/function () {
|
|
1546
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1584
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1547
1585
|
var config,
|
|
1548
1586
|
data,
|
|
1549
1587
|
_args = arguments;
|
|
@@ -1582,7 +1620,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1582
1620
|
}();
|
|
1583
1621
|
//读取文件
|
|
1584
1622
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1585
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1623
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1586
1624
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1587
1625
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1588
1626
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1675,14 +1713,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1675
1713
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1676
1714
|
|
|
1677
1715
|
// 获取树平行结构
|
|
1678
|
-
var
|
|
1716
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1679
1717
|
var childrenKey = chilKey || 'children';
|
|
1680
1718
|
treeData.forEach(function (el) {
|
|
1681
1719
|
var _el$childrenKey;
|
|
1682
1720
|
result.push(el);
|
|
1683
1721
|
if ((el === null || el === void 0 ? void 0 : el[childrenKey]) && (el === null || el === void 0 ? void 0 : (_el$childrenKey = el[childrenKey]) === null || _el$childrenKey === void 0 ? void 0 : _el$childrenKey.length) > 0) {
|
|
1684
1722
|
// 子级递归
|
|
1685
|
-
|
|
1723
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1686
1724
|
}
|
|
1687
1725
|
});
|
|
1688
1726
|
return result;
|
|
@@ -1959,13 +1997,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1959
1997
|
imgHtml.innerHTML = str;
|
|
1960
1998
|
}
|
|
1961
1999
|
// 测试使用 测试类型缩小 end
|
|
1962
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
2000
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1963
2001
|
className: "clomnsImg"
|
|
1964
2002
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1965
2003
|
src: url,
|
|
1966
2004
|
width: "16px",
|
|
1967
2005
|
height: "16px"
|
|
1968
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2006
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1969
2007
|
src: noImg
|
|
1970
2008
|
}))));
|
|
1971
2009
|
};
|
|
@@ -2027,7 +2065,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2027
2065
|
}
|
|
2028
2066
|
});
|
|
2029
2067
|
};
|
|
2030
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2068
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2031
2069
|
disabled: disabled,
|
|
2032
2070
|
onChange: function onChange(e) {
|
|
2033
2071
|
var v = e.target.value;
|
|
@@ -2037,7 +2075,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2037
2075
|
width: 170
|
|
2038
2076
|
},
|
|
2039
2077
|
value: inputValue
|
|
2040
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2078
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2041
2079
|
disabled: disabled,
|
|
2042
2080
|
onBlur: function onBlur(e) {
|
|
2043
2081
|
var v = parseFloat(e.target.value);
|
|
@@ -2416,16 +2454,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2416
2454
|
var handleExportBarCode = handleExport;
|
|
2417
2455
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2418
2456
|
var routerMap = {};
|
|
2419
|
-
var
|
|
2457
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2420
2458
|
data.forEach(function (menuItem) {
|
|
2421
2459
|
if (menuItem.children) {
|
|
2422
|
-
|
|
2460
|
+
flattenMenuData(menuItem.children);
|
|
2423
2461
|
}
|
|
2424
2462
|
// Reduce memory usage
|
|
2425
2463
|
routerMap[menuItem.path] = menuItem;
|
|
2426
2464
|
});
|
|
2427
2465
|
};
|
|
2428
|
-
|
|
2466
|
+
flattenMenuData(menuData);
|
|
2429
2467
|
return routerMap;
|
|
2430
2468
|
};
|
|
2431
2469
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2568,7 +2606,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2568
2606
|
return request$1(url, parms).then(handleResponseData);
|
|
2569
2607
|
};
|
|
2570
2608
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2571
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2609
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2572
2610
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2573
2611
|
while (1) switch (_context.prev = _context.next) {
|
|
2574
2612
|
case 0:
|
|
@@ -3242,7 +3280,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3242
3280
|
placement: "bottomLeft"
|
|
3243
3281
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3244
3282
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3245
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3283
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3246
3284
|
trigger: ['click'],
|
|
3247
3285
|
overlay: this.menuList,
|
|
3248
3286
|
placement: "bottomRight"
|
|
@@ -3917,7 +3955,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3917
3955
|
placement: "bottomLeft"
|
|
3918
3956
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3919
3957
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3920
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3958
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3921
3959
|
trigger: ['click'],
|
|
3922
3960
|
overlay: this.menuList,
|
|
3923
3961
|
placement: "bottomRight"
|
|
@@ -4075,7 +4113,7 @@ function ToCDB(str) {
|
|
|
4075
4113
|
return tmp;
|
|
4076
4114
|
}
|
|
4077
4115
|
|
|
4078
|
-
var css_248z$5 = ".search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(150%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table-cell .ant-table-selection-column .ant-radio,\n.search_select_dropdown_table table tr td.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n overflow: hidden;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n";
|
|
4116
|
+
var css_248z$5 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(150%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table-cell .ant-table-selection-column .ant-radio,\n.search_select_dropdown_table table tr td.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n overflow: hidden;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4079
4117
|
styleInject(css_248z$5);
|
|
4080
4118
|
|
|
4081
4119
|
var columnsPerRow = 4; // 每行的列数
|
|
@@ -4132,9 +4170,11 @@ var getCurrentSRKs = function getCurrentSRKs(selectMode, labelInValue, value) {
|
|
|
4132
4170
|
}) : value : labelInValue ? (value === null || value === void 0 ? void 0 : value.value) && [value === null || value === void 0 ? void 0 : value.value] || [] : value && [value] || [];
|
|
4133
4171
|
};
|
|
4134
4172
|
var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
4173
|
+
// 判空处理
|
|
4174
|
+
if (!(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length)) return items || [];
|
|
4135
4175
|
// 创建映射对象 用于记录原始选中顺序
|
|
4136
4176
|
var orderMap = new Map();
|
|
4137
|
-
currentSRKs.forEach(function (value, index) {
|
|
4177
|
+
currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.forEach(function (value, index) {
|
|
4138
4178
|
orderMap.set(value, index);
|
|
4139
4179
|
});
|
|
4140
4180
|
// 被选中数据集合,获取之后排序
|
|
@@ -4257,34 +4297,38 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4257
4297
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4258
4298
|
selectOpen = _useState4[0],
|
|
4259
4299
|
setSelectOpen = _useState4[1];
|
|
4260
|
-
var _useState5 = useState(
|
|
4300
|
+
var _useState5 = useState(false),
|
|
4261
4301
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
var _useState7 = useState(
|
|
4302
|
+
isMaxTagsOpen = _useState6[0],
|
|
4303
|
+
setIsMaxTagsOpen = _useState6[1];
|
|
4304
|
+
var _useState7 = useState(1),
|
|
4265
4305
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
var _useState9 = useState(
|
|
4306
|
+
scrollPage = _useState8[0],
|
|
4307
|
+
setScrollPage = _useState8[1];
|
|
4308
|
+
var _useState9 = useState(0),
|
|
4269
4309
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
var _useState11 = useState(
|
|
4310
|
+
itemsTotal = _useState10[0],
|
|
4311
|
+
setItemsTotal = _useState10[1];
|
|
4312
|
+
var _useState11 = useState(false),
|
|
4273
4313
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
var _useState13 = useState(
|
|
4314
|
+
fetching = _useState12[0],
|
|
4315
|
+
setFetching = _useState12[1];
|
|
4316
|
+
var _useState13 = useState(''),
|
|
4277
4317
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
var _useState15 = useState(
|
|
4318
|
+
searchValue = _useState14[0],
|
|
4319
|
+
setSearchValue = _useState14[1];
|
|
4320
|
+
var _useState15 = useState(false),
|
|
4281
4321
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
var _useState17 = useState(
|
|
4322
|
+
isModalVisible = _useState16[0],
|
|
4323
|
+
setIsModalVisible = _useState16[1];
|
|
4324
|
+
var _useState17 = useState(initVal),
|
|
4285
4325
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
4286
|
-
|
|
4287
|
-
|
|
4326
|
+
popvalue = _useState18[0],
|
|
4327
|
+
setPopValue = _useState18[1];
|
|
4328
|
+
var _useState19 = useState(resultSourceKey),
|
|
4329
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
4330
|
+
uniqueValue = _useState20[0],
|
|
4331
|
+
setUniqueValue = _useState20[1];
|
|
4288
4332
|
var _useDebounceFn = useDebounceFn(function (v) {
|
|
4289
4333
|
// 优化搜索参数 支持传多个
|
|
4290
4334
|
var searchParams = {};
|
|
@@ -4313,62 +4357,62 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4313
4357
|
var _Form$useForm = Form.useForm(),
|
|
4314
4358
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
4315
4359
|
form = _Form$useForm2[0];
|
|
4316
|
-
var _useState19 = useState(true),
|
|
4317
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
4318
|
-
collapsed = _useState20[0],
|
|
4319
|
-
setCollapsed = _useState20[1];
|
|
4320
4360
|
var _useState21 = useState(true),
|
|
4321
4361
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
var _useState23 = useState(
|
|
4362
|
+
collapsed = _useState22[0],
|
|
4363
|
+
setCollapsed = _useState22[1];
|
|
4364
|
+
var _useState23 = useState(true),
|
|
4325
4365
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
var _useState25 = useState(
|
|
4366
|
+
caretLeftFlag = _useState24[0],
|
|
4367
|
+
setCaretLeftFlag = _useState24[1];
|
|
4368
|
+
var _useState25 = useState([]),
|
|
4329
4369
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
var _useState27 = useState(
|
|
4370
|
+
tableData = _useState26[0],
|
|
4371
|
+
setTableData = _useState26[1];
|
|
4372
|
+
var _useState27 = useState(tableInitPagination),
|
|
4333
4373
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
4334
|
-
|
|
4335
|
-
|
|
4374
|
+
tablePagination = _useState28[0],
|
|
4375
|
+
setTablePagination = _useState28[1];
|
|
4336
4376
|
var _useState29 = useState([]),
|
|
4337
4377
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
var _useState31 = useState(
|
|
4378
|
+
selectedRowKeys = _useState30[0],
|
|
4379
|
+
setSelectedRowKeys = _useState30[1];
|
|
4380
|
+
var _useState31 = useState([]),
|
|
4341
4381
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
4342
|
-
|
|
4343
|
-
|
|
4382
|
+
selectedRows = _useState32[0],
|
|
4383
|
+
setSelectedRows = _useState32[1];
|
|
4344
4384
|
var _useState33 = useState(false),
|
|
4345
4385
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
var _useState35 = useState(
|
|
4386
|
+
checkedAll = _useState34[0],
|
|
4387
|
+
setCheckedAll = _useState34[1];
|
|
4388
|
+
var _useState35 = useState(false),
|
|
4349
4389
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
var _useState37 = useState(
|
|
4390
|
+
indeterminate = _useState36[0],
|
|
4391
|
+
setIndeterminate = _useState36[1];
|
|
4392
|
+
var _useState37 = useState({}),
|
|
4353
4393
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
var _useState39 = useState(
|
|
4394
|
+
tableFormParams = _useState38[0],
|
|
4395
|
+
setTableFormParams = _useState38[1];
|
|
4396
|
+
var _useState39 = useState(false),
|
|
4397
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
|
4398
|
+
tooltipVisible = _useState40[0],
|
|
4399
|
+
setTooltipVisible = _useState40[1];
|
|
4400
|
+
var _useState41 = useState((modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$tabl = modalTableProps.tableColumns) === null || _modalTableProps$tabl === void 0 ? void 0 : (_modalTableProps$tabl2 = _modalTableProps$tabl.filter(function (s) {
|
|
4357
4401
|
return typeof s.defaultSort == 'number';
|
|
4358
4402
|
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
4359
4403
|
return a.defaultSort - b.defaultSort;
|
|
4360
4404
|
})) || []),
|
|
4361
|
-
_useState40 = _slicedToArray(_useState39, 2),
|
|
4362
|
-
tableShowColumns = _useState40[0],
|
|
4363
|
-
setTabletShowColumns = _useState40[1];
|
|
4364
|
-
var _useState41 = useState(false),
|
|
4365
4405
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
4366
|
-
|
|
4367
|
-
|
|
4406
|
+
tableShowColumns = _useState42[0],
|
|
4407
|
+
setTabletShowColumns = _useState42[1];
|
|
4368
4408
|
var _useState43 = useState(false),
|
|
4369
4409
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
4370
|
-
|
|
4371
|
-
|
|
4410
|
+
confirmLoading = _useState44[0],
|
|
4411
|
+
setConfirmLoading = _useState44[1];
|
|
4412
|
+
var _useState45 = useState(false),
|
|
4413
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
4414
|
+
modalSearched = _useState46[0],
|
|
4415
|
+
setModalSearched = _useState46[1];
|
|
4372
4416
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
4373
4417
|
setItems(list);
|
|
4374
4418
|
setItemsTotal(total);
|
|
@@ -5207,6 +5251,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5207
5251
|
nr && setSelectOpen(false);
|
|
5208
5252
|
};
|
|
5209
5253
|
var onDropdownVisibleChange = function onDropdownVisibleChange(visible) {
|
|
5254
|
+
// 阻止maxTagPlaceholder点击事件触发下拉框展示事件
|
|
5255
|
+
if (isMaxTagsOpen && !selectOpen) return;
|
|
5210
5256
|
setSelectOpen(visible);
|
|
5211
5257
|
// 关闭下拉框 如果首次本身就不展示数据的 没有选中数据-需要清空查询数据源; 首次展示的默认展示
|
|
5212
5258
|
if (!visible && !(value === null || value === void 0 ? void 0 : value.length)) {
|
|
@@ -5302,20 +5348,34 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5302
5348
|
onChange(newValue);
|
|
5303
5349
|
};
|
|
5304
5350
|
return /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
5305
|
-
|
|
5351
|
+
overlayClassName: 'searchSelectMaxTagToolTip',
|
|
5352
|
+
destroyTooltipOnHide: true,
|
|
5353
|
+
placement: "topRight",
|
|
5354
|
+
autoAdjustOverflow: false,
|
|
5355
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
5356
|
+
style: {
|
|
5357
|
+
margin: '6px 8px 0px'
|
|
5358
|
+
},
|
|
5359
|
+
onMouseEnter: function onMouseEnter() {
|
|
5360
|
+
setIsMaxTagsOpen(true);
|
|
5361
|
+
},
|
|
5362
|
+
onMouseLeave: function onMouseLeave() {
|
|
5363
|
+
setIsMaxTagsOpen(false);
|
|
5364
|
+
}
|
|
5365
|
+
}, selectedValues.map(function (i) {
|
|
5306
5366
|
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
5307
5367
|
closable: true,
|
|
5308
5368
|
onClose: function onClose(e) {
|
|
5309
5369
|
return _onClose(e, i);
|
|
5310
5370
|
},
|
|
5311
5371
|
style: {
|
|
5312
|
-
|
|
5372
|
+
margin: '0px 3px 3px 0px',
|
|
5313
5373
|
background: '#f5f5f5',
|
|
5314
5374
|
height: '24px',
|
|
5315
5375
|
border: '1px solid #f0f0f0'
|
|
5316
5376
|
}
|
|
5317
5377
|
}, i.label);
|
|
5318
|
-
})
|
|
5378
|
+
})))
|
|
5319
5379
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
5320
5380
|
};
|
|
5321
5381
|
var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
|
|
@@ -5364,13 +5424,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5364
5424
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5365
5425
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5366
5426
|
className: 'search_select'
|
|
5367
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5427
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5368
5428
|
onClick: function onClick() {
|
|
5369
5429
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5370
5430
|
(_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);
|
|
5371
5431
|
showModal();
|
|
5372
5432
|
}
|
|
5373
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5433
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5374
5434
|
title: getShowStr(),
|
|
5375
5435
|
style: {
|
|
5376
5436
|
overflow: 'hidden',
|
|
@@ -5397,10 +5457,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5397
5457
|
dropdownRender: function dropdownRender(menu) {
|
|
5398
5458
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5399
5459
|
},
|
|
5400
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5460
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5401
5461
|
size: "small",
|
|
5402
5462
|
className: 'searchSelectSpin'
|
|
5403
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5463
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5404
5464
|
style: {
|
|
5405
5465
|
textAlign: 'center'
|
|
5406
5466
|
}
|
|
@@ -5431,7 +5491,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5431
5491
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5432
5492
|
filterTxt: searchValue
|
|
5433
5493
|
}));
|
|
5434
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5494
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5435
5495
|
maskClosable: false,
|
|
5436
5496
|
destroyOnClose: true,
|
|
5437
5497
|
width: "80%",
|
|
@@ -6028,7 +6088,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6028
6088
|
style: {
|
|
6029
6089
|
width: 525
|
|
6030
6090
|
}
|
|
6031
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6091
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6032
6092
|
checked: !dataSource.some(function (item) {
|
|
6033
6093
|
if (item.hidden) return true;
|
|
6034
6094
|
return false;
|
|
@@ -6066,13 +6126,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6066
6126
|
_this2.onChange(e, item.title);
|
|
6067
6127
|
}
|
|
6068
6128
|
}, item.title);
|
|
6069
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6129
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
6070
6130
|
style: {
|
|
6071
6131
|
width: '144px'
|
|
6072
6132
|
}
|
|
6073
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6133
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
6074
6134
|
className: 'sort_table_column_all_empty'
|
|
6075
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6135
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6076
6136
|
className: 'sort_table_column_special'
|
|
6077
6137
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6078
6138
|
className: 'sort_table_column_all'
|
|
@@ -6261,7 +6321,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6261
6321
|
});
|
|
6262
6322
|
};
|
|
6263
6323
|
// 格式化树选择器数据源
|
|
6264
|
-
var
|
|
6324
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6265
6325
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6266
6326
|
return {
|
|
6267
6327
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6271,7 +6331,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6271
6331
|
isLeaf: !haveChildren,
|
|
6272
6332
|
disabled: haveChildren,
|
|
6273
6333
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6274
|
-
return
|
|
6334
|
+
return mapSearchTree(i, resKeyValue);
|
|
6275
6335
|
}) : []
|
|
6276
6336
|
};
|
|
6277
6337
|
};
|
|
@@ -6280,7 +6340,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6280
6340
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6281
6341
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6282
6342
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6283
|
-
return
|
|
6343
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6284
6344
|
}) || [];
|
|
6285
6345
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6286
6346
|
};
|
|
@@ -6451,7 +6511,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6451
6511
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6452
6512
|
// FIXME: 特殊业务逻辑
|
|
6453
6513
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6454
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6514
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6455
6515
|
var result;
|
|
6456
6516
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6457
6517
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6704,7 +6764,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6704
6764
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6705
6765
|
value: text || null,
|
|
6706
6766
|
onChange: function () {
|
|
6707
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6767
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6708
6768
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6709
6769
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6710
6770
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7312,10 +7372,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7312
7372
|
var newColumns = arr.map(function (col) {
|
|
7313
7373
|
return _objectSpread2({}, col);
|
|
7314
7374
|
});
|
|
7315
|
-
var
|
|
7375
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7316
7376
|
var i = indexArr.shift();
|
|
7317
7377
|
if (indexArr.length > 0) {
|
|
7318
|
-
|
|
7378
|
+
handleIndex(arr[i].children, indexArr);
|
|
7319
7379
|
} else {
|
|
7320
7380
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7321
7381
|
width: size.width
|
|
@@ -7323,7 +7383,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7323
7383
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7324
7384
|
}
|
|
7325
7385
|
};
|
|
7326
|
-
|
|
7386
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7327
7387
|
callback(newColumns);
|
|
7328
7388
|
};
|
|
7329
7389
|
};
|
|
@@ -7333,13 +7393,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7333
7393
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7334
7394
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7335
7395
|
};
|
|
7336
|
-
var
|
|
7396
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7337
7397
|
arr.forEach(function (item, index) {
|
|
7338
7398
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7339
7399
|
return i || i === 0;
|
|
7340
7400
|
});
|
|
7341
7401
|
if (noEmptyArray$1(item.children)) {
|
|
7342
|
-
|
|
7402
|
+
handleColumns(item.children, indexArrInside);
|
|
7343
7403
|
} else {
|
|
7344
7404
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7345
7405
|
item.onHeaderCell = function (column) {
|
|
@@ -7355,14 +7415,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7355
7415
|
handleAntdColumnsSpecialParams(item);
|
|
7356
7416
|
return _objectSpread2({}, item);
|
|
7357
7417
|
});
|
|
7358
|
-
|
|
7418
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7359
7419
|
return setShowToChooseColumnsCallback(res);
|
|
7360
7420
|
});
|
|
7361
7421
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7362
7422
|
handleAntdColumnsSpecialParams(item);
|
|
7363
7423
|
return _objectSpread2({}, item);
|
|
7364
7424
|
});
|
|
7365
|
-
|
|
7425
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7366
7426
|
return setShowColumnsCallback(res);
|
|
7367
7427
|
});
|
|
7368
7428
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7373,7 +7433,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7373
7433
|
id: "add_select_div_".concat(uniqueValue)
|
|
7374
7434
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7375
7435
|
onClick: handleShowModal
|
|
7376
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7436
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7377
7437
|
width: '1200px',
|
|
7378
7438
|
style: {
|
|
7379
7439
|
top: 20
|
|
@@ -8287,7 +8347,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8287
8347
|
});
|
|
8288
8348
|
};
|
|
8289
8349
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8290
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8350
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8291
8351
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8292
8352
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8293
8353
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8370,10 +8430,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8370
8430
|
var newColumns = arr.map(function (col) {
|
|
8371
8431
|
return _objectSpread2({}, col);
|
|
8372
8432
|
});
|
|
8373
|
-
var
|
|
8433
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8374
8434
|
var i = indexArr.shift();
|
|
8375
8435
|
if (indexArr.length > 0) {
|
|
8376
|
-
|
|
8436
|
+
handleIndex(arr[i].children, indexArr);
|
|
8377
8437
|
} else {
|
|
8378
8438
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8379
8439
|
width: size.width
|
|
@@ -8381,17 +8441,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8381
8441
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8382
8442
|
}
|
|
8383
8443
|
};
|
|
8384
|
-
|
|
8444
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8385
8445
|
callback(newColumns);
|
|
8386
8446
|
};
|
|
8387
8447
|
};
|
|
8388
|
-
var
|
|
8448
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8389
8449
|
arr.forEach(function (item, index) {
|
|
8390
8450
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8391
8451
|
return i || i === 0;
|
|
8392
8452
|
});
|
|
8393
8453
|
if (noEmptyArray$1(item.children)) {
|
|
8394
|
-
|
|
8454
|
+
handleColumns(item.children, indexArrInside);
|
|
8395
8455
|
} else {
|
|
8396
8456
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8397
8457
|
item.onHeaderCell = function (column) {
|
|
@@ -8407,7 +8467,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8407
8467
|
handleAntdColumnsSpecialParams(item);
|
|
8408
8468
|
return _objectSpread2({}, item);
|
|
8409
8469
|
});
|
|
8410
|
-
|
|
8470
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8411
8471
|
return setShowColumnsCallback(res);
|
|
8412
8472
|
});
|
|
8413
8473
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8721,7 +8781,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8721
8781
|
});
|
|
8722
8782
|
};
|
|
8723
8783
|
// 格式化树选择器数据源
|
|
8724
|
-
var
|
|
8784
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8725
8785
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8726
8786
|
return {
|
|
8727
8787
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8731,7 +8791,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8731
8791
|
isLeaf: !haveChildren,
|
|
8732
8792
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8733
8793
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8734
|
-
return
|
|
8794
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8735
8795
|
}) : []
|
|
8736
8796
|
};
|
|
8737
8797
|
};
|
|
@@ -8745,7 +8805,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8745
8805
|
disabledJudge = false;
|
|
8746
8806
|
}
|
|
8747
8807
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8748
|
-
return
|
|
8808
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8749
8809
|
}) || [];
|
|
8750
8810
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8751
8811
|
};
|
|
@@ -12795,7 +12855,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12795
12855
|
};
|
|
12796
12856
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12797
12857
|
onClick: handleShowModal
|
|
12798
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12858
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12799
12859
|
onOk: handleOk,
|
|
12800
12860
|
onCancel: handleCancel,
|
|
12801
12861
|
destroyOnClose: true,
|
|
@@ -12914,7 +12974,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12914
12974
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12915
12975
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12916
12976
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12917
|
-
var
|
|
12977
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12918
12978
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12919
12979
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12920
12980
|
return {
|
|
@@ -12926,7 +12986,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12926
12986
|
isLeaf: !haveChildren,
|
|
12927
12987
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12928
12988
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12929
|
-
return
|
|
12989
|
+
return mapSearchTree(i);
|
|
12930
12990
|
}) : []
|
|
12931
12991
|
};
|
|
12932
12992
|
};
|
|
@@ -12944,8 +13004,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12944
13004
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12945
13005
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12946
13006
|
headers: headers
|
|
12947
|
-
}).then(/*#__PURE__*/function () {
|
|
12948
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13007
|
+
}).then( /*#__PURE__*/function () {
|
|
13008
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12949
13009
|
var _ctx$form;
|
|
12950
13010
|
var resData, coverData, data, dataList;
|
|
12951
13011
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12972,7 +13032,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12972
13032
|
case 9:
|
|
12973
13033
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12974
13034
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12975
|
-
return
|
|
13035
|
+
return mapSearchTree(ites);
|
|
12976
13036
|
}) || [];
|
|
12977
13037
|
case 11:
|
|
12978
13038
|
_context.next = 14;
|
|
@@ -13010,11 +13070,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13010
13070
|
return _formatResult;
|
|
13011
13071
|
}
|
|
13012
13072
|
};
|
|
13013
|
-
var
|
|
13073
|
+
var parallelData = function parallelData(data, result) {
|
|
13014
13074
|
data.forEach(function (i) {
|
|
13015
13075
|
result.push(i);
|
|
13016
13076
|
if (i[treeChildrenRoom]) {
|
|
13017
|
-
|
|
13077
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13018
13078
|
}
|
|
13019
13079
|
});
|
|
13020
13080
|
return result;
|
|
@@ -13054,7 +13114,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13054
13114
|
var _ctx$form2;
|
|
13055
13115
|
var handleData = formatData(data);
|
|
13056
13116
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13057
|
-
var parallelTreeData =
|
|
13117
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13058
13118
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13059
13119
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13060
13120
|
onChangeName && onChangeName(dataName);
|
|
@@ -13097,7 +13157,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13097
13157
|
var getShowStr = function getShowStr() {
|
|
13098
13158
|
var isMultiple = multiple || treeCheckable;
|
|
13099
13159
|
var kongValue = '无';
|
|
13100
|
-
var parallelTreeData =
|
|
13160
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13101
13161
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13102
13162
|
if (isMultiple) {
|
|
13103
13163
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13109,7 +13169,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13109
13169
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13110
13170
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13111
13171
|
className: 'tree_search_select'
|
|
13112
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13172
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13113
13173
|
title: getShowStr(),
|
|
13114
13174
|
style: {
|
|
13115
13175
|
overflow: 'hidden',
|
|
@@ -13117,7 +13177,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13117
13177
|
whiteSpace: 'nowrap'
|
|
13118
13178
|
},
|
|
13119
13179
|
className: 'search_select_show'
|
|
13120
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13180
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13121
13181
|
treeCheckable: treeCheckable,
|
|
13122
13182
|
maxTagCount: maxTagCount,
|
|
13123
13183
|
showSearch: showSearch,
|
|
@@ -13314,7 +13374,7 @@ var index$2 = (function (props) {
|
|
|
13314
13374
|
} : {}
|
|
13315
13375
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13316
13376
|
className: 'status-label-operate'
|
|
13317
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13377
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13318
13378
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13319
13379
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13320
13380
|
style: {
|
|
@@ -14095,7 +14155,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14095
14155
|
style: {
|
|
14096
14156
|
width: 525
|
|
14097
14157
|
}
|
|
14098
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14158
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14099
14159
|
checked: !dataSource.some(function (item) {
|
|
14100
14160
|
if (item.hidden) return true;
|
|
14101
14161
|
return false;
|
|
@@ -14133,13 +14193,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14133
14193
|
_this2.onChange(e, item.title);
|
|
14134
14194
|
}
|
|
14135
14195
|
}, item.title);
|
|
14136
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14196
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
14137
14197
|
style: {
|
|
14138
14198
|
width: '144px'
|
|
14139
14199
|
}
|
|
14140
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14200
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
14141
14201
|
className: 'sort_table_column_all_empty'
|
|
14142
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14202
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14143
14203
|
className: 'sort_table_column_special'
|
|
14144
14204
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14145
14205
|
className: 'sort_table_column_all'
|
|
@@ -14318,10 +14378,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14318
14378
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14319
14379
|
return _objectSpread2({}, col);
|
|
14320
14380
|
});
|
|
14321
|
-
var
|
|
14381
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14322
14382
|
var i = indexArr.shift();
|
|
14323
14383
|
if (indexArr.length > 0) {
|
|
14324
|
-
|
|
14384
|
+
handleIndex(arr[i].children, indexArr);
|
|
14325
14385
|
} else {
|
|
14326
14386
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14327
14387
|
width: size.width
|
|
@@ -14329,7 +14389,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14329
14389
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14330
14390
|
}
|
|
14331
14391
|
};
|
|
14332
|
-
|
|
14392
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14333
14393
|
_this.setState({
|
|
14334
14394
|
showColumns: _toConsumableArray(newColumns)
|
|
14335
14395
|
});
|
|
@@ -14370,7 +14430,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14370
14430
|
};
|
|
14371
14431
|
setIsResizing(true);
|
|
14372
14432
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14373
|
-
document.addEventListener('mouseup',
|
|
14433
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
14374
14434
|
};
|
|
14375
14435
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14376
14436
|
e.stopPropagation();
|
|
@@ -14386,9 +14446,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14386
14446
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14387
14447
|
}
|
|
14388
14448
|
};
|
|
14389
|
-
var
|
|
14449
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
14390
14450
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
14391
|
-
document.removeEventListener('mouseup',
|
|
14451
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
14392
14452
|
setIsResizing(false);
|
|
14393
14453
|
};
|
|
14394
14454
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -14509,13 +14569,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14509
14569
|
showSummary = summary;
|
|
14510
14570
|
}
|
|
14511
14571
|
}
|
|
14512
|
-
var
|
|
14572
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14513
14573
|
arr.forEach(function (item, index) {
|
|
14514
14574
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14515
14575
|
return i || i === 0;
|
|
14516
14576
|
});
|
|
14517
14577
|
if (noEmptyArray$1(item.children)) {
|
|
14518
|
-
|
|
14578
|
+
handleColumns(item.children, indexArrInside);
|
|
14519
14579
|
} else {
|
|
14520
14580
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14521
14581
|
item.onHeaderCell = function (column) {
|
|
@@ -14531,7 +14591,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14531
14591
|
handleBssulaColumnsSpecialParams(item);
|
|
14532
14592
|
return _objectSpread2({}, item);
|
|
14533
14593
|
});
|
|
14534
|
-
|
|
14594
|
+
handleColumns(showCol, []);
|
|
14535
14595
|
if (dynamicColumns.length) {
|
|
14536
14596
|
showCol = this.handledynamicColumns(showCol);
|
|
14537
14597
|
}
|
|
@@ -14572,7 +14632,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14572
14632
|
cell: this.ResizeableTitle
|
|
14573
14633
|
}
|
|
14574
14634
|
}
|
|
14575
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14635
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14576
14636
|
summary: summary
|
|
14577
14637
|
})));
|
|
14578
14638
|
}
|
|
@@ -14669,10 +14729,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14669
14729
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14670
14730
|
return _objectSpread2({}, col);
|
|
14671
14731
|
});
|
|
14672
|
-
var
|
|
14732
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14673
14733
|
var i = indexArr.shift();
|
|
14674
14734
|
if (indexArr.length > 0) {
|
|
14675
|
-
|
|
14735
|
+
handleIndex(arr[i].children, indexArr);
|
|
14676
14736
|
} else {
|
|
14677
14737
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14678
14738
|
width: size.width
|
|
@@ -14680,7 +14740,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14680
14740
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14681
14741
|
}
|
|
14682
14742
|
};
|
|
14683
|
-
|
|
14743
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14684
14744
|
_this.setState({
|
|
14685
14745
|
showColumns: _toConsumableArray(newColumns)
|
|
14686
14746
|
});
|
|
@@ -14756,13 +14816,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14756
14816
|
showSummary = summary;
|
|
14757
14817
|
}
|
|
14758
14818
|
}
|
|
14759
|
-
var
|
|
14819
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14760
14820
|
arr.forEach(function (item, index) {
|
|
14761
14821
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14762
14822
|
return i || i === 0;
|
|
14763
14823
|
});
|
|
14764
14824
|
if (noEmptyArray$1(item.children)) {
|
|
14765
|
-
|
|
14825
|
+
handleColumns(item.children, indexArrInside);
|
|
14766
14826
|
} else {
|
|
14767
14827
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14768
14828
|
item.onHeaderCell = function (column) {
|
|
@@ -14778,7 +14838,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14778
14838
|
handleAntdColumnsSpecialParams(item);
|
|
14779
14839
|
return _objectSpread2({}, item);
|
|
14780
14840
|
});
|
|
14781
|
-
|
|
14841
|
+
handleColumns(showCol, []);
|
|
14782
14842
|
if (dynamicColumns.length) {
|
|
14783
14843
|
showCol = this.handledynamicColumns(showCol);
|
|
14784
14844
|
}
|
|
@@ -14818,7 +14878,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14818
14878
|
cell: this.ResizeableTitle
|
|
14819
14879
|
}
|
|
14820
14880
|
}
|
|
14821
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14881
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14822
14882
|
summary: summary
|
|
14823
14883
|
})));
|
|
14824
14884
|
}
|
|
@@ -14878,20 +14938,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14878
14938
|
};
|
|
14879
14939
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14880
14940
|
var routerMap = {};
|
|
14881
|
-
var
|
|
14941
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
14882
14942
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14883
14943
|
data.forEach(function (menuItem) {
|
|
14884
14944
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14885
14945
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14886
14946
|
});
|
|
14887
14947
|
if (newMenuItem.children) {
|
|
14888
|
-
|
|
14948
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
14889
14949
|
}
|
|
14890
14950
|
// Reduce memory usage
|
|
14891
14951
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14892
14952
|
});
|
|
14893
14953
|
};
|
|
14894
|
-
|
|
14954
|
+
flattenMenuData(menuData, {});
|
|
14895
14955
|
return routerMap;
|
|
14896
14956
|
};
|
|
14897
14957
|
// mode类型判断
|
|
@@ -15217,7 +15277,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15217
15277
|
display: 'flex',
|
|
15218
15278
|
gap: '8px'
|
|
15219
15279
|
}
|
|
15220
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15280
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15221
15281
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15222
15282
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15223
15283
|
onClick: function onClick() {
|
|
@@ -15225,7 +15285,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15225
15285
|
},
|
|
15226
15286
|
width: 24,
|
|
15227
15287
|
src: scanning
|
|
15228
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15288
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15229
15289
|
title: "\u5168\u5C4F"
|
|
15230
15290
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15231
15291
|
onClick: function onClick() {
|
|
@@ -15233,7 +15293,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15233
15293
|
},
|
|
15234
15294
|
width: 24,
|
|
15235
15295
|
src: quanping
|
|
15236
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15296
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15237
15297
|
}, function (prevProps, nextProps) {
|
|
15238
15298
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15239
15299
|
return false;
|
|
@@ -15318,7 +15378,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15318
15378
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15319
15379
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15320
15380
|
}, item));
|
|
15321
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15381
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15322
15382
|
}, function (prevProps, nextProps) {
|
|
15323
15383
|
if (prevProps.title !== nextProps.title) {
|
|
15324
15384
|
return false;
|
|
@@ -15958,7 +16018,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15958
16018
|
});
|
|
15959
16019
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15960
16020
|
className: 'sort_table_wrapper'
|
|
15961
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16021
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
15962
16022
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15963
16023
|
wrapClassName: 'sort_table_wrapper',
|
|
15964
16024
|
width: 810,
|
|
@@ -16009,7 +16069,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16009
16069
|
width: 525,
|
|
16010
16070
|
height: 24
|
|
16011
16071
|
}
|
|
16012
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16072
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16013
16073
|
checked: !dataSource.some(function (item) {
|
|
16014
16074
|
if (item.hidden) return true;
|
|
16015
16075
|
return false;
|
|
@@ -16063,13 +16123,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16063
16123
|
_this2.onChange(e, item.title);
|
|
16064
16124
|
}
|
|
16065
16125
|
}, item.title);
|
|
16066
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16126
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16067
16127
|
style: {
|
|
16068
16128
|
width: '144px'
|
|
16069
16129
|
}
|
|
16070
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16130
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16071
16131
|
className: 'sort_table_column_all_empty'
|
|
16072
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16132
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16073
16133
|
className: 'sort_table_column_special'
|
|
16074
16134
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16075
16135
|
className: 'sort_table_column_all'
|
|
@@ -16543,7 +16603,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16543
16603
|
});
|
|
16544
16604
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16545
16605
|
className: 'sort_table_wrapper'
|
|
16546
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16606
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16547
16607
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16548
16608
|
wrapClassName: 'sort_table_wrapper',
|
|
16549
16609
|
width: 820,
|
|
@@ -16588,7 +16648,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16588
16648
|
style: {
|
|
16589
16649
|
width: 525
|
|
16590
16650
|
}
|
|
16591
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16651
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16592
16652
|
checked: !dataSource.some(function (item) {
|
|
16593
16653
|
if (item.hidden) return true;
|
|
16594
16654
|
return false;
|
|
@@ -16624,11 +16684,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16624
16684
|
_this2.onChange(e, item.name);
|
|
16625
16685
|
}
|
|
16626
16686
|
}, item.label);
|
|
16627
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16687
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16628
16688
|
style: {
|
|
16629
16689
|
width: '144px'
|
|
16630
16690
|
}
|
|
16631
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16691
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16632
16692
|
className: 'sort_table_column_all_empty'
|
|
16633
16693
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16634
16694
|
className: 'sort_table_content_wrapper'
|
|
@@ -16727,7 +16787,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16727
16787
|
};
|
|
16728
16788
|
setIsResizing(true);
|
|
16729
16789
|
document.addEventListener('mousemove', handleMouseMove);
|
|
16730
|
-
document.addEventListener('mouseup',
|
|
16790
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
16731
16791
|
};
|
|
16732
16792
|
var handleMouseMove = function handleMouseMove(e) {
|
|
16733
16793
|
e.stopPropagation();
|
|
@@ -16743,9 +16803,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16743
16803
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
16744
16804
|
}
|
|
16745
16805
|
};
|
|
16746
|
-
var
|
|
16806
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
16747
16807
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
16748
|
-
document.removeEventListener('mouseup',
|
|
16808
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
16749
16809
|
setIsResizing(false);
|
|
16750
16810
|
};
|
|
16751
16811
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17156,7 +17216,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17156
17216
|
actionsRender = actionsRender.concat([{
|
|
17157
17217
|
type: 'text',
|
|
17158
17218
|
props: {
|
|
17159
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17219
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17160
17220
|
request: {
|
|
17161
17221
|
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),
|
|
17162
17222
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17402,7 +17462,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17402
17462
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17403
17463
|
bsTableCode: bsTableCode,
|
|
17404
17464
|
onlyModal: true
|
|
17405
|
-
}), (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, {
|
|
17465
|
+
}), (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, {
|
|
17406
17466
|
ref: exportTableRef,
|
|
17407
17467
|
setShowColumns: setShowExportColumns,
|
|
17408
17468
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17495,11 +17555,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17495
17555
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17496
17556
|
var resultList = [];
|
|
17497
17557
|
var newRouter = cloneDeep(router);
|
|
17498
|
-
var
|
|
17558
|
+
var deep = function deep(router) {
|
|
17499
17559
|
if (router && Array.isArray(router)) {
|
|
17500
17560
|
router.forEach(function (item) {
|
|
17501
17561
|
if (item.children && Array.isArray(item.children)) {
|
|
17502
|
-
|
|
17562
|
+
deep(item.children);
|
|
17503
17563
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17504
17564
|
return d === item.code;
|
|
17505
17565
|
})) {
|
|
@@ -17513,10 +17573,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17513
17573
|
resultList.push(_objectSpread2({}, router));
|
|
17514
17574
|
}
|
|
17515
17575
|
};
|
|
17516
|
-
|
|
17576
|
+
deep(newRouter);
|
|
17517
17577
|
callBack([].concat(resultList));
|
|
17518
17578
|
};
|
|
17519
|
-
var
|
|
17579
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17520
17580
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17521
17581
|
var _loop = function _loop(i) {
|
|
17522
17582
|
if (routesData[i].hideInMenu) {
|
|
@@ -17530,7 +17590,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17530
17590
|
return 0; // continue
|
|
17531
17591
|
}
|
|
17532
17592
|
if (routesData[i].children) {
|
|
17533
|
-
|
|
17593
|
+
setMenuTreeData(routesData[i].children);
|
|
17534
17594
|
}
|
|
17535
17595
|
},
|
|
17536
17596
|
_ret;
|
|
@@ -17551,16 +17611,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17551
17611
|
};
|
|
17552
17612
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17553
17613
|
var routerMap = {};
|
|
17554
|
-
var
|
|
17614
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
17555
17615
|
data.forEach(function (menuItem) {
|
|
17556
17616
|
if (menuItem.children) {
|
|
17557
|
-
|
|
17617
|
+
flattenMenuData(menuItem.children);
|
|
17558
17618
|
}
|
|
17559
17619
|
// Reduce memory usage
|
|
17560
17620
|
routerMap[menuItem.path] = menuItem;
|
|
17561
17621
|
});
|
|
17562
17622
|
};
|
|
17563
|
-
|
|
17623
|
+
flattenMenuData(menuData);
|
|
17564
17624
|
return routerMap;
|
|
17565
17625
|
};
|
|
17566
17626
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17706,7 +17766,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17706
17766
|
sethomepageData(homepageDataList);
|
|
17707
17767
|
setroutesData(routesDataList);
|
|
17708
17768
|
}, []);
|
|
17709
|
-
var
|
|
17769
|
+
var renderChildItem = function renderChildItem(child) {
|
|
17710
17770
|
if (!child.hideInMenu && child.children) {
|
|
17711
17771
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17712
17772
|
style: {
|
|
@@ -17716,7 +17776,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17716
17776
|
}, formatMessage({
|
|
17717
17777
|
id: "".concat(child.locale)
|
|
17718
17778
|
})), child.children.map(function (menuItem) {
|
|
17719
|
-
return
|
|
17779
|
+
return renderChildItem(menuItem);
|
|
17720
17780
|
}));
|
|
17721
17781
|
} else if (!child.hideInMenu && child.path) {
|
|
17722
17782
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17751,7 +17811,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17751
17811
|
className: 'drawerWarp'
|
|
17752
17812
|
}, homepageData && homepageData.filter(function (d) {
|
|
17753
17813
|
return !d.hideInMenu;
|
|
17754
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
17814
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
17755
17815
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17756
17816
|
dataSource: homepageData,
|
|
17757
17817
|
renderItem: function renderItem(child) {
|
|
@@ -17786,7 +17846,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17786
17846
|
bordered: true,
|
|
17787
17847
|
dataSource: item.children,
|
|
17788
17848
|
renderItem: function renderItem(child) {
|
|
17789
|
-
return
|
|
17849
|
+
return renderChildItem(child);
|
|
17790
17850
|
}
|
|
17791
17851
|
});
|
|
17792
17852
|
})));
|
|
@@ -17846,7 +17906,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17846
17906
|
src: allfunc
|
|
17847
17907
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17848
17908
|
className: 'btnSpan2'
|
|
17849
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17909
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17850
17910
|
style: {
|
|
17851
17911
|
left: isDrawer ? 140 : 0,
|
|
17852
17912
|
top: 50
|
|
@@ -17892,7 +17952,7 @@ function outLogin(_x) {
|
|
|
17892
17952
|
return _outLogin.apply(this, arguments);
|
|
17893
17953
|
}
|
|
17894
17954
|
function _outLogin() {
|
|
17895
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17955
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17896
17956
|
var res;
|
|
17897
17957
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17898
17958
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18034,7 +18094,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18034
18094
|
});
|
|
18035
18095
|
};
|
|
18036
18096
|
var loginOut = /*#__PURE__*/function () {
|
|
18037
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18097
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18038
18098
|
var sessionId;
|
|
18039
18099
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18040
18100
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18138,7 +18198,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18138
18198
|
marginRight: '0px'
|
|
18139
18199
|
},
|
|
18140
18200
|
src: './xialajiantou-new.svg'
|
|
18141
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18201
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18142
18202
|
};
|
|
18143
18203
|
|
|
18144
18204
|
// -- 查询店铺 --
|
|
@@ -18146,7 +18206,7 @@ function getStoreByName(_x) {
|
|
|
18146
18206
|
return _getStoreByName.apply(this, arguments);
|
|
18147
18207
|
}
|
|
18148
18208
|
function _getStoreByName() {
|
|
18149
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18209
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18150
18210
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18151
18211
|
while (1) switch (_context.prev = _context.next) {
|
|
18152
18212
|
case 0:
|
|
@@ -18214,7 +18274,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18214
18274
|
return _fetchUserList.apply(this, arguments);
|
|
18215
18275
|
}
|
|
18216
18276
|
function _fetchUserList() {
|
|
18217
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18277
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18218
18278
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18219
18279
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18220
18280
|
case 0:
|
|
@@ -18262,7 +18322,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18262
18322
|
return debounce$1(loadOptions, debounceTimeout);
|
|
18263
18323
|
}, [debounceTimeout, key]);
|
|
18264
18324
|
var changeInput = /*#__PURE__*/function () {
|
|
18265
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18325
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18266
18326
|
var res;
|
|
18267
18327
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18268
18328
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18284,7 +18344,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18284
18344
|
};
|
|
18285
18345
|
}();
|
|
18286
18346
|
useEffect(function () {
|
|
18287
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18347
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18288
18348
|
var res;
|
|
18289
18349
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18290
18350
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18449,7 +18509,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18449
18509
|
var resultList = [];
|
|
18450
18510
|
var newRouter = cloneDeep$1(router);
|
|
18451
18511
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18452
|
-
var
|
|
18512
|
+
var deep = function deep(router) {
|
|
18453
18513
|
if (router && Array.isArray(router)) {
|
|
18454
18514
|
router.forEach(function (item) {
|
|
18455
18515
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18459,7 +18519,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18459
18519
|
d.nameEdit = true;
|
|
18460
18520
|
}
|
|
18461
18521
|
});
|
|
18462
|
-
|
|
18522
|
+
deep(item.routes);
|
|
18463
18523
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
18464
18524
|
id: "menu.".concat(item.name)
|
|
18465
18525
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18478,7 +18538,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18478
18538
|
}));
|
|
18479
18539
|
}
|
|
18480
18540
|
};
|
|
18481
|
-
|
|
18541
|
+
deep(newRouter);
|
|
18482
18542
|
setroutesData([].concat(resultList));
|
|
18483
18543
|
};
|
|
18484
18544
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18560,7 +18620,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18560
18620
|
},
|
|
18561
18621
|
title: item.fullPathName
|
|
18562
18622
|
}, renderLineStyl(item.fullPathName));
|
|
18563
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18623
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18564
18624
|
employeeCode: employeeCode
|
|
18565
18625
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18566
18626
|
};
|
|
@@ -18575,7 +18635,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18575
18635
|
var TreeNode = Tree.TreeNode;
|
|
18576
18636
|
var Search$2 = Input.Search;
|
|
18577
18637
|
var dataList = [];
|
|
18578
|
-
var
|
|
18638
|
+
var generateList = function generateList(data) {
|
|
18579
18639
|
for (var i = 0; i < data.length; i++) {
|
|
18580
18640
|
var node = data[i];
|
|
18581
18641
|
var path = node.path,
|
|
@@ -18585,11 +18645,11 @@ var _generateList = function generateList(data) {
|
|
|
18585
18645
|
name: name
|
|
18586
18646
|
});
|
|
18587
18647
|
if (node.children) {
|
|
18588
|
-
|
|
18648
|
+
generateList(node.children);
|
|
18589
18649
|
}
|
|
18590
18650
|
}
|
|
18591
18651
|
};
|
|
18592
|
-
var
|
|
18652
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
18593
18653
|
var parentKey;
|
|
18594
18654
|
for (var i = 0; i < tree.length; i++) {
|
|
18595
18655
|
var node = tree[i];
|
|
@@ -18598,8 +18658,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
18598
18658
|
return item.path === path;
|
|
18599
18659
|
})) {
|
|
18600
18660
|
parentKey = node.path;
|
|
18601
|
-
} else if (
|
|
18602
|
-
parentKey =
|
|
18661
|
+
} else if (getParentKey(path, node.children)) {
|
|
18662
|
+
parentKey = getParentKey(path, node.children);
|
|
18603
18663
|
}
|
|
18604
18664
|
}
|
|
18605
18665
|
}
|
|
@@ -18630,7 +18690,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18630
18690
|
var treeData = _this.state.treeData;
|
|
18631
18691
|
var expandedKeys = dataList.map(function (item) {
|
|
18632
18692
|
if (item.name.indexOf(value) > -1) {
|
|
18633
|
-
return
|
|
18693
|
+
return getParentKey(item.path, treeData);
|
|
18634
18694
|
}
|
|
18635
18695
|
return null;
|
|
18636
18696
|
}).filter(function (item, i, self) {
|
|
@@ -18644,22 +18704,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18644
18704
|
};
|
|
18645
18705
|
_this.getPathList = function (originData) {
|
|
18646
18706
|
var pathList = [];
|
|
18647
|
-
var
|
|
18707
|
+
var getList = function getList(data) {
|
|
18648
18708
|
if (Array.isArray(data)) {
|
|
18649
18709
|
data.forEach(function (item) {
|
|
18650
18710
|
pathList.push(item.path);
|
|
18651
18711
|
if (item.children) {
|
|
18652
|
-
|
|
18712
|
+
getList(item.children);
|
|
18653
18713
|
}
|
|
18654
18714
|
});
|
|
18655
18715
|
} else {
|
|
18656
18716
|
pathList.push(data.path);
|
|
18657
18717
|
if (data.children) {
|
|
18658
|
-
|
|
18718
|
+
getList(data.children);
|
|
18659
18719
|
}
|
|
18660
18720
|
}
|
|
18661
18721
|
};
|
|
18662
|
-
|
|
18722
|
+
getList(originData);
|
|
18663
18723
|
return pathList;
|
|
18664
18724
|
};
|
|
18665
18725
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18668,18 +18728,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18668
18728
|
customerMenuData = _this$props.customerMenuData,
|
|
18669
18729
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18670
18730
|
var filterItem;
|
|
18671
|
-
var
|
|
18731
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
18672
18732
|
menuData.forEach(function (item) {
|
|
18673
18733
|
if (item.path === path) {
|
|
18674
18734
|
filterItem = _objectSpread2({}, item);
|
|
18675
18735
|
return;
|
|
18676
18736
|
}
|
|
18677
18737
|
if (item.children) {
|
|
18678
|
-
|
|
18738
|
+
filterMenuItem(item.children);
|
|
18679
18739
|
}
|
|
18680
18740
|
});
|
|
18681
18741
|
};
|
|
18682
|
-
|
|
18742
|
+
filterMenuItem(treeData);
|
|
18683
18743
|
var addPathList = _this.getPathList(filterItem);
|
|
18684
18744
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18685
18745
|
var isRepet = false;
|
|
@@ -18709,8 +18769,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18709
18769
|
return item.path === '/';
|
|
18710
18770
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18711
18771
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18712
|
-
|
|
18713
|
-
|
|
18772
|
+
setMenuTreeData(routesData);
|
|
18773
|
+
generateList(routesData);
|
|
18714
18774
|
this.setState({
|
|
18715
18775
|
treeData: routesData
|
|
18716
18776
|
});
|
|
@@ -18724,16 +18784,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18724
18784
|
expandedKeys = _this$state.expandedKeys,
|
|
18725
18785
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18726
18786
|
treeData = _this$state.treeData;
|
|
18727
|
-
var
|
|
18787
|
+
var loop = function loop(data) {
|
|
18728
18788
|
return data.map(function (item) {
|
|
18729
18789
|
var index = item.name.indexOf(searchValue);
|
|
18730
18790
|
var beforeStr = item.name.substr(0, index);
|
|
18731
18791
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18732
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18792
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18733
18793
|
style: {
|
|
18734
18794
|
color: '#f50'
|
|
18735
18795
|
}
|
|
18736
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18796
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18737
18797
|
if (item.children && item.children.length) {
|
|
18738
18798
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18739
18799
|
path: item.path,
|
|
@@ -18755,7 +18815,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18755
18815
|
width: 18,
|
|
18756
18816
|
src: arrowRight
|
|
18757
18817
|
}))))
|
|
18758
|
-
},
|
|
18818
|
+
}, loop(item.children));
|
|
18759
18819
|
}
|
|
18760
18820
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18761
18821
|
path: item.path,
|
|
@@ -18805,7 +18865,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18805
18865
|
onExpand: this.onExpand,
|
|
18806
18866
|
expandedKeys: expandedKeys,
|
|
18807
18867
|
autoExpandParent: autoExpandParent
|
|
18808
|
-
},
|
|
18868
|
+
}, loop(treeData))));
|
|
18809
18869
|
}
|
|
18810
18870
|
}]);
|
|
18811
18871
|
}(React$1.Component);
|
|
@@ -18838,24 +18898,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18838
18898
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18839
18899
|
var dragObj;
|
|
18840
18900
|
var finalDropItem;
|
|
18841
|
-
var
|
|
18901
|
+
var loop = function loop(data, path, callback) {
|
|
18842
18902
|
for (var i = 0; i < data.length; i++) {
|
|
18843
18903
|
if (data[i].path === path) {
|
|
18844
18904
|
return callback(data[i], i, data);
|
|
18845
18905
|
}
|
|
18846
18906
|
if (data[i].children) {
|
|
18847
|
-
|
|
18907
|
+
loop(data[i].children, path, callback);
|
|
18848
18908
|
}
|
|
18849
18909
|
}
|
|
18850
18910
|
};
|
|
18851
18911
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18852
|
-
|
|
18912
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
18853
18913
|
arr.splice(index, 1);
|
|
18854
18914
|
dragObj = item;
|
|
18855
18915
|
});
|
|
18856
18916
|
if (!info.dropToGap) {
|
|
18857
18917
|
// Drop on the content
|
|
18858
|
-
|
|
18918
|
+
loop(data, dropKey, function (item) {
|
|
18859
18919
|
item.children = item.children || [];
|
|
18860
18920
|
item.children.unshift(dragObj);
|
|
18861
18921
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18866,7 +18926,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18866
18926
|
// Is expanded
|
|
18867
18927
|
dropPosition === 1 // On the bottom gap
|
|
18868
18928
|
) {
|
|
18869
|
-
|
|
18929
|
+
loop(data, dropKey, function (item) {
|
|
18870
18930
|
item.children = item.children || [];
|
|
18871
18931
|
item.children.unshift(dragObj);
|
|
18872
18932
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18874,7 +18934,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18874
18934
|
} else {
|
|
18875
18935
|
var ar;
|
|
18876
18936
|
var i;
|
|
18877
|
-
|
|
18937
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
18878
18938
|
ar = arr;
|
|
18879
18939
|
i = index;
|
|
18880
18940
|
});
|
|
@@ -18913,17 +18973,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18913
18973
|
title: '编辑名称',
|
|
18914
18974
|
callBack: function callBack(newName) {
|
|
18915
18975
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18916
|
-
var
|
|
18976
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18917
18977
|
oldTreeData.forEach(function (treeItem) {
|
|
18918
18978
|
if (treeItem.path === item.path) {
|
|
18919
18979
|
treeItem.name = newName;
|
|
18920
18980
|
}
|
|
18921
18981
|
if (treeItem.children) {
|
|
18922
|
-
|
|
18982
|
+
editTreeDataName(treeItem.children);
|
|
18923
18983
|
}
|
|
18924
18984
|
});
|
|
18925
18985
|
};
|
|
18926
|
-
|
|
18986
|
+
editTreeDataName(oldTreeData);
|
|
18927
18987
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18928
18988
|
_this.setState({
|
|
18929
18989
|
modalInfo: {
|
|
@@ -18968,7 +19028,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18968
19028
|
title: '新增子目录',
|
|
18969
19029
|
callBack: function callBack(newName) {
|
|
18970
19030
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18971
|
-
var
|
|
19031
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
18972
19032
|
oldTreeData.forEach(function (treeItem) {
|
|
18973
19033
|
if (treeItem.path === item.path) {
|
|
18974
19034
|
treeItem.children ? treeItem.children.push({
|
|
@@ -18980,11 +19040,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18980
19040
|
}];
|
|
18981
19041
|
}
|
|
18982
19042
|
if (treeItem.children) {
|
|
18983
|
-
|
|
19043
|
+
addChildFolder(treeItem.children);
|
|
18984
19044
|
}
|
|
18985
19045
|
});
|
|
18986
19046
|
};
|
|
18987
|
-
|
|
19047
|
+
addChildFolder(oldTreeData);
|
|
18988
19048
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18989
19049
|
_this.setState({
|
|
18990
19050
|
modalInfo: {
|
|
@@ -19043,7 +19103,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19043
19103
|
var _this$state = this.state,
|
|
19044
19104
|
modalInfo = _this$state.modalInfo,
|
|
19045
19105
|
checkedKeys = _this$state.checkedKeys;
|
|
19046
|
-
var
|
|
19106
|
+
var loop = function loop(data) {
|
|
19047
19107
|
return data.map(function (item) {
|
|
19048
19108
|
if (item.children && item.children.length) {
|
|
19049
19109
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19060,7 +19120,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19060
19120
|
e.stopPropagation();
|
|
19061
19121
|
}
|
|
19062
19122
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19063
|
-
},
|
|
19123
|
+
}, loop(item.children));
|
|
19064
19124
|
}
|
|
19065
19125
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19066
19126
|
path: item.path,
|
|
@@ -19139,7 +19199,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19139
19199
|
children: 'children'
|
|
19140
19200
|
},
|
|
19141
19201
|
onDrop: this.onDrop
|
|
19142
|
-
},
|
|
19202
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
19143
19203
|
width: 600,
|
|
19144
19204
|
bodyStyle: {
|
|
19145
19205
|
paddingTop: '32px',
|
|
@@ -19252,7 +19312,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19252
19312
|
pathname: item.path
|
|
19253
19313
|
});
|
|
19254
19314
|
};
|
|
19255
|
-
var
|
|
19315
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
19256
19316
|
return menuData.map(function (item) {
|
|
19257
19317
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
19258
19318
|
style: {
|
|
@@ -19267,7 +19327,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19267
19327
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19268
19328
|
paddingLeft: '4px'
|
|
19269
19329
|
}
|
|
19270
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19330
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
19271
19331
|
});
|
|
19272
19332
|
};
|
|
19273
19333
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19293,7 +19353,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19293
19353
|
style: {
|
|
19294
19354
|
paddingLeft: '5px'
|
|
19295
19355
|
}
|
|
19296
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19356
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19297
19357
|
style: {
|
|
19298
19358
|
left: isDrawer ? 140 : 0
|
|
19299
19359
|
},
|
|
@@ -19314,7 +19374,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19314
19374
|
visible: isDrawer
|
|
19315
19375
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19316
19376
|
className: 'menu_title_line'
|
|
19317
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19377
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19318
19378
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19319
19379
|
style: {
|
|
19320
19380
|
fontWeight: '600',
|
|
@@ -19388,7 +19448,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19388
19448
|
return item.path === '/';
|
|
19389
19449
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19390
19450
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19391
|
-
|
|
19451
|
+
setMenuTreeData(routesData);
|
|
19392
19452
|
routesData.forEach(function (item) {
|
|
19393
19453
|
if (item.children) {
|
|
19394
19454
|
routesDataList.push(item);
|
|
@@ -19418,7 +19478,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19418
19478
|
setHeight(clientHeight - 190);
|
|
19419
19479
|
setDrawHeight(clientHeight - 70);
|
|
19420
19480
|
};
|
|
19421
|
-
var
|
|
19481
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19422
19482
|
if (!child.hideInMenu && child.children) {
|
|
19423
19483
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19424
19484
|
style: {
|
|
@@ -19428,7 +19488,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19428
19488
|
}, formatMessage({
|
|
19429
19489
|
id: "".concat(child.locale)
|
|
19430
19490
|
})), child.children.map(function (menuItem) {
|
|
19431
|
-
return
|
|
19491
|
+
return renderChildItem(menuItem);
|
|
19432
19492
|
}));
|
|
19433
19493
|
} else if (!child.hideInMenu && child.path) {
|
|
19434
19494
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19570,7 +19630,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19570
19630
|
onMenuClick(e, item);
|
|
19571
19631
|
}
|
|
19572
19632
|
}, item.name);
|
|
19573
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
19633
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
19574
19634
|
className: 'search_menu_content'
|
|
19575
19635
|
}, SearhData.map(function (item) {
|
|
19576
19636
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19579,7 +19639,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19579
19639
|
},
|
|
19580
19640
|
key: item.path
|
|
19581
19641
|
}, item.name);
|
|
19582
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19642
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19583
19643
|
style: {
|
|
19584
19644
|
height: "".concat(rightMenuHeight, "px"),
|
|
19585
19645
|
overflowY: 'scroll',
|
|
@@ -19591,7 +19651,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19591
19651
|
className: 'drawerWarp_right'
|
|
19592
19652
|
}, homepageData && homepageData.filter(function (d) {
|
|
19593
19653
|
return !d.hideInMenu;
|
|
19594
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19654
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
19595
19655
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19596
19656
|
dataSource: homepageData,
|
|
19597
19657
|
renderItem: function renderItem(child) {
|
|
@@ -19632,7 +19692,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19632
19692
|
bordered: true,
|
|
19633
19693
|
dataSource: item.children,
|
|
19634
19694
|
renderItem: function renderItem(child) {
|
|
19635
|
-
return
|
|
19695
|
+
return renderChildItem(child);
|
|
19636
19696
|
}
|
|
19637
19697
|
});
|
|
19638
19698
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19790,10 +19850,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19790
19850
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19791
19851
|
var menuKeys = [];
|
|
19792
19852
|
var docsId = [];
|
|
19793
|
-
var
|
|
19853
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19794
19854
|
data.forEach(function (item) {
|
|
19795
19855
|
if (item.children && item.children.length > 0) {
|
|
19796
|
-
|
|
19856
|
+
getLimitedMenuKeys(item.children);
|
|
19797
19857
|
} else {
|
|
19798
19858
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19799
19859
|
menuKeys.push(originPath);
|
|
@@ -19804,7 +19864,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19804
19864
|
});
|
|
19805
19865
|
};
|
|
19806
19866
|
try {
|
|
19807
|
-
|
|
19867
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
19808
19868
|
} catch (e) {}
|
|
19809
19869
|
return {
|
|
19810
19870
|
menuKeys: menuKeys,
|
|
@@ -20038,10 +20098,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20038
20098
|
return (node.path || '').includes('all-general-documents');
|
|
20039
20099
|
};
|
|
20040
20100
|
// 递归获取树列表
|
|
20041
|
-
var
|
|
20101
|
+
var getTreeList = function getTreeList(data) {
|
|
20042
20102
|
data.forEach(function (node) {
|
|
20043
20103
|
if (node.routes && node.routes.length > 0) {
|
|
20044
|
-
|
|
20104
|
+
getTreeList(node.routes);
|
|
20045
20105
|
return;
|
|
20046
20106
|
}
|
|
20047
20107
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20072,7 +20132,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20072
20132
|
}
|
|
20073
20133
|
});
|
|
20074
20134
|
};
|
|
20075
|
-
|
|
20135
|
+
getTreeList(treeData);
|
|
20076
20136
|
return treeList;
|
|
20077
20137
|
};
|
|
20078
20138
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20701,7 +20761,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20701
20761
|
updateState = _ref8.updateState;
|
|
20702
20762
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20703
20763
|
className: "tab_title_content"
|
|
20704
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20764
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20705
20765
|
info: item,
|
|
20706
20766
|
operateFun: _this3.operateFun,
|
|
20707
20767
|
listenRouterState: listenRouterState
|
|
@@ -20837,7 +20897,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20837
20897
|
};
|
|
20838
20898
|
}
|
|
20839
20899
|
var OperationsSlot = {
|
|
20840
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
20900
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20841
20901
|
className: 'tab_left_operate'
|
|
20842
20902
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20843
20903
|
onClick: function onClick() {
|
|
@@ -20853,7 +20913,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20853
20913
|
_this3.setTabNavTransLate(-100);
|
|
20854
20914
|
}
|
|
20855
20915
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20856
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
20916
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20857
20917
|
style: {
|
|
20858
20918
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20859
20919
|
},
|
|
@@ -20951,7 +21011,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20951
21011
|
onMouseLeave: function onMouseLeave() {
|
|
20952
21012
|
_this3.setShowMenu(false);
|
|
20953
21013
|
}
|
|
20954
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21014
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20955
21015
|
style: {
|
|
20956
21016
|
position: 'absolute',
|
|
20957
21017
|
top: '14px',
|
|
@@ -20970,7 +21030,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20970
21030
|
postMenuData: function postMenuData(menus) {
|
|
20971
21031
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20972
21032
|
},
|
|
20973
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21033
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20974
21034
|
ref: this.allFunc,
|
|
20975
21035
|
itemPath: itemPath,
|
|
20976
21036
|
handleClose: this.handleClose,
|
|
@@ -20988,7 +21048,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20988
21048
|
},
|
|
20989
21049
|
menu: {
|
|
20990
21050
|
request: function () {
|
|
20991
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21051
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
20992
21052
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
20993
21053
|
while (1) switch (_context.prev = _context.next) {
|
|
20994
21054
|
case 0:
|
|
@@ -21123,7 +21183,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21123
21183
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21124
21184
|
timeFormat = _this$props4.timeFormat,
|
|
21125
21185
|
transparentProps = _this$props4.transparentProps;
|
|
21126
|
-
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({
|
|
21186
|
+
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({
|
|
21127
21187
|
getDictionarySource: getDictionarySource,
|
|
21128
21188
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21129
21189
|
timeFormat: timeFormat
|
|
@@ -21147,12 +21207,12 @@ var index$5 = (function (props) {
|
|
|
21147
21207
|
});
|
|
21148
21208
|
|
|
21149
21209
|
// @ts-nocheck
|
|
21150
|
-
var
|
|
21210
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
21151
21211
|
var result = [];
|
|
21152
21212
|
columns.forEach(function (column) {
|
|
21153
21213
|
if (column.children) {
|
|
21154
21214
|
result.push(column);
|
|
21155
|
-
result.push.apply(result,
|
|
21215
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
21156
21216
|
} else {
|
|
21157
21217
|
result.push(column);
|
|
21158
21218
|
}
|
|
@@ -21161,7 +21221,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
21161
21221
|
};
|
|
21162
21222
|
var convertToRows = function convertToRows(originColumns) {
|
|
21163
21223
|
var maxLevel = 1;
|
|
21164
|
-
var
|
|
21224
|
+
var traverse = function traverse(column, parent) {
|
|
21165
21225
|
if (parent) {
|
|
21166
21226
|
column.level = parent.level + 1;
|
|
21167
21227
|
if (maxLevel < column.level) {
|
|
@@ -21171,7 +21231,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21171
21231
|
if (column.children) {
|
|
21172
21232
|
var colSpan = 0;
|
|
21173
21233
|
column.children.forEach(function (subColumn) {
|
|
21174
|
-
|
|
21234
|
+
traverse(subColumn, column);
|
|
21175
21235
|
colSpan += subColumn.colSpan;
|
|
21176
21236
|
});
|
|
21177
21237
|
column.colSpan = colSpan;
|
|
@@ -21181,13 +21241,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21181
21241
|
};
|
|
21182
21242
|
originColumns.forEach(function (column) {
|
|
21183
21243
|
column.level = 1;
|
|
21184
|
-
|
|
21244
|
+
traverse(column);
|
|
21185
21245
|
});
|
|
21186
21246
|
var rows = [];
|
|
21187
21247
|
for (var i = 0; i < maxLevel; i++) {
|
|
21188
21248
|
rows.push([]);
|
|
21189
21249
|
}
|
|
21190
|
-
var allColumns =
|
|
21250
|
+
var allColumns = getAllColumns(originColumns);
|
|
21191
21251
|
allColumns.forEach(function (column) {
|
|
21192
21252
|
if (!column.children) {
|
|
21193
21253
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21227,7 +21287,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21227
21287
|
};
|
|
21228
21288
|
var headersToRows = function headersToRows(originColumns) {
|
|
21229
21289
|
var maxLevel = 1;
|
|
21230
|
-
var
|
|
21290
|
+
var traverse = function traverse(column, parent) {
|
|
21231
21291
|
if (parent) {
|
|
21232
21292
|
//计算当前元素属于第几个层级
|
|
21233
21293
|
column.level = parent.level + 1;
|
|
@@ -21240,7 +21300,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21240
21300
|
var colSpan = 0;
|
|
21241
21301
|
column.children.forEach(function (subColumn) {
|
|
21242
21302
|
//进行递归
|
|
21243
|
-
|
|
21303
|
+
traverse(subColumn, column);
|
|
21244
21304
|
colSpan += subColumn.colSpan;
|
|
21245
21305
|
});
|
|
21246
21306
|
column.colSpan = colSpan;
|
|
@@ -21250,14 +21310,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21250
21310
|
};
|
|
21251
21311
|
originColumns.forEach(function (column) {
|
|
21252
21312
|
column.level = 1;
|
|
21253
|
-
|
|
21313
|
+
traverse(column);
|
|
21254
21314
|
});
|
|
21255
21315
|
var rows = [];
|
|
21256
21316
|
var lastData = [];
|
|
21257
21317
|
for (var i = 0; i < maxLevel; i++) {
|
|
21258
21318
|
rows.push([]);
|
|
21259
21319
|
}
|
|
21260
|
-
var allColumns =
|
|
21320
|
+
var allColumns = getAllColumns(originColumns);
|
|
21261
21321
|
allColumns.forEach(function (column) {
|
|
21262
21322
|
if (!column.children) {
|
|
21263
21323
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27274,7 +27334,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27274
27334
|
}
|
|
27275
27335
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27276
27336
|
};
|
|
27277
|
-
var
|
|
27337
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
27278
27338
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27279
27339
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27280
27340
|
var children = hightLightData.children,
|
|
@@ -27285,7 +27345,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27285
27345
|
lineEnd = _loc2[2];
|
|
27286
27346
|
if (children) {
|
|
27287
27347
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27288
|
-
return
|
|
27348
|
+
return hasHighLightChildren(v, highLightLine);
|
|
27289
27349
|
});
|
|
27290
27350
|
}
|
|
27291
27351
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27297,7 +27357,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27297
27357
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27298
27358
|
data.forEach(function (node) {
|
|
27299
27359
|
if (!node) return;
|
|
27300
|
-
node.toggled =
|
|
27360
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
27301
27361
|
node.active = isHightLight(node, highLightLine);
|
|
27302
27362
|
if (node.children) {
|
|
27303
27363
|
if (node.active) {
|
|
@@ -28728,7 +28788,7 @@ var valueType = {
|
|
|
28728
28788
|
};
|
|
28729
28789
|
|
|
28730
28790
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28731
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28791
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28732
28792
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28733
28793
|
while (1) switch (_context.prev = _context.next) {
|
|
28734
28794
|
case 0:
|
|
@@ -28796,7 +28856,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28796
28856
|
value: false
|
|
28797
28857
|
}];
|
|
28798
28858
|
var ref = useRef();
|
|
28799
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28859
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28800
28860
|
var _ref$current, source;
|
|
28801
28861
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28802
28862
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28910,7 +28970,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28910
28970
|
source: {
|
|
28911
28971
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28912
28972
|
type: function () {
|
|
28913
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28973
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28914
28974
|
var form, values, name, relates, source;
|
|
28915
28975
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28916
28976
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29390,7 +29450,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29390
29450
|
source: {
|
|
29391
29451
|
relates: ['choiceType', 'inputType'],
|
|
29392
29452
|
type: function () {
|
|
29393
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29453
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29394
29454
|
var values, name, form, source;
|
|
29395
29455
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29396
29456
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29612,7 +29672,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29612
29672
|
width: 900,
|
|
29613
29673
|
maskClosable: false,
|
|
29614
29674
|
onOk: function () {
|
|
29615
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29675
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29616
29676
|
var _ref$current4, _res$editableStatus;
|
|
29617
29677
|
var res, _res$defaultValue;
|
|
29618
29678
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29684,7 +29744,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29684
29744
|
}()
|
|
29685
29745
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29686
29746
|
ref: ref
|
|
29687
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29747
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29688
29748
|
};
|
|
29689
29749
|
|
|
29690
29750
|
// @ts-nocheck
|
|
@@ -30298,7 +30358,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30298
30358
|
return setVisible(false);
|
|
30299
30359
|
},
|
|
30300
30360
|
className: 'customFieldsDrawer'
|
|
30301
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30361
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
30302
30362
|
style: {
|
|
30303
30363
|
display: 'flex'
|
|
30304
30364
|
}
|
|
@@ -30307,13 +30367,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30307
30367
|
flex: 1,
|
|
30308
30368
|
width: 500
|
|
30309
30369
|
}
|
|
30310
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30370
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30311
30371
|
style: {
|
|
30312
30372
|
padding: "10px 0",
|
|
30313
30373
|
fontSize: "16px",
|
|
30314
30374
|
fontWeight: "bolder"
|
|
30315
30375
|
}
|
|
30316
|
-
}, "\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", {
|
|
30376
|
+
}, "\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", {
|
|
30317
30377
|
style: {
|
|
30318
30378
|
flex: 1
|
|
30319
30379
|
}
|
|
@@ -30322,7 +30382,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30322
30382
|
onRun: onClickRun,
|
|
30323
30383
|
value: jsonEditorVal,
|
|
30324
30384
|
shallowHeight: height
|
|
30325
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30385
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
30326
30386
|
defaultActiveKey: activeKey,
|
|
30327
30387
|
onChange: function onChange(v) {
|
|
30328
30388
|
return setActiveKey(v);
|
|
@@ -30339,13 +30399,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30339
30399
|
flex: 1,
|
|
30340
30400
|
width: 500
|
|
30341
30401
|
}
|
|
30342
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30402
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30343
30403
|
style: {
|
|
30344
30404
|
padding: "10px 0",
|
|
30345
30405
|
fontSize: "16px",
|
|
30346
30406
|
fontWeight: "bolder"
|
|
30347
30407
|
}
|
|
30348
|
-
}, "\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", {
|
|
30408
|
+
}, "\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", {
|
|
30349
30409
|
style: {
|
|
30350
30410
|
flex: 1
|
|
30351
30411
|
}
|
|
@@ -30367,13 +30427,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30367
30427
|
flex: 1,
|
|
30368
30428
|
width: 500
|
|
30369
30429
|
}
|
|
30370
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30430
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30371
30431
|
style: {
|
|
30372
30432
|
padding: "10px 0",
|
|
30373
30433
|
fontSize: "16px",
|
|
30374
30434
|
fontWeight: "bolder"
|
|
30375
30435
|
}
|
|
30376
|
-
}, "\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", {
|
|
30436
|
+
}, "\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", {
|
|
30377
30437
|
style: {
|
|
30378
30438
|
flex: 1
|
|
30379
30439
|
}
|
|
@@ -30519,7 +30579,7 @@ function getMetaData(_x) {
|
|
|
30519
30579
|
|
|
30520
30580
|
// 获取数据
|
|
30521
30581
|
function _getMetaData() {
|
|
30522
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30582
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30523
30583
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30524
30584
|
while (1) switch (_context.prev = _context.next) {
|
|
30525
30585
|
case 0:
|
|
@@ -30741,7 +30801,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30741
30801
|
tableState = _useState4[0],
|
|
30742
30802
|
setTableState = _useState4[1];
|
|
30743
30803
|
var handleOpen = /*#__PURE__*/function () {
|
|
30744
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30804
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30745
30805
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30746
30806
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30747
30807
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31060,7 +31120,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31060
31120
|
destroyOnClose: true
|
|
31061
31121
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31062
31122
|
ref: queryTableRef
|
|
31063
|
-
}, 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, {
|
|
31123
|
+
}, 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, {
|
|
31064
31124
|
justify: "center",
|
|
31065
31125
|
style: {
|
|
31066
31126
|
marginBottom: 30,
|
|
@@ -31176,7 +31236,7 @@ var CustomSelector = (function (props) {
|
|
|
31176
31236
|
var _props$ctx7;
|
|
31177
31237
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31178
31238
|
}
|
|
31179
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
31239
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
31180
31240
|
type: "primary",
|
|
31181
31241
|
style: {
|
|
31182
31242
|
width: '30px',
|
|
@@ -31262,7 +31322,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31262
31322
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31263
31323
|
handSource = _useState2[0],
|
|
31264
31324
|
setHandSource = _useState2[1];
|
|
31265
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31325
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31266
31326
|
var resData, data;
|
|
31267
31327
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31268
31328
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31414,7 +31474,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31414
31474
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31415
31475
|
}
|
|
31416
31476
|
function _getRegularThresholdRange() {
|
|
31417
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31477
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31418
31478
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31419
31479
|
while (1) switch (_context.prev = _context.next) {
|
|
31420
31480
|
case 0:
|
|
@@ -31568,7 +31628,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31568
31628
|
};
|
|
31569
31629
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31570
31630
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31571
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31631
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31572
31632
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31573
31633
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31574
31634
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32513,7 +32573,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32513
32573
|
isAll: true,
|
|
32514
32574
|
needNameAndCode: true,
|
|
32515
32575
|
notChangeOnSelect: true,
|
|
32516
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32576
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32517
32577
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32518
32578
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32519
32579
|
case 0:
|
|
@@ -32562,7 +32622,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32562
32622
|
isAll: true,
|
|
32563
32623
|
needNameAndCode: true,
|
|
32564
32624
|
notChangeOnSelect: true,
|
|
32565
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32625
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32566
32626
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32567
32627
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32568
32628
|
case 0:
|
|
@@ -32613,7 +32673,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32613
32673
|
isAll: true,
|
|
32614
32674
|
needNameAndCode: true,
|
|
32615
32675
|
notChangeOnSelect: true,
|
|
32616
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32676
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32617
32677
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32618
32678
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32619
32679
|
case 0:
|
|
@@ -34577,7 +34637,7 @@ var App$1 = function App(_ref) {
|
|
|
34577
34637
|
borderRadius: '5px',
|
|
34578
34638
|
cursor: 'pointer'
|
|
34579
34639
|
}
|
|
34580
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
34640
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
34581
34641
|
autoFocus: true,
|
|
34582
34642
|
onClick: function onClick(e) {
|
|
34583
34643
|
return e.stopPropagation();
|
|
@@ -34864,7 +34924,7 @@ function RenderCompItem(props) {
|
|
|
34864
34924
|
dictData = _useState2[0],
|
|
34865
34925
|
setDictData = _useState2[1];
|
|
34866
34926
|
var getDictData = /*#__PURE__*/function () {
|
|
34867
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34927
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34868
34928
|
var _data$map;
|
|
34869
34929
|
var data;
|
|
34870
34930
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34906,7 +34966,7 @@ function RenderCompItem(props) {
|
|
|
34906
34966
|
var style2 = {
|
|
34907
34967
|
width: '100px'
|
|
34908
34968
|
};
|
|
34909
|
-
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, {
|
|
34969
|
+
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, {
|
|
34910
34970
|
disabled: disabled,
|
|
34911
34971
|
allowClear: true,
|
|
34912
34972
|
onClear: function onClear() {
|
|
@@ -34917,7 +34977,7 @@ function RenderCompItem(props) {
|
|
|
34917
34977
|
onBlur: function onBlur(e) {
|
|
34918
34978
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34919
34979
|
}
|
|
34920
|
-
})) || 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, {
|
|
34980
|
+
})) || 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, {
|
|
34921
34981
|
disabled: disabled,
|
|
34922
34982
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34923
34983
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34930,7 +34990,7 @@ function RenderCompItem(props) {
|
|
|
34930
34990
|
onChange: function onChange(value) {
|
|
34931
34991
|
handleEdit(ites.code, value);
|
|
34932
34992
|
}
|
|
34933
|
-
})) || 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, {
|
|
34993
|
+
})) || 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, {
|
|
34934
34994
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34935
34995
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34936
34996
|
disabled: disabled,
|
|
@@ -34940,7 +35000,7 @@ function RenderCompItem(props) {
|
|
|
34940
35000
|
onChange: function onChange(value, dateString) {
|
|
34941
35001
|
handleEdit(ites.code, dateString);
|
|
34942
35002
|
}
|
|
34943
|
-
})) || 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, {
|
|
35003
|
+
})) || 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, {
|
|
34944
35004
|
showTime: true,
|
|
34945
35005
|
disabled: disabled,
|
|
34946
35006
|
defaultValue: ites.defaultValue,
|
|
@@ -34949,7 +35009,7 @@ function RenderCompItem(props) {
|
|
|
34949
35009
|
onChange: function onChange(value, timeString) {
|
|
34950
35010
|
handleEdit(ites.code, timeString);
|
|
34951
35011
|
}
|
|
34952
|
-
})) || 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, {
|
|
35012
|
+
})) || 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, {
|
|
34953
35013
|
disabled: disabled,
|
|
34954
35014
|
defaultChecked: !!ites.defaultValue,
|
|
34955
35015
|
style: style2,
|
|
@@ -34957,7 +35017,7 @@ function RenderCompItem(props) {
|
|
|
34957
35017
|
onChange: function onChange(value) {
|
|
34958
35018
|
handleEdit(ites.code, value);
|
|
34959
35019
|
}
|
|
34960
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
35020
|
+
})) || 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({
|
|
34961
35021
|
disabled: disabled,
|
|
34962
35022
|
allowClear: true,
|
|
34963
35023
|
showArrow: true
|
|
@@ -34975,7 +35035,7 @@ function RenderCompItem(props) {
|
|
|
34975
35035
|
key: it,
|
|
34976
35036
|
value: it
|
|
34977
35037
|
}, ites.enumeration[it]);
|
|
34978
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
35038
|
+
}))) || 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, {
|
|
34979
35039
|
disabled: disabled,
|
|
34980
35040
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
34981
35041
|
defaultValue: ites.defaultValue,
|
|
@@ -34985,7 +35045,7 @@ function RenderCompItem(props) {
|
|
|
34985
35045
|
handleEdit(ites.code, value);
|
|
34986
35046
|
},
|
|
34987
35047
|
dictionaryCode: ites.dictionaryCode
|
|
34988
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35048
|
+
})) || 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, {
|
|
34989
35049
|
selectBusinessType: "physicalWarehouse",
|
|
34990
35050
|
selectProps: _objectSpread2({
|
|
34991
35051
|
style: styleCommon,
|
|
@@ -35007,7 +35067,7 @@ function RenderCompItem(props) {
|
|
|
35007
35067
|
getPopupContainer: function getPopupContainer() {
|
|
35008
35068
|
return document.body;
|
|
35009
35069
|
}
|
|
35010
|
-
})) || 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, {
|
|
35070
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35011
35071
|
selectBusinessType: "realWarehouse",
|
|
35012
35072
|
selectProps: _objectSpread2({
|
|
35013
35073
|
style: styleCommon,
|
|
@@ -35029,7 +35089,7 @@ function RenderCompItem(props) {
|
|
|
35029
35089
|
getPopupContainer: function getPopupContainer() {
|
|
35030
35090
|
return document.body;
|
|
35031
35091
|
}
|
|
35032
|
-
})) || 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, {
|
|
35092
|
+
})) || 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, {
|
|
35033
35093
|
selectBusinessType: "virtualWarehouse",
|
|
35034
35094
|
selectProps: _objectSpread2({
|
|
35035
35095
|
style: styleCommon,
|
|
@@ -35051,7 +35111,7 @@ function RenderCompItem(props) {
|
|
|
35051
35111
|
getPopupContainer: function getPopupContainer() {
|
|
35052
35112
|
return document.body;
|
|
35053
35113
|
}
|
|
35054
|
-
})) || 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, {
|
|
35114
|
+
})) || 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, {
|
|
35055
35115
|
selectBusinessType: "channelWarehouse",
|
|
35056
35116
|
selectProps: _objectSpread2({
|
|
35057
35117
|
style: styleCommon,
|
|
@@ -35073,7 +35133,7 @@ function RenderCompItem(props) {
|
|
|
35073
35133
|
getPopupContainer: function getPopupContainer() {
|
|
35074
35134
|
return document.body;
|
|
35075
35135
|
}
|
|
35076
|
-
})) || 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, {
|
|
35136
|
+
})) || 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, {
|
|
35077
35137
|
selectBusinessType: "spuCommodity",
|
|
35078
35138
|
selectProps: _objectSpread2({
|
|
35079
35139
|
style: styleCommon,
|
|
@@ -35094,7 +35154,7 @@ function RenderCompItem(props) {
|
|
|
35094
35154
|
getPopupContainer: function getPopupContainer() {
|
|
35095
35155
|
return document.body;
|
|
35096
35156
|
}
|
|
35097
|
-
})) || 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, {
|
|
35157
|
+
})) || 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, {
|
|
35098
35158
|
selectBusinessType: "skuCommodity",
|
|
35099
35159
|
selectProps: _objectSpread2({
|
|
35100
35160
|
style: styleCommon,
|
|
@@ -35115,13 +35175,13 @@ function RenderCompItem(props) {
|
|
|
35115
35175
|
getPopupContainer: function getPopupContainer() {
|
|
35116
35176
|
return document.body;
|
|
35117
35177
|
}
|
|
35118
|
-
})) || 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, {
|
|
35178
|
+
})) || 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, {
|
|
35119
35179
|
disabled: disabled,
|
|
35120
35180
|
isAll: true,
|
|
35121
35181
|
needNameAndCode: true,
|
|
35122
35182
|
notChangeOnSelect: true,
|
|
35123
35183
|
initRequestSource: function () {
|
|
35124
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35184
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35125
35185
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35126
35186
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35127
35187
|
case 0:
|
|
@@ -35163,7 +35223,7 @@ function RenderCompItem(props) {
|
|
|
35163
35223
|
getPopupContainer: function getPopupContainer() {
|
|
35164
35224
|
return document.body;
|
|
35165
35225
|
}
|
|
35166
|
-
})) || 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, {
|
|
35226
|
+
})) || 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, {
|
|
35167
35227
|
disabled: disabled,
|
|
35168
35228
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35169
35229
|
businessType: "department",
|
|
@@ -35176,7 +35236,7 @@ function RenderCompItem(props) {
|
|
|
35176
35236
|
getPopupContainer: function getPopupContainer() {
|
|
35177
35237
|
return document.body;
|
|
35178
35238
|
}
|
|
35179
|
-
})) || 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, {
|
|
35239
|
+
})) || 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, {
|
|
35180
35240
|
disabled: disabled,
|
|
35181
35241
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35182
35242
|
businessType: "purchase-organization",
|
|
@@ -35189,7 +35249,7 @@ function RenderCompItem(props) {
|
|
|
35189
35249
|
getPopupContainer: function getPopupContainer() {
|
|
35190
35250
|
return document.body;
|
|
35191
35251
|
}
|
|
35192
|
-
})) || 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, {
|
|
35252
|
+
})) || 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, {
|
|
35193
35253
|
disabled: disabled,
|
|
35194
35254
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35195
35255
|
businessType: "sales-organization",
|
|
@@ -35202,7 +35262,7 @@ function RenderCompItem(props) {
|
|
|
35202
35262
|
getPopupContainer: function getPopupContainer() {
|
|
35203
35263
|
return document.body;
|
|
35204
35264
|
}
|
|
35205
|
-
})) || 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, {
|
|
35265
|
+
})) || 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, {
|
|
35206
35266
|
selectBusinessType: "supplier2",
|
|
35207
35267
|
selectProps: _objectSpread2({
|
|
35208
35268
|
style: styleCommon,
|
|
@@ -35223,7 +35283,7 @@ function RenderCompItem(props) {
|
|
|
35223
35283
|
getPopupContainer: function getPopupContainer() {
|
|
35224
35284
|
return document.body;
|
|
35225
35285
|
}
|
|
35226
|
-
})) || 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, {
|
|
35286
|
+
})) || 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, {
|
|
35227
35287
|
selectBusinessType: "customer2",
|
|
35228
35288
|
selectProps: _objectSpread2({
|
|
35229
35289
|
style: styleCommon,
|
|
@@ -35244,7 +35304,7 @@ function RenderCompItem(props) {
|
|
|
35244
35304
|
getPopupContainer: function getPopupContainer() {
|
|
35245
35305
|
return document.body;
|
|
35246
35306
|
}
|
|
35247
|
-
})) || 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, {
|
|
35307
|
+
})) || 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, {
|
|
35248
35308
|
selectBusinessType: "shopFile2",
|
|
35249
35309
|
selectProps: _objectSpread2({
|
|
35250
35310
|
style: styleCommon,
|
|
@@ -35265,7 +35325,7 @@ function RenderCompItem(props) {
|
|
|
35265
35325
|
getPopupContainer: function getPopupContainer() {
|
|
35266
35326
|
return document.body;
|
|
35267
35327
|
}
|
|
35268
|
-
})) || 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, {
|
|
35328
|
+
})) || 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, {
|
|
35269
35329
|
selectBusinessType: "employee2",
|
|
35270
35330
|
selectProps: _objectSpread2({
|
|
35271
35331
|
style: styleCommon,
|
|
@@ -35286,7 +35346,7 @@ function RenderCompItem(props) {
|
|
|
35286
35346
|
getPopupContainer: function getPopupContainer() {
|
|
35287
35347
|
return document.body;
|
|
35288
35348
|
}
|
|
35289
|
-
})) || 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, {
|
|
35349
|
+
})) || 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, {
|
|
35290
35350
|
disabled: disabled,
|
|
35291
35351
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35292
35352
|
businessType: "stock-organization",
|
|
@@ -35299,7 +35359,7 @@ function RenderCompItem(props) {
|
|
|
35299
35359
|
getPopupContainer: function getPopupContainer() {
|
|
35300
35360
|
return document.body;
|
|
35301
35361
|
}
|
|
35302
|
-
})) || 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, {
|
|
35362
|
+
})) || 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, {
|
|
35303
35363
|
disabled: disabled,
|
|
35304
35364
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35305
35365
|
businessType: "settle-organization",
|
|
@@ -35312,7 +35372,7 @@ function RenderCompItem(props) {
|
|
|
35312
35372
|
getPopupContainer: function getPopupContainer() {
|
|
35313
35373
|
return document.body;
|
|
35314
35374
|
}
|
|
35315
|
-
})) || 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, {
|
|
35375
|
+
})) || 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, {
|
|
35316
35376
|
selectBusinessType: "deliveryMode",
|
|
35317
35377
|
selectProps: _objectSpread2({
|
|
35318
35378
|
style: styleCommon,
|
|
@@ -35333,7 +35393,7 @@ function RenderCompItem(props) {
|
|
|
35333
35393
|
getPopupContainer: function getPopupContainer() {
|
|
35334
35394
|
return document.body;
|
|
35335
35395
|
}
|
|
35336
|
-
})) || 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, {
|
|
35396
|
+
})) || 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, {
|
|
35337
35397
|
selectBusinessType: "role",
|
|
35338
35398
|
selectProps: _objectSpread2({
|
|
35339
35399
|
style: styleCommon,
|
|
@@ -35354,7 +35414,7 @@ function RenderCompItem(props) {
|
|
|
35354
35414
|
getPopupContainer: function getPopupContainer() {
|
|
35355
35415
|
return document.body;
|
|
35356
35416
|
}
|
|
35357
|
-
})) || 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, {
|
|
35417
|
+
})) || 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, {
|
|
35358
35418
|
selectBusinessType: "brand",
|
|
35359
35419
|
selectProps: _objectSpread2({
|
|
35360
35420
|
style: styleCommon,
|
|
@@ -35375,7 +35435,7 @@ function RenderCompItem(props) {
|
|
|
35375
35435
|
getPopupContainer: function getPopupContainer() {
|
|
35376
35436
|
return document.body;
|
|
35377
35437
|
}
|
|
35378
|
-
})) || 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, {
|
|
35438
|
+
})) || 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, {
|
|
35379
35439
|
disabled: disabled,
|
|
35380
35440
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35381
35441
|
businessType: "background-category",
|
|
@@ -35388,7 +35448,7 @@ function RenderCompItem(props) {
|
|
|
35388
35448
|
getPopupContainer: function getPopupContainer() {
|
|
35389
35449
|
return document.body;
|
|
35390
35450
|
}
|
|
35391
|
-
})) || 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, {
|
|
35451
|
+
})) || 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, {
|
|
35392
35452
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35393
35453
|
style: styleCommon,
|
|
35394
35454
|
placeholder: '请选择'
|
|
@@ -35411,7 +35471,7 @@ function RenderCompItem(props) {
|
|
|
35411
35471
|
onChange: function onChange(value) {
|
|
35412
35472
|
handleEdit(ites.code, value);
|
|
35413
35473
|
}
|
|
35414
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
35474
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
35415
35475
|
style: {
|
|
35416
35476
|
display: 'flex'
|
|
35417
35477
|
}
|
|
@@ -35923,7 +35983,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35923
35983
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35924
35984
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35925
35985
|
}
|
|
35926
|
-
var parallelTreeData =
|
|
35986
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
35927
35987
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35928
35988
|
var _i$key;
|
|
35929
35989
|
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);
|
|
@@ -36850,13 +36910,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36850
36910
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36851
36911
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36852
36912
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36853
|
-
var list =
|
|
36913
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36854
36914
|
var requiredList = list.filter(function (c) {
|
|
36855
36915
|
return c.required == 1;
|
|
36856
36916
|
}) || []; // 获取对象属性为true的集合
|
|
36857
36917
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36858
36918
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36859
|
-
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) ?
|
|
36919
|
+
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];
|
|
36860
36920
|
(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) {
|
|
36861
36921
|
if (requiredList.some(function (r) {
|
|
36862
36922
|
return r.id === e.elementId;
|
|
@@ -37445,7 +37505,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37445
37505
|
style: {
|
|
37446
37506
|
float: 'right'
|
|
37447
37507
|
}
|
|
37448
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37508
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37449
37509
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37450
37510
|
ruleGroupInfo: {
|
|
37451
37511
|
ruleGroupList: ruleGroupList,
|
|
@@ -37463,7 +37523,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37463
37523
|
callBack: function callBack(newData) {
|
|
37464
37524
|
upDateData(newData);
|
|
37465
37525
|
}
|
|
37466
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37526
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
37467
37527
|
style: {
|
|
37468
37528
|
padding: 20
|
|
37469
37529
|
}
|
|
@@ -37838,4 +37898,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37838
37898
|
}, children));
|
|
37839
37899
|
};
|
|
37840
37900
|
|
|
37841
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
37901
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|