@bit-sun/business-component 4.0.13-alpha.30 → 4.0.13-alpha.32
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/.umirc.ts +11 -0
- package/dist/index.esm.js +412 -448
- package/dist/index.js +413 -449
- package/package.json +2 -2
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +2 -2
- package/src/components/Business/SearchSelect/index.md +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -32,9 +32,88 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
32
32
|
import { visit } from 'ast-types';
|
|
33
33
|
import isArray$1 from 'lodash/isArray';
|
|
34
34
|
|
|
35
|
+
function _arrayLikeToArray(r, a) {
|
|
36
|
+
(null == a || a > r.length) && (a = r.length);
|
|
37
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
function _arrayWithHoles(r) {
|
|
41
|
+
if (Array.isArray(r)) return r;
|
|
42
|
+
}
|
|
43
|
+
function _arrayWithoutHoles(r) {
|
|
44
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
45
|
+
}
|
|
46
|
+
function _assertThisInitialized(e) {
|
|
47
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
48
|
+
return e;
|
|
49
|
+
}
|
|
50
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
51
|
+
try {
|
|
52
|
+
var i = n[a](c),
|
|
53
|
+
u = i.value;
|
|
54
|
+
} catch (n) {
|
|
55
|
+
return void e(n);
|
|
56
|
+
}
|
|
57
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
58
|
+
}
|
|
59
|
+
function _asyncToGenerator(n) {
|
|
60
|
+
return function () {
|
|
61
|
+
var t = this,
|
|
62
|
+
e = arguments;
|
|
63
|
+
return new Promise(function (r, o) {
|
|
64
|
+
var a = n.apply(t, e);
|
|
65
|
+
function _next(n) {
|
|
66
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
67
|
+
}
|
|
68
|
+
function _throw(n) {
|
|
69
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
70
|
+
}
|
|
71
|
+
_next(void 0);
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
}
|
|
35
75
|
function _callSuper(t, o, e) {
|
|
36
76
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
37
77
|
}
|
|
78
|
+
function _classCallCheck(a, n) {
|
|
79
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
80
|
+
}
|
|
81
|
+
function _defineProperties(e, r) {
|
|
82
|
+
for (var t = 0; t < r.length; t++) {
|
|
83
|
+
var o = r[t];
|
|
84
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function _createClass(e, r, t) {
|
|
88
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
89
|
+
writable: !1
|
|
90
|
+
}), e;
|
|
91
|
+
}
|
|
92
|
+
function _defineProperty(e, r, t) {
|
|
93
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
94
|
+
value: t,
|
|
95
|
+
enumerable: !0,
|
|
96
|
+
configurable: !0,
|
|
97
|
+
writable: !0
|
|
98
|
+
}) : e[r] = t, e;
|
|
99
|
+
}
|
|
100
|
+
function _getPrototypeOf(t) {
|
|
101
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
102
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
103
|
+
}, _getPrototypeOf(t);
|
|
104
|
+
}
|
|
105
|
+
function _inherits(t, e) {
|
|
106
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
107
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
108
|
+
constructor: {
|
|
109
|
+
value: t,
|
|
110
|
+
writable: !0,
|
|
111
|
+
configurable: !0
|
|
112
|
+
}
|
|
113
|
+
}), Object.defineProperty(t, "prototype", {
|
|
114
|
+
writable: !1
|
|
115
|
+
}), e && _setPrototypeOf(t, e);
|
|
116
|
+
}
|
|
38
117
|
function _isNativeReflectConstruct() {
|
|
39
118
|
try {
|
|
40
119
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -43,6 +122,9 @@ function _isNativeReflectConstruct() {
|
|
|
43
122
|
return !!t;
|
|
44
123
|
})();
|
|
45
124
|
}
|
|
125
|
+
function _iterableToArray(r) {
|
|
126
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
127
|
+
}
|
|
46
128
|
function _iterableToArrayLimit(r, l) {
|
|
47
129
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
48
130
|
if (null != t) {
|
|
@@ -70,6 +152,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
70
152
|
return a;
|
|
71
153
|
}
|
|
72
154
|
}
|
|
155
|
+
function _nonIterableRest() {
|
|
156
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
157
|
+
}
|
|
158
|
+
function _nonIterableSpread() {
|
|
159
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
160
|
+
}
|
|
161
|
+
function _objectDestructuringEmpty(t) {
|
|
162
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
163
|
+
}
|
|
73
164
|
function ownKeys(e, r) {
|
|
74
165
|
var t = Object.keys(e);
|
|
75
166
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -91,6 +182,31 @@ function _objectSpread2(e) {
|
|
|
91
182
|
}
|
|
92
183
|
return e;
|
|
93
184
|
}
|
|
185
|
+
function _objectWithoutProperties(e, t) {
|
|
186
|
+
if (null == e) return {};
|
|
187
|
+
var o,
|
|
188
|
+
r,
|
|
189
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
|
+
if (Object.getOwnPropertySymbols) {
|
|
191
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
192
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
|
+
}
|
|
194
|
+
return i;
|
|
195
|
+
}
|
|
196
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
197
|
+
if (null == r) return {};
|
|
198
|
+
var t = {};
|
|
199
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
201
|
+
t[n] = r[n];
|
|
202
|
+
}
|
|
203
|
+
return t;
|
|
204
|
+
}
|
|
205
|
+
function _possibleConstructorReturn(t, e) {
|
|
206
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
207
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
|
+
return _assertThisInitialized(t);
|
|
209
|
+
}
|
|
94
210
|
function _regeneratorRuntime() {
|
|
95
211
|
_regeneratorRuntime = function () {
|
|
96
212
|
return e;
|
|
@@ -392,6 +508,20 @@ function _regeneratorRuntime() {
|
|
|
392
508
|
}
|
|
393
509
|
}, e;
|
|
394
510
|
}
|
|
511
|
+
function _setPrototypeOf(t, e) {
|
|
512
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
513
|
+
return t.__proto__ = e, t;
|
|
514
|
+
}, _setPrototypeOf(t, e);
|
|
515
|
+
}
|
|
516
|
+
function _slicedToArray(r, e) {
|
|
517
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
518
|
+
}
|
|
519
|
+
function _toArray(r) {
|
|
520
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
521
|
+
}
|
|
522
|
+
function _toConsumableArray(r) {
|
|
523
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
524
|
+
}
|
|
395
525
|
function _toPrimitive(t, r) {
|
|
396
526
|
if ("object" != typeof t || !t) return t;
|
|
397
527
|
var e = t[Symbol.toPrimitive];
|
|
@@ -415,181 +545,13 @@ function _typeof(o) {
|
|
|
415
545
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
416
546
|
}, _typeof(o);
|
|
417
547
|
}
|
|
418
|
-
function
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
var
|
|
422
|
-
|
|
423
|
-
reject(error);
|
|
424
|
-
return;
|
|
425
|
-
}
|
|
426
|
-
if (info.done) {
|
|
427
|
-
resolve(value);
|
|
428
|
-
} else {
|
|
429
|
-
Promise.resolve(value).then(_next, _throw);
|
|
548
|
+
function _unsupportedIterableToArray(r, a) {
|
|
549
|
+
if (r) {
|
|
550
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
551
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
552
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
430
553
|
}
|
|
431
554
|
}
|
|
432
|
-
function _asyncToGenerator(fn) {
|
|
433
|
-
return function () {
|
|
434
|
-
var self = this,
|
|
435
|
-
args = arguments;
|
|
436
|
-
return new Promise(function (resolve, reject) {
|
|
437
|
-
var gen = fn.apply(self, args);
|
|
438
|
-
function _next(value) {
|
|
439
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
440
|
-
}
|
|
441
|
-
function _throw(err) {
|
|
442
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
443
|
-
}
|
|
444
|
-
_next(undefined);
|
|
445
|
-
});
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
function _classCallCheck(instance, Constructor) {
|
|
449
|
-
if (!(instance instanceof Constructor)) {
|
|
450
|
-
throw new TypeError("Cannot call a class as a function");
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
function _defineProperties(target, props) {
|
|
454
|
-
for (var i = 0; i < props.length; i++) {
|
|
455
|
-
var descriptor = props[i];
|
|
456
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
457
|
-
descriptor.configurable = true;
|
|
458
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
459
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
463
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
464
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
465
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
466
|
-
writable: false
|
|
467
|
-
});
|
|
468
|
-
return Constructor;
|
|
469
|
-
}
|
|
470
|
-
function _defineProperty(obj, key, value) {
|
|
471
|
-
key = _toPropertyKey(key);
|
|
472
|
-
if (key in obj) {
|
|
473
|
-
Object.defineProperty(obj, key, {
|
|
474
|
-
value: value,
|
|
475
|
-
enumerable: true,
|
|
476
|
-
configurable: true,
|
|
477
|
-
writable: true
|
|
478
|
-
});
|
|
479
|
-
} else {
|
|
480
|
-
obj[key] = value;
|
|
481
|
-
}
|
|
482
|
-
return obj;
|
|
483
|
-
}
|
|
484
|
-
function _inherits(subClass, superClass) {
|
|
485
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
486
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
487
|
-
}
|
|
488
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
489
|
-
constructor: {
|
|
490
|
-
value: subClass,
|
|
491
|
-
writable: true,
|
|
492
|
-
configurable: true
|
|
493
|
-
}
|
|
494
|
-
});
|
|
495
|
-
Object.defineProperty(subClass, "prototype", {
|
|
496
|
-
writable: false
|
|
497
|
-
});
|
|
498
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
499
|
-
}
|
|
500
|
-
function _getPrototypeOf(o) {
|
|
501
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
502
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
503
|
-
};
|
|
504
|
-
return _getPrototypeOf(o);
|
|
505
|
-
}
|
|
506
|
-
function _setPrototypeOf(o, p) {
|
|
507
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
508
|
-
o.__proto__ = p;
|
|
509
|
-
return o;
|
|
510
|
-
};
|
|
511
|
-
return _setPrototypeOf(o, p);
|
|
512
|
-
}
|
|
513
|
-
function _objectDestructuringEmpty(obj) {
|
|
514
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
515
|
-
}
|
|
516
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
517
|
-
if (source == null) return {};
|
|
518
|
-
var target = {};
|
|
519
|
-
for (var key in source) {
|
|
520
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
521
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
522
|
-
target[key] = source[key];
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
return target;
|
|
526
|
-
}
|
|
527
|
-
function _objectWithoutProperties(source, excluded) {
|
|
528
|
-
if (source == null) return {};
|
|
529
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
530
|
-
var key, i;
|
|
531
|
-
if (Object.getOwnPropertySymbols) {
|
|
532
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
533
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
534
|
-
key = sourceSymbolKeys[i];
|
|
535
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
536
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
537
|
-
target[key] = source[key];
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
return target;
|
|
541
|
-
}
|
|
542
|
-
function _assertThisInitialized(self) {
|
|
543
|
-
if (self === void 0) {
|
|
544
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
545
|
-
}
|
|
546
|
-
return self;
|
|
547
|
-
}
|
|
548
|
-
function _possibleConstructorReturn(self, call) {
|
|
549
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
550
|
-
return call;
|
|
551
|
-
} else if (call !== void 0) {
|
|
552
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
553
|
-
}
|
|
554
|
-
return _assertThisInitialized(self);
|
|
555
|
-
}
|
|
556
|
-
function _slicedToArray(arr, i) {
|
|
557
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
558
|
-
}
|
|
559
|
-
function _toArray(arr) {
|
|
560
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
561
|
-
}
|
|
562
|
-
function _toConsumableArray(arr) {
|
|
563
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
564
|
-
}
|
|
565
|
-
function _arrayWithoutHoles(arr) {
|
|
566
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
567
|
-
}
|
|
568
|
-
function _arrayWithHoles(arr) {
|
|
569
|
-
if (Array.isArray(arr)) return arr;
|
|
570
|
-
}
|
|
571
|
-
function _iterableToArray(iter) {
|
|
572
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
573
|
-
}
|
|
574
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
575
|
-
if (!o) return;
|
|
576
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
577
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
578
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
579
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
580
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
581
|
-
}
|
|
582
|
-
function _arrayLikeToArray(arr, len) {
|
|
583
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
584
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
585
|
-
return arr2;
|
|
586
|
-
}
|
|
587
|
-
function _nonIterableSpread() {
|
|
588
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
589
|
-
}
|
|
590
|
-
function _nonIterableRest() {
|
|
591
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
592
|
-
}
|
|
593
555
|
|
|
594
556
|
var ENUM = {
|
|
595
557
|
// 浏览器缓存信息
|
|
@@ -1098,13 +1060,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1098
1060
|
imgHtml.innerHTML = str;
|
|
1099
1061
|
}
|
|
1100
1062
|
// 测试使用 测试类型缩小 end
|
|
1101
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1063
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1102
1064
|
className: "clomnsImg"
|
|
1103
1065
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1104
1066
|
src: url,
|
|
1105
1067
|
width: "16px",
|
|
1106
1068
|
height: "16px"
|
|
1107
|
-
}, paramsObj)))) : (
|
|
1069
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1108
1070
|
className: "clomnsImg2"
|
|
1109
1071
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1110
1072
|
src: noImg
|
|
@@ -1241,7 +1203,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1241
1203
|
}
|
|
1242
1204
|
save_link.click();
|
|
1243
1205
|
}
|
|
1244
|
-
var
|
|
1206
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1245
1207
|
return data.map(function (item) {
|
|
1246
1208
|
if (!item.name || !item.path) {
|
|
1247
1209
|
return null;
|
|
@@ -1261,7 +1223,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1261
1223
|
authority: item.authority || parentAuthority
|
|
1262
1224
|
});
|
|
1263
1225
|
if (item.routes) {
|
|
1264
|
-
var children =
|
|
1226
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1265
1227
|
// Reduce memory usage
|
|
1266
1228
|
result.children = children;
|
|
1267
1229
|
}
|
|
@@ -1271,7 +1233,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1271
1233
|
return item;
|
|
1272
1234
|
});
|
|
1273
1235
|
};
|
|
1274
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1236
|
+
var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
|
|
1275
1237
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1276
1238
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1277
1239
|
if (backHistoryPath) {
|
|
@@ -1580,7 +1542,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1580
1542
|
// sheepMap是表头字段中英文映射
|
|
1581
1543
|
// sheetCount:表的数量,默认一张
|
|
1582
1544
|
var resolveFile = /*#__PURE__*/function () {
|
|
1583
|
-
var _ref3 = _asyncToGenerator(
|
|
1545
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1584
1546
|
var config,
|
|
1585
1547
|
data,
|
|
1586
1548
|
_args = arguments;
|
|
@@ -1619,7 +1581,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1619
1581
|
}();
|
|
1620
1582
|
//读取文件
|
|
1621
1583
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1622
|
-
var _ref4 = _asyncToGenerator(
|
|
1584
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1623
1585
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1624
1586
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1625
1587
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1712,14 +1674,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1712
1674
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1713
1675
|
|
|
1714
1676
|
// 获取树平行结构
|
|
1715
|
-
var
|
|
1677
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1716
1678
|
var childrenKey = chilKey || 'children';
|
|
1717
1679
|
treeData.forEach(function (el) {
|
|
1718
1680
|
var _el$childrenKey;
|
|
1719
1681
|
result.push(el);
|
|
1720
1682
|
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) {
|
|
1721
1683
|
// 子级递归
|
|
1722
|
-
|
|
1684
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1723
1685
|
}
|
|
1724
1686
|
});
|
|
1725
1687
|
return result;
|
|
@@ -1996,13 +1958,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1996
1958
|
imgHtml.innerHTML = str;
|
|
1997
1959
|
}
|
|
1998
1960
|
// 测试使用 测试类型缩小 end
|
|
1999
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1961
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
2000
1962
|
className: "clomnsImg"
|
|
2001
1963
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
2002
1964
|
src: url,
|
|
2003
1965
|
width: "16px",
|
|
2004
1966
|
height: "16px"
|
|
2005
|
-
}, paramsObj)))) : (
|
|
1967
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2006
1968
|
src: noImg
|
|
2007
1969
|
}))));
|
|
2008
1970
|
};
|
|
@@ -2064,7 +2026,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2064
2026
|
}
|
|
2065
2027
|
});
|
|
2066
2028
|
};
|
|
2067
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (
|
|
2029
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2068
2030
|
disabled: disabled,
|
|
2069
2031
|
onChange: function onChange(e) {
|
|
2070
2032
|
var v = e.target.value;
|
|
@@ -2074,7 +2036,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2074
2036
|
width: 170
|
|
2075
2037
|
},
|
|
2076
2038
|
value: inputValue
|
|
2077
|
-
}, inpProps))), type === 'number' && (
|
|
2039
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2078
2040
|
disabled: disabled,
|
|
2079
2041
|
onBlur: function onBlur(e) {
|
|
2080
2042
|
var v = parseFloat(e.target.value);
|
|
@@ -2453,16 +2415,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2453
2415
|
var handleExportBarCode = handleExport;
|
|
2454
2416
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2455
2417
|
var routerMap = {};
|
|
2456
|
-
var
|
|
2418
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2457
2419
|
data.forEach(function (menuItem) {
|
|
2458
2420
|
if (menuItem.children) {
|
|
2459
|
-
|
|
2421
|
+
_flattenMenuData(menuItem.children);
|
|
2460
2422
|
}
|
|
2461
2423
|
// Reduce memory usage
|
|
2462
2424
|
routerMap[menuItem.path] = menuItem;
|
|
2463
2425
|
});
|
|
2464
2426
|
};
|
|
2465
|
-
|
|
2427
|
+
_flattenMenuData(menuData);
|
|
2466
2428
|
return routerMap;
|
|
2467
2429
|
};
|
|
2468
2430
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2605,7 +2567,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2605
2567
|
return request$1(url, parms).then(handleResponseData);
|
|
2606
2568
|
};
|
|
2607
2569
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2608
|
-
var _ref2 = _asyncToGenerator(
|
|
2570
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2609
2571
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2610
2572
|
while (1) switch (_context.prev = _context.next) {
|
|
2611
2573
|
case 0:
|
|
@@ -3284,7 +3246,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3284
3246
|
style: {
|
|
3285
3247
|
color: 'red'
|
|
3286
3248
|
}
|
|
3287
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3249
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, getTemplate && (/*#__PURE__*/React$1.createElement(Button, {
|
|
3288
3250
|
onClick: getTemplate
|
|
3289
3251
|
}, "\u4E0B\u8F7D\u6A21\u677F")), /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165")))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3290
3252
|
trigger: ['click'],
|
|
@@ -3961,7 +3923,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3961
3923
|
placement: "bottomLeft"
|
|
3962
3924
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3963
3925
|
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"))
|
|
3964
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3926
|
+
}, /*#__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, {
|
|
3965
3927
|
trigger: ['click'],
|
|
3966
3928
|
overlay: this.menuList,
|
|
3967
3929
|
placement: "bottomRight"
|
|
@@ -4482,7 +4444,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4482
4444
|
destroyTooltipOnHide: true,
|
|
4483
4445
|
placement: "topRight",
|
|
4484
4446
|
autoAdjustOverflow: false,
|
|
4485
|
-
title: (
|
|
4447
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4486
4448
|
style: {
|
|
4487
4449
|
margin: '6px 8px 0px'
|
|
4488
4450
|
},
|
|
@@ -4784,10 +4746,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4784
4746
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4785
4747
|
});
|
|
4786
4748
|
},
|
|
4787
|
-
notFoundContent: fetching ? (
|
|
4749
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4788
4750
|
size: "small",
|
|
4789
4751
|
className: 'searchSelectSpin'
|
|
4790
|
-
})) : (
|
|
4752
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4791
4753
|
style: {
|
|
4792
4754
|
textAlign: 'center'
|
|
4793
4755
|
}
|
|
@@ -5019,7 +4981,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5019
4981
|
title: item.name,
|
|
5020
4982
|
className: "propertyGroup_checkbox_container"
|
|
5021
4983
|
}, item.name));
|
|
5022
|
-
}), !!notCommonUseProperty.length && (
|
|
4984
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5023
4985
|
style: {
|
|
5024
4986
|
width: '50px',
|
|
5025
4987
|
cursor: 'pointer',
|
|
@@ -5032,7 +4994,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5032
4994
|
setShowNotCommon(!showNotCommon);
|
|
5033
4995
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
5034
4996
|
}
|
|
5035
|
-
}, showNotCommon && (
|
|
4997
|
+
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
5036
4998
|
};
|
|
5037
4999
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
5038
5000
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5262,7 +5224,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5262
5224
|
propertyData: item,
|
|
5263
5225
|
handleProperyItemChange: handleProperyItemChange
|
|
5264
5226
|
});
|
|
5265
|
-
}))), !!notCommonProperty.length && (
|
|
5227
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5266
5228
|
style: {
|
|
5267
5229
|
width: '50px',
|
|
5268
5230
|
cursor: 'pointer',
|
|
@@ -5272,7 +5234,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5272
5234
|
onClick: function onClick() {
|
|
5273
5235
|
return setShowNotCommon(!showNotCommon);
|
|
5274
5236
|
}
|
|
5275
|
-
}, showNotCommon && (
|
|
5237
|
+
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5276
5238
|
};
|
|
5277
5239
|
|
|
5278
5240
|
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
@@ -6390,13 +6352,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6390
6352
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6391
6353
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6392
6354
|
className: 'search_select'
|
|
6393
|
-
}, fieldComponent ? (
|
|
6355
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6394
6356
|
onClick: function onClick() {
|
|
6395
6357
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6396
6358
|
(_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);
|
|
6397
6359
|
showModal();
|
|
6398
6360
|
}
|
|
6399
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
6361
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6400
6362
|
title: getShowStr({
|
|
6401
6363
|
viewShowValueStr: viewShowValueStr,
|
|
6402
6364
|
labelInValue: labelInValue,
|
|
@@ -6435,10 +6397,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6435
6397
|
dropdownRender: function dropdownRender(menu) {
|
|
6436
6398
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6437
6399
|
},
|
|
6438
|
-
notFoundContent: fetching ? (
|
|
6400
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6439
6401
|
size: "small",
|
|
6440
6402
|
className: 'searchSelectSpin'
|
|
6441
|
-
})) : (
|
|
6403
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6442
6404
|
style: {
|
|
6443
6405
|
textAlign: 'center'
|
|
6444
6406
|
}
|
|
@@ -6478,7 +6440,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6478
6440
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6479
6441
|
filterTxt: searchValue
|
|
6480
6442
|
}));
|
|
6481
|
-
}))), needModalTable && isModalVisible && (
|
|
6443
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6482
6444
|
maskClosable: false,
|
|
6483
6445
|
destroyOnClose: true,
|
|
6484
6446
|
width: "calc(100% - 320px)",
|
|
@@ -7077,7 +7039,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7077
7039
|
style: {
|
|
7078
7040
|
width: 525
|
|
7079
7041
|
}
|
|
7080
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
7042
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
7081
7043
|
checked: !dataSource.some(function (item) {
|
|
7082
7044
|
if (item.hidden) return true;
|
|
7083
7045
|
return false;
|
|
@@ -7115,13 +7077,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7115
7077
|
_this2.onChange(e, item.title);
|
|
7116
7078
|
}
|
|
7117
7079
|
}, item.title);
|
|
7118
|
-
}), !!seatchDataSource.length && (
|
|
7080
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
7119
7081
|
style: {
|
|
7120
7082
|
width: '144px'
|
|
7121
7083
|
}
|
|
7122
|
-
})), !seatchDataSource.length && (
|
|
7084
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
7123
7085
|
className: 'sort_table_column_all_empty'
|
|
7124
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
7086
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7125
7087
|
className: 'sort_table_column_special'
|
|
7126
7088
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
7127
7089
|
className: 'sort_table_column_all'
|
|
@@ -7310,7 +7272,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7310
7272
|
});
|
|
7311
7273
|
};
|
|
7312
7274
|
// 格式化树选择器数据源
|
|
7313
|
-
var
|
|
7275
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7314
7276
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7315
7277
|
return {
|
|
7316
7278
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7320,7 +7282,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7320
7282
|
isLeaf: !haveChildren,
|
|
7321
7283
|
disabled: haveChildren,
|
|
7322
7284
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7323
|
-
return
|
|
7285
|
+
return _mapSearchTree(i, resKeyValue);
|
|
7324
7286
|
}) : []
|
|
7325
7287
|
};
|
|
7326
7288
|
};
|
|
@@ -7329,7 +7291,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7329
7291
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7330
7292
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7331
7293
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7332
|
-
return
|
|
7294
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
7333
7295
|
}) || [];
|
|
7334
7296
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7335
7297
|
};
|
|
@@ -7501,7 +7463,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7501
7463
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7502
7464
|
// FIXME: 特殊业务逻辑
|
|
7503
7465
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7504
|
-
var _ref2 = _asyncToGenerator(
|
|
7466
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7505
7467
|
var result;
|
|
7506
7468
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7507
7469
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7754,7 +7716,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7754
7716
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7755
7717
|
value: text || null,
|
|
7756
7718
|
onChange: function () {
|
|
7757
|
-
var _onChange = _asyncToGenerator(
|
|
7719
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7758
7720
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7759
7721
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7760
7722
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8362,10 +8324,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8362
8324
|
var newColumns = arr.map(function (col) {
|
|
8363
8325
|
return _objectSpread2({}, col);
|
|
8364
8326
|
});
|
|
8365
|
-
var
|
|
8327
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8366
8328
|
var i = indexArr.shift();
|
|
8367
8329
|
if (indexArr.length > 0) {
|
|
8368
|
-
|
|
8330
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8369
8331
|
} else {
|
|
8370
8332
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8371
8333
|
width: size.width
|
|
@@ -8373,7 +8335,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8373
8335
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8374
8336
|
}
|
|
8375
8337
|
};
|
|
8376
|
-
|
|
8338
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8377
8339
|
callback(newColumns);
|
|
8378
8340
|
};
|
|
8379
8341
|
};
|
|
@@ -8383,13 +8345,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8383
8345
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8384
8346
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8385
8347
|
};
|
|
8386
|
-
var
|
|
8348
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8387
8349
|
arr.forEach(function (item, index) {
|
|
8388
8350
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8389
8351
|
return i || i === 0;
|
|
8390
8352
|
});
|
|
8391
8353
|
if (noEmptyArray$1(item.children)) {
|
|
8392
|
-
|
|
8354
|
+
_handleColumns(item.children, indexArrInside);
|
|
8393
8355
|
} else {
|
|
8394
8356
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8395
8357
|
item.onHeaderCell = function (column) {
|
|
@@ -8405,14 +8367,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8405
8367
|
handleAntdColumnsSpecialParams(item);
|
|
8406
8368
|
return _objectSpread2({}, item);
|
|
8407
8369
|
});
|
|
8408
|
-
|
|
8370
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
8409
8371
|
return setShowToChooseColumnsCallback(res);
|
|
8410
8372
|
});
|
|
8411
8373
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8412
8374
|
handleAntdColumnsSpecialParams(item);
|
|
8413
8375
|
return _objectSpread2({}, item);
|
|
8414
8376
|
});
|
|
8415
|
-
|
|
8377
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8416
8378
|
return setShowColumnsCallback(res);
|
|
8417
8379
|
});
|
|
8418
8380
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8423,7 +8385,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8423
8385
|
id: "add_select_div_".concat(uniqueValue)
|
|
8424
8386
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8425
8387
|
onClick: handleShowModal
|
|
8426
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
8388
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8427
8389
|
width: "calc(100% - 320px)",
|
|
8428
8390
|
style: {
|
|
8429
8391
|
top: 20
|
|
@@ -9337,7 +9299,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9337
9299
|
});
|
|
9338
9300
|
};
|
|
9339
9301
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9340
|
-
var _ref4 = _asyncToGenerator(
|
|
9302
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9341
9303
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9342
9304
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9343
9305
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9420,10 +9382,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9420
9382
|
var newColumns = arr.map(function (col) {
|
|
9421
9383
|
return _objectSpread2({}, col);
|
|
9422
9384
|
});
|
|
9423
|
-
var
|
|
9385
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
9424
9386
|
var i = indexArr.shift();
|
|
9425
9387
|
if (indexArr.length > 0) {
|
|
9426
|
-
|
|
9388
|
+
_handleIndex(arr[i].children, indexArr);
|
|
9427
9389
|
} else {
|
|
9428
9390
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9429
9391
|
width: size.width
|
|
@@ -9431,17 +9393,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9431
9393
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9432
9394
|
}
|
|
9433
9395
|
};
|
|
9434
|
-
|
|
9396
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
9435
9397
|
callback(newColumns);
|
|
9436
9398
|
};
|
|
9437
9399
|
};
|
|
9438
|
-
var
|
|
9400
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9439
9401
|
arr.forEach(function (item, index) {
|
|
9440
9402
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9441
9403
|
return i || i === 0;
|
|
9442
9404
|
});
|
|
9443
9405
|
if (noEmptyArray$1(item.children)) {
|
|
9444
|
-
|
|
9406
|
+
_handleColumns(item.children, indexArrInside);
|
|
9445
9407
|
} else {
|
|
9446
9408
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9447
9409
|
item.onHeaderCell = function (column) {
|
|
@@ -9457,7 +9419,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9457
9419
|
handleAntdColumnsSpecialParams(item);
|
|
9458
9420
|
return _objectSpread2({}, item);
|
|
9459
9421
|
});
|
|
9460
|
-
|
|
9422
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9461
9423
|
return setShowColumnsCallback(res);
|
|
9462
9424
|
});
|
|
9463
9425
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9773,7 +9735,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9773
9735
|
});
|
|
9774
9736
|
};
|
|
9775
9737
|
// 格式化树选择器数据源
|
|
9776
|
-
var
|
|
9738
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9777
9739
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9778
9740
|
return {
|
|
9779
9741
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9783,7 +9745,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9783
9745
|
isLeaf: !haveChildren,
|
|
9784
9746
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9785
9747
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9786
|
-
return
|
|
9748
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9787
9749
|
}) : []
|
|
9788
9750
|
};
|
|
9789
9751
|
};
|
|
@@ -9797,7 +9759,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9797
9759
|
disabledJudge = false;
|
|
9798
9760
|
}
|
|
9799
9761
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9800
|
-
return
|
|
9762
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9801
9763
|
}) || [];
|
|
9802
9764
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9803
9765
|
};
|
|
@@ -11563,11 +11525,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11563
11525
|
sourceName: 'code'
|
|
11564
11526
|
}, requestConfigProp);
|
|
11565
11527
|
tableSearchForm = [{
|
|
11566
|
-
name: 'qp-name-
|
|
11567
|
-
label: '商店名称'
|
|
11528
|
+
name: 'qp-name-in',
|
|
11529
|
+
label: '商店名称',
|
|
11530
|
+
type: 'multipleQueryInput'
|
|
11568
11531
|
}, {
|
|
11569
|
-
name: 'qp-code-
|
|
11570
|
-
label: '商店编码'
|
|
11532
|
+
name: 'qp-code-in',
|
|
11533
|
+
label: '商店编码',
|
|
11534
|
+
type: 'multipleQueryInput'
|
|
11571
11535
|
}, {
|
|
11572
11536
|
name: 'qp-type-in',
|
|
11573
11537
|
type: 'select',
|
|
@@ -14099,7 +14063,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
14099
14063
|
};
|
|
14100
14064
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
14101
14065
|
onClick: handleShowModal
|
|
14102
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
14066
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14103
14067
|
onOk: handleOk,
|
|
14104
14068
|
onCancel: handleCancel,
|
|
14105
14069
|
destroyOnClose: true,
|
|
@@ -14218,7 +14182,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14218
14182
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
14219
14183
|
_remoteSource$special = remoteSource.specialBracket,
|
|
14220
14184
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
14221
|
-
var
|
|
14185
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
14222
14186
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
14223
14187
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
14224
14188
|
return {
|
|
@@ -14230,7 +14194,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14230
14194
|
isLeaf: !haveChildren,
|
|
14231
14195
|
disabled: isDisabled(haveChildren, isRoot),
|
|
14232
14196
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
14233
|
-
return
|
|
14197
|
+
return _mapSearchTree(i);
|
|
14234
14198
|
}) : []
|
|
14235
14199
|
};
|
|
14236
14200
|
};
|
|
@@ -14248,8 +14212,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14248
14212
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
14249
14213
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14250
14214
|
headers: headers
|
|
14251
|
-
}).then(
|
|
14252
|
-
var _ref = _asyncToGenerator(
|
|
14215
|
+
}).then(/*#__PURE__*/function () {
|
|
14216
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14253
14217
|
var _ctx$form;
|
|
14254
14218
|
var resData, coverData, data, dataList;
|
|
14255
14219
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -14276,7 +14240,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14276
14240
|
case 9:
|
|
14277
14241
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14278
14242
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14279
|
-
return
|
|
14243
|
+
return _mapSearchTree(ites);
|
|
14280
14244
|
}) || [];
|
|
14281
14245
|
case 11:
|
|
14282
14246
|
_context.next = 14;
|
|
@@ -14314,11 +14278,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14314
14278
|
return _formatResult;
|
|
14315
14279
|
}
|
|
14316
14280
|
};
|
|
14317
|
-
var
|
|
14281
|
+
var _parallelData = function parallelData(data, result) {
|
|
14318
14282
|
data.forEach(function (i) {
|
|
14319
14283
|
result.push(i);
|
|
14320
14284
|
if (i[treeChildrenRoom]) {
|
|
14321
|
-
|
|
14285
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
14322
14286
|
}
|
|
14323
14287
|
});
|
|
14324
14288
|
return result;
|
|
@@ -14358,7 +14322,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14358
14322
|
var _ctx$form2;
|
|
14359
14323
|
var handleData = formatData(data);
|
|
14360
14324
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14361
|
-
var parallelTreeData =
|
|
14325
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14362
14326
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14363
14327
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14364
14328
|
onChangeName && onChangeName(dataName);
|
|
@@ -14401,7 +14365,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14401
14365
|
var getShowStr = function getShowStr() {
|
|
14402
14366
|
var isMultiple = multiple || treeCheckable;
|
|
14403
14367
|
var kongValue = '无';
|
|
14404
|
-
var parallelTreeData =
|
|
14368
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14405
14369
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14406
14370
|
if (isMultiple) {
|
|
14407
14371
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14413,7 +14377,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14413
14377
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14414
14378
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14415
14379
|
className: 'tree_search_select'
|
|
14416
|
-
}, isShouldShowStr ? (
|
|
14380
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14417
14381
|
title: getShowStr(),
|
|
14418
14382
|
style: {
|
|
14419
14383
|
overflow: 'hidden',
|
|
@@ -14421,7 +14385,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14421
14385
|
whiteSpace: 'nowrap'
|
|
14422
14386
|
},
|
|
14423
14387
|
className: 'search_select_show'
|
|
14424
|
-
}, getShowStr())) : (
|
|
14388
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14425
14389
|
treeCheckable: treeCheckable,
|
|
14426
14390
|
maxTagCount: maxTagCount,
|
|
14427
14391
|
showSearch: showSearch,
|
|
@@ -14618,7 +14582,7 @@ var index$2 = (function (props) {
|
|
|
14618
14582
|
} : {}
|
|
14619
14583
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14620
14584
|
className: 'status-label-operate'
|
|
14621
|
-
}, item.isDone ? (
|
|
14585
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14622
14586
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14623
14587
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14624
14588
|
style: {
|
|
@@ -15399,7 +15363,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15399
15363
|
style: {
|
|
15400
15364
|
width: 525
|
|
15401
15365
|
}
|
|
15402
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15366
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15403
15367
|
checked: !dataSource.some(function (item) {
|
|
15404
15368
|
if (item.hidden) return true;
|
|
15405
15369
|
return false;
|
|
@@ -15437,13 +15401,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15437
15401
|
_this2.onChange(e, item.title);
|
|
15438
15402
|
}
|
|
15439
15403
|
}, item.title);
|
|
15440
|
-
}), !!seatchDataSource.length && (
|
|
15404
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15441
15405
|
style: {
|
|
15442
15406
|
width: '144px'
|
|
15443
15407
|
}
|
|
15444
|
-
})), !seatchDataSource.length && (
|
|
15408
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15445
15409
|
className: 'sort_table_column_all_empty'
|
|
15446
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15410
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15447
15411
|
className: 'sort_table_column_special'
|
|
15448
15412
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15449
15413
|
className: 'sort_table_column_all'
|
|
@@ -15622,10 +15586,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15622
15586
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15623
15587
|
return _objectSpread2({}, col);
|
|
15624
15588
|
});
|
|
15625
|
-
var
|
|
15589
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15626
15590
|
var i = indexArr.shift();
|
|
15627
15591
|
if (indexArr.length > 0) {
|
|
15628
|
-
|
|
15592
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15629
15593
|
} else {
|
|
15630
15594
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15631
15595
|
width: size.width
|
|
@@ -15633,7 +15597,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15633
15597
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15634
15598
|
}
|
|
15635
15599
|
};
|
|
15636
|
-
|
|
15600
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15637
15601
|
_this.setState({
|
|
15638
15602
|
showColumns: _toConsumableArray(newColumns)
|
|
15639
15603
|
});
|
|
@@ -15674,7 +15638,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15674
15638
|
};
|
|
15675
15639
|
setIsResizing(true);
|
|
15676
15640
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15677
|
-
document.addEventListener('mouseup',
|
|
15641
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
15678
15642
|
};
|
|
15679
15643
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15680
15644
|
e.stopPropagation();
|
|
@@ -15690,9 +15654,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15690
15654
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15691
15655
|
}
|
|
15692
15656
|
};
|
|
15693
|
-
var
|
|
15657
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15694
15658
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15695
|
-
document.removeEventListener('mouseup',
|
|
15659
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15696
15660
|
setIsResizing(false);
|
|
15697
15661
|
};
|
|
15698
15662
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15813,13 +15777,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15813
15777
|
showSummary = summary;
|
|
15814
15778
|
}
|
|
15815
15779
|
}
|
|
15816
|
-
var
|
|
15780
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15817
15781
|
arr.forEach(function (item, index) {
|
|
15818
15782
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15819
15783
|
return i || i === 0;
|
|
15820
15784
|
});
|
|
15821
15785
|
if (noEmptyArray$1(item.children)) {
|
|
15822
|
-
|
|
15786
|
+
_handleColumns(item.children, indexArrInside);
|
|
15823
15787
|
} else {
|
|
15824
15788
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15825
15789
|
item.onHeaderCell = function (column) {
|
|
@@ -15835,7 +15799,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15835
15799
|
handleBssulaColumnsSpecialParams(item);
|
|
15836
15800
|
return _objectSpread2({}, item);
|
|
15837
15801
|
});
|
|
15838
|
-
|
|
15802
|
+
_handleColumns(showCol, []);
|
|
15839
15803
|
if (dynamicColumns.length) {
|
|
15840
15804
|
showCol = this.handledynamicColumns(showCol);
|
|
15841
15805
|
}
|
|
@@ -15876,7 +15840,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15876
15840
|
cell: this.ResizeableTitle
|
|
15877
15841
|
}
|
|
15878
15842
|
}
|
|
15879
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15843
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15880
15844
|
summary: summary
|
|
15881
15845
|
})));
|
|
15882
15846
|
}
|
|
@@ -15973,10 +15937,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15973
15937
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15974
15938
|
return _objectSpread2({}, col);
|
|
15975
15939
|
});
|
|
15976
|
-
var
|
|
15940
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15977
15941
|
var i = indexArr.shift();
|
|
15978
15942
|
if (indexArr.length > 0) {
|
|
15979
|
-
|
|
15943
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15980
15944
|
} else {
|
|
15981
15945
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15982
15946
|
width: size.width
|
|
@@ -15984,7 +15948,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15984
15948
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15985
15949
|
}
|
|
15986
15950
|
};
|
|
15987
|
-
|
|
15951
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15988
15952
|
_this.setState({
|
|
15989
15953
|
showColumns: _toConsumableArray(newColumns)
|
|
15990
15954
|
});
|
|
@@ -16060,13 +16024,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16060
16024
|
showSummary = summary;
|
|
16061
16025
|
}
|
|
16062
16026
|
}
|
|
16063
|
-
var
|
|
16027
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
16064
16028
|
arr.forEach(function (item, index) {
|
|
16065
16029
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
16066
16030
|
return i || i === 0;
|
|
16067
16031
|
});
|
|
16068
16032
|
if (noEmptyArray$1(item.children)) {
|
|
16069
|
-
|
|
16033
|
+
_handleColumns(item.children, indexArrInside);
|
|
16070
16034
|
} else {
|
|
16071
16035
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
16072
16036
|
item.onHeaderCell = function (column) {
|
|
@@ -16082,7 +16046,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16082
16046
|
handleAntdColumnsSpecialParams(item);
|
|
16083
16047
|
return _objectSpread2({}, item);
|
|
16084
16048
|
});
|
|
16085
|
-
|
|
16049
|
+
_handleColumns(showCol, []);
|
|
16086
16050
|
if (dynamicColumns.length) {
|
|
16087
16051
|
showCol = this.handledynamicColumns(showCol);
|
|
16088
16052
|
}
|
|
@@ -16122,7 +16086,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16122
16086
|
cell: this.ResizeableTitle
|
|
16123
16087
|
}
|
|
16124
16088
|
}
|
|
16125
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
16089
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16126
16090
|
summary: summary
|
|
16127
16091
|
})));
|
|
16128
16092
|
}
|
|
@@ -16182,7 +16146,7 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
16182
16146
|
};
|
|
16183
16147
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
16184
16148
|
var routerMap = {};
|
|
16185
|
-
var
|
|
16149
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
16186
16150
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
16187
16151
|
data.forEach(function (menuItem) {
|
|
16188
16152
|
// 面包屑路径,增加显示一级导航路径显示
|
|
@@ -16197,13 +16161,13 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
16197
16161
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
16198
16162
|
});
|
|
16199
16163
|
if (newMenuItem.children) {
|
|
16200
|
-
|
|
16164
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
16201
16165
|
}
|
|
16202
16166
|
// Reduce memory usage
|
|
16203
16167
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
16204
16168
|
});
|
|
16205
16169
|
};
|
|
16206
|
-
|
|
16170
|
+
_flattenMenuData2(menuData, {
|
|
16207
16171
|
isMenuRoot: true
|
|
16208
16172
|
});
|
|
16209
16173
|
return routerMap;
|
|
@@ -16568,7 +16532,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16568
16532
|
display: 'flex',
|
|
16569
16533
|
gap: '8px'
|
|
16570
16534
|
}
|
|
16571
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
16535
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16572
16536
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16573
16537
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16574
16538
|
onClick: function onClick() {
|
|
@@ -16576,7 +16540,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16576
16540
|
},
|
|
16577
16541
|
width: 24,
|
|
16578
16542
|
src: scanning
|
|
16579
|
-
}))) : (
|
|
16543
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16580
16544
|
title: "\u5168\u5C4F"
|
|
16581
16545
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16582
16546
|
onClick: function onClick() {
|
|
@@ -16584,7 +16548,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16584
16548
|
},
|
|
16585
16549
|
width: 24,
|
|
16586
16550
|
src: quanping
|
|
16587
|
-
}))))) : null)), alertProps && (
|
|
16551
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16588
16552
|
}, function (prevProps, nextProps) {
|
|
16589
16553
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16590
16554
|
return false;
|
|
@@ -16669,7 +16633,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16669
16633
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16670
16634
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16671
16635
|
}, item));
|
|
16672
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
16636
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16673
16637
|
}, function (prevProps, nextProps) {
|
|
16674
16638
|
if (prevProps.title !== nextProps.title) {
|
|
16675
16639
|
return false;
|
|
@@ -17309,7 +17273,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17309
17273
|
});
|
|
17310
17274
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17311
17275
|
className: 'sort_table_wrapper'
|
|
17312
|
-
}, visible && (
|
|
17276
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17313
17277
|
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
17314
17278
|
wrapClassName: 'sort_table_wrapper',
|
|
17315
17279
|
width: 810,
|
|
@@ -17360,7 +17324,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17360
17324
|
width: 525,
|
|
17361
17325
|
height: 24
|
|
17362
17326
|
}
|
|
17363
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17327
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17364
17328
|
checked: !dataSource.some(function (item) {
|
|
17365
17329
|
if (item.hidden) return true;
|
|
17366
17330
|
return false;
|
|
@@ -17414,13 +17378,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17414
17378
|
_this2.onChange(e, item.title);
|
|
17415
17379
|
}
|
|
17416
17380
|
}, item.title);
|
|
17417
|
-
}), !!seatchDataSource.length && (
|
|
17381
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17418
17382
|
style: {
|
|
17419
17383
|
width: '144px'
|
|
17420
17384
|
}
|
|
17421
|
-
})), !seatchDataSource.length && (
|
|
17385
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17422
17386
|
className: 'sort_table_column_all_empty'
|
|
17423
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
17387
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17424
17388
|
className: 'sort_table_column_special'
|
|
17425
17389
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
17426
17390
|
className: 'sort_table_column_all'
|
|
@@ -17894,7 +17858,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17894
17858
|
});
|
|
17895
17859
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17896
17860
|
className: 'sort_table_wrapper'
|
|
17897
|
-
}, visible && (
|
|
17861
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17898
17862
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17899
17863
|
wrapClassName: 'sort_table_wrapper',
|
|
17900
17864
|
width: 820,
|
|
@@ -17939,7 +17903,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17939
17903
|
style: {
|
|
17940
17904
|
width: 525
|
|
17941
17905
|
}
|
|
17942
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17906
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17943
17907
|
checked: !dataSource.some(function (item) {
|
|
17944
17908
|
if (item.hidden) return true;
|
|
17945
17909
|
return false;
|
|
@@ -17975,11 +17939,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17975
17939
|
_this2.onChange(e, item.name);
|
|
17976
17940
|
}
|
|
17977
17941
|
}, item.label);
|
|
17978
|
-
}), !!newSearchSource.length && (
|
|
17942
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17979
17943
|
style: {
|
|
17980
17944
|
width: '144px'
|
|
17981
17945
|
}
|
|
17982
|
-
})), !newSearchSource.length && (
|
|
17946
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17983
17947
|
className: 'sort_table_column_all_empty'
|
|
17984
17948
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17985
17949
|
className: 'sort_table_content_wrapper'
|
|
@@ -18078,7 +18042,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18078
18042
|
};
|
|
18079
18043
|
setIsResizing(true);
|
|
18080
18044
|
document.addEventListener('mousemove', handleMouseMove);
|
|
18081
|
-
document.addEventListener('mouseup',
|
|
18045
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
18082
18046
|
};
|
|
18083
18047
|
var handleMouseMove = function handleMouseMove(e) {
|
|
18084
18048
|
e.stopPropagation();
|
|
@@ -18094,9 +18058,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18094
18058
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
18095
18059
|
}
|
|
18096
18060
|
};
|
|
18097
|
-
var
|
|
18061
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
18098
18062
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
18099
|
-
document.removeEventListener('mouseup',
|
|
18063
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
18100
18064
|
setIsResizing(false);
|
|
18101
18065
|
};
|
|
18102
18066
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18507,7 +18471,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18507
18471
|
actionsRender = actionsRender.concat([{
|
|
18508
18472
|
type: 'text',
|
|
18509
18473
|
props: {
|
|
18510
|
-
children: (
|
|
18474
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18511
18475
|
request: {
|
|
18512
18476
|
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),
|
|
18513
18477
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18753,7 +18717,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18753
18717
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18754
18718
|
bsTableCode: bsTableCode,
|
|
18755
18719
|
onlyModal: true
|
|
18756
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
18720
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
18757
18721
|
ref: exportTableRef,
|
|
18758
18722
|
setShowColumns: setShowExportColumns,
|
|
18759
18723
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18846,11 +18810,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18846
18810
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18847
18811
|
var resultList = [];
|
|
18848
18812
|
var newRouter = cloneDeep(router);
|
|
18849
|
-
var
|
|
18813
|
+
var _deep = function deep(router) {
|
|
18850
18814
|
if (router && Array.isArray(router)) {
|
|
18851
18815
|
router.forEach(function (item) {
|
|
18852
18816
|
if (item.children && Array.isArray(item.children)) {
|
|
18853
|
-
|
|
18817
|
+
_deep(item.children);
|
|
18854
18818
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18855
18819
|
return d === item.code;
|
|
18856
18820
|
})) {
|
|
@@ -18864,10 +18828,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18864
18828
|
resultList.push(_objectSpread2({}, router));
|
|
18865
18829
|
}
|
|
18866
18830
|
};
|
|
18867
|
-
|
|
18831
|
+
_deep(newRouter);
|
|
18868
18832
|
callBack([].concat(resultList));
|
|
18869
18833
|
};
|
|
18870
|
-
var
|
|
18834
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18871
18835
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18872
18836
|
var _loop = function _loop(i) {
|
|
18873
18837
|
if (routesData[i].hideInMenu) {
|
|
@@ -18881,7 +18845,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18881
18845
|
return 0; // continue
|
|
18882
18846
|
}
|
|
18883
18847
|
if (routesData[i].children) {
|
|
18884
|
-
|
|
18848
|
+
_setMenuTreeData(routesData[i].children);
|
|
18885
18849
|
}
|
|
18886
18850
|
},
|
|
18887
18851
|
_ret;
|
|
@@ -18902,16 +18866,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18902
18866
|
};
|
|
18903
18867
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18904
18868
|
var routerMap = {};
|
|
18905
|
-
var
|
|
18869
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
18906
18870
|
data.forEach(function (menuItem) {
|
|
18907
18871
|
if (menuItem.children) {
|
|
18908
|
-
|
|
18872
|
+
_flattenMenuData(menuItem.children);
|
|
18909
18873
|
}
|
|
18910
18874
|
// Reduce memory usage
|
|
18911
18875
|
routerMap[menuItem.path] = menuItem;
|
|
18912
18876
|
});
|
|
18913
18877
|
};
|
|
18914
|
-
|
|
18878
|
+
_flattenMenuData(menuData);
|
|
18915
18879
|
return routerMap;
|
|
18916
18880
|
};
|
|
18917
18881
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -19057,7 +19021,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19057
19021
|
sethomepageData(homepageDataList);
|
|
19058
19022
|
setroutesData(routesDataList);
|
|
19059
19023
|
}, []);
|
|
19060
|
-
var
|
|
19024
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
19061
19025
|
if (!child.hideInMenu && child.children) {
|
|
19062
19026
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19063
19027
|
style: {
|
|
@@ -19067,7 +19031,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19067
19031
|
}, formatMessage({
|
|
19068
19032
|
id: "".concat(child.locale)
|
|
19069
19033
|
})), child.children.map(function (menuItem) {
|
|
19070
|
-
return
|
|
19034
|
+
return _renderChildItem(menuItem);
|
|
19071
19035
|
}));
|
|
19072
19036
|
} else if (!child.hideInMenu && child.path) {
|
|
19073
19037
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19102,7 +19066,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19102
19066
|
className: 'drawerWarp'
|
|
19103
19067
|
}, homepageData && homepageData.filter(function (d) {
|
|
19104
19068
|
return !d.hideInMenu;
|
|
19105
|
-
}).length > 0 && (
|
|
19069
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19106
19070
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19107
19071
|
dataSource: homepageData,
|
|
19108
19072
|
renderItem: function renderItem(child) {
|
|
@@ -19137,7 +19101,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19137
19101
|
bordered: true,
|
|
19138
19102
|
dataSource: item.children,
|
|
19139
19103
|
renderItem: function renderItem(child) {
|
|
19140
|
-
return
|
|
19104
|
+
return _renderChildItem(child);
|
|
19141
19105
|
}
|
|
19142
19106
|
});
|
|
19143
19107
|
})));
|
|
@@ -19197,7 +19161,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19197
19161
|
src: allfunc
|
|
19198
19162
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
19199
19163
|
className: 'btnSpan2'
|
|
19200
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
19164
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19201
19165
|
style: {
|
|
19202
19166
|
left: isDrawer ? 140 : 0,
|
|
19203
19167
|
top: 50
|
|
@@ -19243,7 +19207,7 @@ function outLogin(_x) {
|
|
|
19243
19207
|
return _outLogin.apply(this, arguments);
|
|
19244
19208
|
}
|
|
19245
19209
|
function _outLogin() {
|
|
19246
|
-
_outLogin = _asyncToGenerator(
|
|
19210
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19247
19211
|
var res;
|
|
19248
19212
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19249
19213
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19385,7 +19349,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19385
19349
|
});
|
|
19386
19350
|
};
|
|
19387
19351
|
var loginOut = /*#__PURE__*/function () {
|
|
19388
|
-
var _ref2 = _asyncToGenerator(
|
|
19352
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19389
19353
|
var sessionId;
|
|
19390
19354
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19391
19355
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19489,7 +19453,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19489
19453
|
marginRight: '0px'
|
|
19490
19454
|
},
|
|
19491
19455
|
src: './xialajiantou-new.svg'
|
|
19492
|
-
}))))), loginModalParams.visible && (
|
|
19456
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19493
19457
|
};
|
|
19494
19458
|
|
|
19495
19459
|
// -- 查询店铺 --
|
|
@@ -19497,7 +19461,7 @@ function getStoreByName(_x) {
|
|
|
19497
19461
|
return _getStoreByName.apply(this, arguments);
|
|
19498
19462
|
}
|
|
19499
19463
|
function _getStoreByName() {
|
|
19500
|
-
_getStoreByName = _asyncToGenerator(
|
|
19464
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19501
19465
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19502
19466
|
while (1) switch (_context.prev = _context.next) {
|
|
19503
19467
|
case 0:
|
|
@@ -19565,7 +19529,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19565
19529
|
return _fetchUserList.apply(this, arguments);
|
|
19566
19530
|
}
|
|
19567
19531
|
function _fetchUserList() {
|
|
19568
|
-
_fetchUserList = _asyncToGenerator(
|
|
19532
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19569
19533
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19570
19534
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19571
19535
|
case 0:
|
|
@@ -19613,7 +19577,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19613
19577
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19614
19578
|
}, [debounceTimeout, key]);
|
|
19615
19579
|
var changeInput = /*#__PURE__*/function () {
|
|
19616
|
-
var _ref = _asyncToGenerator(
|
|
19580
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19617
19581
|
var res;
|
|
19618
19582
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19619
19583
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19635,7 +19599,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19635
19599
|
};
|
|
19636
19600
|
}();
|
|
19637
19601
|
useEffect(function () {
|
|
19638
|
-
_asyncToGenerator(
|
|
19602
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19639
19603
|
var res;
|
|
19640
19604
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19641
19605
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19800,7 +19764,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19800
19764
|
var resultList = [];
|
|
19801
19765
|
var newRouter = cloneDeep$1(router);
|
|
19802
19766
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19803
|
-
var
|
|
19767
|
+
var _deep = function deep(router) {
|
|
19804
19768
|
if (router && Array.isArray(router)) {
|
|
19805
19769
|
router.forEach(function (item) {
|
|
19806
19770
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19810,7 +19774,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19810
19774
|
d.nameEdit = true;
|
|
19811
19775
|
}
|
|
19812
19776
|
});
|
|
19813
|
-
|
|
19777
|
+
_deep(item.routes);
|
|
19814
19778
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19815
19779
|
id: "menu.".concat(item.name)
|
|
19816
19780
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19829,7 +19793,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19829
19793
|
}));
|
|
19830
19794
|
}
|
|
19831
19795
|
};
|
|
19832
|
-
|
|
19796
|
+
_deep(newRouter);
|
|
19833
19797
|
setroutesData([].concat(resultList));
|
|
19834
19798
|
};
|
|
19835
19799
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19911,7 +19875,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19911
19875
|
},
|
|
19912
19876
|
title: item.fullPathName
|
|
19913
19877
|
}, renderLineStyl(item.fullPathName));
|
|
19914
|
-
}))))), showSelectStore && (
|
|
19878
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19915
19879
|
employeeCode: employeeCode
|
|
19916
19880
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19917
19881
|
};
|
|
@@ -19926,7 +19890,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19926
19890
|
var TreeNode = Tree.TreeNode;
|
|
19927
19891
|
var Search$2 = Input.Search;
|
|
19928
19892
|
var dataList = [];
|
|
19929
|
-
var
|
|
19893
|
+
var _generateList = function generateList(data) {
|
|
19930
19894
|
for (var i = 0; i < data.length; i++) {
|
|
19931
19895
|
var node = data[i];
|
|
19932
19896
|
var path = node.path,
|
|
@@ -19936,11 +19900,11 @@ var generateList = function generateList(data) {
|
|
|
19936
19900
|
name: name
|
|
19937
19901
|
});
|
|
19938
19902
|
if (node.children) {
|
|
19939
|
-
|
|
19903
|
+
_generateList(node.children);
|
|
19940
19904
|
}
|
|
19941
19905
|
}
|
|
19942
19906
|
};
|
|
19943
|
-
var
|
|
19907
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
19944
19908
|
var parentKey;
|
|
19945
19909
|
for (var i = 0; i < tree.length; i++) {
|
|
19946
19910
|
var node = tree[i];
|
|
@@ -19949,8 +19913,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
19949
19913
|
return item.path === path;
|
|
19950
19914
|
})) {
|
|
19951
19915
|
parentKey = node.path;
|
|
19952
|
-
} else if (
|
|
19953
|
-
parentKey =
|
|
19916
|
+
} else if (_getParentKey(path, node.children)) {
|
|
19917
|
+
parentKey = _getParentKey(path, node.children);
|
|
19954
19918
|
}
|
|
19955
19919
|
}
|
|
19956
19920
|
}
|
|
@@ -19981,7 +19945,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19981
19945
|
var treeData = _this.state.treeData;
|
|
19982
19946
|
var expandedKeys = dataList.map(function (item) {
|
|
19983
19947
|
if (item.name.indexOf(value) > -1) {
|
|
19984
|
-
return
|
|
19948
|
+
return _getParentKey(item.path, treeData);
|
|
19985
19949
|
}
|
|
19986
19950
|
return null;
|
|
19987
19951
|
}).filter(function (item, i, self) {
|
|
@@ -19995,22 +19959,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19995
19959
|
};
|
|
19996
19960
|
_this.getPathList = function (originData) {
|
|
19997
19961
|
var pathList = [];
|
|
19998
|
-
var
|
|
19962
|
+
var _getList = function getList(data) {
|
|
19999
19963
|
if (Array.isArray(data)) {
|
|
20000
19964
|
data.forEach(function (item) {
|
|
20001
19965
|
pathList.push(item.path);
|
|
20002
19966
|
if (item.children) {
|
|
20003
|
-
|
|
19967
|
+
_getList(item.children);
|
|
20004
19968
|
}
|
|
20005
19969
|
});
|
|
20006
19970
|
} else {
|
|
20007
19971
|
pathList.push(data.path);
|
|
20008
19972
|
if (data.children) {
|
|
20009
|
-
|
|
19973
|
+
_getList(data.children);
|
|
20010
19974
|
}
|
|
20011
19975
|
}
|
|
20012
19976
|
};
|
|
20013
|
-
|
|
19977
|
+
_getList(originData);
|
|
20014
19978
|
return pathList;
|
|
20015
19979
|
};
|
|
20016
19980
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -20019,18 +19983,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20019
19983
|
customerMenuData = _this$props.customerMenuData,
|
|
20020
19984
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
20021
19985
|
var filterItem;
|
|
20022
|
-
var
|
|
19986
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
20023
19987
|
menuData.forEach(function (item) {
|
|
20024
19988
|
if (item.path === path) {
|
|
20025
19989
|
filterItem = _objectSpread2({}, item);
|
|
20026
19990
|
return;
|
|
20027
19991
|
}
|
|
20028
19992
|
if (item.children) {
|
|
20029
|
-
|
|
19993
|
+
_filterMenuItem(item.children);
|
|
20030
19994
|
}
|
|
20031
19995
|
});
|
|
20032
19996
|
};
|
|
20033
|
-
|
|
19997
|
+
_filterMenuItem(treeData);
|
|
20034
19998
|
var addPathList = _this.getPathList(filterItem);
|
|
20035
19999
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
20036
20000
|
var isRepet = false;
|
|
@@ -20060,8 +20024,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20060
20024
|
return item.path === '/';
|
|
20061
20025
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20062
20026
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20063
|
-
|
|
20064
|
-
|
|
20027
|
+
_setMenuTreeData(routesData);
|
|
20028
|
+
_generateList(routesData);
|
|
20065
20029
|
this.setState({
|
|
20066
20030
|
treeData: routesData
|
|
20067
20031
|
});
|
|
@@ -20075,16 +20039,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20075
20039
|
expandedKeys = _this$state.expandedKeys,
|
|
20076
20040
|
autoExpandParent = _this$state.autoExpandParent,
|
|
20077
20041
|
treeData = _this$state.treeData;
|
|
20078
|
-
var
|
|
20042
|
+
var _loop = function loop(data) {
|
|
20079
20043
|
return data.map(function (item) {
|
|
20080
20044
|
var index = item.name.indexOf(searchValue);
|
|
20081
20045
|
var beforeStr = item.name.substr(0, index);
|
|
20082
20046
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
20083
|
-
var name = index > -1 ? (
|
|
20047
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
20084
20048
|
style: {
|
|
20085
20049
|
color: '#f50'
|
|
20086
20050
|
}
|
|
20087
|
-
}, searchValue), afterStr)) : (
|
|
20051
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
20088
20052
|
if (item.children && item.children.length) {
|
|
20089
20053
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20090
20054
|
path: item.path,
|
|
@@ -20106,7 +20070,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20106
20070
|
width: 18,
|
|
20107
20071
|
src: arrowRight
|
|
20108
20072
|
}))))
|
|
20109
|
-
},
|
|
20073
|
+
}, _loop(item.children));
|
|
20110
20074
|
}
|
|
20111
20075
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20112
20076
|
path: item.path,
|
|
@@ -20156,7 +20120,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20156
20120
|
onExpand: this.onExpand,
|
|
20157
20121
|
expandedKeys: expandedKeys,
|
|
20158
20122
|
autoExpandParent: autoExpandParent
|
|
20159
|
-
},
|
|
20123
|
+
}, _loop(treeData))));
|
|
20160
20124
|
}
|
|
20161
20125
|
}]);
|
|
20162
20126
|
}(React$1.Component);
|
|
@@ -20189,24 +20153,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20189
20153
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
20190
20154
|
var dragObj;
|
|
20191
20155
|
var finalDropItem;
|
|
20192
|
-
var
|
|
20156
|
+
var _loop = function loop(data, path, callback) {
|
|
20193
20157
|
for (var i = 0; i < data.length; i++) {
|
|
20194
20158
|
if (data[i].path === path) {
|
|
20195
20159
|
return callback(data[i], i, data);
|
|
20196
20160
|
}
|
|
20197
20161
|
if (data[i].children) {
|
|
20198
|
-
|
|
20162
|
+
_loop(data[i].children, path, callback);
|
|
20199
20163
|
}
|
|
20200
20164
|
}
|
|
20201
20165
|
};
|
|
20202
20166
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
20203
|
-
|
|
20167
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
20204
20168
|
arr.splice(index, 1);
|
|
20205
20169
|
dragObj = item;
|
|
20206
20170
|
});
|
|
20207
20171
|
if (!info.dropToGap) {
|
|
20208
20172
|
// Drop on the content
|
|
20209
|
-
|
|
20173
|
+
_loop(data, dropKey, function (item) {
|
|
20210
20174
|
item.children = item.children || [];
|
|
20211
20175
|
item.children.unshift(dragObj);
|
|
20212
20176
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20217,7 +20181,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20217
20181
|
// Is expanded
|
|
20218
20182
|
dropPosition === 1 // On the bottom gap
|
|
20219
20183
|
) {
|
|
20220
|
-
|
|
20184
|
+
_loop(data, dropKey, function (item) {
|
|
20221
20185
|
item.children = item.children || [];
|
|
20222
20186
|
item.children.unshift(dragObj);
|
|
20223
20187
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20225,7 +20189,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20225
20189
|
} else {
|
|
20226
20190
|
var ar;
|
|
20227
20191
|
var i;
|
|
20228
|
-
|
|
20192
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
20229
20193
|
ar = arr;
|
|
20230
20194
|
i = index;
|
|
20231
20195
|
});
|
|
@@ -20264,17 +20228,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20264
20228
|
title: '编辑名称',
|
|
20265
20229
|
callBack: function callBack(newName) {
|
|
20266
20230
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20267
|
-
var
|
|
20231
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
20268
20232
|
oldTreeData.forEach(function (treeItem) {
|
|
20269
20233
|
if (treeItem.path === item.path) {
|
|
20270
20234
|
treeItem.name = newName;
|
|
20271
20235
|
}
|
|
20272
20236
|
if (treeItem.children) {
|
|
20273
|
-
|
|
20237
|
+
_editTreeDataName(treeItem.children);
|
|
20274
20238
|
}
|
|
20275
20239
|
});
|
|
20276
20240
|
};
|
|
20277
|
-
|
|
20241
|
+
_editTreeDataName(oldTreeData);
|
|
20278
20242
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20279
20243
|
_this.setState({
|
|
20280
20244
|
modalInfo: {
|
|
@@ -20319,7 +20283,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20319
20283
|
title: '新增子目录',
|
|
20320
20284
|
callBack: function callBack(newName) {
|
|
20321
20285
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20322
|
-
var
|
|
20286
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
20323
20287
|
oldTreeData.forEach(function (treeItem) {
|
|
20324
20288
|
if (treeItem.path === item.path) {
|
|
20325
20289
|
treeItem.children ? treeItem.children.push({
|
|
@@ -20331,11 +20295,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20331
20295
|
}];
|
|
20332
20296
|
}
|
|
20333
20297
|
if (treeItem.children) {
|
|
20334
|
-
|
|
20298
|
+
_addChildFolder(treeItem.children);
|
|
20335
20299
|
}
|
|
20336
20300
|
});
|
|
20337
20301
|
};
|
|
20338
|
-
|
|
20302
|
+
_addChildFolder(oldTreeData);
|
|
20339
20303
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20340
20304
|
_this.setState({
|
|
20341
20305
|
modalInfo: {
|
|
@@ -20394,7 +20358,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20394
20358
|
var _this$state = this.state,
|
|
20395
20359
|
modalInfo = _this$state.modalInfo,
|
|
20396
20360
|
checkedKeys = _this$state.checkedKeys;
|
|
20397
|
-
var
|
|
20361
|
+
var _loop2 = function loop(data) {
|
|
20398
20362
|
return data.map(function (item) {
|
|
20399
20363
|
if (item.children && item.children.length) {
|
|
20400
20364
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -20411,7 +20375,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20411
20375
|
e.stopPropagation();
|
|
20412
20376
|
}
|
|
20413
20377
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
20414
|
-
},
|
|
20378
|
+
}, _loop2(item.children));
|
|
20415
20379
|
}
|
|
20416
20380
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
20417
20381
|
path: item.path,
|
|
@@ -20490,7 +20454,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20490
20454
|
children: 'children'
|
|
20491
20455
|
},
|
|
20492
20456
|
onDrop: this.onDrop
|
|
20493
|
-
},
|
|
20457
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20494
20458
|
width: 600,
|
|
20495
20459
|
bodyStyle: {
|
|
20496
20460
|
paddingTop: '32px',
|
|
@@ -20603,7 +20567,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20603
20567
|
pathname: item.path
|
|
20604
20568
|
});
|
|
20605
20569
|
};
|
|
20606
|
-
var
|
|
20570
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
20607
20571
|
return menuData.map(function (item) {
|
|
20608
20572
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20609
20573
|
style: {
|
|
@@ -20618,7 +20582,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20618
20582
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20619
20583
|
paddingLeft: '4px'
|
|
20620
20584
|
}
|
|
20621
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20585
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
20622
20586
|
});
|
|
20623
20587
|
};
|
|
20624
20588
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20644,7 +20608,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20644
20608
|
style: {
|
|
20645
20609
|
paddingLeft: '5px'
|
|
20646
20610
|
}
|
|
20647
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
20611
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20648
20612
|
style: {
|
|
20649
20613
|
left: isDrawer ? 140 : 0
|
|
20650
20614
|
},
|
|
@@ -20665,7 +20629,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20665
20629
|
visible: isDrawer
|
|
20666
20630
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20667
20631
|
className: 'menu_title_line'
|
|
20668
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20632
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20669
20633
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20670
20634
|
style: {
|
|
20671
20635
|
fontWeight: '600',
|
|
@@ -20739,7 +20703,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20739
20703
|
return item.path === '/';
|
|
20740
20704
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20741
20705
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20742
|
-
|
|
20706
|
+
_setMenuTreeData(routesData);
|
|
20743
20707
|
routesData.forEach(function (item) {
|
|
20744
20708
|
if (item.children) {
|
|
20745
20709
|
routesDataList.push(item);
|
|
@@ -20769,7 +20733,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20769
20733
|
setHeight(clientHeight - 190);
|
|
20770
20734
|
setDrawHeight(clientHeight - 70);
|
|
20771
20735
|
};
|
|
20772
|
-
var
|
|
20736
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20773
20737
|
if (!child.hideInMenu && child.children) {
|
|
20774
20738
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20775
20739
|
style: {
|
|
@@ -20779,7 +20743,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20779
20743
|
}, formatMessage({
|
|
20780
20744
|
id: "".concat(child.locale)
|
|
20781
20745
|
})), child.children.map(function (menuItem) {
|
|
20782
|
-
return
|
|
20746
|
+
return _renderChildItem(menuItem);
|
|
20783
20747
|
}));
|
|
20784
20748
|
} else if (!child.hideInMenu && child.path) {
|
|
20785
20749
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20921,7 +20885,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20921
20885
|
onMenuClick(e, item);
|
|
20922
20886
|
}
|
|
20923
20887
|
}, item.name);
|
|
20924
|
-
}))), !!SearhData.length ? (
|
|
20888
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20925
20889
|
className: 'search_menu_content'
|
|
20926
20890
|
}, SearhData.map(function (item) {
|
|
20927
20891
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20930,7 +20894,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20930
20894
|
},
|
|
20931
20895
|
key: item.path
|
|
20932
20896
|
}, item.name);
|
|
20933
|
-
}))) : (
|
|
20897
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20934
20898
|
style: {
|
|
20935
20899
|
height: "".concat(rightMenuHeight, "px"),
|
|
20936
20900
|
overflowY: 'scroll',
|
|
@@ -20942,7 +20906,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20942
20906
|
className: 'drawerWarp_right'
|
|
20943
20907
|
}, homepageData && homepageData.filter(function (d) {
|
|
20944
20908
|
return !d.hideInMenu;
|
|
20945
|
-
}).length > 0 && (
|
|
20909
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20946
20910
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20947
20911
|
dataSource: homepageData,
|
|
20948
20912
|
renderItem: function renderItem(child) {
|
|
@@ -20983,7 +20947,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20983
20947
|
bordered: true,
|
|
20984
20948
|
dataSource: item.children,
|
|
20985
20949
|
renderItem: function renderItem(child) {
|
|
20986
|
-
return
|
|
20950
|
+
return _renderChildItem(child);
|
|
20987
20951
|
}
|
|
20988
20952
|
});
|
|
20989
20953
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -21141,10 +21105,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21141
21105
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
21142
21106
|
var menuKeys = [];
|
|
21143
21107
|
var docsId = [];
|
|
21144
|
-
var
|
|
21108
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
21145
21109
|
data.forEach(function (item) {
|
|
21146
21110
|
if (item.children && item.children.length > 0) {
|
|
21147
|
-
|
|
21111
|
+
_getLimitedMenuKeys(item.children);
|
|
21148
21112
|
} else {
|
|
21149
21113
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
21150
21114
|
menuKeys.push(originPath);
|
|
@@ -21155,7 +21119,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21155
21119
|
});
|
|
21156
21120
|
};
|
|
21157
21121
|
try {
|
|
21158
|
-
|
|
21122
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
21159
21123
|
} catch (e) {}
|
|
21160
21124
|
return {
|
|
21161
21125
|
menuKeys: menuKeys,
|
|
@@ -21389,10 +21353,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21389
21353
|
return (node.path || '').includes('all-general-documents');
|
|
21390
21354
|
};
|
|
21391
21355
|
// 递归获取树列表
|
|
21392
|
-
var
|
|
21356
|
+
var _getTreeList = function getTreeList(data) {
|
|
21393
21357
|
data.forEach(function (node) {
|
|
21394
21358
|
if (node.routes && node.routes.length > 0) {
|
|
21395
|
-
|
|
21359
|
+
_getTreeList(node.routes);
|
|
21396
21360
|
return;
|
|
21397
21361
|
}
|
|
21398
21362
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21423,7 +21387,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21423
21387
|
}
|
|
21424
21388
|
});
|
|
21425
21389
|
};
|
|
21426
|
-
|
|
21390
|
+
_getTreeList(treeData);
|
|
21427
21391
|
return treeList;
|
|
21428
21392
|
};
|
|
21429
21393
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -22052,7 +22016,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22052
22016
|
updateState = _ref8.updateState;
|
|
22053
22017
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
22054
22018
|
className: "tab_title_content"
|
|
22055
|
-
}, item.tab, item.key !== '/' && (
|
|
22019
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
22056
22020
|
info: item,
|
|
22057
22021
|
operateFun: _this3.operateFun,
|
|
22058
22022
|
listenRouterState: listenRouterState
|
|
@@ -22188,7 +22152,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22188
22152
|
};
|
|
22189
22153
|
}
|
|
22190
22154
|
var OperationsSlot = {
|
|
22191
|
-
left: (
|
|
22155
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
22192
22156
|
className: 'tab_left_operate'
|
|
22193
22157
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
22194
22158
|
onClick: function onClick() {
|
|
@@ -22204,7 +22168,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22204
22168
|
_this3.setTabNavTransLate(-100);
|
|
22205
22169
|
}
|
|
22206
22170
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
22207
|
-
right: (
|
|
22171
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
22208
22172
|
style: {
|
|
22209
22173
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
22210
22174
|
},
|
|
@@ -22302,7 +22266,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22302
22266
|
onMouseLeave: function onMouseLeave() {
|
|
22303
22267
|
_this3.setShowMenu(false);
|
|
22304
22268
|
}
|
|
22305
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
22269
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
22306
22270
|
style: {
|
|
22307
22271
|
position: 'absolute',
|
|
22308
22272
|
top: '14px',
|
|
@@ -22321,7 +22285,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22321
22285
|
postMenuData: function postMenuData(menus) {
|
|
22322
22286
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
22323
22287
|
},
|
|
22324
|
-
links: [!this.state.collapse ? (
|
|
22288
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
22325
22289
|
ref: this.allFunc,
|
|
22326
22290
|
itemPath: itemPath,
|
|
22327
22291
|
handleClose: this.handleClose,
|
|
@@ -22339,7 +22303,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22339
22303
|
},
|
|
22340
22304
|
menu: {
|
|
22341
22305
|
request: function () {
|
|
22342
|
-
var _request = _asyncToGenerator(
|
|
22306
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22343
22307
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22344
22308
|
while (1) switch (_context.prev = _context.next) {
|
|
22345
22309
|
case 0:
|
|
@@ -22474,7 +22438,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22474
22438
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22475
22439
|
timeFormat = _this$props4.timeFormat,
|
|
22476
22440
|
transparentProps = _this$props4.transparentProps;
|
|
22477
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
22441
|
+
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({
|
|
22478
22442
|
getDictionarySource: getDictionarySource,
|
|
22479
22443
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22480
22444
|
timeFormat: timeFormat
|
|
@@ -22498,12 +22462,12 @@ var index$5 = (function (props) {
|
|
|
22498
22462
|
});
|
|
22499
22463
|
|
|
22500
22464
|
// @ts-nocheck
|
|
22501
|
-
var
|
|
22465
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
22502
22466
|
var result = [];
|
|
22503
22467
|
columns.forEach(function (column) {
|
|
22504
22468
|
if (column.children) {
|
|
22505
22469
|
result.push(column);
|
|
22506
|
-
result.push.apply(result,
|
|
22470
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
22507
22471
|
} else {
|
|
22508
22472
|
result.push(column);
|
|
22509
22473
|
}
|
|
@@ -22512,7 +22476,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
22512
22476
|
};
|
|
22513
22477
|
var convertToRows = function convertToRows(originColumns) {
|
|
22514
22478
|
var maxLevel = 1;
|
|
22515
|
-
var
|
|
22479
|
+
var _traverse = function traverse(column, parent) {
|
|
22516
22480
|
if (parent) {
|
|
22517
22481
|
column.level = parent.level + 1;
|
|
22518
22482
|
if (maxLevel < column.level) {
|
|
@@ -22522,7 +22486,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22522
22486
|
if (column.children) {
|
|
22523
22487
|
var colSpan = 0;
|
|
22524
22488
|
column.children.forEach(function (subColumn) {
|
|
22525
|
-
|
|
22489
|
+
_traverse(subColumn, column);
|
|
22526
22490
|
colSpan += subColumn.colSpan;
|
|
22527
22491
|
});
|
|
22528
22492
|
column.colSpan = colSpan;
|
|
@@ -22532,13 +22496,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22532
22496
|
};
|
|
22533
22497
|
originColumns.forEach(function (column) {
|
|
22534
22498
|
column.level = 1;
|
|
22535
|
-
|
|
22499
|
+
_traverse(column);
|
|
22536
22500
|
});
|
|
22537
22501
|
var rows = [];
|
|
22538
22502
|
for (var i = 0; i < maxLevel; i++) {
|
|
22539
22503
|
rows.push([]);
|
|
22540
22504
|
}
|
|
22541
|
-
var allColumns =
|
|
22505
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22542
22506
|
allColumns.forEach(function (column) {
|
|
22543
22507
|
if (!column.children) {
|
|
22544
22508
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22578,7 +22542,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22578
22542
|
};
|
|
22579
22543
|
var headersToRows = function headersToRows(originColumns) {
|
|
22580
22544
|
var maxLevel = 1;
|
|
22581
|
-
var
|
|
22545
|
+
var _traverse2 = function traverse(column, parent) {
|
|
22582
22546
|
if (parent) {
|
|
22583
22547
|
//计算当前元素属于第几个层级
|
|
22584
22548
|
column.level = parent.level + 1;
|
|
@@ -22591,7 +22555,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22591
22555
|
var colSpan = 0;
|
|
22592
22556
|
column.children.forEach(function (subColumn) {
|
|
22593
22557
|
//进行递归
|
|
22594
|
-
|
|
22558
|
+
_traverse2(subColumn, column);
|
|
22595
22559
|
colSpan += subColumn.colSpan;
|
|
22596
22560
|
});
|
|
22597
22561
|
column.colSpan = colSpan;
|
|
@@ -22601,14 +22565,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22601
22565
|
};
|
|
22602
22566
|
originColumns.forEach(function (column) {
|
|
22603
22567
|
column.level = 1;
|
|
22604
|
-
|
|
22568
|
+
_traverse2(column);
|
|
22605
22569
|
});
|
|
22606
22570
|
var rows = [];
|
|
22607
22571
|
var lastData = [];
|
|
22608
22572
|
for (var i = 0; i < maxLevel; i++) {
|
|
22609
22573
|
rows.push([]);
|
|
22610
22574
|
}
|
|
22611
|
-
var allColumns =
|
|
22575
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22612
22576
|
allColumns.forEach(function (column) {
|
|
22613
22577
|
if (!column.children) {
|
|
22614
22578
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28625,7 +28589,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28625
28589
|
}
|
|
28626
28590
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28627
28591
|
};
|
|
28628
|
-
var
|
|
28592
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
28629
28593
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28630
28594
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28631
28595
|
var children = hightLightData.children,
|
|
@@ -28636,7 +28600,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28636
28600
|
lineEnd = _loc2[2];
|
|
28637
28601
|
if (children) {
|
|
28638
28602
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28639
|
-
return
|
|
28603
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
28640
28604
|
});
|
|
28641
28605
|
}
|
|
28642
28606
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28648,7 +28612,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28648
28612
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28649
28613
|
data.forEach(function (node) {
|
|
28650
28614
|
if (!node) return;
|
|
28651
|
-
node.toggled =
|
|
28615
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
28652
28616
|
node.active = isHightLight(node, highLightLine);
|
|
28653
28617
|
if (node.children) {
|
|
28654
28618
|
if (node.active) {
|
|
@@ -30079,7 +30043,7 @@ var valueType = {
|
|
|
30079
30043
|
};
|
|
30080
30044
|
|
|
30081
30045
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30082
|
-
var _ref = _asyncToGenerator(
|
|
30046
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30083
30047
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30084
30048
|
while (1) switch (_context.prev = _context.next) {
|
|
30085
30049
|
case 0:
|
|
@@ -30147,7 +30111,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30147
30111
|
value: false
|
|
30148
30112
|
}];
|
|
30149
30113
|
var ref = useRef();
|
|
30150
|
-
useMount(
|
|
30114
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30151
30115
|
var _ref$current, source;
|
|
30152
30116
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30153
30117
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30261,7 +30225,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30261
30225
|
source: {
|
|
30262
30226
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30263
30227
|
type: function () {
|
|
30264
|
-
var _type = _asyncToGenerator(
|
|
30228
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30265
30229
|
var form, values, name, relates, source;
|
|
30266
30230
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30267
30231
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30741,7 +30705,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30741
30705
|
source: {
|
|
30742
30706
|
relates: ['choiceType', 'inputType'],
|
|
30743
30707
|
type: function () {
|
|
30744
|
-
var _type2 = _asyncToGenerator(
|
|
30708
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30745
30709
|
var values, name, form, source;
|
|
30746
30710
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30747
30711
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30963,7 +30927,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30963
30927
|
width: 900,
|
|
30964
30928
|
maskClosable: false,
|
|
30965
30929
|
onOk: function () {
|
|
30966
|
-
var _onOk = _asyncToGenerator(
|
|
30930
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30967
30931
|
var _ref$current4, _res$editableStatus;
|
|
30968
30932
|
var res, _res$defaultValue;
|
|
30969
30933
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -31035,7 +30999,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31035
30999
|
}()
|
|
31036
31000
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
31037
31001
|
ref: ref
|
|
31038
|
-
})), maintainOptionsModal.visible && (
|
|
31002
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31039
31003
|
};
|
|
31040
31004
|
|
|
31041
31005
|
// @ts-nocheck
|
|
@@ -31649,7 +31613,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31649
31613
|
return setVisible(false);
|
|
31650
31614
|
},
|
|
31651
31615
|
className: 'customFieldsDrawer'
|
|
31652
|
-
}, detailTablesSetting.length == 0 && (
|
|
31616
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31653
31617
|
style: {
|
|
31654
31618
|
display: 'flex'
|
|
31655
31619
|
}
|
|
@@ -31658,13 +31622,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31658
31622
|
flex: 1,
|
|
31659
31623
|
width: 500
|
|
31660
31624
|
}
|
|
31661
|
-
}, isEmpty(moduleParams) ? (
|
|
31625
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31662
31626
|
style: {
|
|
31663
31627
|
padding: "10px 0",
|
|
31664
31628
|
fontSize: "16px",
|
|
31665
31629
|
fontWeight: "bolder"
|
|
31666
31630
|
}
|
|
31667
|
-
}, "\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")) : (
|
|
31631
|
+
}, "\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", {
|
|
31668
31632
|
style: {
|
|
31669
31633
|
flex: 1
|
|
31670
31634
|
}
|
|
@@ -31673,7 +31637,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31673
31637
|
onRun: onClickRun,
|
|
31674
31638
|
value: jsonEditorVal,
|
|
31675
31639
|
shallowHeight: height
|
|
31676
|
-
})))), detailTablesSetting.length > 0 && (
|
|
31640
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31677
31641
|
defaultActiveKey: activeKey,
|
|
31678
31642
|
onChange: function onChange(v) {
|
|
31679
31643
|
return setActiveKey(v);
|
|
@@ -31690,13 +31654,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31690
31654
|
flex: 1,
|
|
31691
31655
|
width: 500
|
|
31692
31656
|
}
|
|
31693
|
-
}, isEmpty(moduleParams) ? (
|
|
31657
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31694
31658
|
style: {
|
|
31695
31659
|
padding: "10px 0",
|
|
31696
31660
|
fontSize: "16px",
|
|
31697
31661
|
fontWeight: "bolder"
|
|
31698
31662
|
}
|
|
31699
|
-
}, "\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")) : (
|
|
31663
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31700
31664
|
style: {
|
|
31701
31665
|
flex: 1
|
|
31702
31666
|
}
|
|
@@ -31718,13 +31682,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31718
31682
|
flex: 1,
|
|
31719
31683
|
width: 500
|
|
31720
31684
|
}
|
|
31721
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
31685
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31722
31686
|
style: {
|
|
31723
31687
|
padding: "10px 0",
|
|
31724
31688
|
fontSize: "16px",
|
|
31725
31689
|
fontWeight: "bolder"
|
|
31726
31690
|
}
|
|
31727
|
-
}, "\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")) : (
|
|
31691
|
+
}, "\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", {
|
|
31728
31692
|
style: {
|
|
31729
31693
|
flex: 1
|
|
31730
31694
|
}
|
|
@@ -31870,7 +31834,7 @@ function getMetaData(_x) {
|
|
|
31870
31834
|
|
|
31871
31835
|
// 获取数据
|
|
31872
31836
|
function _getMetaData() {
|
|
31873
|
-
_getMetaData = _asyncToGenerator(
|
|
31837
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31874
31838
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31875
31839
|
while (1) switch (_context.prev = _context.next) {
|
|
31876
31840
|
case 0:
|
|
@@ -32092,7 +32056,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32092
32056
|
tableState = _useState4[0],
|
|
32093
32057
|
setTableState = _useState4[1];
|
|
32094
32058
|
var handleOpen = /*#__PURE__*/function () {
|
|
32095
|
-
var _ref = _asyncToGenerator(
|
|
32059
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32096
32060
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32097
32061
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32098
32062
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32411,7 +32375,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32411
32375
|
destroyOnClose: true
|
|
32412
32376
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
32413
32377
|
ref: queryTableRef
|
|
32414
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
32378
|
+
}, 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, {
|
|
32415
32379
|
justify: "center",
|
|
32416
32380
|
style: {
|
|
32417
32381
|
marginBottom: 30,
|
|
@@ -32527,7 +32491,7 @@ var CustomSelector = (function (props) {
|
|
|
32527
32491
|
var _props$ctx7;
|
|
32528
32492
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32529
32493
|
}
|
|
32530
|
-
})), showType === 'modalTable' && (
|
|
32494
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32531
32495
|
type: "primary",
|
|
32532
32496
|
style: {
|
|
32533
32497
|
width: '30px',
|
|
@@ -32613,7 +32577,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32613
32577
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32614
32578
|
handSource = _useState2[0],
|
|
32615
32579
|
setHandSource = _useState2[1];
|
|
32616
|
-
useEffect(
|
|
32580
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32617
32581
|
var resData, data;
|
|
32618
32582
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32619
32583
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32765,7 +32729,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32765
32729
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32766
32730
|
}
|
|
32767
32731
|
function _getRegularThresholdRange() {
|
|
32768
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
32732
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32769
32733
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32770
32734
|
while (1) switch (_context.prev = _context.next) {
|
|
32771
32735
|
case 0:
|
|
@@ -32919,7 +32883,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32919
32883
|
};
|
|
32920
32884
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32921
32885
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32922
|
-
var _ref = _asyncToGenerator(
|
|
32886
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32923
32887
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32924
32888
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32925
32889
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33876,7 +33840,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33876
33840
|
isAll: true,
|
|
33877
33841
|
needNameAndCode: true,
|
|
33878
33842
|
notChangeOnSelect: true,
|
|
33879
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33843
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33880
33844
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33881
33845
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33882
33846
|
case 0:
|
|
@@ -33925,7 +33889,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33925
33889
|
isAll: true,
|
|
33926
33890
|
needNameAndCode: true,
|
|
33927
33891
|
notChangeOnSelect: true,
|
|
33928
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33892
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33929
33893
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33930
33894
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33931
33895
|
case 0:
|
|
@@ -33976,7 +33940,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33976
33940
|
isAll: true,
|
|
33977
33941
|
needNameAndCode: true,
|
|
33978
33942
|
notChangeOnSelect: true,
|
|
33979
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33943
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33980
33944
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33981
33945
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33982
33946
|
case 0:
|
|
@@ -35954,7 +35918,7 @@ var App$1 = function App(_ref) {
|
|
|
35954
35918
|
borderRadius: '5px',
|
|
35955
35919
|
cursor: 'pointer'
|
|
35956
35920
|
}
|
|
35957
|
-
}, isStaticNumber ? (
|
|
35921
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35958
35922
|
autoFocus: true,
|
|
35959
35923
|
onClick: function onClick(e) {
|
|
35960
35924
|
return e.stopPropagation();
|
|
@@ -36241,7 +36205,7 @@ function RenderCompItem(props) {
|
|
|
36241
36205
|
dictData = _useState2[0],
|
|
36242
36206
|
setDictData = _useState2[1];
|
|
36243
36207
|
var getDictData = /*#__PURE__*/function () {
|
|
36244
|
-
var _ref = _asyncToGenerator(
|
|
36208
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36245
36209
|
var _data$map;
|
|
36246
36210
|
var data;
|
|
36247
36211
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -36283,7 +36247,7 @@ function RenderCompItem(props) {
|
|
|
36283
36247
|
var style2 = {
|
|
36284
36248
|
width: '100px'
|
|
36285
36249
|
};
|
|
36286
|
-
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 && (
|
|
36250
|
+
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, {
|
|
36287
36251
|
disabled: disabled,
|
|
36288
36252
|
allowClear: true,
|
|
36289
36253
|
onClear: function onClear() {
|
|
@@ -36294,7 +36258,7 @@ function RenderCompItem(props) {
|
|
|
36294
36258
|
onBlur: function onBlur(e) {
|
|
36295
36259
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
36296
36260
|
}
|
|
36297
|
-
})) || 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) && (
|
|
36261
|
+
})) || 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, {
|
|
36298
36262
|
disabled: disabled,
|
|
36299
36263
|
// max={Number.MAX_SAFE_INTEGER}
|
|
36300
36264
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -36307,7 +36271,7 @@ function RenderCompItem(props) {
|
|
|
36307
36271
|
onChange: function onChange(value) {
|
|
36308
36272
|
handleEdit(ites.code, value);
|
|
36309
36273
|
}
|
|
36310
|
-
})) || 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) && (
|
|
36274
|
+
})) || 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, {
|
|
36311
36275
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
36312
36276
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
36313
36277
|
disabled: disabled,
|
|
@@ -36317,7 +36281,7 @@ function RenderCompItem(props) {
|
|
|
36317
36281
|
onChange: function onChange(value, dateString) {
|
|
36318
36282
|
handleEdit(ites.code, dateString);
|
|
36319
36283
|
}
|
|
36320
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
36284
|
+
})) || 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, {
|
|
36321
36285
|
showTime: true,
|
|
36322
36286
|
disabled: disabled,
|
|
36323
36287
|
defaultValue: ites.defaultValue,
|
|
@@ -36326,7 +36290,7 @@ function RenderCompItem(props) {
|
|
|
36326
36290
|
onChange: function onChange(value, timeString) {
|
|
36327
36291
|
handleEdit(ites.code, timeString);
|
|
36328
36292
|
}
|
|
36329
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
36293
|
+
})) || 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, {
|
|
36330
36294
|
disabled: disabled,
|
|
36331
36295
|
defaultChecked: !!ites.defaultValue,
|
|
36332
36296
|
style: style2,
|
|
@@ -36334,7 +36298,7 @@ function RenderCompItem(props) {
|
|
|
36334
36298
|
onChange: function onChange(value) {
|
|
36335
36299
|
handleEdit(ites.code, value);
|
|
36336
36300
|
}
|
|
36337
|
-
})) || 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 && (
|
|
36301
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
36338
36302
|
disabled: disabled,
|
|
36339
36303
|
allowClear: true,
|
|
36340
36304
|
showArrow: true
|
|
@@ -36352,7 +36316,7 @@ function RenderCompItem(props) {
|
|
|
36352
36316
|
key: it,
|
|
36353
36317
|
value: it
|
|
36354
36318
|
}, ites.enumeration[it]);
|
|
36355
|
-
}))) || 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 && (
|
|
36319
|
+
}))) || 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, {
|
|
36356
36320
|
disabled: disabled,
|
|
36357
36321
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
36358
36322
|
defaultValue: ites.defaultValue,
|
|
@@ -36362,7 +36326,7 @@ function RenderCompItem(props) {
|
|
|
36362
36326
|
handleEdit(ites.code, value);
|
|
36363
36327
|
},
|
|
36364
36328
|
dictionaryCode: ites.dictionaryCode
|
|
36365
|
-
})) || 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 && (
|
|
36329
|
+
})) || 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, {
|
|
36366
36330
|
selectBusinessType: "physicalWarehouse",
|
|
36367
36331
|
selectProps: _objectSpread2({
|
|
36368
36332
|
style: styleCommon,
|
|
@@ -36384,7 +36348,7 @@ function RenderCompItem(props) {
|
|
|
36384
36348
|
getPopupContainer: function getPopupContainer() {
|
|
36385
36349
|
return document.body;
|
|
36386
36350
|
}
|
|
36387
|
-
})) || 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 && (
|
|
36351
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36388
36352
|
selectBusinessType: "realWarehouse",
|
|
36389
36353
|
selectProps: _objectSpread2({
|
|
36390
36354
|
style: styleCommon,
|
|
@@ -36406,7 +36370,7 @@ function RenderCompItem(props) {
|
|
|
36406
36370
|
getPopupContainer: function getPopupContainer() {
|
|
36407
36371
|
return document.body;
|
|
36408
36372
|
}
|
|
36409
|
-
})) || 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 && (
|
|
36373
|
+
})) || 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, {
|
|
36410
36374
|
selectBusinessType: "virtualWarehouse",
|
|
36411
36375
|
selectProps: _objectSpread2({
|
|
36412
36376
|
style: styleCommon,
|
|
@@ -36428,7 +36392,7 @@ function RenderCompItem(props) {
|
|
|
36428
36392
|
getPopupContainer: function getPopupContainer() {
|
|
36429
36393
|
return document.body;
|
|
36430
36394
|
}
|
|
36431
|
-
})) || 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 && (
|
|
36395
|
+
})) || 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, {
|
|
36432
36396
|
selectBusinessType: "channelWarehouse",
|
|
36433
36397
|
selectProps: _objectSpread2({
|
|
36434
36398
|
style: styleCommon,
|
|
@@ -36450,7 +36414,7 @@ function RenderCompItem(props) {
|
|
|
36450
36414
|
getPopupContainer: function getPopupContainer() {
|
|
36451
36415
|
return document.body;
|
|
36452
36416
|
}
|
|
36453
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (
|
|
36417
|
+
})) || 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, {
|
|
36454
36418
|
selectBusinessType: "spuCommodity",
|
|
36455
36419
|
selectProps: _objectSpread2({
|
|
36456
36420
|
style: styleCommon,
|
|
@@ -36471,7 +36435,7 @@ function RenderCompItem(props) {
|
|
|
36471
36435
|
getPopupContainer: function getPopupContainer() {
|
|
36472
36436
|
return document.body;
|
|
36473
36437
|
}
|
|
36474
|
-
})) || 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 && (
|
|
36438
|
+
})) || 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, {
|
|
36475
36439
|
selectBusinessType: "skuCommodity",
|
|
36476
36440
|
selectProps: _objectSpread2({
|
|
36477
36441
|
style: styleCommon,
|
|
@@ -36492,13 +36456,13 @@ function RenderCompItem(props) {
|
|
|
36492
36456
|
getPopupContainer: function getPopupContainer() {
|
|
36493
36457
|
return document.body;
|
|
36494
36458
|
}
|
|
36495
|
-
})) || 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 && (
|
|
36459
|
+
})) || 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, {
|
|
36496
36460
|
disabled: disabled,
|
|
36497
36461
|
isAll: true,
|
|
36498
36462
|
needNameAndCode: true,
|
|
36499
36463
|
notChangeOnSelect: true,
|
|
36500
36464
|
initRequestSource: function () {
|
|
36501
|
-
var _initRequestSource = _asyncToGenerator(
|
|
36465
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36502
36466
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36503
36467
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36504
36468
|
case 0:
|
|
@@ -36540,7 +36504,7 @@ function RenderCompItem(props) {
|
|
|
36540
36504
|
getPopupContainer: function getPopupContainer() {
|
|
36541
36505
|
return document.body;
|
|
36542
36506
|
}
|
|
36543
|
-
})) || 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 && (
|
|
36507
|
+
})) || 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, {
|
|
36544
36508
|
disabled: disabled,
|
|
36545
36509
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36546
36510
|
businessType: "department",
|
|
@@ -36553,7 +36517,7 @@ function RenderCompItem(props) {
|
|
|
36553
36517
|
getPopupContainer: function getPopupContainer() {
|
|
36554
36518
|
return document.body;
|
|
36555
36519
|
}
|
|
36556
|
-
})) || 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 && (
|
|
36520
|
+
})) || 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, {
|
|
36557
36521
|
disabled: disabled,
|
|
36558
36522
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36559
36523
|
businessType: "purchase-organization",
|
|
@@ -36566,7 +36530,7 @@ function RenderCompItem(props) {
|
|
|
36566
36530
|
getPopupContainer: function getPopupContainer() {
|
|
36567
36531
|
return document.body;
|
|
36568
36532
|
}
|
|
36569
|
-
})) || 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 && (
|
|
36533
|
+
})) || 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, {
|
|
36570
36534
|
disabled: disabled,
|
|
36571
36535
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36572
36536
|
businessType: "sales-organization",
|
|
@@ -36579,7 +36543,7 @@ function RenderCompItem(props) {
|
|
|
36579
36543
|
getPopupContainer: function getPopupContainer() {
|
|
36580
36544
|
return document.body;
|
|
36581
36545
|
}
|
|
36582
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (
|
|
36546
|
+
})) || 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, {
|
|
36583
36547
|
selectBusinessType: "supplier2",
|
|
36584
36548
|
selectProps: _objectSpread2({
|
|
36585
36549
|
style: styleCommon,
|
|
@@ -36600,7 +36564,7 @@ function RenderCompItem(props) {
|
|
|
36600
36564
|
getPopupContainer: function getPopupContainer() {
|
|
36601
36565
|
return document.body;
|
|
36602
36566
|
}
|
|
36603
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (
|
|
36567
|
+
})) || 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, {
|
|
36604
36568
|
selectBusinessType: "customer2",
|
|
36605
36569
|
selectProps: _objectSpread2({
|
|
36606
36570
|
style: styleCommon,
|
|
@@ -36621,7 +36585,7 @@ function RenderCompItem(props) {
|
|
|
36621
36585
|
getPopupContainer: function getPopupContainer() {
|
|
36622
36586
|
return document.body;
|
|
36623
36587
|
}
|
|
36624
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (
|
|
36588
|
+
})) || 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, {
|
|
36625
36589
|
selectBusinessType: "shopFile2",
|
|
36626
36590
|
selectProps: _objectSpread2({
|
|
36627
36591
|
style: styleCommon,
|
|
@@ -36642,7 +36606,7 @@ function RenderCompItem(props) {
|
|
|
36642
36606
|
getPopupContainer: function getPopupContainer() {
|
|
36643
36607
|
return document.body;
|
|
36644
36608
|
}
|
|
36645
|
-
})) || 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 && (
|
|
36609
|
+
})) || 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, {
|
|
36646
36610
|
selectBusinessType: "employee2",
|
|
36647
36611
|
selectProps: _objectSpread2({
|
|
36648
36612
|
style: styleCommon,
|
|
@@ -36663,7 +36627,7 @@ function RenderCompItem(props) {
|
|
|
36663
36627
|
getPopupContainer: function getPopupContainer() {
|
|
36664
36628
|
return document.body;
|
|
36665
36629
|
}
|
|
36666
|
-
})) || 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 && (
|
|
36630
|
+
})) || 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, {
|
|
36667
36631
|
disabled: disabled,
|
|
36668
36632
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36669
36633
|
businessType: "stock-organization",
|
|
@@ -36676,7 +36640,7 @@ function RenderCompItem(props) {
|
|
|
36676
36640
|
getPopupContainer: function getPopupContainer() {
|
|
36677
36641
|
return document.body;
|
|
36678
36642
|
}
|
|
36679
|
-
})) || 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 && (
|
|
36643
|
+
})) || 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, {
|
|
36680
36644
|
disabled: disabled,
|
|
36681
36645
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36682
36646
|
businessType: "settle-organization",
|
|
@@ -36689,7 +36653,7 @@ function RenderCompItem(props) {
|
|
|
36689
36653
|
getPopupContainer: function getPopupContainer() {
|
|
36690
36654
|
return document.body;
|
|
36691
36655
|
}
|
|
36692
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (
|
|
36656
|
+
})) || 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, {
|
|
36693
36657
|
selectBusinessType: "deliveryMode",
|
|
36694
36658
|
selectProps: _objectSpread2({
|
|
36695
36659
|
style: styleCommon,
|
|
@@ -36710,7 +36674,7 @@ function RenderCompItem(props) {
|
|
|
36710
36674
|
getPopupContainer: function getPopupContainer() {
|
|
36711
36675
|
return document.body;
|
|
36712
36676
|
}
|
|
36713
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (
|
|
36677
|
+
})) || 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, {
|
|
36714
36678
|
selectBusinessType: "role",
|
|
36715
36679
|
selectProps: _objectSpread2({
|
|
36716
36680
|
style: styleCommon,
|
|
@@ -36731,7 +36695,7 @@ function RenderCompItem(props) {
|
|
|
36731
36695
|
getPopupContainer: function getPopupContainer() {
|
|
36732
36696
|
return document.body;
|
|
36733
36697
|
}
|
|
36734
|
-
})) || 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 && (
|
|
36698
|
+
})) || 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, {
|
|
36735
36699
|
selectBusinessType: "brand",
|
|
36736
36700
|
selectProps: _objectSpread2({
|
|
36737
36701
|
style: styleCommon,
|
|
@@ -36752,7 +36716,7 @@ function RenderCompItem(props) {
|
|
|
36752
36716
|
getPopupContainer: function getPopupContainer() {
|
|
36753
36717
|
return document.body;
|
|
36754
36718
|
}
|
|
36755
|
-
})) || 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 && (
|
|
36719
|
+
})) || 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, {
|
|
36756
36720
|
disabled: disabled,
|
|
36757
36721
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36758
36722
|
businessType: "background-category",
|
|
@@ -36765,7 +36729,7 @@ function RenderCompItem(props) {
|
|
|
36765
36729
|
getPopupContainer: function getPopupContainer() {
|
|
36766
36730
|
return document.body;
|
|
36767
36731
|
}
|
|
36768
|
-
})) || 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 && (
|
|
36732
|
+
})) || 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, {
|
|
36769
36733
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36770
36734
|
style: styleCommon,
|
|
36771
36735
|
placeholder: '请选择'
|
|
@@ -36788,7 +36752,7 @@ function RenderCompItem(props) {
|
|
|
36788
36752
|
onChange: function onChange(value) {
|
|
36789
36753
|
handleEdit(ites.code, value);
|
|
36790
36754
|
}
|
|
36791
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
36755
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36792
36756
|
style: {
|
|
36793
36757
|
display: 'flex'
|
|
36794
36758
|
}
|
|
@@ -37301,7 +37265,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37301
37265
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
37302
37266
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
37303
37267
|
}
|
|
37304
|
-
var parallelTreeData =
|
|
37268
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
37305
37269
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
37306
37270
|
var _i$key;
|
|
37307
37271
|
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);
|
|
@@ -38270,13 +38234,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
38270
38234
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
38271
38235
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
38272
38236
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
38273
|
-
var list =
|
|
38237
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
38274
38238
|
var requiredList = list.filter(function (c) {
|
|
38275
38239
|
return c.required == 1;
|
|
38276
38240
|
}) || []; // 获取对象属性为true的集合
|
|
38277
38241
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
38278
38242
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
38279
|
-
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) ?
|
|
38243
|
+
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];
|
|
38280
38244
|
(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) {
|
|
38281
38245
|
if (requiredList.some(function (r) {
|
|
38282
38246
|
return r.id === e.elementId;
|
|
@@ -38865,7 +38829,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38865
38829
|
style: {
|
|
38866
38830
|
float: 'right'
|
|
38867
38831
|
}
|
|
38868
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
38832
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38869
38833
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38870
38834
|
ruleGroupInfo: {
|
|
38871
38835
|
ruleGroupList: ruleGroupList,
|
|
@@ -38883,7 +38847,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38883
38847
|
callBack: function callBack(newData) {
|
|
38884
38848
|
upDateData(newData);
|
|
38885
38849
|
}
|
|
38886
|
-
}))) : (
|
|
38850
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38887
38851
|
style: {
|
|
38888
38852
|
padding: 20
|
|
38889
38853
|
}
|
|
@@ -39258,4 +39222,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
39258
39222
|
}, children));
|
|
39259
39223
|
};
|
|
39260
39224
|
|
|
39261
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|
|
39225
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as 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 };
|