@bit-sun/business-component 4.0.5 → 4.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +640 -528
- package/dist/index.js +641 -529
- package/package.json +1 -1
- package/src/components/Solution/RuleComponent/RenderCompItem.tsx +5 -3
- package/src/components/Solution/RuleComponent/index.js +65 -5
- package/src/components/Solution/RuleSetter/baseRule.tsx +19 -1
- package/src/components/Solution/RuleSetter/function.ts +2 -0
- package/src/components/Solution/RuleSetter/index.tsx +2 -0
package/dist/index.esm.js
CHANGED
|
@@ -31,88 +31,9 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
31
31
|
import { visit } from 'ast-types';
|
|
32
32
|
import isArray$1 from 'lodash/isArray';
|
|
33
33
|
|
|
34
|
-
function _arrayLikeToArray(r, a) {
|
|
35
|
-
(null == a || a > r.length) && (a = r.length);
|
|
36
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
37
|
-
return n;
|
|
38
|
-
}
|
|
39
|
-
function _arrayWithHoles(r) {
|
|
40
|
-
if (Array.isArray(r)) return r;
|
|
41
|
-
}
|
|
42
|
-
function _arrayWithoutHoles(r) {
|
|
43
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
44
|
-
}
|
|
45
|
-
function _assertThisInitialized(e) {
|
|
46
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
47
|
-
return e;
|
|
48
|
-
}
|
|
49
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
50
|
-
try {
|
|
51
|
-
var i = n[a](c),
|
|
52
|
-
u = i.value;
|
|
53
|
-
} catch (n) {
|
|
54
|
-
return void e(n);
|
|
55
|
-
}
|
|
56
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
57
|
-
}
|
|
58
|
-
function _asyncToGenerator(n) {
|
|
59
|
-
return function () {
|
|
60
|
-
var t = this,
|
|
61
|
-
e = arguments;
|
|
62
|
-
return new Promise(function (r, o) {
|
|
63
|
-
var a = n.apply(t, e);
|
|
64
|
-
function _next(n) {
|
|
65
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
66
|
-
}
|
|
67
|
-
function _throw(n) {
|
|
68
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
69
|
-
}
|
|
70
|
-
_next(void 0);
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
34
|
function _callSuper(t, o, e) {
|
|
75
35
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
76
36
|
}
|
|
77
|
-
function _classCallCheck(a, n) {
|
|
78
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
79
|
-
}
|
|
80
|
-
function _defineProperties(e, r) {
|
|
81
|
-
for (var t = 0; t < r.length; t++) {
|
|
82
|
-
var o = r[t];
|
|
83
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function _createClass(e, r, t) {
|
|
87
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
88
|
-
writable: !1
|
|
89
|
-
}), e;
|
|
90
|
-
}
|
|
91
|
-
function _defineProperty(e, r, t) {
|
|
92
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
93
|
-
value: t,
|
|
94
|
-
enumerable: !0,
|
|
95
|
-
configurable: !0,
|
|
96
|
-
writable: !0
|
|
97
|
-
}) : e[r] = t, e;
|
|
98
|
-
}
|
|
99
|
-
function _getPrototypeOf(t) {
|
|
100
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
101
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
102
|
-
}, _getPrototypeOf(t);
|
|
103
|
-
}
|
|
104
|
-
function _inherits(t, e) {
|
|
105
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
106
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
107
|
-
constructor: {
|
|
108
|
-
value: t,
|
|
109
|
-
writable: !0,
|
|
110
|
-
configurable: !0
|
|
111
|
-
}
|
|
112
|
-
}), Object.defineProperty(t, "prototype", {
|
|
113
|
-
writable: !1
|
|
114
|
-
}), e && _setPrototypeOf(t, e);
|
|
115
|
-
}
|
|
116
37
|
function _isNativeReflectConstruct() {
|
|
117
38
|
try {
|
|
118
39
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -121,9 +42,6 @@ function _isNativeReflectConstruct() {
|
|
|
121
42
|
return !!t;
|
|
122
43
|
})();
|
|
123
44
|
}
|
|
124
|
-
function _iterableToArray(r) {
|
|
125
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
126
|
-
}
|
|
127
45
|
function _iterableToArrayLimit(r, l) {
|
|
128
46
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
129
47
|
if (null != t) {
|
|
@@ -151,15 +69,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
151
69
|
return a;
|
|
152
70
|
}
|
|
153
71
|
}
|
|
154
|
-
function _nonIterableRest() {
|
|
155
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
|
-
}
|
|
157
|
-
function _nonIterableSpread() {
|
|
158
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
159
|
-
}
|
|
160
|
-
function _objectDestructuringEmpty(t) {
|
|
161
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
162
|
-
}
|
|
163
72
|
function ownKeys(e, r) {
|
|
164
73
|
var t = Object.keys(e);
|
|
165
74
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -181,31 +90,6 @@ function _objectSpread2(e) {
|
|
|
181
90
|
}
|
|
182
91
|
return e;
|
|
183
92
|
}
|
|
184
|
-
function _objectWithoutProperties(e, t) {
|
|
185
|
-
if (null == e) return {};
|
|
186
|
-
var o,
|
|
187
|
-
r,
|
|
188
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
189
|
-
if (Object.getOwnPropertySymbols) {
|
|
190
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
191
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
192
|
-
}
|
|
193
|
-
return i;
|
|
194
|
-
}
|
|
195
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
196
|
-
if (null == r) return {};
|
|
197
|
-
var t = {};
|
|
198
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
199
|
-
if (e.includes(n)) continue;
|
|
200
|
-
t[n] = r[n];
|
|
201
|
-
}
|
|
202
|
-
return t;
|
|
203
|
-
}
|
|
204
|
-
function _possibleConstructorReturn(t, e) {
|
|
205
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
206
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
207
|
-
return _assertThisInitialized(t);
|
|
208
|
-
}
|
|
209
93
|
function _regeneratorRuntime() {
|
|
210
94
|
_regeneratorRuntime = function () {
|
|
211
95
|
return e;
|
|
@@ -507,20 +391,6 @@ function _regeneratorRuntime() {
|
|
|
507
391
|
}
|
|
508
392
|
}, e;
|
|
509
393
|
}
|
|
510
|
-
function _setPrototypeOf(t, e) {
|
|
511
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
512
|
-
return t.__proto__ = e, t;
|
|
513
|
-
}, _setPrototypeOf(t, e);
|
|
514
|
-
}
|
|
515
|
-
function _slicedToArray(r, e) {
|
|
516
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
517
|
-
}
|
|
518
|
-
function _toArray(r) {
|
|
519
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
520
|
-
}
|
|
521
|
-
function _toConsumableArray(r) {
|
|
522
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
523
|
-
}
|
|
524
394
|
function _toPrimitive(t, r) {
|
|
525
395
|
if ("object" != typeof t || !t) return t;
|
|
526
396
|
var e = t[Symbol.toPrimitive];
|
|
@@ -544,12 +414,180 @@ function _typeof(o) {
|
|
|
544
414
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
545
415
|
}, _typeof(o);
|
|
546
416
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
var
|
|
551
|
-
|
|
417
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
418
|
+
try {
|
|
419
|
+
var info = gen[key](arg);
|
|
420
|
+
var value = info.value;
|
|
421
|
+
} catch (error) {
|
|
422
|
+
reject(error);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
if (info.done) {
|
|
426
|
+
resolve(value);
|
|
427
|
+
} else {
|
|
428
|
+
Promise.resolve(value).then(_next, _throw);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function _asyncToGenerator(fn) {
|
|
432
|
+
return function () {
|
|
433
|
+
var self = this,
|
|
434
|
+
args = arguments;
|
|
435
|
+
return new Promise(function (resolve, reject) {
|
|
436
|
+
var gen = fn.apply(self, args);
|
|
437
|
+
function _next(value) {
|
|
438
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
439
|
+
}
|
|
440
|
+
function _throw(err) {
|
|
441
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
442
|
+
}
|
|
443
|
+
_next(undefined);
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function _classCallCheck(instance, Constructor) {
|
|
448
|
+
if (!(instance instanceof Constructor)) {
|
|
449
|
+
throw new TypeError("Cannot call a class as a function");
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function _defineProperties(target, props) {
|
|
453
|
+
for (var i = 0; i < props.length; i++) {
|
|
454
|
+
var descriptor = props[i];
|
|
455
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
456
|
+
descriptor.configurable = true;
|
|
457
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
458
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
+
writable: false
|
|
466
|
+
});
|
|
467
|
+
return Constructor;
|
|
468
|
+
}
|
|
469
|
+
function _defineProperty(obj, key, value) {
|
|
470
|
+
key = _toPropertyKey(key);
|
|
471
|
+
if (key in obj) {
|
|
472
|
+
Object.defineProperty(obj, key, {
|
|
473
|
+
value: value,
|
|
474
|
+
enumerable: true,
|
|
475
|
+
configurable: true,
|
|
476
|
+
writable: true
|
|
477
|
+
});
|
|
478
|
+
} else {
|
|
479
|
+
obj[key] = value;
|
|
552
480
|
}
|
|
481
|
+
return obj;
|
|
482
|
+
}
|
|
483
|
+
function _inherits(subClass, superClass) {
|
|
484
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
486
|
+
}
|
|
487
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
+
constructor: {
|
|
489
|
+
value: subClass,
|
|
490
|
+
writable: true,
|
|
491
|
+
configurable: true
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(subClass, "prototype", {
|
|
495
|
+
writable: false
|
|
496
|
+
});
|
|
497
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
+
}
|
|
499
|
+
function _getPrototypeOf(o) {
|
|
500
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
+
};
|
|
503
|
+
return _getPrototypeOf(o);
|
|
504
|
+
}
|
|
505
|
+
function _setPrototypeOf(o, p) {
|
|
506
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
+
o.__proto__ = p;
|
|
508
|
+
return o;
|
|
509
|
+
};
|
|
510
|
+
return _setPrototypeOf(o, p);
|
|
511
|
+
}
|
|
512
|
+
function _objectDestructuringEmpty(obj) {
|
|
513
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
+
}
|
|
515
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
+
if (source == null) return {};
|
|
517
|
+
var target = {};
|
|
518
|
+
for (var key in source) {
|
|
519
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
+
target[key] = source[key];
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
return target;
|
|
525
|
+
}
|
|
526
|
+
function _objectWithoutProperties(source, excluded) {
|
|
527
|
+
if (source == null) return {};
|
|
528
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
+
var key, i;
|
|
530
|
+
if (Object.getOwnPropertySymbols) {
|
|
531
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
+
key = sourceSymbolKeys[i];
|
|
534
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
+
target[key] = source[key];
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return target;
|
|
540
|
+
}
|
|
541
|
+
function _assertThisInitialized(self) {
|
|
542
|
+
if (self === void 0) {
|
|
543
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
544
|
+
}
|
|
545
|
+
return self;
|
|
546
|
+
}
|
|
547
|
+
function _possibleConstructorReturn(self, call) {
|
|
548
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
549
|
+
return call;
|
|
550
|
+
} else if (call !== void 0) {
|
|
551
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
552
|
+
}
|
|
553
|
+
return _assertThisInitialized(self);
|
|
554
|
+
}
|
|
555
|
+
function _slicedToArray(arr, i) {
|
|
556
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
557
|
+
}
|
|
558
|
+
function _toArray(arr) {
|
|
559
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
560
|
+
}
|
|
561
|
+
function _toConsumableArray(arr) {
|
|
562
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
563
|
+
}
|
|
564
|
+
function _arrayWithoutHoles(arr) {
|
|
565
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
566
|
+
}
|
|
567
|
+
function _arrayWithHoles(arr) {
|
|
568
|
+
if (Array.isArray(arr)) return arr;
|
|
569
|
+
}
|
|
570
|
+
function _iterableToArray(iter) {
|
|
571
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
572
|
+
}
|
|
573
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
574
|
+
if (!o) return;
|
|
575
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
576
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
577
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
578
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
579
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
580
|
+
}
|
|
581
|
+
function _arrayLikeToArray(arr, len) {
|
|
582
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
583
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
584
|
+
return arr2;
|
|
585
|
+
}
|
|
586
|
+
function _nonIterableSpread() {
|
|
587
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
588
|
+
}
|
|
589
|
+
function _nonIterableRest() {
|
|
590
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
553
591
|
}
|
|
554
592
|
|
|
555
593
|
var ENUM = {
|
|
@@ -1045,13 +1083,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1045
1083
|
imgHtml.innerHTML = str;
|
|
1046
1084
|
}
|
|
1047
1085
|
// 测试使用 测试类型缩小 end
|
|
1048
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1086
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1049
1087
|
className: "clomnsImg"
|
|
1050
1088
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1051
1089
|
src: url,
|
|
1052
1090
|
width: "28px",
|
|
1053
1091
|
height: "28px"
|
|
1054
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1092
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1055
1093
|
className: "clomnsImg2"
|
|
1056
1094
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1057
1095
|
src: noImg
|
|
@@ -1190,7 +1228,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1190
1228
|
}
|
|
1191
1229
|
save_link.click();
|
|
1192
1230
|
}
|
|
1193
|
-
var
|
|
1231
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1194
1232
|
return data.map(function (item) {
|
|
1195
1233
|
if (!item.name || !item.path) {
|
|
1196
1234
|
return null;
|
|
@@ -1210,7 +1248,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1210
1248
|
authority: item.authority || parentAuthority
|
|
1211
1249
|
});
|
|
1212
1250
|
if (item.routes) {
|
|
1213
|
-
var children =
|
|
1251
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1214
1252
|
// Reduce memory usage
|
|
1215
1253
|
result.children = children;
|
|
1216
1254
|
}
|
|
@@ -1220,7 +1258,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1220
1258
|
return item;
|
|
1221
1259
|
});
|
|
1222
1260
|
};
|
|
1223
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1261
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1224
1262
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1225
1263
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1226
1264
|
if (backHistoryPath) {
|
|
@@ -1526,7 +1564,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1526
1564
|
// sheepMap是表头字段中英文映射
|
|
1527
1565
|
// sheetCount:表的数量,默认一张
|
|
1528
1566
|
var resolveFile = /*#__PURE__*/function () {
|
|
1529
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1567
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1530
1568
|
var config,
|
|
1531
1569
|
data,
|
|
1532
1570
|
_args = arguments;
|
|
@@ -1565,7 +1603,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1565
1603
|
}();
|
|
1566
1604
|
//读取文件
|
|
1567
1605
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1568
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1606
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1569
1607
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1570
1608
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1571
1609
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1658,14 +1696,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1658
1696
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1659
1697
|
|
|
1660
1698
|
// 获取树平行结构
|
|
1661
|
-
var
|
|
1699
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1662
1700
|
var childrenKey = chilKey || 'children';
|
|
1663
1701
|
treeData.forEach(function (el) {
|
|
1664
1702
|
var _el$childrenKey;
|
|
1665
1703
|
result.push(el);
|
|
1666
1704
|
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) {
|
|
1667
1705
|
// 子级递归
|
|
1668
|
-
|
|
1706
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1669
1707
|
}
|
|
1670
1708
|
});
|
|
1671
1709
|
return result;
|
|
@@ -1942,13 +1980,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1942
1980
|
imgHtml.innerHTML = str;
|
|
1943
1981
|
}
|
|
1944
1982
|
// 测试使用 测试类型缩小 end
|
|
1945
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1983
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1946
1984
|
className: "clomnsImg"
|
|
1947
1985
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1948
1986
|
src: url,
|
|
1949
1987
|
width: "44px",
|
|
1950
1988
|
height: "44px"
|
|
1951
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1989
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1952
1990
|
src: noImg
|
|
1953
1991
|
}))));
|
|
1954
1992
|
};
|
|
@@ -2010,7 +2048,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2010
2048
|
}
|
|
2011
2049
|
});
|
|
2012
2050
|
};
|
|
2013
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2051
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2014
2052
|
disabled: disabled,
|
|
2015
2053
|
onChange: function onChange(e) {
|
|
2016
2054
|
var v = e.target.value;
|
|
@@ -2020,7 +2058,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2020
2058
|
width: 170
|
|
2021
2059
|
},
|
|
2022
2060
|
value: inputValue
|
|
2023
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2061
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2024
2062
|
disabled: disabled,
|
|
2025
2063
|
onBlur: function onBlur(e) {
|
|
2026
2064
|
var v = parseFloat(e.target.value);
|
|
@@ -2399,16 +2437,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2399
2437
|
var handleExportBarCode = handleExport;
|
|
2400
2438
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2401
2439
|
var routerMap = {};
|
|
2402
|
-
var
|
|
2440
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2403
2441
|
data.forEach(function (menuItem) {
|
|
2404
2442
|
if (menuItem.children) {
|
|
2405
|
-
|
|
2443
|
+
flattenMenuData(menuItem.children);
|
|
2406
2444
|
}
|
|
2407
2445
|
// Reduce memory usage
|
|
2408
2446
|
routerMap[menuItem.path] = menuItem;
|
|
2409
2447
|
});
|
|
2410
2448
|
};
|
|
2411
|
-
|
|
2449
|
+
flattenMenuData(menuData);
|
|
2412
2450
|
return routerMap;
|
|
2413
2451
|
};
|
|
2414
2452
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2551,7 +2589,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2551
2589
|
return request$1(url, parms).then(handleResponseData);
|
|
2552
2590
|
};
|
|
2553
2591
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2554
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2592
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2555
2593
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2556
2594
|
while (1) switch (_context.prev = _context.next) {
|
|
2557
2595
|
case 0:
|
|
@@ -3225,7 +3263,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3225
3263
|
placement: "bottomLeft"
|
|
3226
3264
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3227
3265
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3228
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3266
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3229
3267
|
trigger: ['click'],
|
|
3230
3268
|
overlay: this.menuList,
|
|
3231
3269
|
placement: "bottomRight"
|
|
@@ -3900,7 +3938,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3900
3938
|
placement: "bottomLeft"
|
|
3901
3939
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3902
3940
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3903
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3941
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3904
3942
|
trigger: ['click'],
|
|
3905
3943
|
overlay: this.menuList,
|
|
3906
3944
|
placement: "bottomRight"
|
|
@@ -4961,13 +4999,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4961
4999
|
var isShouldShowStr = props.disabled && ctx;
|
|
4962
5000
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
4963
5001
|
className: 'search_select'
|
|
4964
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5002
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
4965
5003
|
onClick: function onClick() {
|
|
4966
5004
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
4967
5005
|
(_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);
|
|
4968
5006
|
showModal();
|
|
4969
5007
|
}
|
|
4970
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5008
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
4971
5009
|
title: getShowStr(),
|
|
4972
5010
|
style: {
|
|
4973
5011
|
overflow: 'hidden',
|
|
@@ -5006,10 +5044,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5006
5044
|
}
|
|
5007
5045
|
}), menu);
|
|
5008
5046
|
},
|
|
5009
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5047
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5010
5048
|
size: "small",
|
|
5011
5049
|
className: 'searchSelectSpin'
|
|
5012
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5050
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5013
5051
|
style: {
|
|
5014
5052
|
textAlign: 'center'
|
|
5015
5053
|
}
|
|
@@ -5040,14 +5078,14 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5040
5078
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5041
5079
|
filterTxt: searchValue
|
|
5042
5080
|
}));
|
|
5043
|
-
})), needModalTable && (/*#__PURE__*/React$1.createElement(Button, {
|
|
5081
|
+
})), needModalTable && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
5044
5082
|
style: {
|
|
5045
5083
|
width: '30px',
|
|
5046
5084
|
padding: '2px'
|
|
5047
5085
|
},
|
|
5048
5086
|
onClick: showModal,
|
|
5049
5087
|
type: "primary"
|
|
5050
|
-
}, /*#__PURE__*/React$1.createElement(SearchOutlined, null)))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5088
|
+
}, /*#__PURE__*/React$1.createElement(SearchOutlined, null)))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5051
5089
|
width: "80%",
|
|
5052
5090
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
5053
5091
|
visible: isModalVisible,
|
|
@@ -5103,7 +5141,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5103
5141
|
}
|
|
5104
5142
|
}, "\u641C\u7D22\u7ED3\u679C\u5171", /*#__PURE__*/React$1.createElement("span", {
|
|
5105
5143
|
style: themeColor
|
|
5106
|
-
}, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ? (/*#__PURE__*/React$1.createElement("span", null, "\uFF0C \u672C\u6B21\u5DF2\u9009", /*#__PURE__*/React$1.createElement("span", {
|
|
5144
|
+
}, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\u9879", selectMode ? ( /*#__PURE__*/React$1.createElement("span", null, "\uFF0C \u672C\u6B21\u5DF2\u9009", /*#__PURE__*/React$1.createElement("span", {
|
|
5107
5145
|
style: themeColor
|
|
5108
5146
|
}, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\u9879")) : ''), /*#__PURE__*/React$1.createElement("div", {
|
|
5109
5147
|
style: {
|
|
@@ -5128,7 +5166,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5128
5166
|
}
|
|
5129
5167
|
};
|
|
5130
5168
|
}
|
|
5131
|
-
}), selectMode && !(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.isHiddenCheckAll) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5169
|
+
}), selectMode && !(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.isHiddenCheckAll) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5132
5170
|
className: 'select_list_selectAll'
|
|
5133
5171
|
}, /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5134
5172
|
indeterminate: indeterminate,
|
|
@@ -5660,7 +5698,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5660
5698
|
style: {
|
|
5661
5699
|
width: 540
|
|
5662
5700
|
}
|
|
5663
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5701
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
5664
5702
|
checked: !dataSource.some(function (item) {
|
|
5665
5703
|
if (item.hidden) return true;
|
|
5666
5704
|
return false;
|
|
@@ -5698,13 +5736,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5698
5736
|
_this2.onChange(e, item.title);
|
|
5699
5737
|
}
|
|
5700
5738
|
}, item.title);
|
|
5701
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
5739
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
5702
5740
|
style: {
|
|
5703
5741
|
width: '144px'
|
|
5704
5742
|
}
|
|
5705
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5743
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
5706
5744
|
className: 'sort_table_column_all_empty'
|
|
5707
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5745
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5708
5746
|
className: 'sort_table_column_special'
|
|
5709
5747
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
5710
5748
|
className: 'sort_table_column_all'
|
|
@@ -5893,7 +5931,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
5893
5931
|
});
|
|
5894
5932
|
};
|
|
5895
5933
|
// 格式化树选择器数据源
|
|
5896
|
-
var
|
|
5934
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
5897
5935
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
5898
5936
|
return {
|
|
5899
5937
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -5903,7 +5941,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
5903
5941
|
isLeaf: !haveChildren,
|
|
5904
5942
|
disabled: haveChildren,
|
|
5905
5943
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
5906
|
-
return
|
|
5944
|
+
return mapSearchTree(i, resKeyValue);
|
|
5907
5945
|
}) : []
|
|
5908
5946
|
};
|
|
5909
5947
|
};
|
|
@@ -5912,7 +5950,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
5912
5950
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
5913
5951
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
5914
5952
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
5915
|
-
return
|
|
5953
|
+
return mapSearchTree(ites, resKeyValue);
|
|
5916
5954
|
}) || [];
|
|
5917
5955
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
5918
5956
|
};
|
|
@@ -6083,7 +6121,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6083
6121
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6084
6122
|
// FIXME: 特殊业务逻辑
|
|
6085
6123
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6086
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6124
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6087
6125
|
var result;
|
|
6088
6126
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6089
6127
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6336,7 +6374,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6336
6374
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6337
6375
|
value: text || null,
|
|
6338
6376
|
onChange: function () {
|
|
6339
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6377
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6340
6378
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6341
6379
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6342
6380
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -6944,10 +6982,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
6944
6982
|
var newColumns = arr.map(function (col) {
|
|
6945
6983
|
return _objectSpread2({}, col);
|
|
6946
6984
|
});
|
|
6947
|
-
var
|
|
6985
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
6948
6986
|
var i = indexArr.shift();
|
|
6949
6987
|
if (indexArr.length > 0) {
|
|
6950
|
-
|
|
6988
|
+
handleIndex(arr[i].children, indexArr);
|
|
6951
6989
|
} else {
|
|
6952
6990
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
6953
6991
|
width: size.width
|
|
@@ -6955,7 +6993,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6955
6993
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
6956
6994
|
}
|
|
6957
6995
|
};
|
|
6958
|
-
|
|
6996
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
6959
6997
|
callback(newColumns);
|
|
6960
6998
|
};
|
|
6961
6999
|
};
|
|
@@ -6965,13 +7003,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
6965
7003
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
6966
7004
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
6967
7005
|
};
|
|
6968
|
-
var
|
|
7006
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
6969
7007
|
arr.forEach(function (item, index) {
|
|
6970
7008
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
6971
7009
|
return i || i === 0;
|
|
6972
7010
|
});
|
|
6973
7011
|
if (noEmptyArray$1(item.children)) {
|
|
6974
|
-
|
|
7012
|
+
handleColumns(item.children, indexArrInside);
|
|
6975
7013
|
} else {
|
|
6976
7014
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
6977
7015
|
item.onHeaderCell = function (column) {
|
|
@@ -6987,14 +7025,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
6987
7025
|
handleAntdColumnsSpecialParams(item);
|
|
6988
7026
|
return _objectSpread2({}, item);
|
|
6989
7027
|
});
|
|
6990
|
-
|
|
7028
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
6991
7029
|
return setShowToChooseColumnsCallback(res);
|
|
6992
7030
|
});
|
|
6993
7031
|
var showSelectedCol = showColumns.map(function (item) {
|
|
6994
7032
|
handleAntdColumnsSpecialParams(item);
|
|
6995
7033
|
return _objectSpread2({}, item);
|
|
6996
7034
|
});
|
|
6997
|
-
|
|
7035
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
6998
7036
|
return setShowColumnsCallback(res);
|
|
6999
7037
|
});
|
|
7000
7038
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7005,7 +7043,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7005
7043
|
id: "add_select_div_".concat(uniqueValue)
|
|
7006
7044
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7007
7045
|
onClick: handleShowModal
|
|
7008
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7046
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7009
7047
|
width: '1200px',
|
|
7010
7048
|
style: {
|
|
7011
7049
|
top: 20
|
|
@@ -7919,7 +7957,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
7919
7957
|
});
|
|
7920
7958
|
};
|
|
7921
7959
|
var handleSubmit = /*#__PURE__*/function () {
|
|
7922
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
7960
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
7923
7961
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
7924
7962
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7925
7963
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8002,10 +8040,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8002
8040
|
var newColumns = arr.map(function (col) {
|
|
8003
8041
|
return _objectSpread2({}, col);
|
|
8004
8042
|
});
|
|
8005
|
-
var
|
|
8043
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8006
8044
|
var i = indexArr.shift();
|
|
8007
8045
|
if (indexArr.length > 0) {
|
|
8008
|
-
|
|
8046
|
+
handleIndex(arr[i].children, indexArr);
|
|
8009
8047
|
} else {
|
|
8010
8048
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8011
8049
|
width: size.width
|
|
@@ -8013,17 +8051,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8013
8051
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8014
8052
|
}
|
|
8015
8053
|
};
|
|
8016
|
-
|
|
8054
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8017
8055
|
callback(newColumns);
|
|
8018
8056
|
};
|
|
8019
8057
|
};
|
|
8020
|
-
var
|
|
8058
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8021
8059
|
arr.forEach(function (item, index) {
|
|
8022
8060
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8023
8061
|
return i || i === 0;
|
|
8024
8062
|
});
|
|
8025
8063
|
if (noEmptyArray$1(item.children)) {
|
|
8026
|
-
|
|
8064
|
+
handleColumns(item.children, indexArrInside);
|
|
8027
8065
|
} else {
|
|
8028
8066
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8029
8067
|
item.onHeaderCell = function (column) {
|
|
@@ -8039,7 +8077,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8039
8077
|
handleAntdColumnsSpecialParams(item);
|
|
8040
8078
|
return _objectSpread2({}, item);
|
|
8041
8079
|
});
|
|
8042
|
-
|
|
8080
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8043
8081
|
return setShowColumnsCallback(res);
|
|
8044
8082
|
});
|
|
8045
8083
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8338,7 +8376,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8338
8376
|
});
|
|
8339
8377
|
};
|
|
8340
8378
|
// 格式化树选择器数据源
|
|
8341
|
-
var
|
|
8379
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8342
8380
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8343
8381
|
return {
|
|
8344
8382
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8348,7 +8386,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8348
8386
|
isLeaf: !haveChildren,
|
|
8349
8387
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8350
8388
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8351
|
-
return
|
|
8389
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8352
8390
|
}) : []
|
|
8353
8391
|
};
|
|
8354
8392
|
};
|
|
@@ -8362,7 +8400,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps, hidde
|
|
|
8362
8400
|
disabledJudge = false;
|
|
8363
8401
|
}
|
|
8364
8402
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8365
|
-
return
|
|
8403
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8366
8404
|
}) || [];
|
|
8367
8405
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8368
8406
|
};
|
|
@@ -11958,7 +11996,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
11958
11996
|
};
|
|
11959
11997
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
11960
11998
|
onClick: handleShowModal
|
|
11961
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
11999
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
11962
12000
|
onOk: handleOk,
|
|
11963
12001
|
onCancel: handleCancel,
|
|
11964
12002
|
destroyOnClose: true,
|
|
@@ -12077,7 +12115,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12077
12115
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12078
12116
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12079
12117
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12080
|
-
var
|
|
12118
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12081
12119
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12082
12120
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12083
12121
|
return {
|
|
@@ -12089,7 +12127,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12089
12127
|
isLeaf: !haveChildren,
|
|
12090
12128
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12091
12129
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12092
|
-
return
|
|
12130
|
+
return mapSearchTree(i);
|
|
12093
12131
|
}) : []
|
|
12094
12132
|
};
|
|
12095
12133
|
};
|
|
@@ -12107,8 +12145,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12107
12145
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12108
12146
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12109
12147
|
headers: headers
|
|
12110
|
-
}).then(/*#__PURE__*/function () {
|
|
12111
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12148
|
+
}).then( /*#__PURE__*/function () {
|
|
12149
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12112
12150
|
var _ctx$form;
|
|
12113
12151
|
var resData, coverData, data, dataList;
|
|
12114
12152
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12135,7 +12173,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12135
12173
|
case 9:
|
|
12136
12174
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12137
12175
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12138
|
-
return
|
|
12176
|
+
return mapSearchTree(ites);
|
|
12139
12177
|
}) || [];
|
|
12140
12178
|
case 11:
|
|
12141
12179
|
_context.next = 14;
|
|
@@ -12173,11 +12211,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12173
12211
|
return _formatResult;
|
|
12174
12212
|
}
|
|
12175
12213
|
};
|
|
12176
|
-
var
|
|
12214
|
+
var parallelData = function parallelData(data, result) {
|
|
12177
12215
|
data.forEach(function (i) {
|
|
12178
12216
|
result.push(i);
|
|
12179
12217
|
if (i[treeChildrenRoom]) {
|
|
12180
|
-
|
|
12218
|
+
parallelData(i[treeChildrenRoom], result);
|
|
12181
12219
|
}
|
|
12182
12220
|
});
|
|
12183
12221
|
return result;
|
|
@@ -12217,7 +12255,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12217
12255
|
var _ctx$form2;
|
|
12218
12256
|
var handleData = formatData(data);
|
|
12219
12257
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
12220
|
-
var parallelTreeData =
|
|
12258
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12221
12259
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
12222
12260
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
12223
12261
|
onChangeName && onChangeName(dataName);
|
|
@@ -12260,7 +12298,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12260
12298
|
var getShowStr = function getShowStr() {
|
|
12261
12299
|
var isMultiple = multiple || treeCheckable;
|
|
12262
12300
|
var kongValue = '无';
|
|
12263
|
-
var parallelTreeData =
|
|
12301
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
12264
12302
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
12265
12303
|
if (isMultiple) {
|
|
12266
12304
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -12272,7 +12310,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12272
12310
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
12273
12311
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
12274
12312
|
className: 'tree_search_select'
|
|
12275
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
12313
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
12276
12314
|
title: getShowStr(),
|
|
12277
12315
|
style: {
|
|
12278
12316
|
overflow: 'hidden',
|
|
@@ -12280,7 +12318,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12280
12318
|
whiteSpace: 'nowrap'
|
|
12281
12319
|
},
|
|
12282
12320
|
className: 'search_select_show'
|
|
12283
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
12321
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
12284
12322
|
treeCheckable: treeCheckable,
|
|
12285
12323
|
maxTagCount: maxTagCount,
|
|
12286
12324
|
showSearch: showSearch,
|
|
@@ -12478,7 +12516,7 @@ var index$2 = (function (props) {
|
|
|
12478
12516
|
height: '40px',
|
|
12479
12517
|
lineHeight: '40px'
|
|
12480
12518
|
} : {}
|
|
12481
|
-
}, item.text), item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
12519
|
+
}, item.text), item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
12482
12520
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
12483
12521
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
12484
12522
|
style: {
|
|
@@ -13259,7 +13297,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13259
13297
|
style: {
|
|
13260
13298
|
width: 540
|
|
13261
13299
|
}
|
|
13262
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
13300
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
13263
13301
|
checked: !dataSource.some(function (item) {
|
|
13264
13302
|
if (item.hidden) return true;
|
|
13265
13303
|
return false;
|
|
@@ -13297,13 +13335,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13297
13335
|
_this2.onChange(e, item.title);
|
|
13298
13336
|
}
|
|
13299
13337
|
}, item.title);
|
|
13300
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
13338
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
13301
13339
|
style: {
|
|
13302
13340
|
width: '144px'
|
|
13303
13341
|
}
|
|
13304
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
13342
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
13305
13343
|
className: 'sort_table_column_all_empty'
|
|
13306
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
13344
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
13307
13345
|
className: 'sort_table_column_special'
|
|
13308
13346
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
13309
13347
|
className: 'sort_table_column_all'
|
|
@@ -13456,10 +13494,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13456
13494
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
13457
13495
|
return _objectSpread2({}, col);
|
|
13458
13496
|
});
|
|
13459
|
-
var
|
|
13497
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
13460
13498
|
var i = indexArr.shift();
|
|
13461
13499
|
if (indexArr.length > 0) {
|
|
13462
|
-
|
|
13500
|
+
handleIndex(arr[i].children, indexArr);
|
|
13463
13501
|
} else {
|
|
13464
13502
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
13465
13503
|
width: size.width
|
|
@@ -13467,7 +13505,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13467
13505
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
13468
13506
|
}
|
|
13469
13507
|
};
|
|
13470
|
-
|
|
13508
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
13471
13509
|
_this.setState({
|
|
13472
13510
|
showColumns: _toConsumableArray(newColumns)
|
|
13473
13511
|
});
|
|
@@ -13546,13 +13584,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13546
13584
|
showSummary = summary;
|
|
13547
13585
|
}
|
|
13548
13586
|
}
|
|
13549
|
-
var
|
|
13587
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
13550
13588
|
arr.forEach(function (item, index) {
|
|
13551
13589
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
13552
13590
|
return i || i === 0;
|
|
13553
13591
|
});
|
|
13554
13592
|
if (noEmptyArray$1(item.children)) {
|
|
13555
|
-
|
|
13593
|
+
handleColumns(item.children, indexArrInside);
|
|
13556
13594
|
} else {
|
|
13557
13595
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
13558
13596
|
item.onHeaderCell = function (column) {
|
|
@@ -13568,7 +13606,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13568
13606
|
handleBssulaColumnsSpecialParams(item);
|
|
13569
13607
|
return _objectSpread2({}, item);
|
|
13570
13608
|
});
|
|
13571
|
-
|
|
13609
|
+
handleColumns(showCol, []);
|
|
13572
13610
|
if (dynamicColumns.length) {
|
|
13573
13611
|
showCol = this.handledynamicColumns(showCol);
|
|
13574
13612
|
}
|
|
@@ -13700,10 +13738,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13700
13738
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
13701
13739
|
return _objectSpread2({}, col);
|
|
13702
13740
|
});
|
|
13703
|
-
var
|
|
13741
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
13704
13742
|
var i = indexArr.shift();
|
|
13705
13743
|
if (indexArr.length > 0) {
|
|
13706
|
-
|
|
13744
|
+
handleIndex(arr[i].children, indexArr);
|
|
13707
13745
|
} else {
|
|
13708
13746
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
13709
13747
|
width: size.width
|
|
@@ -13711,7 +13749,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13711
13749
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
13712
13750
|
}
|
|
13713
13751
|
};
|
|
13714
|
-
|
|
13752
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
13715
13753
|
_this.setState({
|
|
13716
13754
|
showColumns: _toConsumableArray(newColumns)
|
|
13717
13755
|
});
|
|
@@ -13787,13 +13825,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13787
13825
|
showSummary = summary;
|
|
13788
13826
|
}
|
|
13789
13827
|
}
|
|
13790
|
-
var
|
|
13828
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
13791
13829
|
arr.forEach(function (item, index) {
|
|
13792
13830
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
13793
13831
|
return i || i === 0;
|
|
13794
13832
|
});
|
|
13795
13833
|
if (noEmptyArray$1(item.children)) {
|
|
13796
|
-
|
|
13834
|
+
handleColumns(item.children, indexArrInside);
|
|
13797
13835
|
} else {
|
|
13798
13836
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
13799
13837
|
item.onHeaderCell = function (column) {
|
|
@@ -13809,7 +13847,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13809
13847
|
handleAntdColumnsSpecialParams(item);
|
|
13810
13848
|
return _objectSpread2({}, item);
|
|
13811
13849
|
});
|
|
13812
|
-
|
|
13850
|
+
handleColumns(showCol, []);
|
|
13813
13851
|
if (dynamicColumns.length) {
|
|
13814
13852
|
showCol = this.handledynamicColumns(showCol);
|
|
13815
13853
|
}
|
|
@@ -13903,20 +13941,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
13903
13941
|
};
|
|
13904
13942
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
13905
13943
|
var routerMap = {};
|
|
13906
|
-
var
|
|
13944
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
13907
13945
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
13908
13946
|
data.forEach(function (menuItem) {
|
|
13909
13947
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
13910
13948
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
13911
13949
|
});
|
|
13912
13950
|
if (newMenuItem.children) {
|
|
13913
|
-
|
|
13951
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
13914
13952
|
}
|
|
13915
13953
|
// Reduce memory usage
|
|
13916
13954
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
13917
13955
|
});
|
|
13918
13956
|
};
|
|
13919
|
-
|
|
13957
|
+
flattenMenuData(menuData, {});
|
|
13920
13958
|
return routerMap;
|
|
13921
13959
|
};
|
|
13922
13960
|
// mode类型判断
|
|
@@ -14221,7 +14259,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14221
14259
|
display: 'flex',
|
|
14222
14260
|
gap: '8px'
|
|
14223
14261
|
}
|
|
14224
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14262
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14225
14263
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
14226
14264
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
14227
14265
|
onClick: function onClick() {
|
|
@@ -14229,7 +14267,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14229
14267
|
},
|
|
14230
14268
|
width: 24,
|
|
14231
14269
|
src: scanning
|
|
14232
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14270
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
14233
14271
|
title: "\u5168\u5C4F"
|
|
14234
14272
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
14235
14273
|
onClick: function onClick() {
|
|
@@ -14237,7 +14275,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14237
14275
|
},
|
|
14238
14276
|
width: 24,
|
|
14239
14277
|
src: quanping
|
|
14240
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14278
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14241
14279
|
}, function (prevProps, nextProps) {
|
|
14242
14280
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
14243
14281
|
return false;
|
|
@@ -14320,7 +14358,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
14320
14358
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
14321
14359
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
14322
14360
|
}, item));
|
|
14323
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14361
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
14324
14362
|
}, function (prevProps, nextProps) {
|
|
14325
14363
|
if (prevProps.title !== nextProps.title) {
|
|
14326
14364
|
return false;
|
|
@@ -14960,7 +14998,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
14960
14998
|
});
|
|
14961
14999
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14962
15000
|
className: 'sort_table_wrapper'
|
|
14963
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15001
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
14964
15002
|
title: "\u8BBE\u7F6E\u8868\u5934\u5185\u5BB9",
|
|
14965
15003
|
wrapClassName: 'sort_table_wrapper',
|
|
14966
15004
|
width: 820,
|
|
@@ -15010,7 +15048,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15010
15048
|
style: {
|
|
15011
15049
|
width: 540
|
|
15012
15050
|
}
|
|
15013
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15051
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15014
15052
|
checked: !dataSource.some(function (item) {
|
|
15015
15053
|
if (item.hidden) return true;
|
|
15016
15054
|
return false;
|
|
@@ -15064,13 +15102,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15064
15102
|
_this2.onChange(e, item.title);
|
|
15065
15103
|
}
|
|
15066
15104
|
}, item.title);
|
|
15067
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15105
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15068
15106
|
style: {
|
|
15069
15107
|
width: '144px'
|
|
15070
15108
|
}
|
|
15071
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15109
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15072
15110
|
className: 'sort_table_column_all_empty'
|
|
15073
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15111
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15074
15112
|
className: 'sort_table_column_special'
|
|
15075
15113
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15076
15114
|
className: 'sort_table_column_all'
|
|
@@ -15511,7 +15549,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15511
15549
|
});
|
|
15512
15550
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15513
15551
|
className: 'sort_table_wrapper'
|
|
15514
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
15552
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
15515
15553
|
title: "\u8BBE\u7F6E\u641C\u7D22\u9879\u5185\u5BB9",
|
|
15516
15554
|
wrapClassName: 'sort_table_wrapper',
|
|
15517
15555
|
width: 820,
|
|
@@ -15556,7 +15594,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15556
15594
|
style: {
|
|
15557
15595
|
width: 540
|
|
15558
15596
|
}
|
|
15559
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15597
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15560
15598
|
checked: !dataSource.some(function (item) {
|
|
15561
15599
|
if (item.hidden) return true;
|
|
15562
15600
|
return false;
|
|
@@ -15592,11 +15630,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15592
15630
|
_this2.onChange(e, item.label);
|
|
15593
15631
|
}
|
|
15594
15632
|
}, item.label);
|
|
15595
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15633
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15596
15634
|
style: {
|
|
15597
15635
|
width: '144px'
|
|
15598
15636
|
}
|
|
15599
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15637
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15600
15638
|
className: 'sort_table_column_all_empty'
|
|
15601
15639
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
15602
15640
|
className: 'sort_table_content_wrapper'
|
|
@@ -16023,7 +16061,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16023
16061
|
actionsRender = actionsRender.concat([{
|
|
16024
16062
|
type: 'text',
|
|
16025
16063
|
props: {
|
|
16026
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16064
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
16027
16065
|
request: {
|
|
16028
16066
|
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),
|
|
16029
16067
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -16038,7 +16076,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16038
16076
|
actionsRender = actionsRender.concat([{
|
|
16039
16077
|
type: 'text',
|
|
16040
16078
|
props: {
|
|
16041
|
-
children: (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16079
|
+
children: ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16042
16080
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16043
16081
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16044
16082
|
onClick: function onClick() {
|
|
@@ -16046,7 +16084,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16046
16084
|
},
|
|
16047
16085
|
width: 32,
|
|
16048
16086
|
src: scanning
|
|
16049
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16087
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16050
16088
|
title: "\u5168\u5C4F"
|
|
16051
16089
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16052
16090
|
onClick: function onClick() {
|
|
@@ -16059,7 +16097,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16059
16097
|
}, {
|
|
16060
16098
|
type: 'text',
|
|
16061
16099
|
props: {
|
|
16062
|
-
children: (/*#__PURE__*/React$1.createElement("span", {
|
|
16100
|
+
children: ( /*#__PURE__*/React$1.createElement("span", {
|
|
16063
16101
|
className: "ant-dropdown-link"
|
|
16064
16102
|
}, /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
16065
16103
|
overlay: /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -16068,13 +16106,13 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16068
16106
|
fontSize: 14,
|
|
16069
16107
|
textAlign: 'center'
|
|
16070
16108
|
}
|
|
16071
|
-
}, "\u5217\u8BBE\u7F6E")), !(value === null || value === void 0 ? void 0 : (_value$searchConfig = value.searchConfig) === null || _value$searchConfig === void 0 ? void 0 : _value$searchConfig.isHidden) && (/*#__PURE__*/React$1.createElement(Menu.Item, null, /*#__PURE__*/React$1.createElement(SearchItemTable, {
|
|
16109
|
+
}, "\u5217\u8BBE\u7F6E")), !(value === null || value === void 0 ? void 0 : (_value$searchConfig = value.searchConfig) === null || _value$searchConfig === void 0 ? void 0 : _value$searchConfig.isHidden) && ( /*#__PURE__*/React$1.createElement(Menu.Item, null, /*#__PURE__*/React$1.createElement(SearchItemTable, {
|
|
16072
16110
|
ref: searchTableRef,
|
|
16073
16111
|
setShowSearchFields: setShowSearchFields,
|
|
16074
16112
|
showSearchFields: showSearchFields,
|
|
16075
16113
|
datasource: (value === null || value === void 0 ? void 0 : value.fields) || [],
|
|
16076
16114
|
bsTableCode: bsTableCode
|
|
16077
|
-
}))), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(Menu.Item, null, /*#__PURE__*/React$1.createElement("div", {
|
|
16115
|
+
}))), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React$1.createElement(Menu.Item, null, /*#__PURE__*/React$1.createElement("div", {
|
|
16078
16116
|
onClick: exportTableRef === null || exportTableRef === void 0 ? void 0 : (_exportTableRef$curre = exportTableRef.current) === null || _exportTableRef$curre === void 0 ? void 0 : _exportTableRef$curre.showModal,
|
|
16079
16117
|
style: {
|
|
16080
16118
|
fontSize: 14,
|
|
@@ -16251,7 +16289,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
16251
16289
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
16252
16290
|
bsTableCode: bsTableCode,
|
|
16253
16291
|
onlyModal: true
|
|
16254
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig7 = value.exportConfig) === null || _value$exportConfig7 === void 0 ? void 0 : _value$exportConfig7.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
16292
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig7 = value.exportConfig) === null || _value$exportConfig7 === void 0 ? void 0 : _value$exportConfig7.settingColumns) && ( /*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
16255
16293
|
ref: exportTableRef,
|
|
16256
16294
|
setShowColumns: setShowExportColumns,
|
|
16257
16295
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -16344,11 +16382,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
16344
16382
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
16345
16383
|
var resultList = [];
|
|
16346
16384
|
var newRouter = cloneDeep(router);
|
|
16347
|
-
var
|
|
16385
|
+
var deep = function deep(router) {
|
|
16348
16386
|
if (router && Array.isArray(router)) {
|
|
16349
16387
|
router.forEach(function (item) {
|
|
16350
16388
|
if (item.children && Array.isArray(item.children)) {
|
|
16351
|
-
|
|
16389
|
+
deep(item.children);
|
|
16352
16390
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
16353
16391
|
return d === item.code;
|
|
16354
16392
|
})) {
|
|
@@ -16362,10 +16400,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
16362
16400
|
resultList.push(_objectSpread2({}, router));
|
|
16363
16401
|
}
|
|
16364
16402
|
};
|
|
16365
|
-
|
|
16403
|
+
deep(newRouter);
|
|
16366
16404
|
callBack([].concat(resultList));
|
|
16367
16405
|
};
|
|
16368
|
-
var
|
|
16406
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
16369
16407
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
16370
16408
|
var _loop = function _loop(i) {
|
|
16371
16409
|
if (routesData[i].hideInMenu) {
|
|
@@ -16379,7 +16417,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
16379
16417
|
return 0; // continue
|
|
16380
16418
|
}
|
|
16381
16419
|
if (routesData[i].children) {
|
|
16382
|
-
|
|
16420
|
+
setMenuTreeData(routesData[i].children);
|
|
16383
16421
|
}
|
|
16384
16422
|
},
|
|
16385
16423
|
_ret;
|
|
@@ -16400,16 +16438,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
16400
16438
|
};
|
|
16401
16439
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
16402
16440
|
var routerMap = {};
|
|
16403
|
-
var
|
|
16441
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
16404
16442
|
data.forEach(function (menuItem) {
|
|
16405
16443
|
if (menuItem.children) {
|
|
16406
|
-
|
|
16444
|
+
flattenMenuData(menuItem.children);
|
|
16407
16445
|
}
|
|
16408
16446
|
// Reduce memory usage
|
|
16409
16447
|
routerMap[menuItem.path] = menuItem;
|
|
16410
16448
|
});
|
|
16411
16449
|
};
|
|
16412
|
-
|
|
16450
|
+
flattenMenuData(menuData);
|
|
16413
16451
|
return routerMap;
|
|
16414
16452
|
};
|
|
16415
16453
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -16555,7 +16593,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16555
16593
|
sethomepageData(homepageDataList);
|
|
16556
16594
|
setroutesData(routesDataList);
|
|
16557
16595
|
}, []);
|
|
16558
|
-
var
|
|
16596
|
+
var renderChildItem = function renderChildItem(child) {
|
|
16559
16597
|
if (!child.hideInMenu && child.children) {
|
|
16560
16598
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
16561
16599
|
style: {
|
|
@@ -16565,7 +16603,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16565
16603
|
}, formatMessage({
|
|
16566
16604
|
id: "".concat(child.locale)
|
|
16567
16605
|
})), child.children.map(function (menuItem) {
|
|
16568
|
-
return
|
|
16606
|
+
return renderChildItem(menuItem);
|
|
16569
16607
|
}));
|
|
16570
16608
|
} else if (!child.hideInMenu && child.path) {
|
|
16571
16609
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -16600,7 +16638,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16600
16638
|
className: 'drawerWarp'
|
|
16601
16639
|
}, homepageData && homepageData.filter(function (d) {
|
|
16602
16640
|
return !d.hideInMenu;
|
|
16603
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
16641
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
16604
16642
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
16605
16643
|
dataSource: homepageData,
|
|
16606
16644
|
renderItem: function renderItem(child) {
|
|
@@ -16635,7 +16673,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
16635
16673
|
bordered: true,
|
|
16636
16674
|
dataSource: item.children,
|
|
16637
16675
|
renderItem: function renderItem(child) {
|
|
16638
|
-
return
|
|
16676
|
+
return renderChildItem(child);
|
|
16639
16677
|
}
|
|
16640
16678
|
});
|
|
16641
16679
|
})));
|
|
@@ -16695,7 +16733,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
16695
16733
|
src: allfunc
|
|
16696
16734
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
16697
16735
|
className: 'btnSpan2'
|
|
16698
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
16736
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
16699
16737
|
style: {
|
|
16700
16738
|
left: isDrawer ? 140 : 0,
|
|
16701
16739
|
top: 50
|
|
@@ -16741,7 +16779,7 @@ function outLogin(_x) {
|
|
|
16741
16779
|
return _outLogin.apply(this, arguments);
|
|
16742
16780
|
}
|
|
16743
16781
|
function _outLogin() {
|
|
16744
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
16782
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
16745
16783
|
var res;
|
|
16746
16784
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16747
16785
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -16883,7 +16921,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
16883
16921
|
});
|
|
16884
16922
|
};
|
|
16885
16923
|
var loginOut = /*#__PURE__*/function () {
|
|
16886
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16924
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
16887
16925
|
var sessionId;
|
|
16888
16926
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
16889
16927
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -16987,7 +17025,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
16987
17025
|
marginRight: '0px'
|
|
16988
17026
|
},
|
|
16989
17027
|
src: './xialajiantou-new.svg'
|
|
16990
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
17028
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
16991
17029
|
};
|
|
16992
17030
|
|
|
16993
17031
|
// -- 查询店铺 --
|
|
@@ -16995,7 +17033,7 @@ function getStoreByName(_x) {
|
|
|
16995
17033
|
return _getStoreByName.apply(this, arguments);
|
|
16996
17034
|
}
|
|
16997
17035
|
function _getStoreByName() {
|
|
16998
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17036
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
16999
17037
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17000
17038
|
while (1) switch (_context.prev = _context.next) {
|
|
17001
17039
|
case 0:
|
|
@@ -17063,7 +17101,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17063
17101
|
return _fetchUserList.apply(this, arguments);
|
|
17064
17102
|
}
|
|
17065
17103
|
function _fetchUserList() {
|
|
17066
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17104
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
17067
17105
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
17068
17106
|
while (1) switch (_context3.prev = _context3.next) {
|
|
17069
17107
|
case 0:
|
|
@@ -17111,7 +17149,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17111
17149
|
return debounce$1(loadOptions, debounceTimeout);
|
|
17112
17150
|
}, [debounceTimeout, key]);
|
|
17113
17151
|
var changeInput = /*#__PURE__*/function () {
|
|
17114
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17152
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
17115
17153
|
var res;
|
|
17116
17154
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17117
17155
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -17133,7 +17171,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
17133
17171
|
};
|
|
17134
17172
|
}();
|
|
17135
17173
|
useEffect(function () {
|
|
17136
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17174
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
17137
17175
|
var res;
|
|
17138
17176
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
17139
17177
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -17298,7 +17336,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17298
17336
|
var resultList = [];
|
|
17299
17337
|
var newRouter = cloneDeep$1(router);
|
|
17300
17338
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17301
|
-
var
|
|
17339
|
+
var deep = function deep(router) {
|
|
17302
17340
|
if (router && Array.isArray(router)) {
|
|
17303
17341
|
router.forEach(function (item) {
|
|
17304
17342
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -17308,7 +17346,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17308
17346
|
d.nameEdit = true;
|
|
17309
17347
|
}
|
|
17310
17348
|
});
|
|
17311
|
-
|
|
17349
|
+
deep(item.routes);
|
|
17312
17350
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
17313
17351
|
id: "menu.".concat(item.name)
|
|
17314
17352
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -17327,7 +17365,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17327
17365
|
}));
|
|
17328
17366
|
}
|
|
17329
17367
|
};
|
|
17330
|
-
|
|
17368
|
+
deep(newRouter);
|
|
17331
17369
|
setroutesData([].concat(resultList));
|
|
17332
17370
|
};
|
|
17333
17371
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -17409,7 +17447,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
17409
17447
|
},
|
|
17410
17448
|
title: item.fullPathName
|
|
17411
17449
|
}, renderLineStyl(item.fullPathName));
|
|
17412
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
17450
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
17413
17451
|
employeeCode: employeeCode
|
|
17414
17452
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
17415
17453
|
};
|
|
@@ -17424,7 +17462,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
17424
17462
|
var TreeNode = Tree.TreeNode;
|
|
17425
17463
|
var Search$2 = Input.Search;
|
|
17426
17464
|
var dataList = [];
|
|
17427
|
-
var
|
|
17465
|
+
var generateList = function generateList(data) {
|
|
17428
17466
|
for (var i = 0; i < data.length; i++) {
|
|
17429
17467
|
var node = data[i];
|
|
17430
17468
|
var path = node.path,
|
|
@@ -17434,11 +17472,11 @@ var _generateList = function generateList(data) {
|
|
|
17434
17472
|
name: name
|
|
17435
17473
|
});
|
|
17436
17474
|
if (node.children) {
|
|
17437
|
-
|
|
17475
|
+
generateList(node.children);
|
|
17438
17476
|
}
|
|
17439
17477
|
}
|
|
17440
17478
|
};
|
|
17441
|
-
var
|
|
17479
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
17442
17480
|
var parentKey;
|
|
17443
17481
|
for (var i = 0; i < tree.length; i++) {
|
|
17444
17482
|
var node = tree[i];
|
|
@@ -17447,8 +17485,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
17447
17485
|
return item.path === path;
|
|
17448
17486
|
})) {
|
|
17449
17487
|
parentKey = node.path;
|
|
17450
|
-
} else if (
|
|
17451
|
-
parentKey =
|
|
17488
|
+
} else if (getParentKey(path, node.children)) {
|
|
17489
|
+
parentKey = getParentKey(path, node.children);
|
|
17452
17490
|
}
|
|
17453
17491
|
}
|
|
17454
17492
|
}
|
|
@@ -17479,7 +17517,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17479
17517
|
var treeData = _this.state.treeData;
|
|
17480
17518
|
var expandedKeys = dataList.map(function (item) {
|
|
17481
17519
|
if (item.name.indexOf(value) > -1) {
|
|
17482
|
-
return
|
|
17520
|
+
return getParentKey(item.path, treeData);
|
|
17483
17521
|
}
|
|
17484
17522
|
return null;
|
|
17485
17523
|
}).filter(function (item, i, self) {
|
|
@@ -17493,22 +17531,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17493
17531
|
};
|
|
17494
17532
|
_this.getPathList = function (originData) {
|
|
17495
17533
|
var pathList = [];
|
|
17496
|
-
var
|
|
17534
|
+
var getList = function getList(data) {
|
|
17497
17535
|
if (Array.isArray(data)) {
|
|
17498
17536
|
data.forEach(function (item) {
|
|
17499
17537
|
pathList.push(item.path);
|
|
17500
17538
|
if (item.children) {
|
|
17501
|
-
|
|
17539
|
+
getList(item.children);
|
|
17502
17540
|
}
|
|
17503
17541
|
});
|
|
17504
17542
|
} else {
|
|
17505
17543
|
pathList.push(data.path);
|
|
17506
17544
|
if (data.children) {
|
|
17507
|
-
|
|
17545
|
+
getList(data.children);
|
|
17508
17546
|
}
|
|
17509
17547
|
}
|
|
17510
17548
|
};
|
|
17511
|
-
|
|
17549
|
+
getList(originData);
|
|
17512
17550
|
return pathList;
|
|
17513
17551
|
};
|
|
17514
17552
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -17517,18 +17555,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17517
17555
|
customerMenuData = _this$props.customerMenuData,
|
|
17518
17556
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
17519
17557
|
var filterItem;
|
|
17520
|
-
var
|
|
17558
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
17521
17559
|
menuData.forEach(function (item) {
|
|
17522
17560
|
if (item.path === path) {
|
|
17523
17561
|
filterItem = _objectSpread2({}, item);
|
|
17524
17562
|
return;
|
|
17525
17563
|
}
|
|
17526
17564
|
if (item.children) {
|
|
17527
|
-
|
|
17565
|
+
filterMenuItem(item.children);
|
|
17528
17566
|
}
|
|
17529
17567
|
});
|
|
17530
17568
|
};
|
|
17531
|
-
|
|
17569
|
+
filterMenuItem(treeData);
|
|
17532
17570
|
var addPathList = _this.getPathList(filterItem);
|
|
17533
17571
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
17534
17572
|
var isRepet = false;
|
|
@@ -17558,8 +17596,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17558
17596
|
return item.path === '/';
|
|
17559
17597
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
17560
17598
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
17561
|
-
|
|
17562
|
-
|
|
17599
|
+
setMenuTreeData(routesData);
|
|
17600
|
+
generateList(routesData);
|
|
17563
17601
|
this.setState({
|
|
17564
17602
|
treeData: routesData
|
|
17565
17603
|
});
|
|
@@ -17573,16 +17611,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17573
17611
|
expandedKeys = _this$state.expandedKeys,
|
|
17574
17612
|
autoExpandParent = _this$state.autoExpandParent,
|
|
17575
17613
|
treeData = _this$state.treeData;
|
|
17576
|
-
var
|
|
17614
|
+
var loop = function loop(data) {
|
|
17577
17615
|
return data.map(function (item) {
|
|
17578
17616
|
var index = item.name.indexOf(searchValue);
|
|
17579
17617
|
var beforeStr = item.name.substr(0, index);
|
|
17580
17618
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
17581
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
17619
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
17582
17620
|
style: {
|
|
17583
17621
|
color: '#f50'
|
|
17584
17622
|
}
|
|
17585
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
17623
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
17586
17624
|
if (item.children && item.children.length) {
|
|
17587
17625
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
17588
17626
|
path: item.path,
|
|
@@ -17604,7 +17642,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17604
17642
|
width: 18,
|
|
17605
17643
|
src: arrowRight
|
|
17606
17644
|
}))))
|
|
17607
|
-
},
|
|
17645
|
+
}, loop(item.children));
|
|
17608
17646
|
}
|
|
17609
17647
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
17610
17648
|
path: item.path,
|
|
@@ -17654,7 +17692,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17654
17692
|
onExpand: this.onExpand,
|
|
17655
17693
|
expandedKeys: expandedKeys,
|
|
17656
17694
|
autoExpandParent: autoExpandParent
|
|
17657
|
-
},
|
|
17695
|
+
}, loop(treeData))));
|
|
17658
17696
|
}
|
|
17659
17697
|
}]);
|
|
17660
17698
|
}(React$1.Component);
|
|
@@ -17687,24 +17725,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17687
17725
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
17688
17726
|
var dragObj;
|
|
17689
17727
|
var finalDropItem;
|
|
17690
|
-
var
|
|
17728
|
+
var loop = function loop(data, path, callback) {
|
|
17691
17729
|
for (var i = 0; i < data.length; i++) {
|
|
17692
17730
|
if (data[i].path === path) {
|
|
17693
17731
|
return callback(data[i], i, data);
|
|
17694
17732
|
}
|
|
17695
17733
|
if (data[i].children) {
|
|
17696
|
-
|
|
17734
|
+
loop(data[i].children, path, callback);
|
|
17697
17735
|
}
|
|
17698
17736
|
}
|
|
17699
17737
|
};
|
|
17700
17738
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
17701
|
-
|
|
17739
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
17702
17740
|
arr.splice(index, 1);
|
|
17703
17741
|
dragObj = item;
|
|
17704
17742
|
});
|
|
17705
17743
|
if (!info.dropToGap) {
|
|
17706
17744
|
// Drop on the content
|
|
17707
|
-
|
|
17745
|
+
loop(data, dropKey, function (item) {
|
|
17708
17746
|
item.children = item.children || [];
|
|
17709
17747
|
item.children.unshift(dragObj);
|
|
17710
17748
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -17715,7 +17753,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17715
17753
|
// Is expanded
|
|
17716
17754
|
dropPosition === 1 // On the bottom gap
|
|
17717
17755
|
) {
|
|
17718
|
-
|
|
17756
|
+
loop(data, dropKey, function (item) {
|
|
17719
17757
|
item.children = item.children || [];
|
|
17720
17758
|
item.children.unshift(dragObj);
|
|
17721
17759
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -17723,7 +17761,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17723
17761
|
} else {
|
|
17724
17762
|
var ar;
|
|
17725
17763
|
var i;
|
|
17726
|
-
|
|
17764
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
17727
17765
|
ar = arr;
|
|
17728
17766
|
i = index;
|
|
17729
17767
|
});
|
|
@@ -17762,17 +17800,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17762
17800
|
title: '编辑名称',
|
|
17763
17801
|
callBack: function callBack(newName) {
|
|
17764
17802
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
17765
|
-
var
|
|
17803
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
17766
17804
|
oldTreeData.forEach(function (treeItem) {
|
|
17767
17805
|
if (treeItem.path === item.path) {
|
|
17768
17806
|
treeItem.name = newName;
|
|
17769
17807
|
}
|
|
17770
17808
|
if (treeItem.children) {
|
|
17771
|
-
|
|
17809
|
+
editTreeDataName(treeItem.children);
|
|
17772
17810
|
}
|
|
17773
17811
|
});
|
|
17774
17812
|
};
|
|
17775
|
-
|
|
17813
|
+
editTreeDataName(oldTreeData);
|
|
17776
17814
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
17777
17815
|
_this.setState({
|
|
17778
17816
|
modalInfo: {
|
|
@@ -17817,7 +17855,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17817
17855
|
title: '新增子目录',
|
|
17818
17856
|
callBack: function callBack(newName) {
|
|
17819
17857
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
17820
|
-
var
|
|
17858
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
17821
17859
|
oldTreeData.forEach(function (treeItem) {
|
|
17822
17860
|
if (treeItem.path === item.path) {
|
|
17823
17861
|
treeItem.children ? treeItem.children.push({
|
|
@@ -17829,11 +17867,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17829
17867
|
}];
|
|
17830
17868
|
}
|
|
17831
17869
|
if (treeItem.children) {
|
|
17832
|
-
|
|
17870
|
+
addChildFolder(treeItem.children);
|
|
17833
17871
|
}
|
|
17834
17872
|
});
|
|
17835
17873
|
};
|
|
17836
|
-
|
|
17874
|
+
addChildFolder(oldTreeData);
|
|
17837
17875
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
17838
17876
|
_this.setState({
|
|
17839
17877
|
modalInfo: {
|
|
@@ -17892,7 +17930,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17892
17930
|
var _this$state = this.state,
|
|
17893
17931
|
modalInfo = _this$state.modalInfo,
|
|
17894
17932
|
checkedKeys = _this$state.checkedKeys;
|
|
17895
|
-
var
|
|
17933
|
+
var loop = function loop(data) {
|
|
17896
17934
|
return data.map(function (item) {
|
|
17897
17935
|
if (item.children && item.children.length) {
|
|
17898
17936
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -17909,7 +17947,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17909
17947
|
e.stopPropagation();
|
|
17910
17948
|
}
|
|
17911
17949
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
17912
|
-
},
|
|
17950
|
+
}, loop(item.children));
|
|
17913
17951
|
}
|
|
17914
17952
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
17915
17953
|
path: item.path,
|
|
@@ -17988,7 +18026,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
17988
18026
|
children: 'children'
|
|
17989
18027
|
},
|
|
17990
18028
|
onDrop: this.onDrop
|
|
17991
|
-
},
|
|
18029
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
17992
18030
|
width: 600,
|
|
17993
18031
|
bodyStyle: {
|
|
17994
18032
|
paddingTop: '32px',
|
|
@@ -18101,7 +18139,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18101
18139
|
pathname: item.path
|
|
18102
18140
|
});
|
|
18103
18141
|
};
|
|
18104
|
-
var
|
|
18142
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
18105
18143
|
return menuData.map(function (item) {
|
|
18106
18144
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18107
18145
|
style: {
|
|
@@ -18116,7 +18154,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18116
18154
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
18117
18155
|
paddingLeft: '4px'
|
|
18118
18156
|
}
|
|
18119
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
18157
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
18120
18158
|
});
|
|
18121
18159
|
};
|
|
18122
18160
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18142,7 +18180,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18142
18180
|
style: {
|
|
18143
18181
|
paddingLeft: '5px'
|
|
18144
18182
|
}
|
|
18145
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18183
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18146
18184
|
style: {
|
|
18147
18185
|
left: isDrawer ? 140 : 0
|
|
18148
18186
|
},
|
|
@@ -18163,7 +18201,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18163
18201
|
visible: isDrawer
|
|
18164
18202
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
18165
18203
|
className: 'menu_title_line'
|
|
18166
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
18204
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
18167
18205
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
18168
18206
|
style: {
|
|
18169
18207
|
fontWeight: '600',
|
|
@@ -18237,7 +18275,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18237
18275
|
return item.path === '/';
|
|
18238
18276
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18239
18277
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18240
|
-
|
|
18278
|
+
setMenuTreeData(routesData);
|
|
18241
18279
|
routesData.forEach(function (item) {
|
|
18242
18280
|
if (item.children) {
|
|
18243
18281
|
routesDataList.push(item);
|
|
@@ -18267,7 +18305,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18267
18305
|
setHeight(clientHeight - 190);
|
|
18268
18306
|
setDrawHeight(clientHeight - 70);
|
|
18269
18307
|
};
|
|
18270
|
-
var
|
|
18308
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18271
18309
|
if (!child.hideInMenu && child.children) {
|
|
18272
18310
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18273
18311
|
style: {
|
|
@@ -18277,7 +18315,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18277
18315
|
}, formatMessage({
|
|
18278
18316
|
id: "".concat(child.locale)
|
|
18279
18317
|
})), child.children.map(function (menuItem) {
|
|
18280
|
-
return
|
|
18318
|
+
return renderChildItem(menuItem);
|
|
18281
18319
|
}));
|
|
18282
18320
|
} else if (!child.hideInMenu && child.path) {
|
|
18283
18321
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18419,7 +18457,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18419
18457
|
onMenuClick(e, item);
|
|
18420
18458
|
}
|
|
18421
18459
|
}, item.name);
|
|
18422
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
18460
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
18423
18461
|
className: 'search_menu_content'
|
|
18424
18462
|
}, SearhData.map(function (item) {
|
|
18425
18463
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18428,7 +18466,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18428
18466
|
},
|
|
18429
18467
|
key: item.path
|
|
18430
18468
|
}, item.name);
|
|
18431
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
18469
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
18432
18470
|
style: {
|
|
18433
18471
|
height: "".concat(rightMenuHeight, "px"),
|
|
18434
18472
|
overflowY: 'scroll',
|
|
@@ -18440,7 +18478,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18440
18478
|
className: 'drawerWarp_right'
|
|
18441
18479
|
}, homepageData && homepageData.filter(function (d) {
|
|
18442
18480
|
return !d.hideInMenu;
|
|
18443
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18481
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
18444
18482
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18445
18483
|
dataSource: homepageData,
|
|
18446
18484
|
renderItem: function renderItem(child) {
|
|
@@ -18481,7 +18519,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
18481
18519
|
bordered: true,
|
|
18482
18520
|
dataSource: item.children,
|
|
18483
18521
|
renderItem: function renderItem(child) {
|
|
18484
|
-
return
|
|
18522
|
+
return renderChildItem(child);
|
|
18485
18523
|
}
|
|
18486
18524
|
});
|
|
18487
18525
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -18639,10 +18677,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
18639
18677
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
18640
18678
|
var menuKeys = [];
|
|
18641
18679
|
var docsId = [];
|
|
18642
|
-
var
|
|
18680
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
18643
18681
|
data.forEach(function (item) {
|
|
18644
18682
|
if (item.children && item.children.length > 0) {
|
|
18645
|
-
|
|
18683
|
+
getLimitedMenuKeys(item.children);
|
|
18646
18684
|
} else {
|
|
18647
18685
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
18648
18686
|
menuKeys.push(originPath);
|
|
@@ -18653,7 +18691,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
18653
18691
|
});
|
|
18654
18692
|
};
|
|
18655
18693
|
try {
|
|
18656
|
-
|
|
18694
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
18657
18695
|
} catch (e) {}
|
|
18658
18696
|
return {
|
|
18659
18697
|
menuKeys: menuKeys,
|
|
@@ -18887,10 +18925,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
18887
18925
|
return (node.path || '').includes('all-general-documents');
|
|
18888
18926
|
};
|
|
18889
18927
|
// 递归获取树列表
|
|
18890
|
-
var
|
|
18928
|
+
var getTreeList = function getTreeList(data) {
|
|
18891
18929
|
data.forEach(function (node) {
|
|
18892
18930
|
if (node.routes && node.routes.length > 0) {
|
|
18893
|
-
|
|
18931
|
+
getTreeList(node.routes);
|
|
18894
18932
|
return;
|
|
18895
18933
|
}
|
|
18896
18934
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -18921,7 +18959,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
18921
18959
|
}
|
|
18922
18960
|
});
|
|
18923
18961
|
};
|
|
18924
|
-
|
|
18962
|
+
getTreeList(treeData);
|
|
18925
18963
|
return treeList;
|
|
18926
18964
|
};
|
|
18927
18965
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -19538,7 +19576,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19538
19576
|
updateState = _ref8.updateState;
|
|
19539
19577
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
19540
19578
|
className: "tab_title_content"
|
|
19541
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
19579
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
19542
19580
|
info: item,
|
|
19543
19581
|
operateFun: _this3.operateFun,
|
|
19544
19582
|
listenRouterState: listenRouterState
|
|
@@ -19674,7 +19712,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19674
19712
|
};
|
|
19675
19713
|
}
|
|
19676
19714
|
var OperationsSlot = {
|
|
19677
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
19715
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
19678
19716
|
className: 'tab_left_operate'
|
|
19679
19717
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
19680
19718
|
onClick: function onClick() {
|
|
@@ -19690,7 +19728,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19690
19728
|
_this3.setTabNavTransLate(-100);
|
|
19691
19729
|
}
|
|
19692
19730
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
19693
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
19731
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
19694
19732
|
style: {
|
|
19695
19733
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
19696
19734
|
},
|
|
@@ -19788,7 +19826,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19788
19826
|
onMouseLeave: function onMouseLeave() {
|
|
19789
19827
|
_this3.setShowMenu(false);
|
|
19790
19828
|
}
|
|
19791
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
19829
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
19792
19830
|
style: {
|
|
19793
19831
|
position: 'absolute',
|
|
19794
19832
|
top: '14px',
|
|
@@ -19807,7 +19845,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19807
19845
|
postMenuData: function postMenuData(menus) {
|
|
19808
19846
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
19809
19847
|
},
|
|
19810
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
19848
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
19811
19849
|
ref: this.allFunc,
|
|
19812
19850
|
itemPath: itemPath,
|
|
19813
19851
|
handleClose: this.handleClose,
|
|
@@ -19825,7 +19863,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
19825
19863
|
},
|
|
19826
19864
|
menu: {
|
|
19827
19865
|
request: function () {
|
|
19828
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19866
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19829
19867
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19830
19868
|
while (1) switch (_context.prev = _context.next) {
|
|
19831
19869
|
case 0:
|
|
@@ -19956,7 +19994,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
19956
19994
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
19957
19995
|
timeFormat = _this$props4.timeFormat,
|
|
19958
19996
|
transparentProps = _this$props4.transparentProps;
|
|
19959
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
19997
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? ( /*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
19960
19998
|
getDictionarySource: getDictionarySource,
|
|
19961
19999
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
19962
20000
|
timeFormat: timeFormat
|
|
@@ -19980,12 +20018,12 @@ var index$5 = (function (props) {
|
|
|
19980
20018
|
});
|
|
19981
20019
|
|
|
19982
20020
|
// @ts-nocheck
|
|
19983
|
-
var
|
|
20021
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
19984
20022
|
var result = [];
|
|
19985
20023
|
columns.forEach(function (column) {
|
|
19986
20024
|
if (column.children) {
|
|
19987
20025
|
result.push(column);
|
|
19988
|
-
result.push.apply(result,
|
|
20026
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
19989
20027
|
} else {
|
|
19990
20028
|
result.push(column);
|
|
19991
20029
|
}
|
|
@@ -19994,7 +20032,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
19994
20032
|
};
|
|
19995
20033
|
var convertToRows = function convertToRows(originColumns) {
|
|
19996
20034
|
var maxLevel = 1;
|
|
19997
|
-
var
|
|
20035
|
+
var traverse = function traverse(column, parent) {
|
|
19998
20036
|
if (parent) {
|
|
19999
20037
|
column.level = parent.level + 1;
|
|
20000
20038
|
if (maxLevel < column.level) {
|
|
@@ -20004,7 +20042,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20004
20042
|
if (column.children) {
|
|
20005
20043
|
var colSpan = 0;
|
|
20006
20044
|
column.children.forEach(function (subColumn) {
|
|
20007
|
-
|
|
20045
|
+
traverse(subColumn, column);
|
|
20008
20046
|
colSpan += subColumn.colSpan;
|
|
20009
20047
|
});
|
|
20010
20048
|
column.colSpan = colSpan;
|
|
@@ -20014,13 +20052,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20014
20052
|
};
|
|
20015
20053
|
originColumns.forEach(function (column) {
|
|
20016
20054
|
column.level = 1;
|
|
20017
|
-
|
|
20055
|
+
traverse(column);
|
|
20018
20056
|
});
|
|
20019
20057
|
var rows = [];
|
|
20020
20058
|
for (var i = 0; i < maxLevel; i++) {
|
|
20021
20059
|
rows.push([]);
|
|
20022
20060
|
}
|
|
20023
|
-
var allColumns =
|
|
20061
|
+
var allColumns = getAllColumns(originColumns);
|
|
20024
20062
|
allColumns.forEach(function (column) {
|
|
20025
20063
|
if (!column.children) {
|
|
20026
20064
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -20060,7 +20098,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
20060
20098
|
};
|
|
20061
20099
|
var headersToRows = function headersToRows(originColumns) {
|
|
20062
20100
|
var maxLevel = 1;
|
|
20063
|
-
var
|
|
20101
|
+
var traverse = function traverse(column, parent) {
|
|
20064
20102
|
if (parent) {
|
|
20065
20103
|
//计算当前元素属于第几个层级
|
|
20066
20104
|
column.level = parent.level + 1;
|
|
@@ -20073,7 +20111,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20073
20111
|
var colSpan = 0;
|
|
20074
20112
|
column.children.forEach(function (subColumn) {
|
|
20075
20113
|
//进行递归
|
|
20076
|
-
|
|
20114
|
+
traverse(subColumn, column);
|
|
20077
20115
|
colSpan += subColumn.colSpan;
|
|
20078
20116
|
});
|
|
20079
20117
|
column.colSpan = colSpan;
|
|
@@ -20083,14 +20121,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
20083
20121
|
};
|
|
20084
20122
|
originColumns.forEach(function (column) {
|
|
20085
20123
|
column.level = 1;
|
|
20086
|
-
|
|
20124
|
+
traverse(column);
|
|
20087
20125
|
});
|
|
20088
20126
|
var rows = [];
|
|
20089
20127
|
var lastData = [];
|
|
20090
20128
|
for (var i = 0; i < maxLevel; i++) {
|
|
20091
20129
|
rows.push([]);
|
|
20092
20130
|
}
|
|
20093
|
-
var allColumns =
|
|
20131
|
+
var allColumns = getAllColumns(originColumns);
|
|
20094
20132
|
allColumns.forEach(function (column) {
|
|
20095
20133
|
if (!column.children) {
|
|
20096
20134
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -26107,7 +26145,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
26107
26145
|
}
|
|
26108
26146
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
26109
26147
|
};
|
|
26110
|
-
var
|
|
26148
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
26111
26149
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
26112
26150
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
26113
26151
|
var children = hightLightData.children,
|
|
@@ -26118,7 +26156,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
26118
26156
|
lineEnd = _loc2[2];
|
|
26119
26157
|
if (children) {
|
|
26120
26158
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
26121
|
-
return
|
|
26159
|
+
return hasHighLightChildren(v, highLightLine);
|
|
26122
26160
|
});
|
|
26123
26161
|
}
|
|
26124
26162
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -26130,7 +26168,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
26130
26168
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
26131
26169
|
data.forEach(function (node) {
|
|
26132
26170
|
if (!node) return;
|
|
26133
|
-
node.toggled =
|
|
26171
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
26134
26172
|
node.active = isHightLight(node, highLightLine);
|
|
26135
26173
|
if (node.children) {
|
|
26136
26174
|
if (node.active) {
|
|
@@ -27561,7 +27599,7 @@ var valueType = {
|
|
|
27561
27599
|
};
|
|
27562
27600
|
|
|
27563
27601
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
27564
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
27602
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
27565
27603
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
27566
27604
|
while (1) switch (_context.prev = _context.next) {
|
|
27567
27605
|
case 0:
|
|
@@ -27629,7 +27667,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
27629
27667
|
value: false
|
|
27630
27668
|
}];
|
|
27631
27669
|
var ref = useRef();
|
|
27632
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
27670
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
27633
27671
|
var _ref$current, source;
|
|
27634
27672
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
27635
27673
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -27743,7 +27781,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
27743
27781
|
source: {
|
|
27744
27782
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
27745
27783
|
type: function () {
|
|
27746
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
27784
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
27747
27785
|
var form, values, name, relates, source;
|
|
27748
27786
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27749
27787
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -28223,7 +28261,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28223
28261
|
source: {
|
|
28224
28262
|
relates: ['choiceType', 'inputType'],
|
|
28225
28263
|
type: function () {
|
|
28226
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
28264
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
28227
28265
|
var values, name, form, source;
|
|
28228
28266
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
28229
28267
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -28445,7 +28483,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28445
28483
|
width: 900,
|
|
28446
28484
|
maskClosable: false,
|
|
28447
28485
|
onOk: function () {
|
|
28448
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
28486
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
28449
28487
|
var _ref$current4, _res$editableStatus;
|
|
28450
28488
|
var res, _res$defaultValue;
|
|
28451
28489
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -28517,7 +28555,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28517
28555
|
}()
|
|
28518
28556
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
28519
28557
|
ref: ref
|
|
28520
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
28558
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
28521
28559
|
};
|
|
28522
28560
|
|
|
28523
28561
|
// @ts-nocheck
|
|
@@ -29131,7 +29169,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29131
29169
|
return setVisible(false);
|
|
29132
29170
|
},
|
|
29133
29171
|
className: 'customFieldsDrawer'
|
|
29134
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
29172
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
29135
29173
|
style: {
|
|
29136
29174
|
display: 'flex'
|
|
29137
29175
|
}
|
|
@@ -29140,13 +29178,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29140
29178
|
flex: 1,
|
|
29141
29179
|
width: 500
|
|
29142
29180
|
}
|
|
29143
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29181
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29144
29182
|
style: {
|
|
29145
29183
|
padding: "10px 0",
|
|
29146
29184
|
fontSize: "16px",
|
|
29147
29185
|
fontWeight: "bolder"
|
|
29148
29186
|
}
|
|
29149
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
29187
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
29150
29188
|
style: {
|
|
29151
29189
|
flex: 1
|
|
29152
29190
|
}
|
|
@@ -29155,7 +29193,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29155
29193
|
onRun: onClickRun,
|
|
29156
29194
|
value: jsonEditorVal,
|
|
29157
29195
|
shallowHeight: height
|
|
29158
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
29196
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
29159
29197
|
defaultActiveKey: activeKey,
|
|
29160
29198
|
onChange: function onChange(v) {
|
|
29161
29199
|
return setActiveKey(v);
|
|
@@ -29172,13 +29210,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29172
29210
|
flex: 1,
|
|
29173
29211
|
width: 500
|
|
29174
29212
|
}
|
|
29175
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29213
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29176
29214
|
style: {
|
|
29177
29215
|
padding: "10px 0",
|
|
29178
29216
|
fontSize: "16px",
|
|
29179
29217
|
fontWeight: "bolder"
|
|
29180
29218
|
}
|
|
29181
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
29219
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
29182
29220
|
style: {
|
|
29183
29221
|
flex: 1
|
|
29184
29222
|
}
|
|
@@ -29200,13 +29238,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
29200
29238
|
flex: 1,
|
|
29201
29239
|
width: 500
|
|
29202
29240
|
}
|
|
29203
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
29241
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
29204
29242
|
style: {
|
|
29205
29243
|
padding: "10px 0",
|
|
29206
29244
|
fontSize: "16px",
|
|
29207
29245
|
fontWeight: "bolder"
|
|
29208
29246
|
}
|
|
29209
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
29247
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
29210
29248
|
style: {
|
|
29211
29249
|
flex: 1
|
|
29212
29250
|
}
|
|
@@ -29352,7 +29390,7 @@ function getMetaData(_x) {
|
|
|
29352
29390
|
|
|
29353
29391
|
// 获取数据
|
|
29354
29392
|
function _getMetaData() {
|
|
29355
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
29393
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
29356
29394
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29357
29395
|
while (1) switch (_context.prev = _context.next) {
|
|
29358
29396
|
case 0:
|
|
@@ -29574,7 +29612,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
29574
29612
|
tableState = _useState4[0],
|
|
29575
29613
|
setTableState = _useState4[1];
|
|
29576
29614
|
var handleOpen = /*#__PURE__*/function () {
|
|
29577
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29615
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29578
29616
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
29579
29617
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
29580
29618
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -29893,7 +29931,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
29893
29931
|
destroyOnClose: true
|
|
29894
29932
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
29895
29933
|
ref: queryTableRef
|
|
29896
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React$1.createElement(Row, {
|
|
29934
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && ( /*#__PURE__*/React$1.createElement(Row, {
|
|
29897
29935
|
justify: "center",
|
|
29898
29936
|
style: {
|
|
29899
29937
|
marginBottom: 30,
|
|
@@ -30009,7 +30047,7 @@ var CustomSelector = (function (props) {
|
|
|
30009
30047
|
var _props$ctx7;
|
|
30010
30048
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
30011
30049
|
}
|
|
30012
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
30050
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
30013
30051
|
type: "primary",
|
|
30014
30052
|
style: {
|
|
30015
30053
|
width: '30px',
|
|
@@ -30095,7 +30133,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
30095
30133
|
_useState2 = _slicedToArray(_useState, 2),
|
|
30096
30134
|
handSource = _useState2[0],
|
|
30097
30135
|
setHandSource = _useState2[1];
|
|
30098
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30136
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30099
30137
|
var resData, data;
|
|
30100
30138
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30101
30139
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30247,7 +30285,7 @@ function getRegularThresholdRange(_x) {
|
|
|
30247
30285
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
30248
30286
|
}
|
|
30249
30287
|
function _getRegularThresholdRange() {
|
|
30250
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
30288
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
30251
30289
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30252
30290
|
while (1) switch (_context.prev = _context.next) {
|
|
30253
30291
|
case 0:
|
|
@@ -30401,7 +30439,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
30401
30439
|
};
|
|
30402
30440
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
30403
30441
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
30404
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
30442
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
30405
30443
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
30406
30444
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30407
30445
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31346,7 +31384,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31346
31384
|
isAll: true,
|
|
31347
31385
|
needNameAndCode: true,
|
|
31348
31386
|
notChangeOnSelect: true,
|
|
31349
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
31387
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
31350
31388
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
31351
31389
|
while (1) switch (_context2.prev = _context2.next) {
|
|
31352
31390
|
case 0:
|
|
@@ -31395,7 +31433,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31395
31433
|
isAll: true,
|
|
31396
31434
|
needNameAndCode: true,
|
|
31397
31435
|
notChangeOnSelect: true,
|
|
31398
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
31436
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
31399
31437
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
31400
31438
|
while (1) switch (_context3.prev = _context3.next) {
|
|
31401
31439
|
case 0:
|
|
@@ -31446,7 +31484,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31446
31484
|
isAll: true,
|
|
31447
31485
|
needNameAndCode: true,
|
|
31448
31486
|
notChangeOnSelect: true,
|
|
31449
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31487
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31450
31488
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
31451
31489
|
while (1) switch (_context4.prev = _context4.next) {
|
|
31452
31490
|
case 0:
|
|
@@ -33410,7 +33448,7 @@ var App$1 = function App(_ref) {
|
|
|
33410
33448
|
borderRadius: '5px',
|
|
33411
33449
|
cursor: 'pointer'
|
|
33412
33450
|
}
|
|
33413
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
33451
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
33414
33452
|
autoFocus: true,
|
|
33415
33453
|
onClick: function onClick(e) {
|
|
33416
33454
|
return e.stopPropagation();
|
|
@@ -33697,7 +33735,7 @@ function RenderCompItem(props) {
|
|
|
33697
33735
|
dictData = _useState2[0],
|
|
33698
33736
|
setDictData = _useState2[1];
|
|
33699
33737
|
var getDictData = /*#__PURE__*/function () {
|
|
33700
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33738
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33701
33739
|
var _data$map;
|
|
33702
33740
|
var data;
|
|
33703
33741
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -33739,7 +33777,7 @@ function RenderCompItem(props) {
|
|
|
33739
33777
|
var style2 = {
|
|
33740
33778
|
width: '100px'
|
|
33741
33779
|
};
|
|
33742
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
|
|
33780
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React$1.createElement(Input, {
|
|
33743
33781
|
disabled: disabled,
|
|
33744
33782
|
allowClear: true,
|
|
33745
33783
|
onClear: function onClear() {
|
|
@@ -33750,10 +33788,12 @@ function RenderCompItem(props) {
|
|
|
33750
33788
|
onBlur: function onBlur(e) {
|
|
33751
33789
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
33752
33790
|
}
|
|
33753
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React$1.createElement(InputNumber, {
|
|
33791
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React$1.createElement(InputNumber, {
|
|
33754
33792
|
disabled: disabled,
|
|
33755
|
-
max
|
|
33756
|
-
|
|
33793
|
+
// max={Number.MAX_SAFE_INTEGER}
|
|
33794
|
+
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
33795
|
+
// min={ites?.valueType === 23 ? 0 : Number.MIN_SAFE_INTEGER}
|
|
33796
|
+
min: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.minValue) ? (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : Number.MIN_SAFE_INTEGER : ites.minValue,
|
|
33757
33797
|
precision: (ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 ? 0 : 2,
|
|
33758
33798
|
defaultValue: ites.defaultValue,
|
|
33759
33799
|
style: style2,
|
|
@@ -33761,7 +33801,7 @@ function RenderCompItem(props) {
|
|
|
33761
33801
|
onChange: function onChange(value) {
|
|
33762
33802
|
handleEdit(ites.code, value);
|
|
33763
33803
|
}
|
|
33764
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React$1.createElement(DatePicker, {
|
|
33804
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && ( /*#__PURE__*/React$1.createElement(DatePicker, {
|
|
33765
33805
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
33766
33806
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
33767
33807
|
disabled: disabled,
|
|
@@ -33771,7 +33811,7 @@ function RenderCompItem(props) {
|
|
|
33771
33811
|
onChange: function onChange(value, dateString) {
|
|
33772
33812
|
handleEdit(ites.code, dateString);
|
|
33773
33813
|
}
|
|
33774
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
33814
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
33775
33815
|
showTime: true,
|
|
33776
33816
|
disabled: disabled,
|
|
33777
33817
|
defaultValue: ites.defaultValue,
|
|
@@ -33780,7 +33820,7 @@ function RenderCompItem(props) {
|
|
|
33780
33820
|
onChange: function onChange(value, timeString) {
|
|
33781
33821
|
handleEdit(ites.code, timeString);
|
|
33782
33822
|
}
|
|
33783
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
|
|
33823
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React$1.createElement(Switch, {
|
|
33784
33824
|
disabled: disabled,
|
|
33785
33825
|
defaultChecked: !!ites.defaultValue,
|
|
33786
33826
|
style: style2,
|
|
@@ -33788,7 +33828,7 @@ function RenderCompItem(props) {
|
|
|
33788
33828
|
onChange: function onChange(value) {
|
|
33789
33829
|
handleEdit(ites.code, value);
|
|
33790
33830
|
}
|
|
33791
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
33831
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && ( /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
33792
33832
|
disabled: disabled,
|
|
33793
33833
|
allowClear: true,
|
|
33794
33834
|
showArrow: true
|
|
@@ -33806,7 +33846,7 @@ function RenderCompItem(props) {
|
|
|
33806
33846
|
key: it,
|
|
33807
33847
|
value: it
|
|
33808
33848
|
}, ites.enumeration[it]);
|
|
33809
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
33849
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
33810
33850
|
disabled: disabled,
|
|
33811
33851
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
33812
33852
|
defaultValue: ites.defaultValue,
|
|
@@ -33816,7 +33856,7 @@ function RenderCompItem(props) {
|
|
|
33816
33856
|
handleEdit(ites.code, value);
|
|
33817
33857
|
},
|
|
33818
33858
|
dictionaryCode: ites.dictionaryCode
|
|
33819
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33859
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33820
33860
|
selectBusinessType: "physicalWarehouse",
|
|
33821
33861
|
selectProps: _objectSpread2({
|
|
33822
33862
|
style: styleCommon,
|
|
@@ -33838,7 +33878,7 @@ function RenderCompItem(props) {
|
|
|
33838
33878
|
getPopupContainer: function getPopupContainer() {
|
|
33839
33879
|
return document.body;
|
|
33840
33880
|
}
|
|
33841
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33881
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33842
33882
|
selectBusinessType: "realWarehouse",
|
|
33843
33883
|
selectProps: _objectSpread2({
|
|
33844
33884
|
style: styleCommon,
|
|
@@ -33860,7 +33900,7 @@ function RenderCompItem(props) {
|
|
|
33860
33900
|
getPopupContainer: function getPopupContainer() {
|
|
33861
33901
|
return document.body;
|
|
33862
33902
|
}
|
|
33863
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33903
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33864
33904
|
selectBusinessType: "virtualWarehouse",
|
|
33865
33905
|
selectProps: _objectSpread2({
|
|
33866
33906
|
style: styleCommon,
|
|
@@ -33882,7 +33922,7 @@ function RenderCompItem(props) {
|
|
|
33882
33922
|
getPopupContainer: function getPopupContainer() {
|
|
33883
33923
|
return document.body;
|
|
33884
33924
|
}
|
|
33885
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33925
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33886
33926
|
selectBusinessType: "channelWarehouse",
|
|
33887
33927
|
selectProps: _objectSpread2({
|
|
33888
33928
|
style: styleCommon,
|
|
@@ -33904,7 +33944,7 @@ function RenderCompItem(props) {
|
|
|
33904
33944
|
getPopupContainer: function getPopupContainer() {
|
|
33905
33945
|
return document.body;
|
|
33906
33946
|
}
|
|
33907
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33947
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33908
33948
|
selectBusinessType: "spuCommodity",
|
|
33909
33949
|
selectProps: _objectSpread2({
|
|
33910
33950
|
style: styleCommon,
|
|
@@ -33925,7 +33965,7 @@ function RenderCompItem(props) {
|
|
|
33925
33965
|
getPopupContainer: function getPopupContainer() {
|
|
33926
33966
|
return document.body;
|
|
33927
33967
|
}
|
|
33928
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33968
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
33929
33969
|
selectBusinessType: "skuCommodity",
|
|
33930
33970
|
selectProps: _objectSpread2({
|
|
33931
33971
|
style: styleCommon,
|
|
@@ -33946,13 +33986,13 @@ function RenderCompItem(props) {
|
|
|
33946
33986
|
getPopupContainer: function getPopupContainer() {
|
|
33947
33987
|
return document.body;
|
|
33948
33988
|
}
|
|
33949
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
33989
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React$1.createElement(BsCascader, {
|
|
33950
33990
|
disabled: disabled,
|
|
33951
33991
|
isAll: true,
|
|
33952
33992
|
needNameAndCode: true,
|
|
33953
33993
|
notChangeOnSelect: true,
|
|
33954
33994
|
initRequestSource: function () {
|
|
33955
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33995
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33956
33996
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33957
33997
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33958
33998
|
case 0:
|
|
@@ -33994,7 +34034,7 @@ function RenderCompItem(props) {
|
|
|
33994
34034
|
getPopupContainer: function getPopupContainer() {
|
|
33995
34035
|
return document.body;
|
|
33996
34036
|
}
|
|
33997
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34037
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
33998
34038
|
disabled: disabled,
|
|
33999
34039
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34000
34040
|
businessType: "department",
|
|
@@ -34007,7 +34047,7 @@ function RenderCompItem(props) {
|
|
|
34007
34047
|
getPopupContainer: function getPopupContainer() {
|
|
34008
34048
|
return document.body;
|
|
34009
34049
|
}
|
|
34010
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34050
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34011
34051
|
disabled: disabled,
|
|
34012
34052
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34013
34053
|
businessType: "purchase-organization",
|
|
@@ -34020,7 +34060,7 @@ function RenderCompItem(props) {
|
|
|
34020
34060
|
getPopupContainer: function getPopupContainer() {
|
|
34021
34061
|
return document.body;
|
|
34022
34062
|
}
|
|
34023
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34063
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34024
34064
|
disabled: disabled,
|
|
34025
34065
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34026
34066
|
businessType: "sales-organization",
|
|
@@ -34033,7 +34073,7 @@ function RenderCompItem(props) {
|
|
|
34033
34073
|
getPopupContainer: function getPopupContainer() {
|
|
34034
34074
|
return document.body;
|
|
34035
34075
|
}
|
|
34036
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34076
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34037
34077
|
selectBusinessType: "supplier2",
|
|
34038
34078
|
selectProps: _objectSpread2({
|
|
34039
34079
|
style: styleCommon,
|
|
@@ -34054,7 +34094,7 @@ function RenderCompItem(props) {
|
|
|
34054
34094
|
getPopupContainer: function getPopupContainer() {
|
|
34055
34095
|
return document.body;
|
|
34056
34096
|
}
|
|
34057
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34097
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34058
34098
|
selectBusinessType: "customer2",
|
|
34059
34099
|
selectProps: _objectSpread2({
|
|
34060
34100
|
style: styleCommon,
|
|
@@ -34075,7 +34115,7 @@ function RenderCompItem(props) {
|
|
|
34075
34115
|
getPopupContainer: function getPopupContainer() {
|
|
34076
34116
|
return document.body;
|
|
34077
34117
|
}
|
|
34078
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34118
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34079
34119
|
selectBusinessType: "shopFile2",
|
|
34080
34120
|
selectProps: _objectSpread2({
|
|
34081
34121
|
style: styleCommon,
|
|
@@ -34096,7 +34136,7 @@ function RenderCompItem(props) {
|
|
|
34096
34136
|
getPopupContainer: function getPopupContainer() {
|
|
34097
34137
|
return document.body;
|
|
34098
34138
|
}
|
|
34099
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34139
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34100
34140
|
selectBusinessType: "employee2",
|
|
34101
34141
|
selectProps: _objectSpread2({
|
|
34102
34142
|
style: styleCommon,
|
|
@@ -34117,7 +34157,7 @@ function RenderCompItem(props) {
|
|
|
34117
34157
|
getPopupContainer: function getPopupContainer() {
|
|
34118
34158
|
return document.body;
|
|
34119
34159
|
}
|
|
34120
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34160
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34121
34161
|
disabled: disabled,
|
|
34122
34162
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34123
34163
|
businessType: "stock-organization",
|
|
@@ -34130,7 +34170,7 @@ function RenderCompItem(props) {
|
|
|
34130
34170
|
getPopupContainer: function getPopupContainer() {
|
|
34131
34171
|
return document.body;
|
|
34132
34172
|
}
|
|
34133
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34173
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34134
34174
|
disabled: disabled,
|
|
34135
34175
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34136
34176
|
businessType: "settle-organization",
|
|
@@ -34143,7 +34183,7 @@ function RenderCompItem(props) {
|
|
|
34143
34183
|
getPopupContainer: function getPopupContainer() {
|
|
34144
34184
|
return document.body;
|
|
34145
34185
|
}
|
|
34146
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34186
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34147
34187
|
selectBusinessType: "deliveryMode",
|
|
34148
34188
|
selectProps: _objectSpread2({
|
|
34149
34189
|
style: styleCommon,
|
|
@@ -34164,7 +34204,7 @@ function RenderCompItem(props) {
|
|
|
34164
34204
|
getPopupContainer: function getPopupContainer() {
|
|
34165
34205
|
return document.body;
|
|
34166
34206
|
}
|
|
34167
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34207
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34168
34208
|
selectBusinessType: "role",
|
|
34169
34209
|
selectProps: _objectSpread2({
|
|
34170
34210
|
style: styleCommon,
|
|
@@ -34185,7 +34225,7 @@ function RenderCompItem(props) {
|
|
|
34185
34225
|
getPopupContainer: function getPopupContainer() {
|
|
34186
34226
|
return document.body;
|
|
34187
34227
|
}
|
|
34188
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34228
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
34189
34229
|
selectBusinessType: "brand",
|
|
34190
34230
|
selectProps: _objectSpread2({
|
|
34191
34231
|
style: styleCommon,
|
|
@@ -34206,7 +34246,7 @@ function RenderCompItem(props) {
|
|
|
34206
34246
|
getPopupContainer: function getPopupContainer() {
|
|
34207
34247
|
return document.body;
|
|
34208
34248
|
}
|
|
34209
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34249
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
34210
34250
|
disabled: disabled,
|
|
34211
34251
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
34212
34252
|
businessType: "background-category",
|
|
@@ -34219,7 +34259,7 @@ function RenderCompItem(props) {
|
|
|
34219
34259
|
getPopupContainer: function getPopupContainer() {
|
|
34220
34260
|
return document.body;
|
|
34221
34261
|
}
|
|
34222
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
34262
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && ( /*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
34223
34263
|
selectProps: _objectSpread2(_objectSpread2({
|
|
34224
34264
|
style: styleCommon,
|
|
34225
34265
|
placeholder: '请选择'
|
|
@@ -34242,7 +34282,7 @@ function RenderCompItem(props) {
|
|
|
34242
34282
|
onChange: function onChange(value) {
|
|
34243
34283
|
handleEdit(ites.code, value);
|
|
34244
34284
|
}
|
|
34245
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
34285
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
34246
34286
|
style: {
|
|
34247
34287
|
display: 'flex'
|
|
34248
34288
|
}
|
|
@@ -34455,20 +34495,23 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34455
34495
|
handleOperatingAction = _this$props.handleOperatingAction,
|
|
34456
34496
|
ruleGroupInfo = _this$props.ruleGroupInfo,
|
|
34457
34497
|
_this$props$needShowA = _this$props.needShowAction,
|
|
34458
|
-
needShowAction = _this$props$needShowA === void 0 ? true : _this$props$needShowA
|
|
34498
|
+
needShowAction = _this$props$needShowA === void 0 ? true : _this$props$needShowA,
|
|
34499
|
+
extraConfig = _this$props.extraConfig,
|
|
34500
|
+
customTitleSubStyle = _this$props.customTitleSubStyle,
|
|
34501
|
+
customTitlePreStyle = _this$props.customTitlePreStyle;
|
|
34459
34502
|
var isRuleInstance = (ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : (_ruleGroupInfo$type = ruleGroupInfo.type) === null || _ruleGroupInfo$type === void 0 ? void 0 : _ruleGroupInfo$type.indexOf('instance')) > -1; // 业务调用规则实例设计器
|
|
34460
34503
|
var ruleGroupName = (ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : (_ruleGroupInfo$ruleGr = ruleGroupInfo.ruleGroupList) === null || _ruleGroupInfo$ruleGr === void 0 ? void 0 : (_ruleGroupInfo$ruleGr2 = _ruleGroupInfo$ruleGr[0]) === null || _ruleGroupInfo$ruleGr2 === void 0 ? void 0 : _ruleGroupInfo$ruleGr2.name) || '规则分组';
|
|
34461
34504
|
var priorityList = ((ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : ruleGroupInfo.groupOtherPriorityList) || []).concat(ruleClassData || []);
|
|
34462
34505
|
var canChangePriority = ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : ruleGroupInfo.canChangePriority;
|
|
34463
34506
|
var isRuleGroupInstance = (ruleGroupInfo === null || ruleGroupInfo === void 0 ? void 0 : ruleGroupInfo.type) == 'group-instance'; // 规则组展示规则实例设计器
|
|
34464
|
-
var titlePre = {
|
|
34507
|
+
var titlePre = _objectSpread2({
|
|
34465
34508
|
position: 'relative',
|
|
34466
34509
|
top: '-10px',
|
|
34467
34510
|
left: '20px',
|
|
34468
34511
|
background: '#fff',
|
|
34469
34512
|
width: '160px',
|
|
34470
34513
|
textAlign: 'center'
|
|
34471
|
-
}; // height:22
|
|
34514
|
+
}, customTitlePreStyle || {}); // height:22
|
|
34472
34515
|
var titleSubCommon = {
|
|
34473
34516
|
display: 'flex',
|
|
34474
34517
|
justifyContent: 'center'
|
|
@@ -34477,8 +34520,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34477
34520
|
width: '166px',
|
|
34478
34521
|
top: '-32px',
|
|
34479
34522
|
// titlePre(height + top)
|
|
34480
|
-
left: '200px'
|
|
34481
|
-
}); // height: 24
|
|
34523
|
+
left: '200px'
|
|
34524
|
+
}, customTitleSubStyle || {}); // height: 24
|
|
34482
34525
|
var titleSubPre2 = _objectSpread2(_objectSpread2(_objectSpread2({}, titlePre), titleSubCommon), {}, {
|
|
34483
34526
|
width: '240px',
|
|
34484
34527
|
top: '-56px',
|
|
@@ -34488,7 +34531,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34488
34531
|
var ruleListBox = !onlyOneRule || ruleGroupInfo ? {
|
|
34489
34532
|
border: '1px dashed #d9d9d9',
|
|
34490
34533
|
marginBottom: 10,
|
|
34491
|
-
overflowX: 'clip'
|
|
34534
|
+
overflowX: 'clip',
|
|
34535
|
+
position: 'relative'
|
|
34492
34536
|
} : {};
|
|
34493
34537
|
var isRuleActionConfig = (ruleTypeData === null || ruleTypeData === void 0 ? void 0 : ruleTypeData.length) || (ruleReturnConfig === null || ruleReturnConfig === void 0 ? void 0 : ruleReturnConfig.length);
|
|
34494
34538
|
return /*#__PURE__*/React$1.createElement("div", null, ruleClassData.map(function (item, classDataIndex) {
|
|
@@ -34509,122 +34553,169 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34509
34553
|
handleOperatingAction: handleOperatingAction,
|
|
34510
34554
|
disabled: disabled
|
|
34511
34555
|
};
|
|
34512
|
-
return
|
|
34513
|
-
|
|
34514
|
-
|
|
34515
|
-
|
|
34516
|
-
|
|
34517
|
-
|
|
34518
|
-
|
|
34519
|
-
|
|
34520
|
-
|
|
34521
|
-
|
|
34522
|
-
|
|
34523
|
-
|
|
34524
|
-
|
|
34525
|
-
|
|
34526
|
-
|
|
34527
|
-
|
|
34528
|
-
}
|
|
34529
|
-
|
|
34530
|
-
|
|
34531
|
-
|
|
34532
|
-
|
|
34533
|
-
|
|
34534
|
-
|
|
34535
|
-
|
|
34536
|
-
|
|
34537
|
-
|
|
34538
|
-
|
|
34539
|
-
|
|
34540
|
-
|
|
34541
|
-
|
|
34542
|
-
|
|
34543
|
-
|
|
34544
|
-
|
|
34545
|
-
|
|
34546
|
-
|
|
34547
|
-
|
|
34548
|
-
|
|
34549
|
-
|
|
34550
|
-
|
|
34551
|
-
|
|
34552
|
-
|
|
34553
|
-
|
|
34554
|
-
|
|
34555
|
-
|
|
34556
|
-
|
|
34557
|
-
|
|
34558
|
-
|
|
34559
|
-
|
|
34560
|
-
|
|
34561
|
-
|
|
34562
|
-
|
|
34563
|
-
|
|
34564
|
-
|
|
34565
|
-
|
|
34566
|
-
|
|
34567
|
-
|
|
34568
|
-
|
|
34569
|
-
|
|
34570
|
-
}
|
|
34571
|
-
|
|
34572
|
-
|
|
34573
|
-
|
|
34574
|
-
|
|
34575
|
-
|
|
34576
|
-
|
|
34577
|
-
|
|
34578
|
-
},
|
|
34579
|
-
|
|
34580
|
-
|
|
34581
|
-
|
|
34582
|
-
|
|
34583
|
-
|
|
34584
|
-
|
|
34585
|
-
|
|
34586
|
-
|
|
34587
|
-
|
|
34588
|
-
|
|
34589
|
-
|
|
34590
|
-
|
|
34591
|
-
|
|
34592
|
-
|
|
34593
|
-
|
|
34594
|
-
|
|
34595
|
-
|
|
34596
|
-
|
|
34597
|
-
|
|
34598
|
-
|
|
34599
|
-
|
|
34600
|
-
|
|
34601
|
-
|
|
34602
|
-
|
|
34603
|
-
|
|
34604
|
-
|
|
34605
|
-
|
|
34606
|
-
|
|
34607
|
-
|
|
34608
|
-
|
|
34609
|
-
|
|
34610
|
-
|
|
34611
|
-
|
|
34612
|
-
|
|
34613
|
-
|
|
34614
|
-
|
|
34615
|
-
|
|
34616
|
-
|
|
34617
|
-
|
|
34618
|
-
|
|
34619
|
-
|
|
34620
|
-
|
|
34621
|
-
|
|
34622
|
-
|
|
34623
|
-
|
|
34624
|
-
|
|
34625
|
-
|
|
34626
|
-
|
|
34627
|
-
|
|
34556
|
+
return (
|
|
34557
|
+
/*#__PURE__*/
|
|
34558
|
+
// rule-line-class方便开发自定义样式,勿删
|
|
34559
|
+
React$1.createElement("div", {
|
|
34560
|
+
className: 'rule-line-class',
|
|
34561
|
+
style: ruleListBox
|
|
34562
|
+
}, !onlyOneRule && !ruleGroupInfo && /*#__PURE__*/React$1.createElement("div", {
|
|
34563
|
+
style: titlePre
|
|
34564
|
+
}, "\u89C4\u5219", classDataIndex + 1), ruleGroupInfo && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", {
|
|
34565
|
+
style: titlePre
|
|
34566
|
+
}, /*#__PURE__*/React$1.createElement(EllipsisTooltip, {
|
|
34567
|
+
visible: true,
|
|
34568
|
+
maxLength: 10,
|
|
34569
|
+
title: ruleGroupName
|
|
34570
|
+
})), isRuleInstance && /*#__PURE__*/React$1.createElement("div", {
|
|
34571
|
+
style: titleSubPre
|
|
34572
|
+
}, /*#__PURE__*/React$1.createElement("span", {
|
|
34573
|
+
style: {
|
|
34574
|
+
marginRight: 10,
|
|
34575
|
+
display: 'block',
|
|
34576
|
+
width: '100px',
|
|
34577
|
+
textAlign: 'right',
|
|
34578
|
+
overflow: 'hidden',
|
|
34579
|
+
textOverflow: 'ellipsis',
|
|
34580
|
+
whiteSpace: 'nowrap'
|
|
34581
|
+
}
|
|
34582
|
+
}, "\u4F18\u5148\u7EA7"), /*#__PURE__*/React$1.createElement(Select, {
|
|
34583
|
+
size: "small",
|
|
34584
|
+
disabled: canChangePriority ? !canChangePriority : disabled,
|
|
34585
|
+
style: {
|
|
34586
|
+
width: 100
|
|
34587
|
+
},
|
|
34588
|
+
value: item.priority,
|
|
34589
|
+
onChange: function onChange(v) {
|
|
34590
|
+
// 因为存在页签,前端校验不准确;而且若选择优先级之后想交换改也不方便,故交由后端校验
|
|
34591
|
+
// const isRepeate = priorityList.some((r) => r.priority == v)
|
|
34592
|
+
// if(isRepeate) {
|
|
34593
|
+
// message.warn('优先级不允许重复')
|
|
34594
|
+
// }
|
|
34595
|
+
// item.priority = isRepeate ? (item.priority||null) : v;
|
|
34596
|
+
item.priority = v;
|
|
34597
|
+
_this.setState({
|
|
34598
|
+
ruleClassData: ruleClassData
|
|
34599
|
+
}, function () {
|
|
34600
|
+
callBack(ruleClassData);
|
|
34601
|
+
});
|
|
34602
|
+
}
|
|
34603
|
+
}, priorityList === null || priorityList === void 0 ? void 0 : priorityList.map(function (s, sindex) {
|
|
34604
|
+
return /*#__PURE__*/React$1.createElement(Option, {
|
|
34605
|
+
key: sindex + 1,
|
|
34606
|
+
value: sindex + 1
|
|
34607
|
+
}, sindex + 1);
|
|
34608
|
+
}))) || null, isRuleGroupInstance && /*#__PURE__*/React$1.createElement("div", {
|
|
34609
|
+
style: titleSubPre2
|
|
34610
|
+
}, /*#__PURE__*/React$1.createElement("span", {
|
|
34611
|
+
style: {
|
|
34612
|
+
marginRight: 10
|
|
34613
|
+
}
|
|
34614
|
+
}, "\u4E1A\u52A1\u7F16\u7801"), /*#__PURE__*/React$1.createElement(EllipsisTooltip, {
|
|
34615
|
+
visible: true,
|
|
34616
|
+
maxLength: 24,
|
|
34617
|
+
title: item.extStrField01
|
|
34618
|
+
})), extraConfig && extraConfig.map(function (extraItem, index) {
|
|
34619
|
+
var _extraItem$optionList;
|
|
34620
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
34621
|
+
style: titleSubPre
|
|
34622
|
+
}, /*#__PURE__*/React$1.createElement("span", {
|
|
34623
|
+
style: {
|
|
34624
|
+
marginRight: 10,
|
|
34625
|
+
display: 'block',
|
|
34626
|
+
width: '100px',
|
|
34627
|
+
textAlign: 'right',
|
|
34628
|
+
overflow: 'hidden',
|
|
34629
|
+
textOverflow: 'ellipsis',
|
|
34630
|
+
whiteSpace: 'nowrap'
|
|
34631
|
+
}
|
|
34632
|
+
}, extraItem === null || extraItem === void 0 ? void 0 : extraItem.label), /*#__PURE__*/React$1.createElement(Select, {
|
|
34633
|
+
size: "small",
|
|
34634
|
+
style: {
|
|
34635
|
+
width: 100
|
|
34636
|
+
},
|
|
34637
|
+
mode: (extraItem === null || extraItem === void 0 ? void 0 : extraItem.mode) || null,
|
|
34638
|
+
disabled: disabled,
|
|
34639
|
+
value: (extraItem === null || extraItem === void 0 ? void 0 : extraItem.mode) === 'multiple' ? item[extraItem === null || extraItem === void 0 ? void 0 : extraItem.code] ? item[extraItem === null || extraItem === void 0 ? void 0 : extraItem.code].split(',') : [] : item[extraItem === null || extraItem === void 0 ? void 0 : extraItem.code],
|
|
34640
|
+
onChange: function onChange(v) {
|
|
34641
|
+
item[extraItem === null || extraItem === void 0 ? void 0 : extraItem.code] = Array.isArray(v) ? v.join(',') : v;
|
|
34642
|
+
_this.setState({
|
|
34643
|
+
ruleClassData: ruleClassData
|
|
34644
|
+
}, function () {
|
|
34645
|
+
callBack(ruleClassData);
|
|
34646
|
+
});
|
|
34647
|
+
}
|
|
34648
|
+
}, extraItem === null || extraItem === void 0 ? void 0 : (_extraItem$optionList = extraItem.optionList) === null || _extraItem$optionList === void 0 ? void 0 : _extraItem$optionList.map(function (s, sindex) {
|
|
34649
|
+
return /*#__PURE__*/React$1.createElement(Option, {
|
|
34650
|
+
value: s === null || s === void 0 ? void 0 : s.value
|
|
34651
|
+
}, s === null || s === void 0 ? void 0 : s.text);
|
|
34652
|
+
})));
|
|
34653
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
34654
|
+
style: {
|
|
34655
|
+
textAlign: 'right',
|
|
34656
|
+
display: canDelete ? 'block' : 'none',
|
|
34657
|
+
position: 'absolute',
|
|
34658
|
+
right: '5px',
|
|
34659
|
+
top: '5px'
|
|
34660
|
+
}
|
|
34661
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
34662
|
+
disabled: disabled,
|
|
34663
|
+
onClick: function onClick() {
|
|
34664
|
+
var ruleClassData = _this.state.ruleClassData;
|
|
34665
|
+
ruleClassData.splice(classDataIndex, 1);
|
|
34666
|
+
_this.setState({
|
|
34667
|
+
ruleClassData: ruleClassData
|
|
34668
|
+
}, function () {
|
|
34669
|
+
callBack(ruleClassData);
|
|
34670
|
+
});
|
|
34671
|
+
},
|
|
34672
|
+
type: "link",
|
|
34673
|
+
danger: true
|
|
34674
|
+
}, "\u5220\u9664\u89C4\u5219")), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
34675
|
+
style: {
|
|
34676
|
+
display: isEdit && editNameIndex == index ? 'block' : 'none',
|
|
34677
|
+
marginTop: '10px'
|
|
34678
|
+
}
|
|
34679
|
+
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
34680
|
+
disabled: disabled,
|
|
34681
|
+
value: currentRuleName,
|
|
34682
|
+
style: {
|
|
34683
|
+
width: '200px'
|
|
34684
|
+
},
|
|
34685
|
+
onChange: function onChange(e) {
|
|
34686
|
+
_this.setState({
|
|
34687
|
+
currentRuleName: e.target.value
|
|
34688
|
+
});
|
|
34689
|
+
}
|
|
34690
|
+
}), /*#__PURE__*/React$1.createElement(Button, {
|
|
34691
|
+
disabled: disabled,
|
|
34692
|
+
type: "link",
|
|
34693
|
+
onClick: function onClick() {
|
|
34694
|
+
var _this$state3 = _this.state,
|
|
34695
|
+
ruleClassData = _this$state3.ruleClassData,
|
|
34696
|
+
currentRuleName = _this$state3.currentRuleName;
|
|
34697
|
+
ruleClassData[editNameIndex].ruleName = currentRuleName;
|
|
34698
|
+
_this.setState({
|
|
34699
|
+
ruleClassData: ruleClassData,
|
|
34700
|
+
isEdit: false
|
|
34701
|
+
});
|
|
34702
|
+
}
|
|
34703
|
+
}, "\u4FDD\u5B58"), /*#__PURE__*/React$1.createElement(Button, {
|
|
34704
|
+
disabled: disabled,
|
|
34705
|
+
type: "link",
|
|
34706
|
+
onClick: function onClick() {
|
|
34707
|
+
_this.setState({
|
|
34708
|
+
isEdit: false
|
|
34709
|
+
});
|
|
34710
|
+
}
|
|
34711
|
+
}, "\u53D6\u6D88"))), /*#__PURE__*/React$1.createElement("div", null, onlyAction && /*#__PURE__*/React$1.createElement(RuleField$1, sActionProps) || /*#__PURE__*/React$1.createElement("div", {
|
|
34712
|
+
className: 'base_rule_line_content'
|
|
34713
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
34714
|
+
className: 'base_rule_item2'
|
|
34715
|
+
}, item.subExpression && _this.renderRuleItem(item.subExpression, item, 1, classDataIndex, relateDatas)), needShowAction && /*#__PURE__*/React$1.createElement("div", {
|
|
34716
|
+
className: 'base_rule_item3'
|
|
34717
|
+
}, extraInfo && isRuleActionConfig && (!onlyCondition || !onlyAction) && _this.renderRuleTypeItem(extraInfo, item, 1, classDataIndex, ruleTypeData, ruleReturnConfig, isRuleInstance) || null) || null)))
|
|
34718
|
+
);
|
|
34628
34719
|
}));
|
|
34629
34720
|
};
|
|
34630
34721
|
_this.handleAddRule = function () {
|
|
@@ -34703,7 +34794,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
34703
34794
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
34704
34795
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
34705
34796
|
}
|
|
34706
|
-
var parallelTreeData =
|
|
34797
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
34707
34798
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
34708
34799
|
var _i$key;
|
|
34709
34800
|
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);
|
|
@@ -35325,7 +35416,6 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35325
35416
|
if (i.code && keys.some(function (r) {
|
|
35326
35417
|
return r === i.code;
|
|
35327
35418
|
}) && !i.enable) {
|
|
35328
|
-
console.log('i', i);
|
|
35329
35419
|
return _objectSpread2(_objectSpread2({}, i), {}, {
|
|
35330
35420
|
enable: true
|
|
35331
35421
|
});
|
|
@@ -35598,6 +35688,7 @@ var handleRuleShowBack = function handleRuleShowBack(data, functionRuleList, rul
|
|
|
35598
35688
|
priority: item.priority,
|
|
35599
35689
|
status: item.status,
|
|
35600
35690
|
extStrField01: item === null || item === void 0 ? void 0 : item.extStrField01,
|
|
35691
|
+
extStrField02: item === null || item === void 0 ? void 0 : item.extStrField02,
|
|
35601
35692
|
name: item === null || item === void 0 ? void 0 : item.name
|
|
35602
35693
|
};
|
|
35603
35694
|
if (item === null || item === void 0 ? void 0 : item.expression) {
|
|
@@ -35629,13 +35720,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
35629
35720
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
35630
35721
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
35631
35722
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
35632
|
-
var list =
|
|
35723
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
35633
35724
|
var requiredList = list.filter(function (c) {
|
|
35634
35725
|
return c.required == 1;
|
|
35635
35726
|
}) || []; // 获取对象属性为true的集合
|
|
35636
35727
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
35637
35728
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
35638
|
-
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) ?
|
|
35729
|
+
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];
|
|
35639
35730
|
(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) {
|
|
35640
35731
|
if (requiredList.some(function (r) {
|
|
35641
35732
|
return r.id === e.elementId;
|
|
@@ -35839,6 +35930,7 @@ var handleRuleResultList = function handleRuleResultList(data, ruleTypeData) {
|
|
|
35839
35930
|
priority: i.priority,
|
|
35840
35931
|
status: i.status,
|
|
35841
35932
|
extStrField01: i === null || i === void 0 ? void 0 : i.extStrField01,
|
|
35933
|
+
extStrField02: i === null || i === void 0 ? void 0 : i.extStrField02,
|
|
35842
35934
|
name: i === null || i === void 0 ? void 0 : i.name
|
|
35843
35935
|
};
|
|
35844
35936
|
});
|
|
@@ -35900,7 +35992,10 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
35900
35992
|
_props$systemVariable = props.systemVariableList,
|
|
35901
35993
|
systemVariableList = _props$systemVariable === void 0 ? [] : _props$systemVariable,
|
|
35902
35994
|
_props$defRuleDetail = props.defRuleDetail,
|
|
35903
|
-
defRuleDetail = _props$defRuleDetail === void 0 ? {} : _props$defRuleDetail
|
|
35995
|
+
defRuleDetail = _props$defRuleDetail === void 0 ? {} : _props$defRuleDetail,
|
|
35996
|
+
customerValidator = props.customerValidator,
|
|
35997
|
+
_props$saveUrl = props.saveUrl,
|
|
35998
|
+
saveUrl = _props$saveUrl === void 0 ? '' : _props$saveUrl;
|
|
35904
35999
|
var sceneId = scenceParams === null || scenceParams === void 0 ? void 0 : scenceParams.sceneId;
|
|
35905
36000
|
var sceneName = scenceParams === null || scenceParams === void 0 ? void 0 : scenceParams.sceneName;
|
|
35906
36001
|
var type = scenceParams === null || scenceParams === void 0 ? void 0 : scenceParams.type;
|
|
@@ -36104,6 +36199,10 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36104
36199
|
var handleSave = function handleSave() {
|
|
36105
36200
|
var needCheckOnlyOne = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
36106
36201
|
var ruleResultList = handleRuleResultList(callbackData, ruleTypeData);
|
|
36202
|
+
// 自定义规则数据保存校验
|
|
36203
|
+
if (customerValidator && !customerValidator(ruleResultList, ruleTypeData)) {
|
|
36204
|
+
return Promise.reject();
|
|
36205
|
+
}
|
|
36107
36206
|
if (needCheckOnlyOne && (ruleResultList === null || ruleResultList === void 0 ? void 0 : ruleResultList.length) === 0) {
|
|
36108
36207
|
message$1.warning('请至少配置一个规则!');
|
|
36109
36208
|
return Promise.reject();
|
|
@@ -36122,9 +36221,16 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36122
36221
|
return Promise.reject();
|
|
36123
36222
|
}
|
|
36124
36223
|
// setLoading(true);
|
|
36224
|
+
// 退货协议特殊处理逻辑,拼接业务类型值extStrField02
|
|
36225
|
+
var extStrField02List = [];
|
|
36226
|
+
ruleResultList.forEach(function (item) {
|
|
36227
|
+
var itemList = (item === null || item === void 0 ? void 0 : item.extStrField02) ? item === null || item === void 0 ? void 0 : item.extStrField02.split(',') : [];
|
|
36228
|
+
extStrField02List = [].concat(_toConsumableArray(extStrField02List), _toConsumableArray(itemList));
|
|
36229
|
+
});
|
|
36230
|
+
var extStrField02 = Array.from(new Set(extStrField02List)).join(',');
|
|
36125
36231
|
// 兼容没有规则组的情况
|
|
36126
36232
|
var params = (ruleGroupList === null || ruleGroupList === void 0 ? void 0 : ruleGroupList.length) ? ruleGroupList.map(function (groupItem) {
|
|
36127
|
-
return _objectSpread2(_objectSpread2({
|
|
36233
|
+
return _objectSpread2(_objectSpread2(_objectSpread2({
|
|
36128
36234
|
ruleDetailList: ruleResultList.map(function (i) {
|
|
36129
36235
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, i), {}, {
|
|
36130
36236
|
status: i.status || 0,
|
|
@@ -36138,17 +36244,21 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36138
36244
|
})
|
|
36139
36245
|
}, extStrField01 ? {
|
|
36140
36246
|
extStrField01: extStrField01
|
|
36247
|
+
} : {}), extStrField02 ? {
|
|
36248
|
+
extStrField02: extStrField02
|
|
36141
36249
|
} : {}), {}, {
|
|
36142
36250
|
ruleId: groupItem.id,
|
|
36143
36251
|
templateId: sceneId
|
|
36144
36252
|
});
|
|
36145
36253
|
}) : [_objectSpread2(_objectSpread2({
|
|
36146
36254
|
ruleDetailList: ruleResultList.map(function (i) {
|
|
36147
|
-
return _objectSpread2(_objectSpread2(_objectSpread2({}, i), {}, {
|
|
36255
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, i), {}, {
|
|
36148
36256
|
status: i.status || 0,
|
|
36149
36257
|
templateId: sceneId
|
|
36150
36258
|
}, extStrField01 ? {
|
|
36151
36259
|
extStrField01: extStrField01 || (i === null || i === void 0 ? void 0 : i.extStrField01)
|
|
36260
|
+
} : {}), extStrField02 ? {
|
|
36261
|
+
extStrField02: extStrField02
|
|
36152
36262
|
} : {}), instanceName ? {
|
|
36153
36263
|
name: instanceName || (i === null || i === void 0 ? void 0 : i.name)
|
|
36154
36264
|
} : {});
|
|
@@ -36158,7 +36268,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36158
36268
|
} : {}), {}, {
|
|
36159
36269
|
templateId: sceneId
|
|
36160
36270
|
})];
|
|
36161
|
-
var handleUrl = "/basic/ruleDetail/addAndUpdate";
|
|
36271
|
+
var handleUrl = saveUrl || "/basic/ruleDetail/addAndUpdate";
|
|
36162
36272
|
var handleMethod = 'POST';
|
|
36163
36273
|
return request$2({
|
|
36164
36274
|
url: handleUrl,
|
|
@@ -36200,7 +36310,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36200
36310
|
style: {
|
|
36201
36311
|
float: 'right'
|
|
36202
36312
|
}
|
|
36203
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
36313
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
36204
36314
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
36205
36315
|
ruleGroupInfo: {
|
|
36206
36316
|
ruleGroupList: ruleGroupList,
|
|
@@ -36218,7 +36328,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36218
36328
|
callBack: function callBack(newData) {
|
|
36219
36329
|
upDateData(newData);
|
|
36220
36330
|
}
|
|
36221
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
36331
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
36222
36332
|
style: {
|
|
36223
36333
|
padding: 20
|
|
36224
36334
|
}
|
|
@@ -36420,6 +36530,8 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36420
36530
|
}
|
|
36421
36531
|
}, /*#__PURE__*/React$1.createElement(BaseRule, {
|
|
36422
36532
|
ref: baseRuleRef,
|
|
36533
|
+
customerValidator: props === null || props === void 0 ? void 0 : props.customerValidator,
|
|
36534
|
+
saveUrl: props === null || props === void 0 ? void 0 : props.saveUrl,
|
|
36423
36535
|
scenceParams: {
|
|
36424
36536
|
sceneId: currentSceneId,
|
|
36425
36537
|
sceneName: currentSceneName,
|
|
@@ -36594,4 +36706,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
36594
36706
|
}, children));
|
|
36595
36707
|
};
|
|
36596
36708
|
|
|
36597
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
36709
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|