@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.js
CHANGED
|
@@ -54,88 +54,9 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
54
54
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
55
55
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
56
56
|
|
|
57
|
-
function _arrayLikeToArray(r, a) {
|
|
58
|
-
(null == a || a > r.length) && (a = r.length);
|
|
59
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
60
|
-
return n;
|
|
61
|
-
}
|
|
62
|
-
function _arrayWithHoles(r) {
|
|
63
|
-
if (Array.isArray(r)) return r;
|
|
64
|
-
}
|
|
65
|
-
function _arrayWithoutHoles(r) {
|
|
66
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
67
|
-
}
|
|
68
|
-
function _assertThisInitialized(e) {
|
|
69
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
70
|
-
return e;
|
|
71
|
-
}
|
|
72
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
73
|
-
try {
|
|
74
|
-
var i = n[a](c),
|
|
75
|
-
u = i.value;
|
|
76
|
-
} catch (n) {
|
|
77
|
-
return void e(n);
|
|
78
|
-
}
|
|
79
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
80
|
-
}
|
|
81
|
-
function _asyncToGenerator(n) {
|
|
82
|
-
return function () {
|
|
83
|
-
var t = this,
|
|
84
|
-
e = arguments;
|
|
85
|
-
return new Promise(function (r, o) {
|
|
86
|
-
var a = n.apply(t, e);
|
|
87
|
-
function _next(n) {
|
|
88
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
89
|
-
}
|
|
90
|
-
function _throw(n) {
|
|
91
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
92
|
-
}
|
|
93
|
-
_next(void 0);
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
57
|
function _callSuper(t, o, e) {
|
|
98
58
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
99
59
|
}
|
|
100
|
-
function _classCallCheck(a, n) {
|
|
101
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
102
|
-
}
|
|
103
|
-
function _defineProperties(e, r) {
|
|
104
|
-
for (var t = 0; t < r.length; t++) {
|
|
105
|
-
var o = r[t];
|
|
106
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function _createClass(e, r, t) {
|
|
110
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
111
|
-
writable: !1
|
|
112
|
-
}), e;
|
|
113
|
-
}
|
|
114
|
-
function _defineProperty(e, r, t) {
|
|
115
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
116
|
-
value: t,
|
|
117
|
-
enumerable: !0,
|
|
118
|
-
configurable: !0,
|
|
119
|
-
writable: !0
|
|
120
|
-
}) : e[r] = t, e;
|
|
121
|
-
}
|
|
122
|
-
function _getPrototypeOf(t) {
|
|
123
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
124
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
125
|
-
}, _getPrototypeOf(t);
|
|
126
|
-
}
|
|
127
|
-
function _inherits(t, e) {
|
|
128
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
129
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
130
|
-
constructor: {
|
|
131
|
-
value: t,
|
|
132
|
-
writable: !0,
|
|
133
|
-
configurable: !0
|
|
134
|
-
}
|
|
135
|
-
}), Object.defineProperty(t, "prototype", {
|
|
136
|
-
writable: !1
|
|
137
|
-
}), e && _setPrototypeOf(t, e);
|
|
138
|
-
}
|
|
139
60
|
function _isNativeReflectConstruct() {
|
|
140
61
|
try {
|
|
141
62
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -144,9 +65,6 @@ function _isNativeReflectConstruct() {
|
|
|
144
65
|
return !!t;
|
|
145
66
|
})();
|
|
146
67
|
}
|
|
147
|
-
function _iterableToArray(r) {
|
|
148
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
149
|
-
}
|
|
150
68
|
function _iterableToArrayLimit(r, l) {
|
|
151
69
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
152
70
|
if (null != t) {
|
|
@@ -174,15 +92,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
174
92
|
return a;
|
|
175
93
|
}
|
|
176
94
|
}
|
|
177
|
-
function _nonIterableRest() {
|
|
178
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
179
|
-
}
|
|
180
|
-
function _nonIterableSpread() {
|
|
181
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
182
|
-
}
|
|
183
|
-
function _objectDestructuringEmpty(t) {
|
|
184
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
185
|
-
}
|
|
186
95
|
function ownKeys(e, r) {
|
|
187
96
|
var t = Object.keys(e);
|
|
188
97
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -204,31 +113,6 @@ function _objectSpread2(e) {
|
|
|
204
113
|
}
|
|
205
114
|
return e;
|
|
206
115
|
}
|
|
207
|
-
function _objectWithoutProperties(e, t) {
|
|
208
|
-
if (null == e) return {};
|
|
209
|
-
var o,
|
|
210
|
-
r,
|
|
211
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
212
|
-
if (Object.getOwnPropertySymbols) {
|
|
213
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
214
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
215
|
-
}
|
|
216
|
-
return i;
|
|
217
|
-
}
|
|
218
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
219
|
-
if (null == r) return {};
|
|
220
|
-
var t = {};
|
|
221
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
222
|
-
if (e.includes(n)) continue;
|
|
223
|
-
t[n] = r[n];
|
|
224
|
-
}
|
|
225
|
-
return t;
|
|
226
|
-
}
|
|
227
|
-
function _possibleConstructorReturn(t, e) {
|
|
228
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
229
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
230
|
-
return _assertThisInitialized(t);
|
|
231
|
-
}
|
|
232
116
|
function _regeneratorRuntime() {
|
|
233
117
|
_regeneratorRuntime = function () {
|
|
234
118
|
return e;
|
|
@@ -530,20 +414,6 @@ function _regeneratorRuntime() {
|
|
|
530
414
|
}
|
|
531
415
|
}, e;
|
|
532
416
|
}
|
|
533
|
-
function _setPrototypeOf(t, e) {
|
|
534
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
535
|
-
return t.__proto__ = e, t;
|
|
536
|
-
}, _setPrototypeOf(t, e);
|
|
537
|
-
}
|
|
538
|
-
function _slicedToArray(r, e) {
|
|
539
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
540
|
-
}
|
|
541
|
-
function _toArray(r) {
|
|
542
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
543
|
-
}
|
|
544
|
-
function _toConsumableArray(r) {
|
|
545
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
546
|
-
}
|
|
547
417
|
function _toPrimitive(t, r) {
|
|
548
418
|
if ("object" != typeof t || !t) return t;
|
|
549
419
|
var e = t[Symbol.toPrimitive];
|
|
@@ -567,12 +437,180 @@ function _typeof(o) {
|
|
|
567
437
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
568
438
|
}, _typeof(o);
|
|
569
439
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
var
|
|
574
|
-
|
|
440
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
441
|
+
try {
|
|
442
|
+
var info = gen[key](arg);
|
|
443
|
+
var value = info.value;
|
|
444
|
+
} catch (error) {
|
|
445
|
+
reject(error);
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
if (info.done) {
|
|
449
|
+
resolve(value);
|
|
450
|
+
} else {
|
|
451
|
+
Promise.resolve(value).then(_next, _throw);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function _asyncToGenerator(fn) {
|
|
455
|
+
return function () {
|
|
456
|
+
var self = this,
|
|
457
|
+
args = arguments;
|
|
458
|
+
return new Promise(function (resolve, reject) {
|
|
459
|
+
var gen = fn.apply(self, args);
|
|
460
|
+
function _next(value) {
|
|
461
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
462
|
+
}
|
|
463
|
+
function _throw(err) {
|
|
464
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
465
|
+
}
|
|
466
|
+
_next(undefined);
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function _classCallCheck(instance, Constructor) {
|
|
471
|
+
if (!(instance instanceof Constructor)) {
|
|
472
|
+
throw new TypeError("Cannot call a class as a function");
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
function _defineProperties(target, props) {
|
|
476
|
+
for (var i = 0; i < props.length; i++) {
|
|
477
|
+
var descriptor = props[i];
|
|
478
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
479
|
+
descriptor.configurable = true;
|
|
480
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
481
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
485
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
486
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
487
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
488
|
+
writable: false
|
|
489
|
+
});
|
|
490
|
+
return Constructor;
|
|
491
|
+
}
|
|
492
|
+
function _defineProperty(obj, key, value) {
|
|
493
|
+
key = _toPropertyKey(key);
|
|
494
|
+
if (key in obj) {
|
|
495
|
+
Object.defineProperty(obj, key, {
|
|
496
|
+
value: value,
|
|
497
|
+
enumerable: true,
|
|
498
|
+
configurable: true,
|
|
499
|
+
writable: true
|
|
500
|
+
});
|
|
501
|
+
} else {
|
|
502
|
+
obj[key] = value;
|
|
503
|
+
}
|
|
504
|
+
return obj;
|
|
505
|
+
}
|
|
506
|
+
function _inherits(subClass, superClass) {
|
|
507
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
508
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
509
|
+
}
|
|
510
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
511
|
+
constructor: {
|
|
512
|
+
value: subClass,
|
|
513
|
+
writable: true,
|
|
514
|
+
configurable: true
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
Object.defineProperty(subClass, "prototype", {
|
|
518
|
+
writable: false
|
|
519
|
+
});
|
|
520
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
521
|
+
}
|
|
522
|
+
function _getPrototypeOf(o) {
|
|
523
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
524
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
525
|
+
};
|
|
526
|
+
return _getPrototypeOf(o);
|
|
527
|
+
}
|
|
528
|
+
function _setPrototypeOf(o, p) {
|
|
529
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
530
|
+
o.__proto__ = p;
|
|
531
|
+
return o;
|
|
532
|
+
};
|
|
533
|
+
return _setPrototypeOf(o, p);
|
|
534
|
+
}
|
|
535
|
+
function _objectDestructuringEmpty(obj) {
|
|
536
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
537
|
+
}
|
|
538
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
539
|
+
if (source == null) return {};
|
|
540
|
+
var target = {};
|
|
541
|
+
for (var key in source) {
|
|
542
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
543
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
544
|
+
target[key] = source[key];
|
|
545
|
+
}
|
|
575
546
|
}
|
|
547
|
+
return target;
|
|
548
|
+
}
|
|
549
|
+
function _objectWithoutProperties(source, excluded) {
|
|
550
|
+
if (source == null) return {};
|
|
551
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
552
|
+
var key, i;
|
|
553
|
+
if (Object.getOwnPropertySymbols) {
|
|
554
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
555
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
556
|
+
key = sourceSymbolKeys[i];
|
|
557
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
558
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
559
|
+
target[key] = source[key];
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return target;
|
|
563
|
+
}
|
|
564
|
+
function _assertThisInitialized(self) {
|
|
565
|
+
if (self === void 0) {
|
|
566
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
567
|
+
}
|
|
568
|
+
return self;
|
|
569
|
+
}
|
|
570
|
+
function _possibleConstructorReturn(self, call) {
|
|
571
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
572
|
+
return call;
|
|
573
|
+
} else if (call !== void 0) {
|
|
574
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
575
|
+
}
|
|
576
|
+
return _assertThisInitialized(self);
|
|
577
|
+
}
|
|
578
|
+
function _slicedToArray(arr, i) {
|
|
579
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
580
|
+
}
|
|
581
|
+
function _toArray(arr) {
|
|
582
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
583
|
+
}
|
|
584
|
+
function _toConsumableArray(arr) {
|
|
585
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
586
|
+
}
|
|
587
|
+
function _arrayWithoutHoles(arr) {
|
|
588
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
589
|
+
}
|
|
590
|
+
function _arrayWithHoles(arr) {
|
|
591
|
+
if (Array.isArray(arr)) return arr;
|
|
592
|
+
}
|
|
593
|
+
function _iterableToArray(iter) {
|
|
594
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
595
|
+
}
|
|
596
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
597
|
+
if (!o) return;
|
|
598
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
599
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
600
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
601
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
602
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
603
|
+
}
|
|
604
|
+
function _arrayLikeToArray(arr, len) {
|
|
605
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
606
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
607
|
+
return arr2;
|
|
608
|
+
}
|
|
609
|
+
function _nonIterableSpread() {
|
|
610
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
611
|
+
}
|
|
612
|
+
function _nonIterableRest() {
|
|
613
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
576
614
|
}
|
|
577
615
|
|
|
578
616
|
var ENUM = {
|
|
@@ -1082,13 +1120,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1082
1120
|
imgHtml.innerHTML = str;
|
|
1083
1121
|
}
|
|
1084
1122
|
// 测试使用 测试类型缩小 end
|
|
1085
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1123
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1086
1124
|
className: "clomnsImg"
|
|
1087
1125
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1088
1126
|
src: url,
|
|
1089
1127
|
width: "16px",
|
|
1090
1128
|
height: "16px"
|
|
1091
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1129
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1092
1130
|
className: "clomnsImg2"
|
|
1093
1131
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1094
1132
|
src: noImg
|
|
@@ -1227,7 +1265,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1227
1265
|
}
|
|
1228
1266
|
save_link.click();
|
|
1229
1267
|
}
|
|
1230
|
-
var
|
|
1268
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1231
1269
|
return data.map(function (item) {
|
|
1232
1270
|
if (!item.name || !item.path) {
|
|
1233
1271
|
return null;
|
|
@@ -1247,7 +1285,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1247
1285
|
authority: item.authority || parentAuthority
|
|
1248
1286
|
});
|
|
1249
1287
|
if (item.routes) {
|
|
1250
|
-
var children =
|
|
1288
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1251
1289
|
// Reduce memory usage
|
|
1252
1290
|
result.children = children;
|
|
1253
1291
|
}
|
|
@@ -1257,7 +1295,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1257
1295
|
return item;
|
|
1258
1296
|
});
|
|
1259
1297
|
};
|
|
1260
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1298
|
+
var memoizeOneFormatter = memoizeOne__default['default'](formatter, isEqual__default['default']);
|
|
1261
1299
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1262
1300
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1263
1301
|
if (backHistoryPath) {
|
|
@@ -1566,7 +1604,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1566
1604
|
// sheepMap是表头字段中英文映射
|
|
1567
1605
|
// sheetCount:表的数量,默认一张
|
|
1568
1606
|
var resolveFile = /*#__PURE__*/function () {
|
|
1569
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1607
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1570
1608
|
var config,
|
|
1571
1609
|
data,
|
|
1572
1610
|
_args = arguments;
|
|
@@ -1605,7 +1643,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1605
1643
|
}();
|
|
1606
1644
|
//读取文件
|
|
1607
1645
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1608
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1646
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1609
1647
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1610
1648
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1611
1649
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1698,14 +1736,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1698
1736
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1699
1737
|
|
|
1700
1738
|
// 获取树平行结构
|
|
1701
|
-
var
|
|
1739
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1702
1740
|
var childrenKey = chilKey || 'children';
|
|
1703
1741
|
treeData.forEach(function (el) {
|
|
1704
1742
|
var _el$childrenKey;
|
|
1705
1743
|
result.push(el);
|
|
1706
1744
|
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) {
|
|
1707
1745
|
// 子级递归
|
|
1708
|
-
|
|
1746
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1709
1747
|
}
|
|
1710
1748
|
});
|
|
1711
1749
|
return result;
|
|
@@ -1982,13 +2020,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1982
2020
|
imgHtml.innerHTML = str;
|
|
1983
2021
|
}
|
|
1984
2022
|
// 测试使用 测试类型缩小 end
|
|
1985
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
2023
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1986
2024
|
className: "clomnsImg"
|
|
1987
2025
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1988
2026
|
src: url,
|
|
1989
2027
|
width: "16px",
|
|
1990
2028
|
height: "16px"
|
|
1991
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2029
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1992
2030
|
src: noImg
|
|
1993
2031
|
}))));
|
|
1994
2032
|
};
|
|
@@ -2050,7 +2088,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2050
2088
|
}
|
|
2051
2089
|
});
|
|
2052
2090
|
};
|
|
2053
|
-
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (/*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2091
|
+
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2054
2092
|
disabled: disabled,
|
|
2055
2093
|
onChange: function onChange(e) {
|
|
2056
2094
|
var v = e.target.value;
|
|
@@ -2060,7 +2098,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2060
2098
|
width: 170
|
|
2061
2099
|
},
|
|
2062
2100
|
value: inputValue
|
|
2063
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2101
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2064
2102
|
disabled: disabled,
|
|
2065
2103
|
onBlur: function onBlur(e) {
|
|
2066
2104
|
var v = parseFloat(e.target.value);
|
|
@@ -2439,16 +2477,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2439
2477
|
var handleExportBarCode = handleExport;
|
|
2440
2478
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2441
2479
|
var routerMap = {};
|
|
2442
|
-
var
|
|
2480
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2443
2481
|
data.forEach(function (menuItem) {
|
|
2444
2482
|
if (menuItem.children) {
|
|
2445
|
-
|
|
2483
|
+
flattenMenuData(menuItem.children);
|
|
2446
2484
|
}
|
|
2447
2485
|
// Reduce memory usage
|
|
2448
2486
|
routerMap[menuItem.path] = menuItem;
|
|
2449
2487
|
});
|
|
2450
2488
|
};
|
|
2451
|
-
|
|
2489
|
+
flattenMenuData(menuData);
|
|
2452
2490
|
return routerMap;
|
|
2453
2491
|
};
|
|
2454
2492
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2591,7 +2629,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2591
2629
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2592
2630
|
};
|
|
2593
2631
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2594
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2632
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2595
2633
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2596
2634
|
while (1) switch (_context.prev = _context.next) {
|
|
2597
2635
|
case 0:
|
|
@@ -3265,7 +3303,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3265
3303
|
placement: "bottomLeft"
|
|
3266
3304
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3267
3305
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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"))
|
|
3268
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3306
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3269
3307
|
trigger: ['click'],
|
|
3270
3308
|
overlay: this.menuList,
|
|
3271
3309
|
placement: "bottomRight"
|
|
@@ -3940,7 +3978,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3940
3978
|
placement: "bottomLeft"
|
|
3941
3979
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3942
3980
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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"))
|
|
3943
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3981
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3944
3982
|
trigger: ['click'],
|
|
3945
3983
|
overlay: this.menuList,
|
|
3946
3984
|
placement: "bottomRight"
|
|
@@ -4098,7 +4136,7 @@ function ToCDB(str) {
|
|
|
4098
4136
|
return tmp;
|
|
4099
4137
|
}
|
|
4100
4138
|
|
|
4101
|
-
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";
|
|
4139
|
+
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";
|
|
4102
4140
|
styleInject(css_248z$5);
|
|
4103
4141
|
|
|
4104
4142
|
var columnsPerRow = 4; // 每行的列数
|
|
@@ -4155,9 +4193,11 @@ var getCurrentSRKs = function getCurrentSRKs(selectMode, labelInValue, value) {
|
|
|
4155
4193
|
}) : value : labelInValue ? (value === null || value === void 0 ? void 0 : value.value) && [value === null || value === void 0 ? void 0 : value.value] || [] : value && [value] || [];
|
|
4156
4194
|
};
|
|
4157
4195
|
var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
4196
|
+
// 判空处理
|
|
4197
|
+
if (!(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length)) return items || [];
|
|
4158
4198
|
// 创建映射对象 用于记录原始选中顺序
|
|
4159
4199
|
var orderMap = new Map();
|
|
4160
|
-
currentSRKs.forEach(function (value, index) {
|
|
4200
|
+
currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.forEach(function (value, index) {
|
|
4161
4201
|
orderMap.set(value, index);
|
|
4162
4202
|
});
|
|
4163
4203
|
// 被选中数据集合,获取之后排序
|
|
@@ -4280,34 +4320,38 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4280
4320
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4281
4321
|
selectOpen = _useState4[0],
|
|
4282
4322
|
setSelectOpen = _useState4[1];
|
|
4283
|
-
var _useState5 = React$1.useState(
|
|
4323
|
+
var _useState5 = React$1.useState(false),
|
|
4284
4324
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
var _useState7 = React$1.useState(
|
|
4325
|
+
isMaxTagsOpen = _useState6[0],
|
|
4326
|
+
setIsMaxTagsOpen = _useState6[1];
|
|
4327
|
+
var _useState7 = React$1.useState(1),
|
|
4288
4328
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
var _useState9 = React$1.useState(
|
|
4329
|
+
scrollPage = _useState8[0],
|
|
4330
|
+
setScrollPage = _useState8[1];
|
|
4331
|
+
var _useState9 = React$1.useState(0),
|
|
4292
4332
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
var _useState11 = React$1.useState(
|
|
4333
|
+
itemsTotal = _useState10[0],
|
|
4334
|
+
setItemsTotal = _useState10[1];
|
|
4335
|
+
var _useState11 = React$1.useState(false),
|
|
4296
4336
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
var _useState13 = React$1.useState(
|
|
4337
|
+
fetching = _useState12[0],
|
|
4338
|
+
setFetching = _useState12[1];
|
|
4339
|
+
var _useState13 = React$1.useState(''),
|
|
4300
4340
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
var _useState15 = React$1.useState(
|
|
4341
|
+
searchValue = _useState14[0],
|
|
4342
|
+
setSearchValue = _useState14[1];
|
|
4343
|
+
var _useState15 = React$1.useState(false),
|
|
4304
4344
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
var _useState17 = React$1.useState(
|
|
4345
|
+
isModalVisible = _useState16[0],
|
|
4346
|
+
setIsModalVisible = _useState16[1];
|
|
4347
|
+
var _useState17 = React$1.useState(initVal),
|
|
4308
4348
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
4309
|
-
|
|
4310
|
-
|
|
4349
|
+
popvalue = _useState18[0],
|
|
4350
|
+
setPopValue = _useState18[1];
|
|
4351
|
+
var _useState19 = React$1.useState(resultSourceKey),
|
|
4352
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
4353
|
+
uniqueValue = _useState20[0],
|
|
4354
|
+
setUniqueValue = _useState20[1];
|
|
4311
4355
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
4312
4356
|
// 优化搜索参数 支持传多个
|
|
4313
4357
|
var searchParams = {};
|
|
@@ -4336,62 +4380,62 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
4336
4380
|
var _Form$useForm = antd.Form.useForm(),
|
|
4337
4381
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
4338
4382
|
form = _Form$useForm2[0];
|
|
4339
|
-
var _useState19 = React$1.useState(true),
|
|
4340
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
4341
|
-
collapsed = _useState20[0],
|
|
4342
|
-
setCollapsed = _useState20[1];
|
|
4343
4383
|
var _useState21 = React$1.useState(true),
|
|
4344
4384
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
var _useState23 = React$1.useState(
|
|
4385
|
+
collapsed = _useState22[0],
|
|
4386
|
+
setCollapsed = _useState22[1];
|
|
4387
|
+
var _useState23 = React$1.useState(true),
|
|
4348
4388
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
var _useState25 = React$1.useState(
|
|
4389
|
+
caretLeftFlag = _useState24[0],
|
|
4390
|
+
setCaretLeftFlag = _useState24[1];
|
|
4391
|
+
var _useState25 = React$1.useState([]),
|
|
4352
4392
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
var _useState27 = React$1.useState(
|
|
4393
|
+
tableData = _useState26[0],
|
|
4394
|
+
setTableData = _useState26[1];
|
|
4395
|
+
var _useState27 = React$1.useState(tableInitPagination),
|
|
4356
4396
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
4357
|
-
|
|
4358
|
-
|
|
4397
|
+
tablePagination = _useState28[0],
|
|
4398
|
+
setTablePagination = _useState28[1];
|
|
4359
4399
|
var _useState29 = React$1.useState([]),
|
|
4360
4400
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
var _useState31 = React$1.useState(
|
|
4401
|
+
selectedRowKeys = _useState30[0],
|
|
4402
|
+
setSelectedRowKeys = _useState30[1];
|
|
4403
|
+
var _useState31 = React$1.useState([]),
|
|
4364
4404
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
4365
|
-
|
|
4366
|
-
|
|
4405
|
+
selectedRows = _useState32[0],
|
|
4406
|
+
setSelectedRows = _useState32[1];
|
|
4367
4407
|
var _useState33 = React$1.useState(false),
|
|
4368
4408
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
var _useState35 = React$1.useState(
|
|
4409
|
+
checkedAll = _useState34[0],
|
|
4410
|
+
setCheckedAll = _useState34[1];
|
|
4411
|
+
var _useState35 = React$1.useState(false),
|
|
4372
4412
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
var _useState37 = React$1.useState(
|
|
4413
|
+
indeterminate = _useState36[0],
|
|
4414
|
+
setIndeterminate = _useState36[1];
|
|
4415
|
+
var _useState37 = React$1.useState({}),
|
|
4376
4416
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
var _useState39 = React$1.useState(
|
|
4417
|
+
tableFormParams = _useState38[0],
|
|
4418
|
+
setTableFormParams = _useState38[1];
|
|
4419
|
+
var _useState39 = React$1.useState(false),
|
|
4420
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
|
4421
|
+
tooltipVisible = _useState40[0],
|
|
4422
|
+
setTooltipVisible = _useState40[1];
|
|
4423
|
+
var _useState41 = React$1.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) {
|
|
4380
4424
|
return typeof s.defaultSort == 'number';
|
|
4381
4425
|
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
4382
4426
|
return a.defaultSort - b.defaultSort;
|
|
4383
4427
|
})) || []),
|
|
4384
|
-
_useState40 = _slicedToArray(_useState39, 2),
|
|
4385
|
-
tableShowColumns = _useState40[0],
|
|
4386
|
-
setTabletShowColumns = _useState40[1];
|
|
4387
|
-
var _useState41 = React$1.useState(false),
|
|
4388
4428
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
4389
|
-
|
|
4390
|
-
|
|
4429
|
+
tableShowColumns = _useState42[0],
|
|
4430
|
+
setTabletShowColumns = _useState42[1];
|
|
4391
4431
|
var _useState43 = React$1.useState(false),
|
|
4392
4432
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
4393
|
-
|
|
4394
|
-
|
|
4433
|
+
confirmLoading = _useState44[0],
|
|
4434
|
+
setConfirmLoading = _useState44[1];
|
|
4435
|
+
var _useState45 = React$1.useState(false),
|
|
4436
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
4437
|
+
modalSearched = _useState46[0],
|
|
4438
|
+
setModalSearched = _useState46[1];
|
|
4395
4439
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
4396
4440
|
setItems(list);
|
|
4397
4441
|
setItemsTotal(total);
|
|
@@ -5230,6 +5274,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5230
5274
|
nr && setSelectOpen(false);
|
|
5231
5275
|
};
|
|
5232
5276
|
var onDropdownVisibleChange = function onDropdownVisibleChange(visible) {
|
|
5277
|
+
// 阻止maxTagPlaceholder点击事件触发下拉框展示事件
|
|
5278
|
+
if (isMaxTagsOpen && !selectOpen) return;
|
|
5233
5279
|
setSelectOpen(visible);
|
|
5234
5280
|
// 关闭下拉框 如果首次本身就不展示数据的 没有选中数据-需要清空查询数据源; 首次展示的默认展示
|
|
5235
5281
|
if (!visible && !(value === null || value === void 0 ? void 0 : value.length)) {
|
|
@@ -5325,20 +5371,34 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5325
5371
|
onChange(newValue);
|
|
5326
5372
|
};
|
|
5327
5373
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
5328
|
-
|
|
5374
|
+
overlayClassName: 'searchSelectMaxTagToolTip',
|
|
5375
|
+
destroyTooltipOnHide: true,
|
|
5376
|
+
placement: "topRight",
|
|
5377
|
+
autoAdjustOverflow: false,
|
|
5378
|
+
title: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5379
|
+
style: {
|
|
5380
|
+
margin: '6px 8px 0px'
|
|
5381
|
+
},
|
|
5382
|
+
onMouseEnter: function onMouseEnter() {
|
|
5383
|
+
setIsMaxTagsOpen(true);
|
|
5384
|
+
},
|
|
5385
|
+
onMouseLeave: function onMouseLeave() {
|
|
5386
|
+
setIsMaxTagsOpen(false);
|
|
5387
|
+
}
|
|
5388
|
+
}, selectedValues.map(function (i) {
|
|
5329
5389
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tag, {
|
|
5330
5390
|
closable: true,
|
|
5331
5391
|
onClose: function onClose(e) {
|
|
5332
5392
|
return _onClose(e, i);
|
|
5333
5393
|
},
|
|
5334
5394
|
style: {
|
|
5335
|
-
|
|
5395
|
+
margin: '0px 3px 3px 0px',
|
|
5336
5396
|
background: '#f5f5f5',
|
|
5337
5397
|
height: '24px',
|
|
5338
5398
|
border: '1px solid #f0f0f0'
|
|
5339
5399
|
}
|
|
5340
5400
|
}, i.label);
|
|
5341
|
-
})
|
|
5401
|
+
})))
|
|
5342
5402
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
5343
5403
|
};
|
|
5344
5404
|
var handleSelectOptionsShowValue = function handleSelectOptionsShowValue(specialBracket, noNeedSplit, item) {
|
|
@@ -5387,13 +5447,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5387
5447
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5388
5448
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5389
5449
|
className: 'search_select'
|
|
5390
|
-
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5450
|
+
}, fieldComponent ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5391
5451
|
onClick: function onClick() {
|
|
5392
5452
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5393
5453
|
(_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);
|
|
5394
5454
|
showModal();
|
|
5395
5455
|
}
|
|
5396
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5456
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5397
5457
|
title: getShowStr(),
|
|
5398
5458
|
style: {
|
|
5399
5459
|
overflow: 'hidden',
|
|
@@ -5420,10 +5480,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5420
5480
|
dropdownRender: function dropdownRender(menu) {
|
|
5421
5481
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5422
5482
|
},
|
|
5423
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
5483
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
5424
5484
|
size: "small",
|
|
5425
5485
|
className: 'searchSelectSpin'
|
|
5426
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5486
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5427
5487
|
style: {
|
|
5428
5488
|
textAlign: 'center'
|
|
5429
5489
|
}
|
|
@@ -5454,7 +5514,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5454
5514
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5455
5515
|
filterTxt: searchValue
|
|
5456
5516
|
}));
|
|
5457
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
5517
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
5458
5518
|
maskClosable: false,
|
|
5459
5519
|
destroyOnClose: true,
|
|
5460
5520
|
width: "80%",
|
|
@@ -6051,7 +6111,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6051
6111
|
style: {
|
|
6052
6112
|
width: 525
|
|
6053
6113
|
}
|
|
6054
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6114
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6055
6115
|
checked: !dataSource.some(function (item) {
|
|
6056
6116
|
if (item.hidden) return true;
|
|
6057
6117
|
return false;
|
|
@@ -6089,13 +6149,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6089
6149
|
_this2.onChange(e, item.title);
|
|
6090
6150
|
}
|
|
6091
6151
|
}, item.title);
|
|
6092
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
6152
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6093
6153
|
style: {
|
|
6094
6154
|
width: '144px'
|
|
6095
6155
|
}
|
|
6096
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6156
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6097
6157
|
className: 'sort_table_column_all_empty'
|
|
6098
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6158
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6099
6159
|
className: 'sort_table_column_special'
|
|
6100
6160
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6101
6161
|
className: 'sort_table_column_all'
|
|
@@ -6284,7 +6344,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6284
6344
|
});
|
|
6285
6345
|
};
|
|
6286
6346
|
// 格式化树选择器数据源
|
|
6287
|
-
var
|
|
6347
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6288
6348
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6289
6349
|
return {
|
|
6290
6350
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6294,7 +6354,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6294
6354
|
isLeaf: !haveChildren,
|
|
6295
6355
|
disabled: haveChildren,
|
|
6296
6356
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6297
|
-
return
|
|
6357
|
+
return mapSearchTree(i, resKeyValue);
|
|
6298
6358
|
}) : []
|
|
6299
6359
|
};
|
|
6300
6360
|
};
|
|
@@ -6303,7 +6363,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6303
6363
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6304
6364
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6305
6365
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6306
|
-
return
|
|
6366
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6307
6367
|
}) || [];
|
|
6308
6368
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6309
6369
|
};
|
|
@@ -6474,7 +6534,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6474
6534
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6475
6535
|
// FIXME: 特殊业务逻辑
|
|
6476
6536
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6477
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6537
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6478
6538
|
var result;
|
|
6479
6539
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6480
6540
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6727,7 +6787,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6727
6787
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6728
6788
|
value: text || null,
|
|
6729
6789
|
onChange: function () {
|
|
6730
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6790
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6731
6791
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6732
6792
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6733
6793
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7335,10 +7395,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7335
7395
|
var newColumns = arr.map(function (col) {
|
|
7336
7396
|
return _objectSpread2({}, col);
|
|
7337
7397
|
});
|
|
7338
|
-
var
|
|
7398
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7339
7399
|
var i = indexArr.shift();
|
|
7340
7400
|
if (indexArr.length > 0) {
|
|
7341
|
-
|
|
7401
|
+
handleIndex(arr[i].children, indexArr);
|
|
7342
7402
|
} else {
|
|
7343
7403
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7344
7404
|
width: size.width
|
|
@@ -7346,7 +7406,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7346
7406
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7347
7407
|
}
|
|
7348
7408
|
};
|
|
7349
|
-
|
|
7409
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7350
7410
|
callback(newColumns);
|
|
7351
7411
|
};
|
|
7352
7412
|
};
|
|
@@ -7356,13 +7416,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7356
7416
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7357
7417
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7358
7418
|
};
|
|
7359
|
-
var
|
|
7419
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7360
7420
|
arr.forEach(function (item, index) {
|
|
7361
7421
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7362
7422
|
return i || i === 0;
|
|
7363
7423
|
});
|
|
7364
7424
|
if (noEmptyArray$1(item.children)) {
|
|
7365
|
-
|
|
7425
|
+
handleColumns(item.children, indexArrInside);
|
|
7366
7426
|
} else {
|
|
7367
7427
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7368
7428
|
item.onHeaderCell = function (column) {
|
|
@@ -7378,14 +7438,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7378
7438
|
handleAntdColumnsSpecialParams(item);
|
|
7379
7439
|
return _objectSpread2({}, item);
|
|
7380
7440
|
});
|
|
7381
|
-
|
|
7441
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7382
7442
|
return setShowToChooseColumnsCallback(res);
|
|
7383
7443
|
});
|
|
7384
7444
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7385
7445
|
handleAntdColumnsSpecialParams(item);
|
|
7386
7446
|
return _objectSpread2({}, item);
|
|
7387
7447
|
});
|
|
7388
|
-
|
|
7448
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7389
7449
|
return setShowColumnsCallback(res);
|
|
7390
7450
|
});
|
|
7391
7451
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7396,7 +7456,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7396
7456
|
id: "add_select_div_".concat(uniqueValue)
|
|
7397
7457
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
7398
7458
|
onClick: handleShowModal
|
|
7399
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7459
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7400
7460
|
width: '1200px',
|
|
7401
7461
|
style: {
|
|
7402
7462
|
top: 20
|
|
@@ -8310,7 +8370,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8310
8370
|
});
|
|
8311
8371
|
};
|
|
8312
8372
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8313
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8373
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8314
8374
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8315
8375
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8316
8376
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8393,10 +8453,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8393
8453
|
var newColumns = arr.map(function (col) {
|
|
8394
8454
|
return _objectSpread2({}, col);
|
|
8395
8455
|
});
|
|
8396
|
-
var
|
|
8456
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8397
8457
|
var i = indexArr.shift();
|
|
8398
8458
|
if (indexArr.length > 0) {
|
|
8399
|
-
|
|
8459
|
+
handleIndex(arr[i].children, indexArr);
|
|
8400
8460
|
} else {
|
|
8401
8461
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8402
8462
|
width: size.width
|
|
@@ -8404,17 +8464,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8404
8464
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8405
8465
|
}
|
|
8406
8466
|
};
|
|
8407
|
-
|
|
8467
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8408
8468
|
callback(newColumns);
|
|
8409
8469
|
};
|
|
8410
8470
|
};
|
|
8411
|
-
var
|
|
8471
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8412
8472
|
arr.forEach(function (item, index) {
|
|
8413
8473
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8414
8474
|
return i || i === 0;
|
|
8415
8475
|
});
|
|
8416
8476
|
if (noEmptyArray$1(item.children)) {
|
|
8417
|
-
|
|
8477
|
+
handleColumns(item.children, indexArrInside);
|
|
8418
8478
|
} else {
|
|
8419
8479
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8420
8480
|
item.onHeaderCell = function (column) {
|
|
@@ -8430,7 +8490,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8430
8490
|
handleAntdColumnsSpecialParams(item);
|
|
8431
8491
|
return _objectSpread2({}, item);
|
|
8432
8492
|
});
|
|
8433
|
-
|
|
8493
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8434
8494
|
return setShowColumnsCallback(res);
|
|
8435
8495
|
});
|
|
8436
8496
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -8744,7 +8804,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8744
8804
|
});
|
|
8745
8805
|
};
|
|
8746
8806
|
// 格式化树选择器数据源
|
|
8747
|
-
var
|
|
8807
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8748
8808
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8749
8809
|
return {
|
|
8750
8810
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8754,7 +8814,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8754
8814
|
isLeaf: !haveChildren,
|
|
8755
8815
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8756
8816
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8757
|
-
return
|
|
8817
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8758
8818
|
}) : []
|
|
8759
8819
|
};
|
|
8760
8820
|
};
|
|
@@ -8768,7 +8828,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8768
8828
|
disabledJudge = false;
|
|
8769
8829
|
}
|
|
8770
8830
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8771
|
-
return
|
|
8831
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8772
8832
|
}) || [];
|
|
8773
8833
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8774
8834
|
};
|
|
@@ -12818,7 +12878,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12818
12878
|
};
|
|
12819
12879
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
12820
12880
|
onClick: handleShowModal
|
|
12821
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12881
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12822
12882
|
onOk: handleOk,
|
|
12823
12883
|
onCancel: handleCancel,
|
|
12824
12884
|
destroyOnClose: true,
|
|
@@ -12937,7 +12997,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12937
12997
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12938
12998
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12939
12999
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12940
|
-
var
|
|
13000
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12941
13001
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12942
13002
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12943
13003
|
return {
|
|
@@ -12949,7 +13009,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12949
13009
|
isLeaf: !haveChildren,
|
|
12950
13010
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12951
13011
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12952
|
-
return
|
|
13012
|
+
return mapSearchTree(i);
|
|
12953
13013
|
}) : []
|
|
12954
13014
|
};
|
|
12955
13015
|
};
|
|
@@ -12967,8 +13027,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12967
13027
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12968
13028
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
12969
13029
|
headers: headers
|
|
12970
|
-
}).then(/*#__PURE__*/function () {
|
|
12971
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13030
|
+
}).then( /*#__PURE__*/function () {
|
|
13031
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12972
13032
|
var _ctx$form;
|
|
12973
13033
|
var resData, coverData, data, dataList;
|
|
12974
13034
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12995,7 +13055,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12995
13055
|
case 9:
|
|
12996
13056
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12997
13057
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12998
|
-
return
|
|
13058
|
+
return mapSearchTree(ites);
|
|
12999
13059
|
}) || [];
|
|
13000
13060
|
case 11:
|
|
13001
13061
|
_context.next = 14;
|
|
@@ -13033,11 +13093,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13033
13093
|
return _formatResult;
|
|
13034
13094
|
}
|
|
13035
13095
|
};
|
|
13036
|
-
var
|
|
13096
|
+
var parallelData = function parallelData(data, result) {
|
|
13037
13097
|
data.forEach(function (i) {
|
|
13038
13098
|
result.push(i);
|
|
13039
13099
|
if (i[treeChildrenRoom]) {
|
|
13040
|
-
|
|
13100
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13041
13101
|
}
|
|
13042
13102
|
});
|
|
13043
13103
|
return result;
|
|
@@ -13077,7 +13137,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13077
13137
|
var _ctx$form2;
|
|
13078
13138
|
var handleData = formatData(data);
|
|
13079
13139
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13080
|
-
var parallelTreeData =
|
|
13140
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13081
13141
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13082
13142
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13083
13143
|
onChangeName && onChangeName(dataName);
|
|
@@ -13120,7 +13180,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13120
13180
|
var getShowStr = function getShowStr() {
|
|
13121
13181
|
var isMultiple = multiple || treeCheckable;
|
|
13122
13182
|
var kongValue = '无';
|
|
13123
|
-
var parallelTreeData =
|
|
13183
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13124
13184
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13125
13185
|
if (isMultiple) {
|
|
13126
13186
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13132,7 +13192,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13132
13192
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13133
13193
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13134
13194
|
className: 'tree_search_select'
|
|
13135
|
-
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13195
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13136
13196
|
title: getShowStr(),
|
|
13137
13197
|
style: {
|
|
13138
13198
|
overflow: 'hidden',
|
|
@@ -13140,7 +13200,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13140
13200
|
whiteSpace: 'nowrap'
|
|
13141
13201
|
},
|
|
13142
13202
|
className: 'search_select_show'
|
|
13143
|
-
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13203
|
+
}, getShowStr())) : ( /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13144
13204
|
treeCheckable: treeCheckable,
|
|
13145
13205
|
maxTagCount: maxTagCount,
|
|
13146
13206
|
showSearch: showSearch,
|
|
@@ -13337,7 +13397,7 @@ var index$2 = (function (props) {
|
|
|
13337
13397
|
} : {}
|
|
13338
13398
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13339
13399
|
className: 'status-label-operate'
|
|
13340
|
-
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13400
|
+
}, item.isDone ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13341
13401
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13342
13402
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13343
13403
|
style: {
|
|
@@ -14118,7 +14178,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14118
14178
|
style: {
|
|
14119
14179
|
width: 525
|
|
14120
14180
|
}
|
|
14121
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14181
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14122
14182
|
checked: !dataSource.some(function (item) {
|
|
14123
14183
|
if (item.hidden) return true;
|
|
14124
14184
|
return false;
|
|
@@ -14156,13 +14216,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14156
14216
|
_this2.onChange(e, item.title);
|
|
14157
14217
|
}
|
|
14158
14218
|
}, item.title);
|
|
14159
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
14219
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14160
14220
|
style: {
|
|
14161
14221
|
width: '144px'
|
|
14162
14222
|
}
|
|
14163
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14223
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14164
14224
|
className: 'sort_table_column_all_empty'
|
|
14165
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14225
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14166
14226
|
className: 'sort_table_column_special'
|
|
14167
14227
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14168
14228
|
className: 'sort_table_column_all'
|
|
@@ -14341,10 +14401,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14341
14401
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14342
14402
|
return _objectSpread2({}, col);
|
|
14343
14403
|
});
|
|
14344
|
-
var
|
|
14404
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14345
14405
|
var i = indexArr.shift();
|
|
14346
14406
|
if (indexArr.length > 0) {
|
|
14347
|
-
|
|
14407
|
+
handleIndex(arr[i].children, indexArr);
|
|
14348
14408
|
} else {
|
|
14349
14409
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14350
14410
|
width: size.width
|
|
@@ -14352,7 +14412,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14352
14412
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14353
14413
|
}
|
|
14354
14414
|
};
|
|
14355
|
-
|
|
14415
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14356
14416
|
_this.setState({
|
|
14357
14417
|
showColumns: _toConsumableArray(newColumns)
|
|
14358
14418
|
});
|
|
@@ -14393,7 +14453,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14393
14453
|
};
|
|
14394
14454
|
setIsResizing(true);
|
|
14395
14455
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14396
|
-
document.addEventListener('mouseup',
|
|
14456
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
14397
14457
|
};
|
|
14398
14458
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14399
14459
|
e.stopPropagation();
|
|
@@ -14409,9 +14469,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14409
14469
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14410
14470
|
}
|
|
14411
14471
|
};
|
|
14412
|
-
var
|
|
14472
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
14413
14473
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
14414
|
-
document.removeEventListener('mouseup',
|
|
14474
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
14415
14475
|
setIsResizing(false);
|
|
14416
14476
|
};
|
|
14417
14477
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -14532,13 +14592,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14532
14592
|
showSummary = summary;
|
|
14533
14593
|
}
|
|
14534
14594
|
}
|
|
14535
|
-
var
|
|
14595
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14536
14596
|
arr.forEach(function (item, index) {
|
|
14537
14597
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14538
14598
|
return i || i === 0;
|
|
14539
14599
|
});
|
|
14540
14600
|
if (noEmptyArray$1(item.children)) {
|
|
14541
|
-
|
|
14601
|
+
handleColumns(item.children, indexArrInside);
|
|
14542
14602
|
} else {
|
|
14543
14603
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14544
14604
|
item.onHeaderCell = function (column) {
|
|
@@ -14554,7 +14614,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14554
14614
|
handleBssulaColumnsSpecialParams(item);
|
|
14555
14615
|
return _objectSpread2({}, item);
|
|
14556
14616
|
});
|
|
14557
|
-
|
|
14617
|
+
handleColumns(showCol, []);
|
|
14558
14618
|
if (dynamicColumns.length) {
|
|
14559
14619
|
showCol = this.handledynamicColumns(showCol);
|
|
14560
14620
|
}
|
|
@@ -14595,7 +14655,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14595
14655
|
cell: this.ResizeableTitle
|
|
14596
14656
|
}
|
|
14597
14657
|
}
|
|
14598
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
14658
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
14599
14659
|
summary: summary
|
|
14600
14660
|
})));
|
|
14601
14661
|
}
|
|
@@ -14692,10 +14752,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14692
14752
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14693
14753
|
return _objectSpread2({}, col);
|
|
14694
14754
|
});
|
|
14695
|
-
var
|
|
14755
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14696
14756
|
var i = indexArr.shift();
|
|
14697
14757
|
if (indexArr.length > 0) {
|
|
14698
|
-
|
|
14758
|
+
handleIndex(arr[i].children, indexArr);
|
|
14699
14759
|
} else {
|
|
14700
14760
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14701
14761
|
width: size.width
|
|
@@ -14703,7 +14763,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14703
14763
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14704
14764
|
}
|
|
14705
14765
|
};
|
|
14706
|
-
|
|
14766
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14707
14767
|
_this.setState({
|
|
14708
14768
|
showColumns: _toConsumableArray(newColumns)
|
|
14709
14769
|
});
|
|
@@ -14779,13 +14839,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14779
14839
|
showSummary = summary;
|
|
14780
14840
|
}
|
|
14781
14841
|
}
|
|
14782
|
-
var
|
|
14842
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14783
14843
|
arr.forEach(function (item, index) {
|
|
14784
14844
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14785
14845
|
return i || i === 0;
|
|
14786
14846
|
});
|
|
14787
14847
|
if (noEmptyArray$1(item.children)) {
|
|
14788
|
-
|
|
14848
|
+
handleColumns(item.children, indexArrInside);
|
|
14789
14849
|
} else {
|
|
14790
14850
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14791
14851
|
item.onHeaderCell = function (column) {
|
|
@@ -14801,7 +14861,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14801
14861
|
handleAntdColumnsSpecialParams(item);
|
|
14802
14862
|
return _objectSpread2({}, item);
|
|
14803
14863
|
});
|
|
14804
|
-
|
|
14864
|
+
handleColumns(showCol, []);
|
|
14805
14865
|
if (dynamicColumns.length) {
|
|
14806
14866
|
showCol = this.handledynamicColumns(showCol);
|
|
14807
14867
|
}
|
|
@@ -14841,7 +14901,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14841
14901
|
cell: this.ResizeableTitle
|
|
14842
14902
|
}
|
|
14843
14903
|
}
|
|
14844
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
14904
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
14845
14905
|
summary: summary
|
|
14846
14906
|
})));
|
|
14847
14907
|
}
|
|
@@ -14901,20 +14961,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14901
14961
|
};
|
|
14902
14962
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14903
14963
|
var routerMap = {};
|
|
14904
|
-
var
|
|
14964
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
14905
14965
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14906
14966
|
data.forEach(function (menuItem) {
|
|
14907
14967
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14908
14968
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14909
14969
|
});
|
|
14910
14970
|
if (newMenuItem.children) {
|
|
14911
|
-
|
|
14971
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
14912
14972
|
}
|
|
14913
14973
|
// Reduce memory usage
|
|
14914
14974
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14915
14975
|
});
|
|
14916
14976
|
};
|
|
14917
|
-
|
|
14977
|
+
flattenMenuData(menuData, {});
|
|
14918
14978
|
return routerMap;
|
|
14919
14979
|
};
|
|
14920
14980
|
// mode类型判断
|
|
@@ -15240,7 +15300,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15240
15300
|
display: 'flex',
|
|
15241
15301
|
gap: '8px'
|
|
15242
15302
|
}
|
|
15243
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15303
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15244
15304
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15245
15305
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15246
15306
|
onClick: function onClick() {
|
|
@@ -15248,7 +15308,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15248
15308
|
},
|
|
15249
15309
|
width: 24,
|
|
15250
15310
|
src: scanning
|
|
15251
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15311
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15252
15312
|
title: "\u5168\u5C4F"
|
|
15253
15313
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15254
15314
|
onClick: function onClick() {
|
|
@@ -15256,7 +15316,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15256
15316
|
},
|
|
15257
15317
|
width: 24,
|
|
15258
15318
|
src: quanping
|
|
15259
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15319
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15260
15320
|
}, function (prevProps, nextProps) {
|
|
15261
15321
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15262
15322
|
return false;
|
|
@@ -15341,7 +15401,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15341
15401
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15342
15402
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15343
15403
|
}, item));
|
|
15344
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15404
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15345
15405
|
}, function (prevProps, nextProps) {
|
|
15346
15406
|
if (prevProps.title !== nextProps.title) {
|
|
15347
15407
|
return false;
|
|
@@ -15981,7 +16041,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15981
16041
|
});
|
|
15982
16042
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15983
16043
|
className: 'sort_table_wrapper'
|
|
15984
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16044
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
15985
16045
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15986
16046
|
wrapClassName: 'sort_table_wrapper',
|
|
15987
16047
|
width: 810,
|
|
@@ -16032,7 +16092,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16032
16092
|
width: 525,
|
|
16033
16093
|
height: 24
|
|
16034
16094
|
}
|
|
16035
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16095
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16036
16096
|
checked: !dataSource.some(function (item) {
|
|
16037
16097
|
if (item.hidden) return true;
|
|
16038
16098
|
return false;
|
|
@@ -16086,13 +16146,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16086
16146
|
_this2.onChange(e, item.title);
|
|
16087
16147
|
}
|
|
16088
16148
|
}, item.title);
|
|
16089
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
16149
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16090
16150
|
style: {
|
|
16091
16151
|
width: '144px'
|
|
16092
16152
|
}
|
|
16093
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
16153
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16094
16154
|
className: 'sort_table_column_all_empty'
|
|
16095
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16155
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16096
16156
|
className: 'sort_table_column_special'
|
|
16097
16157
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16098
16158
|
className: 'sort_table_column_all'
|
|
@@ -16566,7 +16626,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16566
16626
|
});
|
|
16567
16627
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16568
16628
|
className: 'sort_table_wrapper'
|
|
16569
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16629
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16570
16630
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16571
16631
|
wrapClassName: 'sort_table_wrapper',
|
|
16572
16632
|
width: 820,
|
|
@@ -16611,7 +16671,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16611
16671
|
style: {
|
|
16612
16672
|
width: 525
|
|
16613
16673
|
}
|
|
16614
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16674
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16615
16675
|
checked: !dataSource.some(function (item) {
|
|
16616
16676
|
if (item.hidden) return true;
|
|
16617
16677
|
return false;
|
|
@@ -16647,11 +16707,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16647
16707
|
_this2.onChange(e, item.name);
|
|
16648
16708
|
}
|
|
16649
16709
|
}, item.label);
|
|
16650
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
16710
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16651
16711
|
style: {
|
|
16652
16712
|
width: '144px'
|
|
16653
16713
|
}
|
|
16654
|
-
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
16714
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16655
16715
|
className: 'sort_table_column_all_empty'
|
|
16656
16716
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16657
16717
|
className: 'sort_table_content_wrapper'
|
|
@@ -16750,7 +16810,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16750
16810
|
};
|
|
16751
16811
|
setIsResizing(true);
|
|
16752
16812
|
document.addEventListener('mousemove', handleMouseMove);
|
|
16753
|
-
document.addEventListener('mouseup',
|
|
16813
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
16754
16814
|
};
|
|
16755
16815
|
var handleMouseMove = function handleMouseMove(e) {
|
|
16756
16816
|
e.stopPropagation();
|
|
@@ -16766,9 +16826,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16766
16826
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
16767
16827
|
}
|
|
16768
16828
|
};
|
|
16769
|
-
var
|
|
16829
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
16770
16830
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
16771
|
-
document.removeEventListener('mouseup',
|
|
16831
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
16772
16832
|
setIsResizing(false);
|
|
16773
16833
|
};
|
|
16774
16834
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17179,7 +17239,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17179
17239
|
actionsRender = actionsRender.concat([{
|
|
17180
17240
|
type: 'text',
|
|
17181
17241
|
props: {
|
|
17182
|
-
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
17242
|
+
children: ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
17183
17243
|
request: {
|
|
17184
17244
|
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),
|
|
17185
17245
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17425,7 +17485,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17425
17485
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17426
17486
|
bsTableCode: bsTableCode,
|
|
17427
17487
|
onlyModal: true
|
|
17428
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
17488
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
17429
17489
|
ref: exportTableRef,
|
|
17430
17490
|
setShowColumns: setShowExportColumns,
|
|
17431
17491
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17518,11 +17578,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17518
17578
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17519
17579
|
var resultList = [];
|
|
17520
17580
|
var newRouter = cloneDeep__default['default'](router);
|
|
17521
|
-
var
|
|
17581
|
+
var deep = function deep(router) {
|
|
17522
17582
|
if (router && Array.isArray(router)) {
|
|
17523
17583
|
router.forEach(function (item) {
|
|
17524
17584
|
if (item.children && Array.isArray(item.children)) {
|
|
17525
|
-
|
|
17585
|
+
deep(item.children);
|
|
17526
17586
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17527
17587
|
return d === item.code;
|
|
17528
17588
|
})) {
|
|
@@ -17536,10 +17596,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17536
17596
|
resultList.push(_objectSpread2({}, router));
|
|
17537
17597
|
}
|
|
17538
17598
|
};
|
|
17539
|
-
|
|
17599
|
+
deep(newRouter);
|
|
17540
17600
|
callBack([].concat(resultList));
|
|
17541
17601
|
};
|
|
17542
|
-
var
|
|
17602
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17543
17603
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17544
17604
|
var _loop = function _loop(i) {
|
|
17545
17605
|
if (routesData[i].hideInMenu) {
|
|
@@ -17553,7 +17613,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17553
17613
|
return 0; // continue
|
|
17554
17614
|
}
|
|
17555
17615
|
if (routesData[i].children) {
|
|
17556
|
-
|
|
17616
|
+
setMenuTreeData(routesData[i].children);
|
|
17557
17617
|
}
|
|
17558
17618
|
},
|
|
17559
17619
|
_ret;
|
|
@@ -17574,16 +17634,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17574
17634
|
};
|
|
17575
17635
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17576
17636
|
var routerMap = {};
|
|
17577
|
-
var
|
|
17637
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
17578
17638
|
data.forEach(function (menuItem) {
|
|
17579
17639
|
if (menuItem.children) {
|
|
17580
|
-
|
|
17640
|
+
flattenMenuData(menuItem.children);
|
|
17581
17641
|
}
|
|
17582
17642
|
// Reduce memory usage
|
|
17583
17643
|
routerMap[menuItem.path] = menuItem;
|
|
17584
17644
|
});
|
|
17585
17645
|
};
|
|
17586
|
-
|
|
17646
|
+
flattenMenuData(menuData);
|
|
17587
17647
|
return routerMap;
|
|
17588
17648
|
};
|
|
17589
17649
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17729,7 +17789,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17729
17789
|
sethomepageData(homepageDataList);
|
|
17730
17790
|
setroutesData(routesDataList);
|
|
17731
17791
|
}, []);
|
|
17732
|
-
var
|
|
17792
|
+
var renderChildItem = function renderChildItem(child) {
|
|
17733
17793
|
if (!child.hideInMenu && child.children) {
|
|
17734
17794
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
17735
17795
|
style: {
|
|
@@ -17739,7 +17799,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17739
17799
|
}, umi.formatMessage({
|
|
17740
17800
|
id: "".concat(child.locale)
|
|
17741
17801
|
})), child.children.map(function (menuItem) {
|
|
17742
|
-
return
|
|
17802
|
+
return renderChildItem(menuItem);
|
|
17743
17803
|
}));
|
|
17744
17804
|
} else if (!child.hideInMenu && child.path) {
|
|
17745
17805
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -17774,7 +17834,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17774
17834
|
className: 'drawerWarp'
|
|
17775
17835
|
}, homepageData && homepageData.filter(function (d) {
|
|
17776
17836
|
return !d.hideInMenu;
|
|
17777
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
17837
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
17778
17838
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
17779
17839
|
dataSource: homepageData,
|
|
17780
17840
|
renderItem: function renderItem(child) {
|
|
@@ -17809,7 +17869,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17809
17869
|
bordered: true,
|
|
17810
17870
|
dataSource: item.children,
|
|
17811
17871
|
renderItem: function renderItem(child) {
|
|
17812
|
-
return
|
|
17872
|
+
return renderChildItem(child);
|
|
17813
17873
|
}
|
|
17814
17874
|
});
|
|
17815
17875
|
})));
|
|
@@ -17869,7 +17929,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
17869
17929
|
src: allfunc
|
|
17870
17930
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17871
17931
|
className: 'btnSpan2'
|
|
17872
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
17932
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
17873
17933
|
style: {
|
|
17874
17934
|
left: isDrawer ? 140 : 0,
|
|
17875
17935
|
top: 50
|
|
@@ -17915,7 +17975,7 @@ function outLogin(_x) {
|
|
|
17915
17975
|
return _outLogin.apply(this, arguments);
|
|
17916
17976
|
}
|
|
17917
17977
|
function _outLogin() {
|
|
17918
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17978
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17919
17979
|
var res;
|
|
17920
17980
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17921
17981
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18057,7 +18117,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18057
18117
|
});
|
|
18058
18118
|
};
|
|
18059
18119
|
var loginOut = /*#__PURE__*/function () {
|
|
18060
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18120
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18061
18121
|
var sessionId;
|
|
18062
18122
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18063
18123
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18161,7 +18221,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18161
18221
|
marginRight: '0px'
|
|
18162
18222
|
},
|
|
18163
18223
|
src: './xialajiantou-new.svg'
|
|
18164
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18224
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18165
18225
|
};
|
|
18166
18226
|
|
|
18167
18227
|
// -- 查询店铺 --
|
|
@@ -18169,7 +18229,7 @@ function getStoreByName(_x) {
|
|
|
18169
18229
|
return _getStoreByName.apply(this, arguments);
|
|
18170
18230
|
}
|
|
18171
18231
|
function _getStoreByName() {
|
|
18172
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18232
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18173
18233
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18174
18234
|
while (1) switch (_context.prev = _context.next) {
|
|
18175
18235
|
case 0:
|
|
@@ -18237,7 +18297,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18237
18297
|
return _fetchUserList.apply(this, arguments);
|
|
18238
18298
|
}
|
|
18239
18299
|
function _fetchUserList() {
|
|
18240
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18300
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18241
18301
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18242
18302
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18243
18303
|
case 0:
|
|
@@ -18285,7 +18345,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18285
18345
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
18286
18346
|
}, [debounceTimeout, key]);
|
|
18287
18347
|
var changeInput = /*#__PURE__*/function () {
|
|
18288
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18348
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18289
18349
|
var res;
|
|
18290
18350
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18291
18351
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18307,7 +18367,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18307
18367
|
};
|
|
18308
18368
|
}();
|
|
18309
18369
|
React$1.useEffect(function () {
|
|
18310
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18370
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18311
18371
|
var res;
|
|
18312
18372
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18313
18373
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18472,7 +18532,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18472
18532
|
var resultList = [];
|
|
18473
18533
|
var newRouter = _.cloneDeep(router);
|
|
18474
18534
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18475
|
-
var
|
|
18535
|
+
var deep = function deep(router) {
|
|
18476
18536
|
if (router && Array.isArray(router)) {
|
|
18477
18537
|
router.forEach(function (item) {
|
|
18478
18538
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18482,7 +18542,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18482
18542
|
d.nameEdit = true;
|
|
18483
18543
|
}
|
|
18484
18544
|
});
|
|
18485
|
-
|
|
18545
|
+
deep(item.routes);
|
|
18486
18546
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
18487
18547
|
id: "menu.".concat(item.name)
|
|
18488
18548
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18501,7 +18561,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18501
18561
|
}));
|
|
18502
18562
|
}
|
|
18503
18563
|
};
|
|
18504
|
-
|
|
18564
|
+
deep(newRouter);
|
|
18505
18565
|
setroutesData([].concat(resultList));
|
|
18506
18566
|
};
|
|
18507
18567
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18583,7 +18643,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18583
18643
|
},
|
|
18584
18644
|
title: item.fullPathName
|
|
18585
18645
|
}, renderLineStyl(item.fullPathName));
|
|
18586
|
-
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
18646
|
+
}))))), showSelectStore && ( /*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
18587
18647
|
employeeCode: employeeCode
|
|
18588
18648
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
18589
18649
|
};
|
|
@@ -18598,7 +18658,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
18598
18658
|
var TreeNode = antd.Tree.TreeNode;
|
|
18599
18659
|
var Search$2 = antd.Input.Search;
|
|
18600
18660
|
var dataList = [];
|
|
18601
|
-
var
|
|
18661
|
+
var generateList = function generateList(data) {
|
|
18602
18662
|
for (var i = 0; i < data.length; i++) {
|
|
18603
18663
|
var node = data[i];
|
|
18604
18664
|
var path = node.path,
|
|
@@ -18608,11 +18668,11 @@ var _generateList = function generateList(data) {
|
|
|
18608
18668
|
name: name
|
|
18609
18669
|
});
|
|
18610
18670
|
if (node.children) {
|
|
18611
|
-
|
|
18671
|
+
generateList(node.children);
|
|
18612
18672
|
}
|
|
18613
18673
|
}
|
|
18614
18674
|
};
|
|
18615
|
-
var
|
|
18675
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
18616
18676
|
var parentKey;
|
|
18617
18677
|
for (var i = 0; i < tree.length; i++) {
|
|
18618
18678
|
var node = tree[i];
|
|
@@ -18621,8 +18681,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
18621
18681
|
return item.path === path;
|
|
18622
18682
|
})) {
|
|
18623
18683
|
parentKey = node.path;
|
|
18624
|
-
} else if (
|
|
18625
|
-
parentKey =
|
|
18684
|
+
} else if (getParentKey(path, node.children)) {
|
|
18685
|
+
parentKey = getParentKey(path, node.children);
|
|
18626
18686
|
}
|
|
18627
18687
|
}
|
|
18628
18688
|
}
|
|
@@ -18653,7 +18713,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18653
18713
|
var treeData = _this.state.treeData;
|
|
18654
18714
|
var expandedKeys = dataList.map(function (item) {
|
|
18655
18715
|
if (item.name.indexOf(value) > -1) {
|
|
18656
|
-
return
|
|
18716
|
+
return getParentKey(item.path, treeData);
|
|
18657
18717
|
}
|
|
18658
18718
|
return null;
|
|
18659
18719
|
}).filter(function (item, i, self) {
|
|
@@ -18667,22 +18727,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18667
18727
|
};
|
|
18668
18728
|
_this.getPathList = function (originData) {
|
|
18669
18729
|
var pathList = [];
|
|
18670
|
-
var
|
|
18730
|
+
var getList = function getList(data) {
|
|
18671
18731
|
if (Array.isArray(data)) {
|
|
18672
18732
|
data.forEach(function (item) {
|
|
18673
18733
|
pathList.push(item.path);
|
|
18674
18734
|
if (item.children) {
|
|
18675
|
-
|
|
18735
|
+
getList(item.children);
|
|
18676
18736
|
}
|
|
18677
18737
|
});
|
|
18678
18738
|
} else {
|
|
18679
18739
|
pathList.push(data.path);
|
|
18680
18740
|
if (data.children) {
|
|
18681
|
-
|
|
18741
|
+
getList(data.children);
|
|
18682
18742
|
}
|
|
18683
18743
|
}
|
|
18684
18744
|
};
|
|
18685
|
-
|
|
18745
|
+
getList(originData);
|
|
18686
18746
|
return pathList;
|
|
18687
18747
|
};
|
|
18688
18748
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18691,18 +18751,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18691
18751
|
customerMenuData = _this$props.customerMenuData,
|
|
18692
18752
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18693
18753
|
var filterItem;
|
|
18694
|
-
var
|
|
18754
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
18695
18755
|
menuData.forEach(function (item) {
|
|
18696
18756
|
if (item.path === path) {
|
|
18697
18757
|
filterItem = _objectSpread2({}, item);
|
|
18698
18758
|
return;
|
|
18699
18759
|
}
|
|
18700
18760
|
if (item.children) {
|
|
18701
|
-
|
|
18761
|
+
filterMenuItem(item.children);
|
|
18702
18762
|
}
|
|
18703
18763
|
});
|
|
18704
18764
|
};
|
|
18705
|
-
|
|
18765
|
+
filterMenuItem(treeData);
|
|
18706
18766
|
var addPathList = _this.getPathList(filterItem);
|
|
18707
18767
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18708
18768
|
var isRepet = false;
|
|
@@ -18732,8 +18792,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18732
18792
|
return item.path === '/';
|
|
18733
18793
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18734
18794
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18735
|
-
|
|
18736
|
-
|
|
18795
|
+
setMenuTreeData(routesData);
|
|
18796
|
+
generateList(routesData);
|
|
18737
18797
|
this.setState({
|
|
18738
18798
|
treeData: routesData
|
|
18739
18799
|
});
|
|
@@ -18747,16 +18807,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18747
18807
|
expandedKeys = _this$state.expandedKeys,
|
|
18748
18808
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18749
18809
|
treeData = _this$state.treeData;
|
|
18750
|
-
var
|
|
18810
|
+
var loop = function loop(data) {
|
|
18751
18811
|
return data.map(function (item) {
|
|
18752
18812
|
var index = item.name.indexOf(searchValue);
|
|
18753
18813
|
var beforeStr = item.name.substr(0, index);
|
|
18754
18814
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18755
|
-
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18815
|
+
var name = index > -1 ? ( /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18756
18816
|
style: {
|
|
18757
18817
|
color: '#f50'
|
|
18758
18818
|
}
|
|
18759
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
18819
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
18760
18820
|
if (item.children && item.children.length) {
|
|
18761
18821
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
18762
18822
|
path: item.path,
|
|
@@ -18778,7 +18838,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18778
18838
|
width: 18,
|
|
18779
18839
|
src: arrowRight
|
|
18780
18840
|
}))))
|
|
18781
|
-
},
|
|
18841
|
+
}, loop(item.children));
|
|
18782
18842
|
}
|
|
18783
18843
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
18784
18844
|
path: item.path,
|
|
@@ -18828,7 +18888,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18828
18888
|
onExpand: this.onExpand,
|
|
18829
18889
|
expandedKeys: expandedKeys,
|
|
18830
18890
|
autoExpandParent: autoExpandParent
|
|
18831
|
-
},
|
|
18891
|
+
}, loop(treeData))));
|
|
18832
18892
|
}
|
|
18833
18893
|
}]);
|
|
18834
18894
|
}(React__default['default'].Component);
|
|
@@ -18861,24 +18921,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18861
18921
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18862
18922
|
var dragObj;
|
|
18863
18923
|
var finalDropItem;
|
|
18864
|
-
var
|
|
18924
|
+
var loop = function loop(data, path, callback) {
|
|
18865
18925
|
for (var i = 0; i < data.length; i++) {
|
|
18866
18926
|
if (data[i].path === path) {
|
|
18867
18927
|
return callback(data[i], i, data);
|
|
18868
18928
|
}
|
|
18869
18929
|
if (data[i].children) {
|
|
18870
|
-
|
|
18930
|
+
loop(data[i].children, path, callback);
|
|
18871
18931
|
}
|
|
18872
18932
|
}
|
|
18873
18933
|
};
|
|
18874
18934
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18875
|
-
|
|
18935
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
18876
18936
|
arr.splice(index, 1);
|
|
18877
18937
|
dragObj = item;
|
|
18878
18938
|
});
|
|
18879
18939
|
if (!info.dropToGap) {
|
|
18880
18940
|
// Drop on the content
|
|
18881
|
-
|
|
18941
|
+
loop(data, dropKey, function (item) {
|
|
18882
18942
|
item.children = item.children || [];
|
|
18883
18943
|
item.children.unshift(dragObj);
|
|
18884
18944
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18889,7 +18949,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18889
18949
|
// Is expanded
|
|
18890
18950
|
dropPosition === 1 // On the bottom gap
|
|
18891
18951
|
) {
|
|
18892
|
-
|
|
18952
|
+
loop(data, dropKey, function (item) {
|
|
18893
18953
|
item.children = item.children || [];
|
|
18894
18954
|
item.children.unshift(dragObj);
|
|
18895
18955
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18897,7 +18957,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18897
18957
|
} else {
|
|
18898
18958
|
var ar;
|
|
18899
18959
|
var i;
|
|
18900
|
-
|
|
18960
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
18901
18961
|
ar = arr;
|
|
18902
18962
|
i = index;
|
|
18903
18963
|
});
|
|
@@ -18936,17 +18996,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18936
18996
|
title: '编辑名称',
|
|
18937
18997
|
callBack: function callBack(newName) {
|
|
18938
18998
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18939
|
-
var
|
|
18999
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18940
19000
|
oldTreeData.forEach(function (treeItem) {
|
|
18941
19001
|
if (treeItem.path === item.path) {
|
|
18942
19002
|
treeItem.name = newName;
|
|
18943
19003
|
}
|
|
18944
19004
|
if (treeItem.children) {
|
|
18945
|
-
|
|
19005
|
+
editTreeDataName(treeItem.children);
|
|
18946
19006
|
}
|
|
18947
19007
|
});
|
|
18948
19008
|
};
|
|
18949
|
-
|
|
19009
|
+
editTreeDataName(oldTreeData);
|
|
18950
19010
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18951
19011
|
_this.setState({
|
|
18952
19012
|
modalInfo: {
|
|
@@ -18991,7 +19051,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18991
19051
|
title: '新增子目录',
|
|
18992
19052
|
callBack: function callBack(newName) {
|
|
18993
19053
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18994
|
-
var
|
|
19054
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
18995
19055
|
oldTreeData.forEach(function (treeItem) {
|
|
18996
19056
|
if (treeItem.path === item.path) {
|
|
18997
19057
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19003,11 +19063,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19003
19063
|
}];
|
|
19004
19064
|
}
|
|
19005
19065
|
if (treeItem.children) {
|
|
19006
|
-
|
|
19066
|
+
addChildFolder(treeItem.children);
|
|
19007
19067
|
}
|
|
19008
19068
|
});
|
|
19009
19069
|
};
|
|
19010
|
-
|
|
19070
|
+
addChildFolder(oldTreeData);
|
|
19011
19071
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19012
19072
|
_this.setState({
|
|
19013
19073
|
modalInfo: {
|
|
@@ -19066,7 +19126,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19066
19126
|
var _this$state = this.state,
|
|
19067
19127
|
modalInfo = _this$state.modalInfo,
|
|
19068
19128
|
checkedKeys = _this$state.checkedKeys;
|
|
19069
|
-
var
|
|
19129
|
+
var loop = function loop(data) {
|
|
19070
19130
|
return data.map(function (item) {
|
|
19071
19131
|
if (item.children && item.children.length) {
|
|
19072
19132
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -19083,7 +19143,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19083
19143
|
e.stopPropagation();
|
|
19084
19144
|
}
|
|
19085
19145
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
19086
|
-
},
|
|
19146
|
+
}, loop(item.children));
|
|
19087
19147
|
}
|
|
19088
19148
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
19089
19149
|
path: item.path,
|
|
@@ -19162,7 +19222,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19162
19222
|
children: 'children'
|
|
19163
19223
|
},
|
|
19164
19224
|
onDrop: this.onDrop
|
|
19165
|
-
},
|
|
19225
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
19166
19226
|
width: 600,
|
|
19167
19227
|
bodyStyle: {
|
|
19168
19228
|
paddingTop: '32px',
|
|
@@ -19275,7 +19335,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19275
19335
|
pathname: item.path
|
|
19276
19336
|
});
|
|
19277
19337
|
};
|
|
19278
|
-
var
|
|
19338
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
19279
19339
|
return menuData.map(function (item) {
|
|
19280
19340
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19281
19341
|
style: {
|
|
@@ -19290,7 +19350,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19290
19350
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19291
19351
|
paddingLeft: '4px'
|
|
19292
19352
|
}
|
|
19293
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19353
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
19294
19354
|
});
|
|
19295
19355
|
};
|
|
19296
19356
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19316,7 +19376,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19316
19376
|
style: {
|
|
19317
19377
|
paddingLeft: '5px'
|
|
19318
19378
|
}
|
|
19319
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19379
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19320
19380
|
style: {
|
|
19321
19381
|
left: isDrawer ? 140 : 0
|
|
19322
19382
|
},
|
|
@@ -19337,7 +19397,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19337
19397
|
visible: isDrawer
|
|
19338
19398
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
19339
19399
|
className: 'menu_title_line'
|
|
19340
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19400
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
19341
19401
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19342
19402
|
style: {
|
|
19343
19403
|
fontWeight: '600',
|
|
@@ -19411,7 +19471,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19411
19471
|
return item.path === '/';
|
|
19412
19472
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19413
19473
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19414
|
-
|
|
19474
|
+
setMenuTreeData(routesData);
|
|
19415
19475
|
routesData.forEach(function (item) {
|
|
19416
19476
|
if (item.children) {
|
|
19417
19477
|
routesDataList.push(item);
|
|
@@ -19441,7 +19501,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19441
19501
|
setHeight(clientHeight - 190);
|
|
19442
19502
|
setDrawHeight(clientHeight - 70);
|
|
19443
19503
|
};
|
|
19444
|
-
var
|
|
19504
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19445
19505
|
if (!child.hideInMenu && child.children) {
|
|
19446
19506
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
19447
19507
|
style: {
|
|
@@ -19451,7 +19511,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19451
19511
|
}, umi.formatMessage({
|
|
19452
19512
|
id: "".concat(child.locale)
|
|
19453
19513
|
})), child.children.map(function (menuItem) {
|
|
19454
|
-
return
|
|
19514
|
+
return renderChildItem(menuItem);
|
|
19455
19515
|
}));
|
|
19456
19516
|
} else if (!child.hideInMenu && child.path) {
|
|
19457
19517
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -19593,7 +19653,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19593
19653
|
onMenuClick(e, item);
|
|
19594
19654
|
}
|
|
19595
19655
|
}, item.name);
|
|
19596
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
19656
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19597
19657
|
className: 'search_menu_content'
|
|
19598
19658
|
}, SearhData.map(function (item) {
|
|
19599
19659
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19602,7 +19662,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19602
19662
|
},
|
|
19603
19663
|
key: item.path
|
|
19604
19664
|
}, item.name);
|
|
19605
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19665
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19606
19666
|
style: {
|
|
19607
19667
|
height: "".concat(rightMenuHeight, "px"),
|
|
19608
19668
|
overflowY: 'scroll',
|
|
@@ -19614,7 +19674,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19614
19674
|
className: 'drawerWarp_right'
|
|
19615
19675
|
}, homepageData && homepageData.filter(function (d) {
|
|
19616
19676
|
return !d.hideInMenu;
|
|
19617
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
19677
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
19618
19678
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
19619
19679
|
dataSource: homepageData,
|
|
19620
19680
|
renderItem: function renderItem(child) {
|
|
@@ -19655,7 +19715,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19655
19715
|
bordered: true,
|
|
19656
19716
|
dataSource: item.children,
|
|
19657
19717
|
renderItem: function renderItem(child) {
|
|
19658
|
-
return
|
|
19718
|
+
return renderChildItem(child);
|
|
19659
19719
|
}
|
|
19660
19720
|
});
|
|
19661
19721
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19813,10 +19873,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19813
19873
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19814
19874
|
var menuKeys = [];
|
|
19815
19875
|
var docsId = [];
|
|
19816
|
-
var
|
|
19876
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19817
19877
|
data.forEach(function (item) {
|
|
19818
19878
|
if (item.children && item.children.length > 0) {
|
|
19819
|
-
|
|
19879
|
+
getLimitedMenuKeys(item.children);
|
|
19820
19880
|
} else {
|
|
19821
19881
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19822
19882
|
menuKeys.push(originPath);
|
|
@@ -19827,7 +19887,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19827
19887
|
});
|
|
19828
19888
|
};
|
|
19829
19889
|
try {
|
|
19830
|
-
|
|
19890
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
19831
19891
|
} catch (e) {}
|
|
19832
19892
|
return {
|
|
19833
19893
|
menuKeys: menuKeys,
|
|
@@ -20061,10 +20121,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20061
20121
|
return (node.path || '').includes('all-general-documents');
|
|
20062
20122
|
};
|
|
20063
20123
|
// 递归获取树列表
|
|
20064
|
-
var
|
|
20124
|
+
var getTreeList = function getTreeList(data) {
|
|
20065
20125
|
data.forEach(function (node) {
|
|
20066
20126
|
if (node.routes && node.routes.length > 0) {
|
|
20067
|
-
|
|
20127
|
+
getTreeList(node.routes);
|
|
20068
20128
|
return;
|
|
20069
20129
|
}
|
|
20070
20130
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20095,7 +20155,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20095
20155
|
}
|
|
20096
20156
|
});
|
|
20097
20157
|
};
|
|
20098
|
-
|
|
20158
|
+
getTreeList(treeData);
|
|
20099
20159
|
return treeList;
|
|
20100
20160
|
};
|
|
20101
20161
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20724,7 +20784,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20724
20784
|
updateState = _ref8.updateState;
|
|
20725
20785
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20726
20786
|
className: "tab_title_content"
|
|
20727
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
20787
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
20728
20788
|
info: item,
|
|
20729
20789
|
operateFun: _this3.operateFun,
|
|
20730
20790
|
listenRouterState: listenRouterState
|
|
@@ -20860,7 +20920,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20860
20920
|
};
|
|
20861
20921
|
}
|
|
20862
20922
|
var OperationsSlot = {
|
|
20863
|
-
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20923
|
+
left: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20864
20924
|
className: 'tab_left_operate'
|
|
20865
20925
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20866
20926
|
onClick: function onClick() {
|
|
@@ -20876,7 +20936,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20876
20936
|
_this3.setTabNavTransLate(-100);
|
|
20877
20937
|
}
|
|
20878
20938
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
20879
|
-
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20939
|
+
right: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20880
20940
|
style: {
|
|
20881
20941
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20882
20942
|
},
|
|
@@ -20974,7 +21034,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20974
21034
|
onMouseLeave: function onMouseLeave() {
|
|
20975
21035
|
_this3.setShowMenu(false);
|
|
20976
21036
|
}
|
|
20977
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21037
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
20978
21038
|
style: {
|
|
20979
21039
|
position: 'absolute',
|
|
20980
21040
|
top: '14px',
|
|
@@ -20993,7 +21053,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20993
21053
|
postMenuData: function postMenuData(menus) {
|
|
20994
21054
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20995
21055
|
},
|
|
20996
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21056
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
20997
21057
|
ref: this.allFunc,
|
|
20998
21058
|
itemPath: itemPath,
|
|
20999
21059
|
handleClose: this.handleClose,
|
|
@@ -21011,7 +21071,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21011
21071
|
},
|
|
21012
21072
|
menu: {
|
|
21013
21073
|
request: function () {
|
|
21014
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21074
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21015
21075
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21016
21076
|
while (1) switch (_context.prev = _context.next) {
|
|
21017
21077
|
case 0:
|
|
@@ -21146,7 +21206,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21146
21206
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21147
21207
|
timeFormat = _this$props4.timeFormat,
|
|
21148
21208
|
transparentProps = _this$props4.transparentProps;
|
|
21149
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (/*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
21209
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? ( /*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
21150
21210
|
getDictionarySource: getDictionarySource,
|
|
21151
21211
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21152
21212
|
timeFormat: timeFormat
|
|
@@ -21170,12 +21230,12 @@ var index$5 = (function (props) {
|
|
|
21170
21230
|
});
|
|
21171
21231
|
|
|
21172
21232
|
// @ts-nocheck
|
|
21173
|
-
var
|
|
21233
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
21174
21234
|
var result = [];
|
|
21175
21235
|
columns.forEach(function (column) {
|
|
21176
21236
|
if (column.children) {
|
|
21177
21237
|
result.push(column);
|
|
21178
|
-
result.push.apply(result,
|
|
21238
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
21179
21239
|
} else {
|
|
21180
21240
|
result.push(column);
|
|
21181
21241
|
}
|
|
@@ -21184,7 +21244,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
21184
21244
|
};
|
|
21185
21245
|
var convertToRows = function convertToRows(originColumns) {
|
|
21186
21246
|
var maxLevel = 1;
|
|
21187
|
-
var
|
|
21247
|
+
var traverse = function traverse(column, parent) {
|
|
21188
21248
|
if (parent) {
|
|
21189
21249
|
column.level = parent.level + 1;
|
|
21190
21250
|
if (maxLevel < column.level) {
|
|
@@ -21194,7 +21254,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21194
21254
|
if (column.children) {
|
|
21195
21255
|
var colSpan = 0;
|
|
21196
21256
|
column.children.forEach(function (subColumn) {
|
|
21197
|
-
|
|
21257
|
+
traverse(subColumn, column);
|
|
21198
21258
|
colSpan += subColumn.colSpan;
|
|
21199
21259
|
});
|
|
21200
21260
|
column.colSpan = colSpan;
|
|
@@ -21204,13 +21264,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21204
21264
|
};
|
|
21205
21265
|
originColumns.forEach(function (column) {
|
|
21206
21266
|
column.level = 1;
|
|
21207
|
-
|
|
21267
|
+
traverse(column);
|
|
21208
21268
|
});
|
|
21209
21269
|
var rows = [];
|
|
21210
21270
|
for (var i = 0; i < maxLevel; i++) {
|
|
21211
21271
|
rows.push([]);
|
|
21212
21272
|
}
|
|
21213
|
-
var allColumns =
|
|
21273
|
+
var allColumns = getAllColumns(originColumns);
|
|
21214
21274
|
allColumns.forEach(function (column) {
|
|
21215
21275
|
if (!column.children) {
|
|
21216
21276
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21250,7 +21310,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21250
21310
|
};
|
|
21251
21311
|
var headersToRows = function headersToRows(originColumns) {
|
|
21252
21312
|
var maxLevel = 1;
|
|
21253
|
-
var
|
|
21313
|
+
var traverse = function traverse(column, parent) {
|
|
21254
21314
|
if (parent) {
|
|
21255
21315
|
//计算当前元素属于第几个层级
|
|
21256
21316
|
column.level = parent.level + 1;
|
|
@@ -21263,7 +21323,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21263
21323
|
var colSpan = 0;
|
|
21264
21324
|
column.children.forEach(function (subColumn) {
|
|
21265
21325
|
//进行递归
|
|
21266
|
-
|
|
21326
|
+
traverse(subColumn, column);
|
|
21267
21327
|
colSpan += subColumn.colSpan;
|
|
21268
21328
|
});
|
|
21269
21329
|
column.colSpan = colSpan;
|
|
@@ -21273,14 +21333,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21273
21333
|
};
|
|
21274
21334
|
originColumns.forEach(function (column) {
|
|
21275
21335
|
column.level = 1;
|
|
21276
|
-
|
|
21336
|
+
traverse(column);
|
|
21277
21337
|
});
|
|
21278
21338
|
var rows = [];
|
|
21279
21339
|
var lastData = [];
|
|
21280
21340
|
for (var i = 0; i < maxLevel; i++) {
|
|
21281
21341
|
rows.push([]);
|
|
21282
21342
|
}
|
|
21283
|
-
var allColumns =
|
|
21343
|
+
var allColumns = getAllColumns(originColumns);
|
|
21284
21344
|
allColumns.forEach(function (column) {
|
|
21285
21345
|
if (!column.children) {
|
|
21286
21346
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27297,7 +27357,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27297
27357
|
}
|
|
27298
27358
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27299
27359
|
};
|
|
27300
|
-
var
|
|
27360
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
27301
27361
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27302
27362
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27303
27363
|
var children = hightLightData.children,
|
|
@@ -27308,7 +27368,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27308
27368
|
lineEnd = _loc2[2];
|
|
27309
27369
|
if (children) {
|
|
27310
27370
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27311
|
-
return
|
|
27371
|
+
return hasHighLightChildren(v, highLightLine);
|
|
27312
27372
|
});
|
|
27313
27373
|
}
|
|
27314
27374
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27320,7 +27380,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27320
27380
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27321
27381
|
data.forEach(function (node) {
|
|
27322
27382
|
if (!node) return;
|
|
27323
|
-
node.toggled =
|
|
27383
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
27324
27384
|
node.active = isHightLight(node, highLightLine);
|
|
27325
27385
|
if (node.children) {
|
|
27326
27386
|
if (node.active) {
|
|
@@ -28751,7 +28811,7 @@ var valueType = {
|
|
|
28751
28811
|
};
|
|
28752
28812
|
|
|
28753
28813
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28754
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28814
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28755
28815
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28756
28816
|
while (1) switch (_context.prev = _context.next) {
|
|
28757
28817
|
case 0:
|
|
@@ -28819,7 +28879,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28819
28879
|
value: false
|
|
28820
28880
|
}];
|
|
28821
28881
|
var ref = React$1.useRef();
|
|
28822
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28882
|
+
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28823
28883
|
var _ref$current, source;
|
|
28824
28884
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28825
28885
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28933,7 +28993,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28933
28993
|
source: {
|
|
28934
28994
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28935
28995
|
type: function () {
|
|
28936
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28996
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28937
28997
|
var form, values, name, relates, source;
|
|
28938
28998
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28939
28999
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29413,7 +29473,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29413
29473
|
source: {
|
|
29414
29474
|
relates: ['choiceType', 'inputType'],
|
|
29415
29475
|
type: function () {
|
|
29416
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29476
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29417
29477
|
var values, name, form, source;
|
|
29418
29478
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29419
29479
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29635,7 +29695,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29635
29695
|
width: 900,
|
|
29636
29696
|
maskClosable: false,
|
|
29637
29697
|
onOk: function () {
|
|
29638
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29698
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29639
29699
|
var _ref$current4, _res$editableStatus;
|
|
29640
29700
|
var res, _res$defaultValue;
|
|
29641
29701
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29707,7 +29767,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29707
29767
|
}()
|
|
29708
29768
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29709
29769
|
ref: ref
|
|
29710
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29770
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29711
29771
|
};
|
|
29712
29772
|
|
|
29713
29773
|
// @ts-nocheck
|
|
@@ -30321,7 +30381,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30321
30381
|
return setVisible(false);
|
|
30322
30382
|
},
|
|
30323
30383
|
className: 'customFieldsDrawer'
|
|
30324
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30384
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30325
30385
|
style: {
|
|
30326
30386
|
display: 'flex'
|
|
30327
30387
|
}
|
|
@@ -30330,13 +30390,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30330
30390
|
flex: 1,
|
|
30331
30391
|
width: 500
|
|
30332
30392
|
}
|
|
30333
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30393
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30334
30394
|
style: {
|
|
30335
30395
|
padding: "10px 0",
|
|
30336
30396
|
fontSize: "16px",
|
|
30337
30397
|
fontWeight: "bolder"
|
|
30338
30398
|
}
|
|
30339
|
-
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30399
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30340
30400
|
style: {
|
|
30341
30401
|
flex: 1
|
|
30342
30402
|
}
|
|
@@ -30345,7 +30405,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30345
30405
|
onRun: onClickRun,
|
|
30346
30406
|
value: jsonEditorVal,
|
|
30347
30407
|
shallowHeight: height
|
|
30348
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
30408
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
30349
30409
|
defaultActiveKey: activeKey,
|
|
30350
30410
|
onChange: function onChange(v) {
|
|
30351
30411
|
return setActiveKey(v);
|
|
@@ -30362,13 +30422,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30362
30422
|
flex: 1,
|
|
30363
30423
|
width: 500
|
|
30364
30424
|
}
|
|
30365
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30425
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30366
30426
|
style: {
|
|
30367
30427
|
padding: "10px 0",
|
|
30368
30428
|
fontSize: "16px",
|
|
30369
30429
|
fontWeight: "bolder"
|
|
30370
30430
|
}
|
|
30371
|
-
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30431
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30372
30432
|
style: {
|
|
30373
30433
|
flex: 1
|
|
30374
30434
|
}
|
|
@@ -30390,13 +30450,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30390
30450
|
flex: 1,
|
|
30391
30451
|
width: 500
|
|
30392
30452
|
}
|
|
30393
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30453
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30394
30454
|
style: {
|
|
30395
30455
|
padding: "10px 0",
|
|
30396
30456
|
fontSize: "16px",
|
|
30397
30457
|
fontWeight: "bolder"
|
|
30398
30458
|
}
|
|
30399
|
-
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30459
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30400
30460
|
style: {
|
|
30401
30461
|
flex: 1
|
|
30402
30462
|
}
|
|
@@ -30542,7 +30602,7 @@ function getMetaData(_x) {
|
|
|
30542
30602
|
|
|
30543
30603
|
// 获取数据
|
|
30544
30604
|
function _getMetaData() {
|
|
30545
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30605
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30546
30606
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30547
30607
|
while (1) switch (_context.prev = _context.next) {
|
|
30548
30608
|
case 0:
|
|
@@ -30764,7 +30824,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
30764
30824
|
tableState = _useState4[0],
|
|
30765
30825
|
setTableState = _useState4[1];
|
|
30766
30826
|
var handleOpen = /*#__PURE__*/function () {
|
|
30767
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30827
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30768
30828
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30769
30829
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30770
30830
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31083,7 +31143,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31083
31143
|
destroyOnClose: true
|
|
31084
31144
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
31085
31145
|
ref: queryTableRef
|
|
31086
|
-
}, 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__default['default'].createElement(antd.Row, {
|
|
31146
|
+
}, 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__default['default'].createElement(antd.Row, {
|
|
31087
31147
|
justify: "center",
|
|
31088
31148
|
style: {
|
|
31089
31149
|
marginBottom: 30,
|
|
@@ -31199,7 +31259,7 @@ var CustomSelector = (function (props) {
|
|
|
31199
31259
|
var _props$ctx7;
|
|
31200
31260
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31201
31261
|
}
|
|
31202
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31262
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31203
31263
|
type: "primary",
|
|
31204
31264
|
style: {
|
|
31205
31265
|
width: '30px',
|
|
@@ -31285,7 +31345,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31285
31345
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31286
31346
|
handSource = _useState2[0],
|
|
31287
31347
|
setHandSource = _useState2[1];
|
|
31288
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31348
|
+
React$1.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31289
31349
|
var resData, data;
|
|
31290
31350
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31291
31351
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31437,7 +31497,7 @@ function getRegularThresholdRange(_x) {
|
|
|
31437
31497
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31438
31498
|
}
|
|
31439
31499
|
function _getRegularThresholdRange() {
|
|
31440
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31500
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31441
31501
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31442
31502
|
while (1) switch (_context.prev = _context.next) {
|
|
31443
31503
|
case 0:
|
|
@@ -31591,7 +31651,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31591
31651
|
};
|
|
31592
31652
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31593
31653
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31594
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31654
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31595
31655
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31596
31656
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31597
31657
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32536,7 +32596,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32536
32596
|
isAll: true,
|
|
32537
32597
|
needNameAndCode: true,
|
|
32538
32598
|
notChangeOnSelect: true,
|
|
32539
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32599
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32540
32600
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32541
32601
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32542
32602
|
case 0:
|
|
@@ -32585,7 +32645,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32585
32645
|
isAll: true,
|
|
32586
32646
|
needNameAndCode: true,
|
|
32587
32647
|
notChangeOnSelect: true,
|
|
32588
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32648
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32589
32649
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32590
32650
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32591
32651
|
case 0:
|
|
@@ -32636,7 +32696,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32636
32696
|
isAll: true,
|
|
32637
32697
|
needNameAndCode: true,
|
|
32638
32698
|
notChangeOnSelect: true,
|
|
32639
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32699
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32640
32700
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32641
32701
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32642
32702
|
case 0:
|
|
@@ -34600,7 +34660,7 @@ var App$1 = function App(_ref) {
|
|
|
34600
34660
|
borderRadius: '5px',
|
|
34601
34661
|
cursor: 'pointer'
|
|
34602
34662
|
}
|
|
34603
|
-
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34663
|
+
}, isStaticNumber ? ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34604
34664
|
autoFocus: true,
|
|
34605
34665
|
onClick: function onClick(e) {
|
|
34606
34666
|
return e.stopPropagation();
|
|
@@ -34887,7 +34947,7 @@ function RenderCompItem(props) {
|
|
|
34887
34947
|
dictData = _useState2[0],
|
|
34888
34948
|
setDictData = _useState2[1];
|
|
34889
34949
|
var getDictData = /*#__PURE__*/function () {
|
|
34890
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34950
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34891
34951
|
var _data$map;
|
|
34892
34952
|
var data;
|
|
34893
34953
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34929,7 +34989,7 @@ function RenderCompItem(props) {
|
|
|
34929
34989
|
var style2 = {
|
|
34930
34990
|
width: '100px'
|
|
34931
34991
|
};
|
|
34932
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34992
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
34933
34993
|
disabled: disabled,
|
|
34934
34994
|
allowClear: true,
|
|
34935
34995
|
onClear: function onClear() {
|
|
@@ -34940,7 +35000,7 @@ function RenderCompItem(props) {
|
|
|
34940
35000
|
onBlur: function onBlur(e) {
|
|
34941
35001
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34942
35002
|
}
|
|
34943
|
-
})) || 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__default['default'].createElement(antd.InputNumber, {
|
|
35003
|
+
})) || 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__default['default'].createElement(antd.InputNumber, {
|
|
34944
35004
|
disabled: disabled,
|
|
34945
35005
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34946
35006
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34953,7 +35013,7 @@ function RenderCompItem(props) {
|
|
|
34953
35013
|
onChange: function onChange(value) {
|
|
34954
35014
|
handleEdit(ites.code, value);
|
|
34955
35015
|
}
|
|
34956
|
-
})) || 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__default['default'].createElement(antd.DatePicker, {
|
|
35016
|
+
})) || 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__default['default'].createElement(antd.DatePicker, {
|
|
34957
35017
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34958
35018
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34959
35019
|
disabled: disabled,
|
|
@@ -34963,7 +35023,7 @@ function RenderCompItem(props) {
|
|
|
34963
35023
|
onChange: function onChange(value, dateString) {
|
|
34964
35024
|
handleEdit(ites.code, dateString);
|
|
34965
35025
|
}
|
|
34966
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
35026
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
34967
35027
|
showTime: true,
|
|
34968
35028
|
disabled: disabled,
|
|
34969
35029
|
defaultValue: ites.defaultValue,
|
|
@@ -34972,7 +35032,7 @@ function RenderCompItem(props) {
|
|
|
34972
35032
|
onChange: function onChange(value, timeString) {
|
|
34973
35033
|
handleEdit(ites.code, timeString);
|
|
34974
35034
|
}
|
|
34975
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
35035
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
34976
35036
|
disabled: disabled,
|
|
34977
35037
|
defaultChecked: !!ites.defaultValue,
|
|
34978
35038
|
style: style2,
|
|
@@ -34980,7 +35040,7 @@ function RenderCompItem(props) {
|
|
|
34980
35040
|
onChange: function onChange(value) {
|
|
34981
35041
|
handleEdit(ites.code, value);
|
|
34982
35042
|
}
|
|
34983
|
-
})) || 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__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
35043
|
+
})) || 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__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
34984
35044
|
disabled: disabled,
|
|
34985
35045
|
allowClear: true,
|
|
34986
35046
|
showArrow: true
|
|
@@ -34998,7 +35058,7 @@ function RenderCompItem(props) {
|
|
|
34998
35058
|
key: it,
|
|
34999
35059
|
value: it
|
|
35000
35060
|
}, ites.enumeration[it]);
|
|
35001
|
-
}))) || 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__default['default'].createElement(InnerSelect, {
|
|
35061
|
+
}))) || 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__default['default'].createElement(InnerSelect, {
|
|
35002
35062
|
disabled: disabled,
|
|
35003
35063
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35004
35064
|
defaultValue: ites.defaultValue,
|
|
@@ -35008,7 +35068,7 @@ function RenderCompItem(props) {
|
|
|
35008
35068
|
handleEdit(ites.code, value);
|
|
35009
35069
|
},
|
|
35010
35070
|
dictionaryCode: ites.dictionaryCode
|
|
35011
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35071
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35012
35072
|
selectBusinessType: "physicalWarehouse",
|
|
35013
35073
|
selectProps: _objectSpread2({
|
|
35014
35074
|
style: styleCommon,
|
|
@@ -35030,7 +35090,7 @@ function RenderCompItem(props) {
|
|
|
35030
35090
|
getPopupContainer: function getPopupContainer() {
|
|
35031
35091
|
return document.body;
|
|
35032
35092
|
}
|
|
35033
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35093
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35034
35094
|
selectBusinessType: "realWarehouse",
|
|
35035
35095
|
selectProps: _objectSpread2({
|
|
35036
35096
|
style: styleCommon,
|
|
@@ -35052,7 +35112,7 @@ function RenderCompItem(props) {
|
|
|
35052
35112
|
getPopupContainer: function getPopupContainer() {
|
|
35053
35113
|
return document.body;
|
|
35054
35114
|
}
|
|
35055
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35115
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35056
35116
|
selectBusinessType: "virtualWarehouse",
|
|
35057
35117
|
selectProps: _objectSpread2({
|
|
35058
35118
|
style: styleCommon,
|
|
@@ -35074,7 +35134,7 @@ function RenderCompItem(props) {
|
|
|
35074
35134
|
getPopupContainer: function getPopupContainer() {
|
|
35075
35135
|
return document.body;
|
|
35076
35136
|
}
|
|
35077
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35137
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35078
35138
|
selectBusinessType: "channelWarehouse",
|
|
35079
35139
|
selectProps: _objectSpread2({
|
|
35080
35140
|
style: styleCommon,
|
|
@@ -35096,7 +35156,7 @@ function RenderCompItem(props) {
|
|
|
35096
35156
|
getPopupContainer: function getPopupContainer() {
|
|
35097
35157
|
return document.body;
|
|
35098
35158
|
}
|
|
35099
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35159
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35100
35160
|
selectBusinessType: "spuCommodity",
|
|
35101
35161
|
selectProps: _objectSpread2({
|
|
35102
35162
|
style: styleCommon,
|
|
@@ -35117,7 +35177,7 @@ function RenderCompItem(props) {
|
|
|
35117
35177
|
getPopupContainer: function getPopupContainer() {
|
|
35118
35178
|
return document.body;
|
|
35119
35179
|
}
|
|
35120
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35180
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35121
35181
|
selectBusinessType: "skuCommodity",
|
|
35122
35182
|
selectProps: _objectSpread2({
|
|
35123
35183
|
style: styleCommon,
|
|
@@ -35138,13 +35198,13 @@ function RenderCompItem(props) {
|
|
|
35138
35198
|
getPopupContainer: function getPopupContainer() {
|
|
35139
35199
|
return document.body;
|
|
35140
35200
|
}
|
|
35141
|
-
})) || 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__default['default'].createElement(BsCascader, {
|
|
35201
|
+
})) || 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__default['default'].createElement(BsCascader, {
|
|
35142
35202
|
disabled: disabled,
|
|
35143
35203
|
isAll: true,
|
|
35144
35204
|
needNameAndCode: true,
|
|
35145
35205
|
notChangeOnSelect: true,
|
|
35146
35206
|
initRequestSource: function () {
|
|
35147
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35207
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35148
35208
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35149
35209
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35150
35210
|
case 0:
|
|
@@ -35186,7 +35246,7 @@ function RenderCompItem(props) {
|
|
|
35186
35246
|
getPopupContainer: function getPopupContainer() {
|
|
35187
35247
|
return document.body;
|
|
35188
35248
|
}
|
|
35189
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35249
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35190
35250
|
disabled: disabled,
|
|
35191
35251
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35192
35252
|
businessType: "department",
|
|
@@ -35199,7 +35259,7 @@ function RenderCompItem(props) {
|
|
|
35199
35259
|
getPopupContainer: function getPopupContainer() {
|
|
35200
35260
|
return document.body;
|
|
35201
35261
|
}
|
|
35202
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35262
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35203
35263
|
disabled: disabled,
|
|
35204
35264
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35205
35265
|
businessType: "purchase-organization",
|
|
@@ -35212,7 +35272,7 @@ function RenderCompItem(props) {
|
|
|
35212
35272
|
getPopupContainer: function getPopupContainer() {
|
|
35213
35273
|
return document.body;
|
|
35214
35274
|
}
|
|
35215
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35275
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35216
35276
|
disabled: disabled,
|
|
35217
35277
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35218
35278
|
businessType: "sales-organization",
|
|
@@ -35225,7 +35285,7 @@ function RenderCompItem(props) {
|
|
|
35225
35285
|
getPopupContainer: function getPopupContainer() {
|
|
35226
35286
|
return document.body;
|
|
35227
35287
|
}
|
|
35228
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35288
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35229
35289
|
selectBusinessType: "supplier2",
|
|
35230
35290
|
selectProps: _objectSpread2({
|
|
35231
35291
|
style: styleCommon,
|
|
@@ -35246,7 +35306,7 @@ function RenderCompItem(props) {
|
|
|
35246
35306
|
getPopupContainer: function getPopupContainer() {
|
|
35247
35307
|
return document.body;
|
|
35248
35308
|
}
|
|
35249
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35309
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35250
35310
|
selectBusinessType: "customer2",
|
|
35251
35311
|
selectProps: _objectSpread2({
|
|
35252
35312
|
style: styleCommon,
|
|
@@ -35267,7 +35327,7 @@ function RenderCompItem(props) {
|
|
|
35267
35327
|
getPopupContainer: function getPopupContainer() {
|
|
35268
35328
|
return document.body;
|
|
35269
35329
|
}
|
|
35270
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35330
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35271
35331
|
selectBusinessType: "shopFile2",
|
|
35272
35332
|
selectProps: _objectSpread2({
|
|
35273
35333
|
style: styleCommon,
|
|
@@ -35288,7 +35348,7 @@ function RenderCompItem(props) {
|
|
|
35288
35348
|
getPopupContainer: function getPopupContainer() {
|
|
35289
35349
|
return document.body;
|
|
35290
35350
|
}
|
|
35291
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35351
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35292
35352
|
selectBusinessType: "employee2",
|
|
35293
35353
|
selectProps: _objectSpread2({
|
|
35294
35354
|
style: styleCommon,
|
|
@@ -35309,7 +35369,7 @@ function RenderCompItem(props) {
|
|
|
35309
35369
|
getPopupContainer: function getPopupContainer() {
|
|
35310
35370
|
return document.body;
|
|
35311
35371
|
}
|
|
35312
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35372
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35313
35373
|
disabled: disabled,
|
|
35314
35374
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35315
35375
|
businessType: "stock-organization",
|
|
@@ -35322,7 +35382,7 @@ function RenderCompItem(props) {
|
|
|
35322
35382
|
getPopupContainer: function getPopupContainer() {
|
|
35323
35383
|
return document.body;
|
|
35324
35384
|
}
|
|
35325
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35385
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35326
35386
|
disabled: disabled,
|
|
35327
35387
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35328
35388
|
businessType: "settle-organization",
|
|
@@ -35335,7 +35395,7 @@ function RenderCompItem(props) {
|
|
|
35335
35395
|
getPopupContainer: function getPopupContainer() {
|
|
35336
35396
|
return document.body;
|
|
35337
35397
|
}
|
|
35338
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35398
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35339
35399
|
selectBusinessType: "deliveryMode",
|
|
35340
35400
|
selectProps: _objectSpread2({
|
|
35341
35401
|
style: styleCommon,
|
|
@@ -35356,7 +35416,7 @@ function RenderCompItem(props) {
|
|
|
35356
35416
|
getPopupContainer: function getPopupContainer() {
|
|
35357
35417
|
return document.body;
|
|
35358
35418
|
}
|
|
35359
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35419
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35360
35420
|
selectBusinessType: "role",
|
|
35361
35421
|
selectProps: _objectSpread2({
|
|
35362
35422
|
style: styleCommon,
|
|
@@ -35377,7 +35437,7 @@ function RenderCompItem(props) {
|
|
|
35377
35437
|
getPopupContainer: function getPopupContainer() {
|
|
35378
35438
|
return document.body;
|
|
35379
35439
|
}
|
|
35380
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35440
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35381
35441
|
selectBusinessType: "brand",
|
|
35382
35442
|
selectProps: _objectSpread2({
|
|
35383
35443
|
style: styleCommon,
|
|
@@ -35398,7 +35458,7 @@ function RenderCompItem(props) {
|
|
|
35398
35458
|
getPopupContainer: function getPopupContainer() {
|
|
35399
35459
|
return document.body;
|
|
35400
35460
|
}
|
|
35401
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35461
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35402
35462
|
disabled: disabled,
|
|
35403
35463
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35404
35464
|
businessType: "background-category",
|
|
@@ -35411,7 +35471,7 @@ function RenderCompItem(props) {
|
|
|
35411
35471
|
getPopupContainer: function getPopupContainer() {
|
|
35412
35472
|
return document.body;
|
|
35413
35473
|
}
|
|
35414
|
-
})) || 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__default['default'].createElement(CustomSelector, {
|
|
35474
|
+
})) || 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__default['default'].createElement(CustomSelector, {
|
|
35415
35475
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35416
35476
|
style: styleCommon,
|
|
35417
35477
|
placeholder: '请选择'
|
|
@@ -35434,7 +35494,7 @@ function RenderCompItem(props) {
|
|
|
35434
35494
|
onChange: function onChange(value) {
|
|
35435
35495
|
handleEdit(ites.code, value);
|
|
35436
35496
|
}
|
|
35437
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
35497
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
35438
35498
|
style: {
|
|
35439
35499
|
display: 'flex'
|
|
35440
35500
|
}
|
|
@@ -35946,7 +36006,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35946
36006
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35947
36007
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35948
36008
|
}
|
|
35949
|
-
var parallelTreeData =
|
|
36009
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
35950
36010
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35951
36011
|
var _i$key;
|
|
35952
36012
|
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);
|
|
@@ -36873,13 +36933,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36873
36933
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36874
36934
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36875
36935
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36876
|
-
var list =
|
|
36936
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36877
36937
|
var requiredList = list.filter(function (c) {
|
|
36878
36938
|
return c.required == 1;
|
|
36879
36939
|
}) || []; // 获取对象属性为true的集合
|
|
36880
36940
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36881
36941
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36882
|
-
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) ?
|
|
36942
|
+
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];
|
|
36883
36943
|
(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) {
|
|
36884
36944
|
if (requiredList.some(function (r) {
|
|
36885
36945
|
return r.id === e.elementId;
|
|
@@ -37468,7 +37528,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
37468
37528
|
style: {
|
|
37469
37529
|
float: 'right'
|
|
37470
37530
|
}
|
|
37471
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (/*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37531
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? ( /*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37472
37532
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37473
37533
|
ruleGroupInfo: {
|
|
37474
37534
|
ruleGroupList: ruleGroupList,
|
|
@@ -37486,7 +37546,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
37486
37546
|
callBack: function callBack(newData) {
|
|
37487
37547
|
upDateData(newData);
|
|
37488
37548
|
}
|
|
37489
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
37549
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
37490
37550
|
style: {
|
|
37491
37551
|
padding: 20
|
|
37492
37552
|
}
|
|
@@ -37901,11 +37961,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
37901
37961
|
exports.authFunc = authFunc;
|
|
37902
37962
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
37903
37963
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
37904
|
-
exports.coverToParallel =
|
|
37964
|
+
exports.coverToParallel = coverToParallel;
|
|
37905
37965
|
exports.createUniqID = createUniqID;
|
|
37906
37966
|
exports.downloadExcel = downloadExcel;
|
|
37907
37967
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
37908
|
-
exports.formatter =
|
|
37968
|
+
exports.formatter = formatter;
|
|
37909
37969
|
exports.getAccountID = getAccountID;
|
|
37910
37970
|
exports.getAccountId = getAccountId;
|
|
37911
37971
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|