@bit-sun/business-component 4.0.13-alpha.20 → 4.0.13-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
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,180 +545,12 @@ 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);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
function _asyncToGenerator(fn) {
|
|
433
|
-
return function () {
|
|
434
|
-
var self = this,
|
|
435
|
-
args = arguments;
|
|
436
|
-
return new Promise(function (resolve, reject) {
|
|
437
|
-
var gen = fn.apply(self, args);
|
|
438
|
-
function _next(value) {
|
|
439
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
440
|
-
}
|
|
441
|
-
function _throw(err) {
|
|
442
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
443
|
-
}
|
|
444
|
-
_next(undefined);
|
|
445
|
-
});
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
function _classCallCheck(instance, Constructor) {
|
|
449
|
-
if (!(instance instanceof Constructor)) {
|
|
450
|
-
throw new TypeError("Cannot call a class as a function");
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
function _defineProperties(target, props) {
|
|
454
|
-
for (var i = 0; i < props.length; i++) {
|
|
455
|
-
var descriptor = props[i];
|
|
456
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
457
|
-
descriptor.configurable = true;
|
|
458
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
459
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
463
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
464
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
465
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
466
|
-
writable: false
|
|
467
|
-
});
|
|
468
|
-
return Constructor;
|
|
469
|
-
}
|
|
470
|
-
function _defineProperty(obj, key, value) {
|
|
471
|
-
key = _toPropertyKey(key);
|
|
472
|
-
if (key in obj) {
|
|
473
|
-
Object.defineProperty(obj, key, {
|
|
474
|
-
value: value,
|
|
475
|
-
enumerable: true,
|
|
476
|
-
configurable: true,
|
|
477
|
-
writable: true
|
|
478
|
-
});
|
|
479
|
-
} else {
|
|
480
|
-
obj[key] = value;
|
|
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");
|
|
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;
|
|
487
553
|
}
|
|
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
554
|
}
|
|
593
555
|
|
|
594
556
|
var ENUM = {
|
|
@@ -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:
|
|
@@ -3283,7 +3245,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3283
3245
|
style: {
|
|
3284
3246
|
color: 'red'
|
|
3285
3247
|
}
|
|
3286
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3248
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3287
3249
|
trigger: ['click'],
|
|
3288
3250
|
overlay: this.menuList,
|
|
3289
3251
|
placement: "bottomRight"
|
|
@@ -3958,7 +3920,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3958
3920
|
placement: "bottomLeft"
|
|
3959
3921
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3960
3922
|
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"))
|
|
3961
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3923
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3962
3924
|
trigger: ['click'],
|
|
3963
3925
|
overlay: this.menuList,
|
|
3964
3926
|
placement: "bottomRight"
|
|
@@ -4479,7 +4441,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4479
4441
|
destroyTooltipOnHide: true,
|
|
4480
4442
|
placement: "topRight",
|
|
4481
4443
|
autoAdjustOverflow: false,
|
|
4482
|
-
title: (
|
|
4444
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4483
4445
|
style: {
|
|
4484
4446
|
margin: '6px 8px 0px'
|
|
4485
4447
|
},
|
|
@@ -4781,10 +4743,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4781
4743
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4782
4744
|
});
|
|
4783
4745
|
},
|
|
4784
|
-
notFoundContent: fetching ? (
|
|
4746
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4785
4747
|
size: "small",
|
|
4786
4748
|
className: 'searchSelectSpin'
|
|
4787
|
-
})) : (
|
|
4749
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4788
4750
|
style: {
|
|
4789
4751
|
textAlign: 'center'
|
|
4790
4752
|
}
|
|
@@ -5016,7 +4978,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5016
4978
|
title: item.name,
|
|
5017
4979
|
className: "propertyGroup_checkbox_container"
|
|
5018
4980
|
}, item.name));
|
|
5019
|
-
}), !!notCommonUseProperty.length && (
|
|
4981
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5020
4982
|
style: {
|
|
5021
4983
|
width: '50px',
|
|
5022
4984
|
cursor: 'pointer',
|
|
@@ -5029,7 +4991,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5029
4991
|
setShowNotCommon(!showNotCommon);
|
|
5030
4992
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
5031
4993
|
}
|
|
5032
|
-
}, showNotCommon && (
|
|
4994
|
+
}, 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"))))));
|
|
5033
4995
|
};
|
|
5034
4996
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
5035
4997
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5259,7 +5221,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5259
5221
|
propertyData: item,
|
|
5260
5222
|
handleProperyItemChange: handleProperyItemChange
|
|
5261
5223
|
});
|
|
5262
|
-
}))), !!notCommonProperty.length && (
|
|
5224
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5263
5225
|
style: {
|
|
5264
5226
|
width: '50px',
|
|
5265
5227
|
cursor: 'pointer',
|
|
@@ -5269,7 +5231,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5269
5231
|
onClick: function onClick() {
|
|
5270
5232
|
return setShowNotCommon(!showNotCommon);
|
|
5271
5233
|
}
|
|
5272
|
-
}, showNotCommon && (
|
|
5234
|
+
}, 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"))))))));
|
|
5273
5235
|
};
|
|
5274
5236
|
|
|
5275
5237
|
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
@@ -6385,13 +6347,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6385
6347
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6386
6348
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6387
6349
|
className: 'search_select'
|
|
6388
|
-
}, fieldComponent ? (
|
|
6350
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6389
6351
|
onClick: function onClick() {
|
|
6390
6352
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6391
6353
|
(_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);
|
|
6392
6354
|
showModal();
|
|
6393
6355
|
}
|
|
6394
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
6356
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6395
6357
|
title: getShowStr({
|
|
6396
6358
|
viewShowValueStr: viewShowValueStr,
|
|
6397
6359
|
labelInValue: labelInValue,
|
|
@@ -6430,10 +6392,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6430
6392
|
dropdownRender: function dropdownRender(menu) {
|
|
6431
6393
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6432
6394
|
},
|
|
6433
|
-
notFoundContent: fetching ? (
|
|
6395
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6434
6396
|
size: "small",
|
|
6435
6397
|
className: 'searchSelectSpin'
|
|
6436
|
-
})) : (
|
|
6398
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6437
6399
|
style: {
|
|
6438
6400
|
textAlign: 'center'
|
|
6439
6401
|
}
|
|
@@ -6473,7 +6435,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6473
6435
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6474
6436
|
filterTxt: searchValue
|
|
6475
6437
|
}));
|
|
6476
|
-
}))), needModalTable && isModalVisible && (
|
|
6438
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6477
6439
|
maskClosable: false,
|
|
6478
6440
|
destroyOnClose: true,
|
|
6479
6441
|
width: "calc(100% - 320px)",
|
|
@@ -7070,7 +7032,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7070
7032
|
style: {
|
|
7071
7033
|
width: 525
|
|
7072
7034
|
}
|
|
7073
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
7035
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
7074
7036
|
checked: !dataSource.some(function (item) {
|
|
7075
7037
|
if (item.hidden) return true;
|
|
7076
7038
|
return false;
|
|
@@ -7108,13 +7070,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7108
7070
|
_this2.onChange(e, item.title);
|
|
7109
7071
|
}
|
|
7110
7072
|
}, item.title);
|
|
7111
|
-
}), !!seatchDataSource.length && (
|
|
7073
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
7112
7074
|
style: {
|
|
7113
7075
|
width: '144px'
|
|
7114
7076
|
}
|
|
7115
|
-
})), !seatchDataSource.length && (
|
|
7077
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
7116
7078
|
className: 'sort_table_column_all_empty'
|
|
7117
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
7079
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7118
7080
|
className: 'sort_table_column_special'
|
|
7119
7081
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
7120
7082
|
className: 'sort_table_column_all'
|
|
@@ -7303,7 +7265,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7303
7265
|
});
|
|
7304
7266
|
};
|
|
7305
7267
|
// 格式化树选择器数据源
|
|
7306
|
-
var
|
|
7268
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7307
7269
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7308
7270
|
return {
|
|
7309
7271
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7313,7 +7275,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7313
7275
|
isLeaf: !haveChildren,
|
|
7314
7276
|
disabled: haveChildren,
|
|
7315
7277
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7316
|
-
return
|
|
7278
|
+
return _mapSearchTree(i, resKeyValue);
|
|
7317
7279
|
}) : []
|
|
7318
7280
|
};
|
|
7319
7281
|
};
|
|
@@ -7322,7 +7284,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7322
7284
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7323
7285
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7324
7286
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7325
|
-
return
|
|
7287
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
7326
7288
|
}) || [];
|
|
7327
7289
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7328
7290
|
};
|
|
@@ -7493,7 +7455,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7493
7455
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7494
7456
|
// FIXME: 特殊业务逻辑
|
|
7495
7457
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7496
|
-
var _ref2 = _asyncToGenerator(
|
|
7458
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7497
7459
|
var result;
|
|
7498
7460
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7499
7461
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7746,7 +7708,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7746
7708
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7747
7709
|
value: text || null,
|
|
7748
7710
|
onChange: function () {
|
|
7749
|
-
var _onChange = _asyncToGenerator(
|
|
7711
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7750
7712
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7751
7713
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7752
7714
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8354,10 +8316,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8354
8316
|
var newColumns = arr.map(function (col) {
|
|
8355
8317
|
return _objectSpread2({}, col);
|
|
8356
8318
|
});
|
|
8357
|
-
var
|
|
8319
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8358
8320
|
var i = indexArr.shift();
|
|
8359
8321
|
if (indexArr.length > 0) {
|
|
8360
|
-
|
|
8322
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8361
8323
|
} else {
|
|
8362
8324
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8363
8325
|
width: size.width
|
|
@@ -8365,7 +8327,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8365
8327
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8366
8328
|
}
|
|
8367
8329
|
};
|
|
8368
|
-
|
|
8330
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8369
8331
|
callback(newColumns);
|
|
8370
8332
|
};
|
|
8371
8333
|
};
|
|
@@ -8375,13 +8337,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8375
8337
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8376
8338
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8377
8339
|
};
|
|
8378
|
-
var
|
|
8340
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8379
8341
|
arr.forEach(function (item, index) {
|
|
8380
8342
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8381
8343
|
return i || i === 0;
|
|
8382
8344
|
});
|
|
8383
8345
|
if (noEmptyArray$1(item.children)) {
|
|
8384
|
-
|
|
8346
|
+
_handleColumns(item.children, indexArrInside);
|
|
8385
8347
|
} else {
|
|
8386
8348
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8387
8349
|
item.onHeaderCell = function (column) {
|
|
@@ -8397,14 +8359,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8397
8359
|
handleAntdColumnsSpecialParams(item);
|
|
8398
8360
|
return _objectSpread2({}, item);
|
|
8399
8361
|
});
|
|
8400
|
-
|
|
8362
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
8401
8363
|
return setShowToChooseColumnsCallback(res);
|
|
8402
8364
|
});
|
|
8403
8365
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8404
8366
|
handleAntdColumnsSpecialParams(item);
|
|
8405
8367
|
return _objectSpread2({}, item);
|
|
8406
8368
|
});
|
|
8407
|
-
|
|
8369
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8408
8370
|
return setShowColumnsCallback(res);
|
|
8409
8371
|
});
|
|
8410
8372
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8415,8 +8377,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8415
8377
|
id: "add_select_div_".concat(uniqueValue)
|
|
8416
8378
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8417
8379
|
onClick: handleShowModal
|
|
8418
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
8419
|
-
width:
|
|
8380
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8381
|
+
width: "calc(100% - 320px)",
|
|
8420
8382
|
style: {
|
|
8421
8383
|
top: 20
|
|
8422
8384
|
},
|
|
@@ -9329,7 +9291,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9329
9291
|
});
|
|
9330
9292
|
};
|
|
9331
9293
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9332
|
-
var _ref4 = _asyncToGenerator(
|
|
9294
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9333
9295
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9334
9296
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9335
9297
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9412,10 +9374,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9412
9374
|
var newColumns = arr.map(function (col) {
|
|
9413
9375
|
return _objectSpread2({}, col);
|
|
9414
9376
|
});
|
|
9415
|
-
var
|
|
9377
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
9416
9378
|
var i = indexArr.shift();
|
|
9417
9379
|
if (indexArr.length > 0) {
|
|
9418
|
-
|
|
9380
|
+
_handleIndex(arr[i].children, indexArr);
|
|
9419
9381
|
} else {
|
|
9420
9382
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9421
9383
|
width: size.width
|
|
@@ -9423,17 +9385,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9423
9385
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9424
9386
|
}
|
|
9425
9387
|
};
|
|
9426
|
-
|
|
9388
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
9427
9389
|
callback(newColumns);
|
|
9428
9390
|
};
|
|
9429
9391
|
};
|
|
9430
|
-
var
|
|
9392
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9431
9393
|
arr.forEach(function (item, index) {
|
|
9432
9394
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9433
9395
|
return i || i === 0;
|
|
9434
9396
|
});
|
|
9435
9397
|
if (noEmptyArray$1(item.children)) {
|
|
9436
|
-
|
|
9398
|
+
_handleColumns(item.children, indexArrInside);
|
|
9437
9399
|
} else {
|
|
9438
9400
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9439
9401
|
item.onHeaderCell = function (column) {
|
|
@@ -9449,7 +9411,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9449
9411
|
handleAntdColumnsSpecialParams(item);
|
|
9450
9412
|
return _objectSpread2({}, item);
|
|
9451
9413
|
});
|
|
9452
|
-
|
|
9414
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9453
9415
|
return setShowColumnsCallback(res);
|
|
9454
9416
|
});
|
|
9455
9417
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9765,7 +9727,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9765
9727
|
});
|
|
9766
9728
|
};
|
|
9767
9729
|
// 格式化树选择器数据源
|
|
9768
|
-
var
|
|
9730
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9769
9731
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9770
9732
|
return {
|
|
9771
9733
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9775,7 +9737,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9775
9737
|
isLeaf: !haveChildren,
|
|
9776
9738
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9777
9739
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9778
|
-
return
|
|
9740
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9779
9741
|
}) : []
|
|
9780
9742
|
};
|
|
9781
9743
|
};
|
|
@@ -9789,7 +9751,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9789
9751
|
disabledJudge = false;
|
|
9790
9752
|
}
|
|
9791
9753
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9792
|
-
return
|
|
9754
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9793
9755
|
}) || [];
|
|
9794
9756
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9795
9757
|
};
|
|
@@ -14091,7 +14053,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
14091
14053
|
};
|
|
14092
14054
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
14093
14055
|
onClick: handleShowModal
|
|
14094
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
14056
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14095
14057
|
onOk: handleOk,
|
|
14096
14058
|
onCancel: handleCancel,
|
|
14097
14059
|
destroyOnClose: true,
|
|
@@ -14210,7 +14172,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14210
14172
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
14211
14173
|
_remoteSource$special = remoteSource.specialBracket,
|
|
14212
14174
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
14213
|
-
var
|
|
14175
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
14214
14176
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
14215
14177
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
14216
14178
|
return {
|
|
@@ -14222,7 +14184,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14222
14184
|
isLeaf: !haveChildren,
|
|
14223
14185
|
disabled: isDisabled(haveChildren, isRoot),
|
|
14224
14186
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
14225
|
-
return
|
|
14187
|
+
return _mapSearchTree(i);
|
|
14226
14188
|
}) : []
|
|
14227
14189
|
};
|
|
14228
14190
|
};
|
|
@@ -14240,8 +14202,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14240
14202
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
14241
14203
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14242
14204
|
headers: headers
|
|
14243
|
-
}).then(
|
|
14244
|
-
var _ref = _asyncToGenerator(
|
|
14205
|
+
}).then(/*#__PURE__*/function () {
|
|
14206
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14245
14207
|
var _ctx$form;
|
|
14246
14208
|
var resData, coverData, data, dataList;
|
|
14247
14209
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -14268,7 +14230,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14268
14230
|
case 9:
|
|
14269
14231
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14270
14232
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14271
|
-
return
|
|
14233
|
+
return _mapSearchTree(ites);
|
|
14272
14234
|
}) || [];
|
|
14273
14235
|
case 11:
|
|
14274
14236
|
_context.next = 14;
|
|
@@ -14306,11 +14268,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14306
14268
|
return _formatResult;
|
|
14307
14269
|
}
|
|
14308
14270
|
};
|
|
14309
|
-
var
|
|
14271
|
+
var _parallelData = function parallelData(data, result) {
|
|
14310
14272
|
data.forEach(function (i) {
|
|
14311
14273
|
result.push(i);
|
|
14312
14274
|
if (i[treeChildrenRoom]) {
|
|
14313
|
-
|
|
14275
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
14314
14276
|
}
|
|
14315
14277
|
});
|
|
14316
14278
|
return result;
|
|
@@ -14350,7 +14312,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14350
14312
|
var _ctx$form2;
|
|
14351
14313
|
var handleData = formatData(data);
|
|
14352
14314
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14353
|
-
var parallelTreeData =
|
|
14315
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14354
14316
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14355
14317
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14356
14318
|
onChangeName && onChangeName(dataName);
|
|
@@ -14393,7 +14355,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14393
14355
|
var getShowStr = function getShowStr() {
|
|
14394
14356
|
var isMultiple = multiple || treeCheckable;
|
|
14395
14357
|
var kongValue = '无';
|
|
14396
|
-
var parallelTreeData =
|
|
14358
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14397
14359
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14398
14360
|
if (isMultiple) {
|
|
14399
14361
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14405,7 +14367,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14405
14367
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14406
14368
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14407
14369
|
className: 'tree_search_select'
|
|
14408
|
-
}, isShouldShowStr ? (
|
|
14370
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14409
14371
|
title: getShowStr(),
|
|
14410
14372
|
style: {
|
|
14411
14373
|
overflow: 'hidden',
|
|
@@ -14413,7 +14375,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14413
14375
|
whiteSpace: 'nowrap'
|
|
14414
14376
|
},
|
|
14415
14377
|
className: 'search_select_show'
|
|
14416
|
-
}, getShowStr())) : (
|
|
14378
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14417
14379
|
treeCheckable: treeCheckable,
|
|
14418
14380
|
maxTagCount: maxTagCount,
|
|
14419
14381
|
showSearch: showSearch,
|
|
@@ -14610,7 +14572,7 @@ var index$2 = (function (props) {
|
|
|
14610
14572
|
} : {}
|
|
14611
14573
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14612
14574
|
className: 'status-label-operate'
|
|
14613
|
-
}, item.isDone ? (
|
|
14575
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14614
14576
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14615
14577
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14616
14578
|
style: {
|
|
@@ -15391,7 +15353,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15391
15353
|
style: {
|
|
15392
15354
|
width: 525
|
|
15393
15355
|
}
|
|
15394
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15356
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15395
15357
|
checked: !dataSource.some(function (item) {
|
|
15396
15358
|
if (item.hidden) return true;
|
|
15397
15359
|
return false;
|
|
@@ -15429,13 +15391,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15429
15391
|
_this2.onChange(e, item.title);
|
|
15430
15392
|
}
|
|
15431
15393
|
}, item.title);
|
|
15432
|
-
}), !!seatchDataSource.length && (
|
|
15394
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15433
15395
|
style: {
|
|
15434
15396
|
width: '144px'
|
|
15435
15397
|
}
|
|
15436
|
-
})), !seatchDataSource.length && (
|
|
15398
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15437
15399
|
className: 'sort_table_column_all_empty'
|
|
15438
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15400
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15439
15401
|
className: 'sort_table_column_special'
|
|
15440
15402
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15441
15403
|
className: 'sort_table_column_all'
|
|
@@ -15614,10 +15576,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15614
15576
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15615
15577
|
return _objectSpread2({}, col);
|
|
15616
15578
|
});
|
|
15617
|
-
var
|
|
15579
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15618
15580
|
var i = indexArr.shift();
|
|
15619
15581
|
if (indexArr.length > 0) {
|
|
15620
|
-
|
|
15582
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15621
15583
|
} else {
|
|
15622
15584
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15623
15585
|
width: size.width
|
|
@@ -15625,7 +15587,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15625
15587
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15626
15588
|
}
|
|
15627
15589
|
};
|
|
15628
|
-
|
|
15590
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15629
15591
|
_this.setState({
|
|
15630
15592
|
showColumns: _toConsumableArray(newColumns)
|
|
15631
15593
|
});
|
|
@@ -15666,7 +15628,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15666
15628
|
};
|
|
15667
15629
|
setIsResizing(true);
|
|
15668
15630
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15669
|
-
document.addEventListener('mouseup',
|
|
15631
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
15670
15632
|
};
|
|
15671
15633
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15672
15634
|
e.stopPropagation();
|
|
@@ -15682,9 +15644,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15682
15644
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15683
15645
|
}
|
|
15684
15646
|
};
|
|
15685
|
-
var
|
|
15647
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15686
15648
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15687
|
-
document.removeEventListener('mouseup',
|
|
15649
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15688
15650
|
setIsResizing(false);
|
|
15689
15651
|
};
|
|
15690
15652
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15805,13 +15767,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15805
15767
|
showSummary = summary;
|
|
15806
15768
|
}
|
|
15807
15769
|
}
|
|
15808
|
-
var
|
|
15770
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15809
15771
|
arr.forEach(function (item, index) {
|
|
15810
15772
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15811
15773
|
return i || i === 0;
|
|
15812
15774
|
});
|
|
15813
15775
|
if (noEmptyArray$1(item.children)) {
|
|
15814
|
-
|
|
15776
|
+
_handleColumns(item.children, indexArrInside);
|
|
15815
15777
|
} else {
|
|
15816
15778
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15817
15779
|
item.onHeaderCell = function (column) {
|
|
@@ -15827,7 +15789,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15827
15789
|
handleBssulaColumnsSpecialParams(item);
|
|
15828
15790
|
return _objectSpread2({}, item);
|
|
15829
15791
|
});
|
|
15830
|
-
|
|
15792
|
+
_handleColumns(showCol, []);
|
|
15831
15793
|
if (dynamicColumns.length) {
|
|
15832
15794
|
showCol = this.handledynamicColumns(showCol);
|
|
15833
15795
|
}
|
|
@@ -15868,7 +15830,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15868
15830
|
cell: this.ResizeableTitle
|
|
15869
15831
|
}
|
|
15870
15832
|
}
|
|
15871
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15833
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15872
15834
|
summary: summary
|
|
15873
15835
|
})));
|
|
15874
15836
|
}
|
|
@@ -15965,10 +15927,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15965
15927
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15966
15928
|
return _objectSpread2({}, col);
|
|
15967
15929
|
});
|
|
15968
|
-
var
|
|
15930
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15969
15931
|
var i = indexArr.shift();
|
|
15970
15932
|
if (indexArr.length > 0) {
|
|
15971
|
-
|
|
15933
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15972
15934
|
} else {
|
|
15973
15935
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15974
15936
|
width: size.width
|
|
@@ -15976,7 +15938,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15976
15938
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15977
15939
|
}
|
|
15978
15940
|
};
|
|
15979
|
-
|
|
15941
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15980
15942
|
_this.setState({
|
|
15981
15943
|
showColumns: _toConsumableArray(newColumns)
|
|
15982
15944
|
});
|
|
@@ -16052,13 +16014,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16052
16014
|
showSummary = summary;
|
|
16053
16015
|
}
|
|
16054
16016
|
}
|
|
16055
|
-
var
|
|
16017
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
16056
16018
|
arr.forEach(function (item, index) {
|
|
16057
16019
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
16058
16020
|
return i || i === 0;
|
|
16059
16021
|
});
|
|
16060
16022
|
if (noEmptyArray$1(item.children)) {
|
|
16061
|
-
|
|
16023
|
+
_handleColumns(item.children, indexArrInside);
|
|
16062
16024
|
} else {
|
|
16063
16025
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
16064
16026
|
item.onHeaderCell = function (column) {
|
|
@@ -16074,7 +16036,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16074
16036
|
handleAntdColumnsSpecialParams(item);
|
|
16075
16037
|
return _objectSpread2({}, item);
|
|
16076
16038
|
});
|
|
16077
|
-
|
|
16039
|
+
_handleColumns(showCol, []);
|
|
16078
16040
|
if (dynamicColumns.length) {
|
|
16079
16041
|
showCol = this.handledynamicColumns(showCol);
|
|
16080
16042
|
}
|
|
@@ -16114,7 +16076,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16114
16076
|
cell: this.ResizeableTitle
|
|
16115
16077
|
}
|
|
16116
16078
|
}
|
|
16117
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
16079
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16118
16080
|
summary: summary
|
|
16119
16081
|
})));
|
|
16120
16082
|
}
|
|
@@ -16173,21 +16135,29 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
16173
16135
|
return false;
|
|
16174
16136
|
};
|
|
16175
16137
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
16138
|
+
var _ref, _ref$applicationList, _ref$applicationList$;
|
|
16176
16139
|
var routerMap = {};
|
|
16177
|
-
var
|
|
16140
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
16178
16141
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
16179
16142
|
data.forEach(function (menuItem) {
|
|
16180
16143
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
16181
16144
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
16182
16145
|
});
|
|
16183
16146
|
if (newMenuItem.children) {
|
|
16184
|
-
|
|
16147
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
16185
16148
|
}
|
|
16186
16149
|
// Reduce memory usage
|
|
16187
16150
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
16188
16151
|
});
|
|
16189
16152
|
};
|
|
16190
|
-
|
|
16153
|
+
var newList = ((_ref = window.top || window) === null || _ref === void 0 ? void 0 : (_ref$applicationList = _ref.applicationList) === null || _ref$applicationList === void 0 ? void 0 : (_ref$applicationList$ = _ref$applicationList.filter) === null || _ref$applicationList$ === void 0 ? void 0 : _ref$applicationList$.call(_ref$applicationList, function (app) {
|
|
16154
|
+
var _menuData$;
|
|
16155
|
+
return app.code === (menuData === null || menuData === void 0 ? void 0 : (_menuData$ = menuData[0]) === null || _menuData$ === void 0 ? void 0 : _menuData$.belongAppCode);
|
|
16156
|
+
})) || [];
|
|
16157
|
+
var appChannelParent = newList.length > 0 ? {
|
|
16158
|
+
nameMap: [newList[0].name]
|
|
16159
|
+
} : {};
|
|
16160
|
+
_flattenMenuData2(menuData, appChannelParent);
|
|
16191
16161
|
return routerMap;
|
|
16192
16162
|
};
|
|
16193
16163
|
// mode类型判断
|
|
@@ -16227,8 +16197,8 @@ function matchRoute(path, routeObj, hideRouteObj) {
|
|
|
16227
16197
|
// 如果都不匹配,返回null
|
|
16228
16198
|
return null;
|
|
16229
16199
|
}
|
|
16230
|
-
var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray,
|
|
16231
|
-
var pathToRegexp =
|
|
16200
|
+
var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray, _ref2) {
|
|
16201
|
+
var pathToRegexp = _ref2.pathToRegexp;
|
|
16232
16202
|
var newPath = path.split('?')[0];
|
|
16233
16203
|
var hideRouteObj = _defineProperty({}, newPath, Array.isArray(hideRouteArray) && (hideRouteArray === null || hideRouteArray === void 0 ? void 0 : hideRouteArray.find(function (itemRoute) {
|
|
16234
16204
|
return pathToRegexp(itemRoute.path).test(newPath);
|
|
@@ -16513,7 +16483,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16513
16483
|
display: 'flex',
|
|
16514
16484
|
gap: '8px'
|
|
16515
16485
|
}
|
|
16516
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
16486
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16517
16487
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16518
16488
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16519
16489
|
onClick: function onClick() {
|
|
@@ -16521,7 +16491,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16521
16491
|
},
|
|
16522
16492
|
width: 24,
|
|
16523
16493
|
src: scanning
|
|
16524
|
-
}))) : (
|
|
16494
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16525
16495
|
title: "\u5168\u5C4F"
|
|
16526
16496
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16527
16497
|
onClick: function onClick() {
|
|
@@ -16529,7 +16499,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16529
16499
|
},
|
|
16530
16500
|
width: 24,
|
|
16531
16501
|
src: quanping
|
|
16532
|
-
}))))) : null)), alertProps && (
|
|
16502
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16533
16503
|
}, function (prevProps, nextProps) {
|
|
16534
16504
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16535
16505
|
return false;
|
|
@@ -16614,7 +16584,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16614
16584
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16615
16585
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16616
16586
|
}, item));
|
|
16617
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
16587
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16618
16588
|
}, function (prevProps, nextProps) {
|
|
16619
16589
|
if (prevProps.title !== nextProps.title) {
|
|
16620
16590
|
return false;
|
|
@@ -17254,7 +17224,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17254
17224
|
});
|
|
17255
17225
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17256
17226
|
className: 'sort_table_wrapper'
|
|
17257
|
-
}, visible && (
|
|
17227
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17258
17228
|
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
17259
17229
|
wrapClassName: 'sort_table_wrapper',
|
|
17260
17230
|
width: 810,
|
|
@@ -17305,7 +17275,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17305
17275
|
width: 525,
|
|
17306
17276
|
height: 24
|
|
17307
17277
|
}
|
|
17308
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17278
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17309
17279
|
checked: !dataSource.some(function (item) {
|
|
17310
17280
|
if (item.hidden) return true;
|
|
17311
17281
|
return false;
|
|
@@ -17359,13 +17329,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17359
17329
|
_this2.onChange(e, item.title);
|
|
17360
17330
|
}
|
|
17361
17331
|
}, item.title);
|
|
17362
|
-
}), !!seatchDataSource.length && (
|
|
17332
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17363
17333
|
style: {
|
|
17364
17334
|
width: '144px'
|
|
17365
17335
|
}
|
|
17366
|
-
})), !seatchDataSource.length && (
|
|
17336
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17367
17337
|
className: 'sort_table_column_all_empty'
|
|
17368
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
17338
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17369
17339
|
className: 'sort_table_column_special'
|
|
17370
17340
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
17371
17341
|
className: 'sort_table_column_all'
|
|
@@ -17839,7 +17809,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17839
17809
|
});
|
|
17840
17810
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17841
17811
|
className: 'sort_table_wrapper'
|
|
17842
|
-
}, visible && (
|
|
17812
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17843
17813
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17844
17814
|
wrapClassName: 'sort_table_wrapper',
|
|
17845
17815
|
width: 820,
|
|
@@ -17884,7 +17854,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17884
17854
|
style: {
|
|
17885
17855
|
width: 525
|
|
17886
17856
|
}
|
|
17887
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17857
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17888
17858
|
checked: !dataSource.some(function (item) {
|
|
17889
17859
|
if (item.hidden) return true;
|
|
17890
17860
|
return false;
|
|
@@ -17920,11 +17890,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17920
17890
|
_this2.onChange(e, item.name);
|
|
17921
17891
|
}
|
|
17922
17892
|
}, item.label);
|
|
17923
|
-
}), !!newSearchSource.length && (
|
|
17893
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17924
17894
|
style: {
|
|
17925
17895
|
width: '144px'
|
|
17926
17896
|
}
|
|
17927
|
-
})), !newSearchSource.length && (
|
|
17897
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17928
17898
|
className: 'sort_table_column_all_empty'
|
|
17929
17899
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17930
17900
|
className: 'sort_table_content_wrapper'
|
|
@@ -18023,7 +17993,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18023
17993
|
};
|
|
18024
17994
|
setIsResizing(true);
|
|
18025
17995
|
document.addEventListener('mousemove', handleMouseMove);
|
|
18026
|
-
document.addEventListener('mouseup',
|
|
17996
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
18027
17997
|
};
|
|
18028
17998
|
var handleMouseMove = function handleMouseMove(e) {
|
|
18029
17999
|
e.stopPropagation();
|
|
@@ -18039,9 +18009,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18039
18009
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
18040
18010
|
}
|
|
18041
18011
|
};
|
|
18042
|
-
var
|
|
18012
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
18043
18013
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
18044
|
-
document.removeEventListener('mouseup',
|
|
18014
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
18045
18015
|
setIsResizing(false);
|
|
18046
18016
|
};
|
|
18047
18017
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18452,7 +18422,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18452
18422
|
actionsRender = actionsRender.concat([{
|
|
18453
18423
|
type: 'text',
|
|
18454
18424
|
props: {
|
|
18455
|
-
children: (
|
|
18425
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18456
18426
|
request: {
|
|
18457
18427
|
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),
|
|
18458
18428
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18698,7 +18668,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18698
18668
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18699
18669
|
bsTableCode: bsTableCode,
|
|
18700
18670
|
onlyModal: true
|
|
18701
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
18671
|
+
}), (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, {
|
|
18702
18672
|
ref: exportTableRef,
|
|
18703
18673
|
setShowColumns: setShowExportColumns,
|
|
18704
18674
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18791,11 +18761,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18791
18761
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18792
18762
|
var resultList = [];
|
|
18793
18763
|
var newRouter = cloneDeep(router);
|
|
18794
|
-
var
|
|
18764
|
+
var _deep = function deep(router) {
|
|
18795
18765
|
if (router && Array.isArray(router)) {
|
|
18796
18766
|
router.forEach(function (item) {
|
|
18797
18767
|
if (item.children && Array.isArray(item.children)) {
|
|
18798
|
-
|
|
18768
|
+
_deep(item.children);
|
|
18799
18769
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18800
18770
|
return d === item.code;
|
|
18801
18771
|
})) {
|
|
@@ -18809,10 +18779,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18809
18779
|
resultList.push(_objectSpread2({}, router));
|
|
18810
18780
|
}
|
|
18811
18781
|
};
|
|
18812
|
-
|
|
18782
|
+
_deep(newRouter);
|
|
18813
18783
|
callBack([].concat(resultList));
|
|
18814
18784
|
};
|
|
18815
|
-
var
|
|
18785
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18816
18786
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18817
18787
|
var _loop = function _loop(i) {
|
|
18818
18788
|
if (routesData[i].hideInMenu) {
|
|
@@ -18826,7 +18796,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18826
18796
|
return 0; // continue
|
|
18827
18797
|
}
|
|
18828
18798
|
if (routesData[i].children) {
|
|
18829
|
-
|
|
18799
|
+
_setMenuTreeData(routesData[i].children);
|
|
18830
18800
|
}
|
|
18831
18801
|
},
|
|
18832
18802
|
_ret;
|
|
@@ -18847,16 +18817,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18847
18817
|
};
|
|
18848
18818
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18849
18819
|
var routerMap = {};
|
|
18850
|
-
var
|
|
18820
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
18851
18821
|
data.forEach(function (menuItem) {
|
|
18852
18822
|
if (menuItem.children) {
|
|
18853
|
-
|
|
18823
|
+
_flattenMenuData(menuItem.children);
|
|
18854
18824
|
}
|
|
18855
18825
|
// Reduce memory usage
|
|
18856
18826
|
routerMap[menuItem.path] = menuItem;
|
|
18857
18827
|
});
|
|
18858
18828
|
};
|
|
18859
|
-
|
|
18829
|
+
_flattenMenuData(menuData);
|
|
18860
18830
|
return routerMap;
|
|
18861
18831
|
};
|
|
18862
18832
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -19002,7 +18972,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19002
18972
|
sethomepageData(homepageDataList);
|
|
19003
18973
|
setroutesData(routesDataList);
|
|
19004
18974
|
}, []);
|
|
19005
|
-
var
|
|
18975
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
19006
18976
|
if (!child.hideInMenu && child.children) {
|
|
19007
18977
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19008
18978
|
style: {
|
|
@@ -19012,7 +18982,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19012
18982
|
}, formatMessage({
|
|
19013
18983
|
id: "".concat(child.locale)
|
|
19014
18984
|
})), child.children.map(function (menuItem) {
|
|
19015
|
-
return
|
|
18985
|
+
return _renderChildItem(menuItem);
|
|
19016
18986
|
}));
|
|
19017
18987
|
} else if (!child.hideInMenu && child.path) {
|
|
19018
18988
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19047,7 +19017,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19047
19017
|
className: 'drawerWarp'
|
|
19048
19018
|
}, homepageData && homepageData.filter(function (d) {
|
|
19049
19019
|
return !d.hideInMenu;
|
|
19050
|
-
}).length > 0 && (
|
|
19020
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19051
19021
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19052
19022
|
dataSource: homepageData,
|
|
19053
19023
|
renderItem: function renderItem(child) {
|
|
@@ -19082,7 +19052,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19082
19052
|
bordered: true,
|
|
19083
19053
|
dataSource: item.children,
|
|
19084
19054
|
renderItem: function renderItem(child) {
|
|
19085
|
-
return
|
|
19055
|
+
return _renderChildItem(child);
|
|
19086
19056
|
}
|
|
19087
19057
|
});
|
|
19088
19058
|
})));
|
|
@@ -19142,7 +19112,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19142
19112
|
src: allfunc
|
|
19143
19113
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
19144
19114
|
className: 'btnSpan2'
|
|
19145
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
19115
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19146
19116
|
style: {
|
|
19147
19117
|
left: isDrawer ? 140 : 0,
|
|
19148
19118
|
top: 50
|
|
@@ -19188,7 +19158,7 @@ function outLogin(_x) {
|
|
|
19188
19158
|
return _outLogin.apply(this, arguments);
|
|
19189
19159
|
}
|
|
19190
19160
|
function _outLogin() {
|
|
19191
|
-
_outLogin = _asyncToGenerator(
|
|
19161
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19192
19162
|
var res;
|
|
19193
19163
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19194
19164
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19330,7 +19300,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19330
19300
|
});
|
|
19331
19301
|
};
|
|
19332
19302
|
var loginOut = /*#__PURE__*/function () {
|
|
19333
|
-
var _ref2 = _asyncToGenerator(
|
|
19303
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19334
19304
|
var sessionId;
|
|
19335
19305
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19336
19306
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19434,7 +19404,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19434
19404
|
marginRight: '0px'
|
|
19435
19405
|
},
|
|
19436
19406
|
src: './xialajiantou-new.svg'
|
|
19437
|
-
}))))), loginModalParams.visible && (
|
|
19407
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19438
19408
|
};
|
|
19439
19409
|
|
|
19440
19410
|
// -- 查询店铺 --
|
|
@@ -19442,7 +19412,7 @@ function getStoreByName(_x) {
|
|
|
19442
19412
|
return _getStoreByName.apply(this, arguments);
|
|
19443
19413
|
}
|
|
19444
19414
|
function _getStoreByName() {
|
|
19445
|
-
_getStoreByName = _asyncToGenerator(
|
|
19415
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19446
19416
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19447
19417
|
while (1) switch (_context.prev = _context.next) {
|
|
19448
19418
|
case 0:
|
|
@@ -19510,7 +19480,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19510
19480
|
return _fetchUserList.apply(this, arguments);
|
|
19511
19481
|
}
|
|
19512
19482
|
function _fetchUserList() {
|
|
19513
|
-
_fetchUserList = _asyncToGenerator(
|
|
19483
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19514
19484
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19515
19485
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19516
19486
|
case 0:
|
|
@@ -19558,7 +19528,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19558
19528
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19559
19529
|
}, [debounceTimeout, key]);
|
|
19560
19530
|
var changeInput = /*#__PURE__*/function () {
|
|
19561
|
-
var _ref = _asyncToGenerator(
|
|
19531
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19562
19532
|
var res;
|
|
19563
19533
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19564
19534
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19580,7 +19550,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19580
19550
|
};
|
|
19581
19551
|
}();
|
|
19582
19552
|
useEffect(function () {
|
|
19583
|
-
_asyncToGenerator(
|
|
19553
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19584
19554
|
var res;
|
|
19585
19555
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19586
19556
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19745,7 +19715,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19745
19715
|
var resultList = [];
|
|
19746
19716
|
var newRouter = cloneDeep$1(router);
|
|
19747
19717
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19748
|
-
var
|
|
19718
|
+
var _deep = function deep(router) {
|
|
19749
19719
|
if (router && Array.isArray(router)) {
|
|
19750
19720
|
router.forEach(function (item) {
|
|
19751
19721
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19755,7 +19725,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19755
19725
|
d.nameEdit = true;
|
|
19756
19726
|
}
|
|
19757
19727
|
});
|
|
19758
|
-
|
|
19728
|
+
_deep(item.routes);
|
|
19759
19729
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19760
19730
|
id: "menu.".concat(item.name)
|
|
19761
19731
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19774,7 +19744,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19774
19744
|
}));
|
|
19775
19745
|
}
|
|
19776
19746
|
};
|
|
19777
|
-
|
|
19747
|
+
_deep(newRouter);
|
|
19778
19748
|
setroutesData([].concat(resultList));
|
|
19779
19749
|
};
|
|
19780
19750
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19856,7 +19826,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19856
19826
|
},
|
|
19857
19827
|
title: item.fullPathName
|
|
19858
19828
|
}, renderLineStyl(item.fullPathName));
|
|
19859
|
-
}))))), showSelectStore && (
|
|
19829
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19860
19830
|
employeeCode: employeeCode
|
|
19861
19831
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19862
19832
|
};
|
|
@@ -19871,7 +19841,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19871
19841
|
var TreeNode = Tree.TreeNode;
|
|
19872
19842
|
var Search$2 = Input.Search;
|
|
19873
19843
|
var dataList = [];
|
|
19874
|
-
var
|
|
19844
|
+
var _generateList = function generateList(data) {
|
|
19875
19845
|
for (var i = 0; i < data.length; i++) {
|
|
19876
19846
|
var node = data[i];
|
|
19877
19847
|
var path = node.path,
|
|
@@ -19881,11 +19851,11 @@ var generateList = function generateList(data) {
|
|
|
19881
19851
|
name: name
|
|
19882
19852
|
});
|
|
19883
19853
|
if (node.children) {
|
|
19884
|
-
|
|
19854
|
+
_generateList(node.children);
|
|
19885
19855
|
}
|
|
19886
19856
|
}
|
|
19887
19857
|
};
|
|
19888
|
-
var
|
|
19858
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
19889
19859
|
var parentKey;
|
|
19890
19860
|
for (var i = 0; i < tree.length; i++) {
|
|
19891
19861
|
var node = tree[i];
|
|
@@ -19894,8 +19864,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
19894
19864
|
return item.path === path;
|
|
19895
19865
|
})) {
|
|
19896
19866
|
parentKey = node.path;
|
|
19897
|
-
} else if (
|
|
19898
|
-
parentKey =
|
|
19867
|
+
} else if (_getParentKey(path, node.children)) {
|
|
19868
|
+
parentKey = _getParentKey(path, node.children);
|
|
19899
19869
|
}
|
|
19900
19870
|
}
|
|
19901
19871
|
}
|
|
@@ -19926,7 +19896,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19926
19896
|
var treeData = _this.state.treeData;
|
|
19927
19897
|
var expandedKeys = dataList.map(function (item) {
|
|
19928
19898
|
if (item.name.indexOf(value) > -1) {
|
|
19929
|
-
return
|
|
19899
|
+
return _getParentKey(item.path, treeData);
|
|
19930
19900
|
}
|
|
19931
19901
|
return null;
|
|
19932
19902
|
}).filter(function (item, i, self) {
|
|
@@ -19940,22 +19910,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19940
19910
|
};
|
|
19941
19911
|
_this.getPathList = function (originData) {
|
|
19942
19912
|
var pathList = [];
|
|
19943
|
-
var
|
|
19913
|
+
var _getList = function getList(data) {
|
|
19944
19914
|
if (Array.isArray(data)) {
|
|
19945
19915
|
data.forEach(function (item) {
|
|
19946
19916
|
pathList.push(item.path);
|
|
19947
19917
|
if (item.children) {
|
|
19948
|
-
|
|
19918
|
+
_getList(item.children);
|
|
19949
19919
|
}
|
|
19950
19920
|
});
|
|
19951
19921
|
} else {
|
|
19952
19922
|
pathList.push(data.path);
|
|
19953
19923
|
if (data.children) {
|
|
19954
|
-
|
|
19924
|
+
_getList(data.children);
|
|
19955
19925
|
}
|
|
19956
19926
|
}
|
|
19957
19927
|
};
|
|
19958
|
-
|
|
19928
|
+
_getList(originData);
|
|
19959
19929
|
return pathList;
|
|
19960
19930
|
};
|
|
19961
19931
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19964,18 +19934,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19964
19934
|
customerMenuData = _this$props.customerMenuData,
|
|
19965
19935
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19966
19936
|
var filterItem;
|
|
19967
|
-
var
|
|
19937
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
19968
19938
|
menuData.forEach(function (item) {
|
|
19969
19939
|
if (item.path === path) {
|
|
19970
19940
|
filterItem = _objectSpread2({}, item);
|
|
19971
19941
|
return;
|
|
19972
19942
|
}
|
|
19973
19943
|
if (item.children) {
|
|
19974
|
-
|
|
19944
|
+
_filterMenuItem(item.children);
|
|
19975
19945
|
}
|
|
19976
19946
|
});
|
|
19977
19947
|
};
|
|
19978
|
-
|
|
19948
|
+
_filterMenuItem(treeData);
|
|
19979
19949
|
var addPathList = _this.getPathList(filterItem);
|
|
19980
19950
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19981
19951
|
var isRepet = false;
|
|
@@ -20005,8 +19975,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20005
19975
|
return item.path === '/';
|
|
20006
19976
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20007
19977
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20008
|
-
|
|
20009
|
-
|
|
19978
|
+
_setMenuTreeData(routesData);
|
|
19979
|
+
_generateList(routesData);
|
|
20010
19980
|
this.setState({
|
|
20011
19981
|
treeData: routesData
|
|
20012
19982
|
});
|
|
@@ -20020,16 +19990,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20020
19990
|
expandedKeys = _this$state.expandedKeys,
|
|
20021
19991
|
autoExpandParent = _this$state.autoExpandParent,
|
|
20022
19992
|
treeData = _this$state.treeData;
|
|
20023
|
-
var
|
|
19993
|
+
var _loop = function loop(data) {
|
|
20024
19994
|
return data.map(function (item) {
|
|
20025
19995
|
var index = item.name.indexOf(searchValue);
|
|
20026
19996
|
var beforeStr = item.name.substr(0, index);
|
|
20027
19997
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
20028
|
-
var name = index > -1 ? (
|
|
19998
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
20029
19999
|
style: {
|
|
20030
20000
|
color: '#f50'
|
|
20031
20001
|
}
|
|
20032
|
-
}, searchValue), afterStr)) : (
|
|
20002
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
20033
20003
|
if (item.children && item.children.length) {
|
|
20034
20004
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20035
20005
|
path: item.path,
|
|
@@ -20051,7 +20021,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20051
20021
|
width: 18,
|
|
20052
20022
|
src: arrowRight
|
|
20053
20023
|
}))))
|
|
20054
|
-
},
|
|
20024
|
+
}, _loop(item.children));
|
|
20055
20025
|
}
|
|
20056
20026
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20057
20027
|
path: item.path,
|
|
@@ -20101,7 +20071,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20101
20071
|
onExpand: this.onExpand,
|
|
20102
20072
|
expandedKeys: expandedKeys,
|
|
20103
20073
|
autoExpandParent: autoExpandParent
|
|
20104
|
-
},
|
|
20074
|
+
}, _loop(treeData))));
|
|
20105
20075
|
}
|
|
20106
20076
|
}]);
|
|
20107
20077
|
}(React$1.Component);
|
|
@@ -20134,24 +20104,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20134
20104
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
20135
20105
|
var dragObj;
|
|
20136
20106
|
var finalDropItem;
|
|
20137
|
-
var
|
|
20107
|
+
var _loop = function loop(data, path, callback) {
|
|
20138
20108
|
for (var i = 0; i < data.length; i++) {
|
|
20139
20109
|
if (data[i].path === path) {
|
|
20140
20110
|
return callback(data[i], i, data);
|
|
20141
20111
|
}
|
|
20142
20112
|
if (data[i].children) {
|
|
20143
|
-
|
|
20113
|
+
_loop(data[i].children, path, callback);
|
|
20144
20114
|
}
|
|
20145
20115
|
}
|
|
20146
20116
|
};
|
|
20147
20117
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
20148
|
-
|
|
20118
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
20149
20119
|
arr.splice(index, 1);
|
|
20150
20120
|
dragObj = item;
|
|
20151
20121
|
});
|
|
20152
20122
|
if (!info.dropToGap) {
|
|
20153
20123
|
// Drop on the content
|
|
20154
|
-
|
|
20124
|
+
_loop(data, dropKey, function (item) {
|
|
20155
20125
|
item.children = item.children || [];
|
|
20156
20126
|
item.children.unshift(dragObj);
|
|
20157
20127
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20162,7 +20132,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20162
20132
|
// Is expanded
|
|
20163
20133
|
dropPosition === 1 // On the bottom gap
|
|
20164
20134
|
) {
|
|
20165
|
-
|
|
20135
|
+
_loop(data, dropKey, function (item) {
|
|
20166
20136
|
item.children = item.children || [];
|
|
20167
20137
|
item.children.unshift(dragObj);
|
|
20168
20138
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20170,7 +20140,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20170
20140
|
} else {
|
|
20171
20141
|
var ar;
|
|
20172
20142
|
var i;
|
|
20173
|
-
|
|
20143
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
20174
20144
|
ar = arr;
|
|
20175
20145
|
i = index;
|
|
20176
20146
|
});
|
|
@@ -20209,17 +20179,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20209
20179
|
title: '编辑名称',
|
|
20210
20180
|
callBack: function callBack(newName) {
|
|
20211
20181
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20212
|
-
var
|
|
20182
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
20213
20183
|
oldTreeData.forEach(function (treeItem) {
|
|
20214
20184
|
if (treeItem.path === item.path) {
|
|
20215
20185
|
treeItem.name = newName;
|
|
20216
20186
|
}
|
|
20217
20187
|
if (treeItem.children) {
|
|
20218
|
-
|
|
20188
|
+
_editTreeDataName(treeItem.children);
|
|
20219
20189
|
}
|
|
20220
20190
|
});
|
|
20221
20191
|
};
|
|
20222
|
-
|
|
20192
|
+
_editTreeDataName(oldTreeData);
|
|
20223
20193
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20224
20194
|
_this.setState({
|
|
20225
20195
|
modalInfo: {
|
|
@@ -20264,7 +20234,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20264
20234
|
title: '新增子目录',
|
|
20265
20235
|
callBack: function callBack(newName) {
|
|
20266
20236
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20267
|
-
var
|
|
20237
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
20268
20238
|
oldTreeData.forEach(function (treeItem) {
|
|
20269
20239
|
if (treeItem.path === item.path) {
|
|
20270
20240
|
treeItem.children ? treeItem.children.push({
|
|
@@ -20276,11 +20246,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20276
20246
|
}];
|
|
20277
20247
|
}
|
|
20278
20248
|
if (treeItem.children) {
|
|
20279
|
-
|
|
20249
|
+
_addChildFolder(treeItem.children);
|
|
20280
20250
|
}
|
|
20281
20251
|
});
|
|
20282
20252
|
};
|
|
20283
|
-
|
|
20253
|
+
_addChildFolder(oldTreeData);
|
|
20284
20254
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20285
20255
|
_this.setState({
|
|
20286
20256
|
modalInfo: {
|
|
@@ -20339,7 +20309,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20339
20309
|
var _this$state = this.state,
|
|
20340
20310
|
modalInfo = _this$state.modalInfo,
|
|
20341
20311
|
checkedKeys = _this$state.checkedKeys;
|
|
20342
|
-
var
|
|
20312
|
+
var _loop2 = function loop(data) {
|
|
20343
20313
|
return data.map(function (item) {
|
|
20344
20314
|
if (item.children && item.children.length) {
|
|
20345
20315
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -20356,7 +20326,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20356
20326
|
e.stopPropagation();
|
|
20357
20327
|
}
|
|
20358
20328
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
20359
|
-
},
|
|
20329
|
+
}, _loop2(item.children));
|
|
20360
20330
|
}
|
|
20361
20331
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
20362
20332
|
path: item.path,
|
|
@@ -20435,7 +20405,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20435
20405
|
children: 'children'
|
|
20436
20406
|
},
|
|
20437
20407
|
onDrop: this.onDrop
|
|
20438
|
-
},
|
|
20408
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20439
20409
|
width: 600,
|
|
20440
20410
|
bodyStyle: {
|
|
20441
20411
|
paddingTop: '32px',
|
|
@@ -20548,7 +20518,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20548
20518
|
pathname: item.path
|
|
20549
20519
|
});
|
|
20550
20520
|
};
|
|
20551
|
-
var
|
|
20521
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
20552
20522
|
return menuData.map(function (item) {
|
|
20553
20523
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20554
20524
|
style: {
|
|
@@ -20563,7 +20533,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20563
20533
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20564
20534
|
paddingLeft: '4px'
|
|
20565
20535
|
}
|
|
20566
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20536
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
20567
20537
|
});
|
|
20568
20538
|
};
|
|
20569
20539
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20589,7 +20559,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20589
20559
|
style: {
|
|
20590
20560
|
paddingLeft: '5px'
|
|
20591
20561
|
}
|
|
20592
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
20562
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20593
20563
|
style: {
|
|
20594
20564
|
left: isDrawer ? 140 : 0
|
|
20595
20565
|
},
|
|
@@ -20610,7 +20580,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20610
20580
|
visible: isDrawer
|
|
20611
20581
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20612
20582
|
className: 'menu_title_line'
|
|
20613
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20583
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20614
20584
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20615
20585
|
style: {
|
|
20616
20586
|
fontWeight: '600',
|
|
@@ -20684,7 +20654,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20684
20654
|
return item.path === '/';
|
|
20685
20655
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20686
20656
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20687
|
-
|
|
20657
|
+
_setMenuTreeData(routesData);
|
|
20688
20658
|
routesData.forEach(function (item) {
|
|
20689
20659
|
if (item.children) {
|
|
20690
20660
|
routesDataList.push(item);
|
|
@@ -20714,7 +20684,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20714
20684
|
setHeight(clientHeight - 190);
|
|
20715
20685
|
setDrawHeight(clientHeight - 70);
|
|
20716
20686
|
};
|
|
20717
|
-
var
|
|
20687
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20718
20688
|
if (!child.hideInMenu && child.children) {
|
|
20719
20689
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20720
20690
|
style: {
|
|
@@ -20724,7 +20694,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20724
20694
|
}, formatMessage({
|
|
20725
20695
|
id: "".concat(child.locale)
|
|
20726
20696
|
})), child.children.map(function (menuItem) {
|
|
20727
|
-
return
|
|
20697
|
+
return _renderChildItem(menuItem);
|
|
20728
20698
|
}));
|
|
20729
20699
|
} else if (!child.hideInMenu && child.path) {
|
|
20730
20700
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20866,7 +20836,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20866
20836
|
onMenuClick(e, item);
|
|
20867
20837
|
}
|
|
20868
20838
|
}, item.name);
|
|
20869
|
-
}))), !!SearhData.length ? (
|
|
20839
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20870
20840
|
className: 'search_menu_content'
|
|
20871
20841
|
}, SearhData.map(function (item) {
|
|
20872
20842
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20875,7 +20845,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20875
20845
|
},
|
|
20876
20846
|
key: item.path
|
|
20877
20847
|
}, item.name);
|
|
20878
|
-
}))) : (
|
|
20848
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20879
20849
|
style: {
|
|
20880
20850
|
height: "".concat(rightMenuHeight, "px"),
|
|
20881
20851
|
overflowY: 'scroll',
|
|
@@ -20887,7 +20857,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20887
20857
|
className: 'drawerWarp_right'
|
|
20888
20858
|
}, homepageData && homepageData.filter(function (d) {
|
|
20889
20859
|
return !d.hideInMenu;
|
|
20890
|
-
}).length > 0 && (
|
|
20860
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20891
20861
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20892
20862
|
dataSource: homepageData,
|
|
20893
20863
|
renderItem: function renderItem(child) {
|
|
@@ -20928,7 +20898,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20928
20898
|
bordered: true,
|
|
20929
20899
|
dataSource: item.children,
|
|
20930
20900
|
renderItem: function renderItem(child) {
|
|
20931
|
-
return
|
|
20901
|
+
return _renderChildItem(child);
|
|
20932
20902
|
}
|
|
20933
20903
|
});
|
|
20934
20904
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -21086,10 +21056,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21086
21056
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
21087
21057
|
var menuKeys = [];
|
|
21088
21058
|
var docsId = [];
|
|
21089
|
-
var
|
|
21059
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
21090
21060
|
data.forEach(function (item) {
|
|
21091
21061
|
if (item.children && item.children.length > 0) {
|
|
21092
|
-
|
|
21062
|
+
_getLimitedMenuKeys(item.children);
|
|
21093
21063
|
} else {
|
|
21094
21064
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
21095
21065
|
menuKeys.push(originPath);
|
|
@@ -21100,7 +21070,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21100
21070
|
});
|
|
21101
21071
|
};
|
|
21102
21072
|
try {
|
|
21103
|
-
|
|
21073
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
21104
21074
|
} catch (e) {}
|
|
21105
21075
|
return {
|
|
21106
21076
|
menuKeys: menuKeys,
|
|
@@ -21334,10 +21304,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21334
21304
|
return (node.path || '').includes('all-general-documents');
|
|
21335
21305
|
};
|
|
21336
21306
|
// 递归获取树列表
|
|
21337
|
-
var
|
|
21307
|
+
var _getTreeList = function getTreeList(data) {
|
|
21338
21308
|
data.forEach(function (node) {
|
|
21339
21309
|
if (node.routes && node.routes.length > 0) {
|
|
21340
|
-
|
|
21310
|
+
_getTreeList(node.routes);
|
|
21341
21311
|
return;
|
|
21342
21312
|
}
|
|
21343
21313
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21368,7 +21338,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21368
21338
|
}
|
|
21369
21339
|
});
|
|
21370
21340
|
};
|
|
21371
|
-
|
|
21341
|
+
_getTreeList(treeData);
|
|
21372
21342
|
return treeList;
|
|
21373
21343
|
};
|
|
21374
21344
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21997,7 +21967,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21997
21967
|
updateState = _ref8.updateState;
|
|
21998
21968
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21999
21969
|
className: "tab_title_content"
|
|
22000
|
-
}, item.tab, item.key !== '/' && (
|
|
21970
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
22001
21971
|
info: item,
|
|
22002
21972
|
operateFun: _this3.operateFun,
|
|
22003
21973
|
listenRouterState: listenRouterState
|
|
@@ -22133,7 +22103,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22133
22103
|
};
|
|
22134
22104
|
}
|
|
22135
22105
|
var OperationsSlot = {
|
|
22136
|
-
left: (
|
|
22106
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
22137
22107
|
className: 'tab_left_operate'
|
|
22138
22108
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
22139
22109
|
onClick: function onClick() {
|
|
@@ -22149,7 +22119,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22149
22119
|
_this3.setTabNavTransLate(-100);
|
|
22150
22120
|
}
|
|
22151
22121
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
22152
|
-
right: (
|
|
22122
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
22153
22123
|
style: {
|
|
22154
22124
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
22155
22125
|
},
|
|
@@ -22247,7 +22217,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22247
22217
|
onMouseLeave: function onMouseLeave() {
|
|
22248
22218
|
_this3.setShowMenu(false);
|
|
22249
22219
|
}
|
|
22250
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
22220
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
22251
22221
|
style: {
|
|
22252
22222
|
position: 'absolute',
|
|
22253
22223
|
top: '14px',
|
|
@@ -22266,7 +22236,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22266
22236
|
postMenuData: function postMenuData(menus) {
|
|
22267
22237
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
22268
22238
|
},
|
|
22269
|
-
links: [!this.state.collapse ? (
|
|
22239
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
22270
22240
|
ref: this.allFunc,
|
|
22271
22241
|
itemPath: itemPath,
|
|
22272
22242
|
handleClose: this.handleClose,
|
|
@@ -22284,7 +22254,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22284
22254
|
},
|
|
22285
22255
|
menu: {
|
|
22286
22256
|
request: function () {
|
|
22287
|
-
var _request = _asyncToGenerator(
|
|
22257
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22288
22258
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22289
22259
|
while (1) switch (_context.prev = _context.next) {
|
|
22290
22260
|
case 0:
|
|
@@ -22419,7 +22389,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22419
22389
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22420
22390
|
timeFormat = _this$props4.timeFormat,
|
|
22421
22391
|
transparentProps = _this$props4.transparentProps;
|
|
22422
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
22392
|
+
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({
|
|
22423
22393
|
getDictionarySource: getDictionarySource,
|
|
22424
22394
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22425
22395
|
timeFormat: timeFormat
|
|
@@ -22443,12 +22413,12 @@ var index$5 = (function (props) {
|
|
|
22443
22413
|
});
|
|
22444
22414
|
|
|
22445
22415
|
// @ts-nocheck
|
|
22446
|
-
var
|
|
22416
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
22447
22417
|
var result = [];
|
|
22448
22418
|
columns.forEach(function (column) {
|
|
22449
22419
|
if (column.children) {
|
|
22450
22420
|
result.push(column);
|
|
22451
|
-
result.push.apply(result,
|
|
22421
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
22452
22422
|
} else {
|
|
22453
22423
|
result.push(column);
|
|
22454
22424
|
}
|
|
@@ -22457,7 +22427,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
22457
22427
|
};
|
|
22458
22428
|
var convertToRows = function convertToRows(originColumns) {
|
|
22459
22429
|
var maxLevel = 1;
|
|
22460
|
-
var
|
|
22430
|
+
var _traverse = function traverse(column, parent) {
|
|
22461
22431
|
if (parent) {
|
|
22462
22432
|
column.level = parent.level + 1;
|
|
22463
22433
|
if (maxLevel < column.level) {
|
|
@@ -22467,7 +22437,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22467
22437
|
if (column.children) {
|
|
22468
22438
|
var colSpan = 0;
|
|
22469
22439
|
column.children.forEach(function (subColumn) {
|
|
22470
|
-
|
|
22440
|
+
_traverse(subColumn, column);
|
|
22471
22441
|
colSpan += subColumn.colSpan;
|
|
22472
22442
|
});
|
|
22473
22443
|
column.colSpan = colSpan;
|
|
@@ -22477,13 +22447,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22477
22447
|
};
|
|
22478
22448
|
originColumns.forEach(function (column) {
|
|
22479
22449
|
column.level = 1;
|
|
22480
|
-
|
|
22450
|
+
_traverse(column);
|
|
22481
22451
|
});
|
|
22482
22452
|
var rows = [];
|
|
22483
22453
|
for (var i = 0; i < maxLevel; i++) {
|
|
22484
22454
|
rows.push([]);
|
|
22485
22455
|
}
|
|
22486
|
-
var allColumns =
|
|
22456
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22487
22457
|
allColumns.forEach(function (column) {
|
|
22488
22458
|
if (!column.children) {
|
|
22489
22459
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22523,7 +22493,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22523
22493
|
};
|
|
22524
22494
|
var headersToRows = function headersToRows(originColumns) {
|
|
22525
22495
|
var maxLevel = 1;
|
|
22526
|
-
var
|
|
22496
|
+
var _traverse2 = function traverse(column, parent) {
|
|
22527
22497
|
if (parent) {
|
|
22528
22498
|
//计算当前元素属于第几个层级
|
|
22529
22499
|
column.level = parent.level + 1;
|
|
@@ -22536,7 +22506,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22536
22506
|
var colSpan = 0;
|
|
22537
22507
|
column.children.forEach(function (subColumn) {
|
|
22538
22508
|
//进行递归
|
|
22539
|
-
|
|
22509
|
+
_traverse2(subColumn, column);
|
|
22540
22510
|
colSpan += subColumn.colSpan;
|
|
22541
22511
|
});
|
|
22542
22512
|
column.colSpan = colSpan;
|
|
@@ -22546,14 +22516,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22546
22516
|
};
|
|
22547
22517
|
originColumns.forEach(function (column) {
|
|
22548
22518
|
column.level = 1;
|
|
22549
|
-
|
|
22519
|
+
_traverse2(column);
|
|
22550
22520
|
});
|
|
22551
22521
|
var rows = [];
|
|
22552
22522
|
var lastData = [];
|
|
22553
22523
|
for (var i = 0; i < maxLevel; i++) {
|
|
22554
22524
|
rows.push([]);
|
|
22555
22525
|
}
|
|
22556
|
-
var allColumns =
|
|
22526
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22557
22527
|
allColumns.forEach(function (column) {
|
|
22558
22528
|
if (!column.children) {
|
|
22559
22529
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28570,7 +28540,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28570
28540
|
}
|
|
28571
28541
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28572
28542
|
};
|
|
28573
|
-
var
|
|
28543
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
28574
28544
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28575
28545
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28576
28546
|
var children = hightLightData.children,
|
|
@@ -28581,7 +28551,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28581
28551
|
lineEnd = _loc2[2];
|
|
28582
28552
|
if (children) {
|
|
28583
28553
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28584
|
-
return
|
|
28554
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
28585
28555
|
});
|
|
28586
28556
|
}
|
|
28587
28557
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28593,7 +28563,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28593
28563
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28594
28564
|
data.forEach(function (node) {
|
|
28595
28565
|
if (!node) return;
|
|
28596
|
-
node.toggled =
|
|
28566
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
28597
28567
|
node.active = isHightLight(node, highLightLine);
|
|
28598
28568
|
if (node.children) {
|
|
28599
28569
|
if (node.active) {
|
|
@@ -30024,7 +29994,7 @@ var valueType = {
|
|
|
30024
29994
|
};
|
|
30025
29995
|
|
|
30026
29996
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30027
|
-
var _ref = _asyncToGenerator(
|
|
29997
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30028
29998
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30029
29999
|
while (1) switch (_context.prev = _context.next) {
|
|
30030
30000
|
case 0:
|
|
@@ -30092,7 +30062,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30092
30062
|
value: false
|
|
30093
30063
|
}];
|
|
30094
30064
|
var ref = useRef();
|
|
30095
|
-
useMount(
|
|
30065
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30096
30066
|
var _ref$current, source;
|
|
30097
30067
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30098
30068
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30206,7 +30176,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30206
30176
|
source: {
|
|
30207
30177
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30208
30178
|
type: function () {
|
|
30209
|
-
var _type = _asyncToGenerator(
|
|
30179
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30210
30180
|
var form, values, name, relates, source;
|
|
30211
30181
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30212
30182
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30686,7 +30656,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30686
30656
|
source: {
|
|
30687
30657
|
relates: ['choiceType', 'inputType'],
|
|
30688
30658
|
type: function () {
|
|
30689
|
-
var _type2 = _asyncToGenerator(
|
|
30659
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30690
30660
|
var values, name, form, source;
|
|
30691
30661
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30692
30662
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30908,7 +30878,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30908
30878
|
width: 900,
|
|
30909
30879
|
maskClosable: false,
|
|
30910
30880
|
onOk: function () {
|
|
30911
|
-
var _onOk = _asyncToGenerator(
|
|
30881
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30912
30882
|
var _ref$current4, _res$editableStatus;
|
|
30913
30883
|
var res, _res$defaultValue;
|
|
30914
30884
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30980,7 +30950,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30980
30950
|
}()
|
|
30981
30951
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30982
30952
|
ref: ref
|
|
30983
|
-
})), maintainOptionsModal.visible && (
|
|
30953
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30984
30954
|
};
|
|
30985
30955
|
|
|
30986
30956
|
// @ts-nocheck
|
|
@@ -31594,7 +31564,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31594
31564
|
return setVisible(false);
|
|
31595
31565
|
},
|
|
31596
31566
|
className: 'customFieldsDrawer'
|
|
31597
|
-
}, detailTablesSetting.length == 0 && (
|
|
31567
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31598
31568
|
style: {
|
|
31599
31569
|
display: 'flex'
|
|
31600
31570
|
}
|
|
@@ -31603,13 +31573,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31603
31573
|
flex: 1,
|
|
31604
31574
|
width: 500
|
|
31605
31575
|
}
|
|
31606
|
-
}, isEmpty(moduleParams) ? (
|
|
31576
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31607
31577
|
style: {
|
|
31608
31578
|
padding: "10px 0",
|
|
31609
31579
|
fontSize: "16px",
|
|
31610
31580
|
fontWeight: "bolder"
|
|
31611
31581
|
}
|
|
31612
|
-
}, "\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")) : (
|
|
31582
|
+
}, "\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", {
|
|
31613
31583
|
style: {
|
|
31614
31584
|
flex: 1
|
|
31615
31585
|
}
|
|
@@ -31618,7 +31588,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31618
31588
|
onRun: onClickRun,
|
|
31619
31589
|
value: jsonEditorVal,
|
|
31620
31590
|
shallowHeight: height
|
|
31621
|
-
})))), detailTablesSetting.length > 0 && (
|
|
31591
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31622
31592
|
defaultActiveKey: activeKey,
|
|
31623
31593
|
onChange: function onChange(v) {
|
|
31624
31594
|
return setActiveKey(v);
|
|
@@ -31635,13 +31605,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31635
31605
|
flex: 1,
|
|
31636
31606
|
width: 500
|
|
31637
31607
|
}
|
|
31638
|
-
}, isEmpty(moduleParams) ? (
|
|
31608
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31639
31609
|
style: {
|
|
31640
31610
|
padding: "10px 0",
|
|
31641
31611
|
fontSize: "16px",
|
|
31642
31612
|
fontWeight: "bolder"
|
|
31643
31613
|
}
|
|
31644
|
-
}, "\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")) : (
|
|
31614
|
+
}, "\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", {
|
|
31645
31615
|
style: {
|
|
31646
31616
|
flex: 1
|
|
31647
31617
|
}
|
|
@@ -31663,13 +31633,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31663
31633
|
flex: 1,
|
|
31664
31634
|
width: 500
|
|
31665
31635
|
}
|
|
31666
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
31636
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31667
31637
|
style: {
|
|
31668
31638
|
padding: "10px 0",
|
|
31669
31639
|
fontSize: "16px",
|
|
31670
31640
|
fontWeight: "bolder"
|
|
31671
31641
|
}
|
|
31672
|
-
}, "\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")) : (
|
|
31642
|
+
}, "\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", {
|
|
31673
31643
|
style: {
|
|
31674
31644
|
flex: 1
|
|
31675
31645
|
}
|
|
@@ -31815,7 +31785,7 @@ function getMetaData(_x) {
|
|
|
31815
31785
|
|
|
31816
31786
|
// 获取数据
|
|
31817
31787
|
function _getMetaData() {
|
|
31818
|
-
_getMetaData = _asyncToGenerator(
|
|
31788
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31819
31789
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31820
31790
|
while (1) switch (_context.prev = _context.next) {
|
|
31821
31791
|
case 0:
|
|
@@ -32037,7 +32007,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32037
32007
|
tableState = _useState4[0],
|
|
32038
32008
|
setTableState = _useState4[1];
|
|
32039
32009
|
var handleOpen = /*#__PURE__*/function () {
|
|
32040
|
-
var _ref = _asyncToGenerator(
|
|
32010
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32041
32011
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32042
32012
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32043
32013
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32356,7 +32326,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32356
32326
|
destroyOnClose: true
|
|
32357
32327
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
32358
32328
|
ref: queryTableRef
|
|
32359
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
32329
|
+
}, 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, {
|
|
32360
32330
|
justify: "center",
|
|
32361
32331
|
style: {
|
|
32362
32332
|
marginBottom: 30,
|
|
@@ -32472,7 +32442,7 @@ var CustomSelector = (function (props) {
|
|
|
32472
32442
|
var _props$ctx7;
|
|
32473
32443
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32474
32444
|
}
|
|
32475
|
-
})), showType === 'modalTable' && (
|
|
32445
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32476
32446
|
type: "primary",
|
|
32477
32447
|
style: {
|
|
32478
32448
|
width: '30px',
|
|
@@ -32558,7 +32528,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32558
32528
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32559
32529
|
handSource = _useState2[0],
|
|
32560
32530
|
setHandSource = _useState2[1];
|
|
32561
|
-
useEffect(
|
|
32531
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32562
32532
|
var resData, data;
|
|
32563
32533
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32564
32534
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32710,7 +32680,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32710
32680
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32711
32681
|
}
|
|
32712
32682
|
function _getRegularThresholdRange() {
|
|
32713
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
32683
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32714
32684
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32715
32685
|
while (1) switch (_context.prev = _context.next) {
|
|
32716
32686
|
case 0:
|
|
@@ -32864,7 +32834,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32864
32834
|
};
|
|
32865
32835
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32866
32836
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32867
|
-
var _ref = _asyncToGenerator(
|
|
32837
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32868
32838
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32869
32839
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32870
32840
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33821,7 +33791,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33821
33791
|
isAll: true,
|
|
33822
33792
|
needNameAndCode: true,
|
|
33823
33793
|
notChangeOnSelect: true,
|
|
33824
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33794
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33825
33795
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33826
33796
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33827
33797
|
case 0:
|
|
@@ -33870,7 +33840,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33870
33840
|
isAll: true,
|
|
33871
33841
|
needNameAndCode: true,
|
|
33872
33842
|
notChangeOnSelect: true,
|
|
33873
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33843
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33874
33844
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33875
33845
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33876
33846
|
case 0:
|
|
@@ -33921,7 +33891,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33921
33891
|
isAll: true,
|
|
33922
33892
|
needNameAndCode: true,
|
|
33923
33893
|
notChangeOnSelect: true,
|
|
33924
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33894
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33925
33895
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33926
33896
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33927
33897
|
case 0:
|
|
@@ -35899,7 +35869,7 @@ var App$1 = function App(_ref) {
|
|
|
35899
35869
|
borderRadius: '5px',
|
|
35900
35870
|
cursor: 'pointer'
|
|
35901
35871
|
}
|
|
35902
|
-
}, isStaticNumber ? (
|
|
35872
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35903
35873
|
autoFocus: true,
|
|
35904
35874
|
onClick: function onClick(e) {
|
|
35905
35875
|
return e.stopPropagation();
|
|
@@ -36186,7 +36156,7 @@ function RenderCompItem(props) {
|
|
|
36186
36156
|
dictData = _useState2[0],
|
|
36187
36157
|
setDictData = _useState2[1];
|
|
36188
36158
|
var getDictData = /*#__PURE__*/function () {
|
|
36189
|
-
var _ref = _asyncToGenerator(
|
|
36159
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36190
36160
|
var _data$map;
|
|
36191
36161
|
var data;
|
|
36192
36162
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -36228,7 +36198,7 @@ function RenderCompItem(props) {
|
|
|
36228
36198
|
var style2 = {
|
|
36229
36199
|
width: '100px'
|
|
36230
36200
|
};
|
|
36231
|
-
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 && (
|
|
36201
|
+
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, {
|
|
36232
36202
|
disabled: disabled,
|
|
36233
36203
|
allowClear: true,
|
|
36234
36204
|
onClear: function onClear() {
|
|
@@ -36239,7 +36209,7 @@ function RenderCompItem(props) {
|
|
|
36239
36209
|
onBlur: function onBlur(e) {
|
|
36240
36210
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
36241
36211
|
}
|
|
36242
|
-
})) || 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) && (
|
|
36212
|
+
})) || 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, {
|
|
36243
36213
|
disabled: disabled,
|
|
36244
36214
|
// max={Number.MAX_SAFE_INTEGER}
|
|
36245
36215
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -36252,7 +36222,7 @@ function RenderCompItem(props) {
|
|
|
36252
36222
|
onChange: function onChange(value) {
|
|
36253
36223
|
handleEdit(ites.code, value);
|
|
36254
36224
|
}
|
|
36255
|
-
})) || 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) && (
|
|
36225
|
+
})) || 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, {
|
|
36256
36226
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
36257
36227
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
36258
36228
|
disabled: disabled,
|
|
@@ -36262,7 +36232,7 @@ function RenderCompItem(props) {
|
|
|
36262
36232
|
onChange: function onChange(value, dateString) {
|
|
36263
36233
|
handleEdit(ites.code, dateString);
|
|
36264
36234
|
}
|
|
36265
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
36235
|
+
})) || 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, {
|
|
36266
36236
|
showTime: true,
|
|
36267
36237
|
disabled: disabled,
|
|
36268
36238
|
defaultValue: ites.defaultValue,
|
|
@@ -36271,7 +36241,7 @@ function RenderCompItem(props) {
|
|
|
36271
36241
|
onChange: function onChange(value, timeString) {
|
|
36272
36242
|
handleEdit(ites.code, timeString);
|
|
36273
36243
|
}
|
|
36274
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
36244
|
+
})) || 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, {
|
|
36275
36245
|
disabled: disabled,
|
|
36276
36246
|
defaultChecked: !!ites.defaultValue,
|
|
36277
36247
|
style: style2,
|
|
@@ -36279,7 +36249,7 @@ function RenderCompItem(props) {
|
|
|
36279
36249
|
onChange: function onChange(value) {
|
|
36280
36250
|
handleEdit(ites.code, value);
|
|
36281
36251
|
}
|
|
36282
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (
|
|
36252
|
+
})) || 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({
|
|
36283
36253
|
disabled: disabled,
|
|
36284
36254
|
allowClear: true,
|
|
36285
36255
|
showArrow: true
|
|
@@ -36297,7 +36267,7 @@ function RenderCompItem(props) {
|
|
|
36297
36267
|
key: it,
|
|
36298
36268
|
value: it
|
|
36299
36269
|
}, ites.enumeration[it]);
|
|
36300
|
-
}))) || 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 && (
|
|
36270
|
+
}))) || 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, {
|
|
36301
36271
|
disabled: disabled,
|
|
36302
36272
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
36303
36273
|
defaultValue: ites.defaultValue,
|
|
@@ -36307,7 +36277,7 @@ function RenderCompItem(props) {
|
|
|
36307
36277
|
handleEdit(ites.code, value);
|
|
36308
36278
|
},
|
|
36309
36279
|
dictionaryCode: ites.dictionaryCode
|
|
36310
|
-
})) || 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 && (
|
|
36280
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36311
36281
|
selectBusinessType: "physicalWarehouse",
|
|
36312
36282
|
selectProps: _objectSpread2({
|
|
36313
36283
|
style: styleCommon,
|
|
@@ -36329,7 +36299,7 @@ function RenderCompItem(props) {
|
|
|
36329
36299
|
getPopupContainer: function getPopupContainer() {
|
|
36330
36300
|
return document.body;
|
|
36331
36301
|
}
|
|
36332
|
-
})) || 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 && (
|
|
36302
|
+
})) || 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, {
|
|
36333
36303
|
selectBusinessType: "realWarehouse",
|
|
36334
36304
|
selectProps: _objectSpread2({
|
|
36335
36305
|
style: styleCommon,
|
|
@@ -36351,7 +36321,7 @@ function RenderCompItem(props) {
|
|
|
36351
36321
|
getPopupContainer: function getPopupContainer() {
|
|
36352
36322
|
return document.body;
|
|
36353
36323
|
}
|
|
36354
|
-
})) || 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 && (
|
|
36324
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36355
36325
|
selectBusinessType: "virtualWarehouse",
|
|
36356
36326
|
selectProps: _objectSpread2({
|
|
36357
36327
|
style: styleCommon,
|
|
@@ -36373,7 +36343,7 @@ function RenderCompItem(props) {
|
|
|
36373
36343
|
getPopupContainer: function getPopupContainer() {
|
|
36374
36344
|
return document.body;
|
|
36375
36345
|
}
|
|
36376
|
-
})) || 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 && (
|
|
36346
|
+
})) || 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, {
|
|
36377
36347
|
selectBusinessType: "channelWarehouse",
|
|
36378
36348
|
selectProps: _objectSpread2({
|
|
36379
36349
|
style: styleCommon,
|
|
@@ -36395,7 +36365,7 @@ function RenderCompItem(props) {
|
|
|
36395
36365
|
getPopupContainer: function getPopupContainer() {
|
|
36396
36366
|
return document.body;
|
|
36397
36367
|
}
|
|
36398
|
-
})) || 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 && (
|
|
36368
|
+
})) || 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, {
|
|
36399
36369
|
selectBusinessType: "spuCommodity",
|
|
36400
36370
|
selectProps: _objectSpread2({
|
|
36401
36371
|
style: styleCommon,
|
|
@@ -36416,7 +36386,7 @@ function RenderCompItem(props) {
|
|
|
36416
36386
|
getPopupContainer: function getPopupContainer() {
|
|
36417
36387
|
return document.body;
|
|
36418
36388
|
}
|
|
36419
|
-
})) || 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 && (
|
|
36389
|
+
})) || 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, {
|
|
36420
36390
|
selectBusinessType: "skuCommodity",
|
|
36421
36391
|
selectProps: _objectSpread2({
|
|
36422
36392
|
style: styleCommon,
|
|
@@ -36437,13 +36407,13 @@ function RenderCompItem(props) {
|
|
|
36437
36407
|
getPopupContainer: function getPopupContainer() {
|
|
36438
36408
|
return document.body;
|
|
36439
36409
|
}
|
|
36440
|
-
})) || 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 && (
|
|
36410
|
+
})) || 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, {
|
|
36441
36411
|
disabled: disabled,
|
|
36442
36412
|
isAll: true,
|
|
36443
36413
|
needNameAndCode: true,
|
|
36444
36414
|
notChangeOnSelect: true,
|
|
36445
36415
|
initRequestSource: function () {
|
|
36446
|
-
var _initRequestSource = _asyncToGenerator(
|
|
36416
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36447
36417
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36448
36418
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36449
36419
|
case 0:
|
|
@@ -36485,7 +36455,7 @@ function RenderCompItem(props) {
|
|
|
36485
36455
|
getPopupContainer: function getPopupContainer() {
|
|
36486
36456
|
return document.body;
|
|
36487
36457
|
}
|
|
36488
|
-
})) || 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 && (
|
|
36458
|
+
})) || 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, {
|
|
36489
36459
|
disabled: disabled,
|
|
36490
36460
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36491
36461
|
businessType: "department",
|
|
@@ -36498,7 +36468,7 @@ function RenderCompItem(props) {
|
|
|
36498
36468
|
getPopupContainer: function getPopupContainer() {
|
|
36499
36469
|
return document.body;
|
|
36500
36470
|
}
|
|
36501
|
-
})) || 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 && (
|
|
36471
|
+
})) || 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, {
|
|
36502
36472
|
disabled: disabled,
|
|
36503
36473
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36504
36474
|
businessType: "purchase-organization",
|
|
@@ -36511,7 +36481,7 @@ function RenderCompItem(props) {
|
|
|
36511
36481
|
getPopupContainer: function getPopupContainer() {
|
|
36512
36482
|
return document.body;
|
|
36513
36483
|
}
|
|
36514
|
-
})) || 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 && (
|
|
36484
|
+
})) || 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, {
|
|
36515
36485
|
disabled: disabled,
|
|
36516
36486
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36517
36487
|
businessType: "sales-organization",
|
|
@@ -36524,7 +36494,7 @@ function RenderCompItem(props) {
|
|
|
36524
36494
|
getPopupContainer: function getPopupContainer() {
|
|
36525
36495
|
return document.body;
|
|
36526
36496
|
}
|
|
36527
|
-
})) || 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 && (
|
|
36497
|
+
})) || 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, {
|
|
36528
36498
|
selectBusinessType: "supplier2",
|
|
36529
36499
|
selectProps: _objectSpread2({
|
|
36530
36500
|
style: styleCommon,
|
|
@@ -36545,7 +36515,7 @@ function RenderCompItem(props) {
|
|
|
36545
36515
|
getPopupContainer: function getPopupContainer() {
|
|
36546
36516
|
return document.body;
|
|
36547
36517
|
}
|
|
36548
|
-
})) || 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 && (
|
|
36518
|
+
})) || 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, {
|
|
36549
36519
|
selectBusinessType: "customer2",
|
|
36550
36520
|
selectProps: _objectSpread2({
|
|
36551
36521
|
style: styleCommon,
|
|
@@ -36566,7 +36536,7 @@ function RenderCompItem(props) {
|
|
|
36566
36536
|
getPopupContainer: function getPopupContainer() {
|
|
36567
36537
|
return document.body;
|
|
36568
36538
|
}
|
|
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) === 260 && (
|
|
36539
|
+
})) || 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, {
|
|
36570
36540
|
selectBusinessType: "shopFile2",
|
|
36571
36541
|
selectProps: _objectSpread2({
|
|
36572
36542
|
style: styleCommon,
|
|
@@ -36587,7 +36557,7 @@ function RenderCompItem(props) {
|
|
|
36587
36557
|
getPopupContainer: function getPopupContainer() {
|
|
36588
36558
|
return document.body;
|
|
36589
36559
|
}
|
|
36590
|
-
})) || 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 && (
|
|
36560
|
+
})) || 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, {
|
|
36591
36561
|
selectBusinessType: "employee2",
|
|
36592
36562
|
selectProps: _objectSpread2({
|
|
36593
36563
|
style: styleCommon,
|
|
@@ -36608,7 +36578,7 @@ function RenderCompItem(props) {
|
|
|
36608
36578
|
getPopupContainer: function getPopupContainer() {
|
|
36609
36579
|
return document.body;
|
|
36610
36580
|
}
|
|
36611
|
-
})) || 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 && (
|
|
36581
|
+
})) || 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, {
|
|
36612
36582
|
disabled: disabled,
|
|
36613
36583
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36614
36584
|
businessType: "stock-organization",
|
|
@@ -36621,7 +36591,7 @@ function RenderCompItem(props) {
|
|
|
36621
36591
|
getPopupContainer: function getPopupContainer() {
|
|
36622
36592
|
return document.body;
|
|
36623
36593
|
}
|
|
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) === 290 && (
|
|
36594
|
+
})) || 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, {
|
|
36625
36595
|
disabled: disabled,
|
|
36626
36596
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36627
36597
|
businessType: "settle-organization",
|
|
@@ -36634,7 +36604,7 @@ function RenderCompItem(props) {
|
|
|
36634
36604
|
getPopupContainer: function getPopupContainer() {
|
|
36635
36605
|
return document.body;
|
|
36636
36606
|
}
|
|
36637
|
-
})) || 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 && (
|
|
36607
|
+
})) || 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, {
|
|
36638
36608
|
selectBusinessType: "deliveryMode",
|
|
36639
36609
|
selectProps: _objectSpread2({
|
|
36640
36610
|
style: styleCommon,
|
|
@@ -36655,7 +36625,7 @@ function RenderCompItem(props) {
|
|
|
36655
36625
|
getPopupContainer: function getPopupContainer() {
|
|
36656
36626
|
return document.body;
|
|
36657
36627
|
}
|
|
36658
|
-
})) || 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 && (
|
|
36628
|
+
})) || 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, {
|
|
36659
36629
|
selectBusinessType: "role",
|
|
36660
36630
|
selectProps: _objectSpread2({
|
|
36661
36631
|
style: styleCommon,
|
|
@@ -36676,7 +36646,7 @@ function RenderCompItem(props) {
|
|
|
36676
36646
|
getPopupContainer: function getPopupContainer() {
|
|
36677
36647
|
return document.body;
|
|
36678
36648
|
}
|
|
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) === 410 && (
|
|
36649
|
+
})) || 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, {
|
|
36680
36650
|
selectBusinessType: "brand",
|
|
36681
36651
|
selectProps: _objectSpread2({
|
|
36682
36652
|
style: styleCommon,
|
|
@@ -36697,7 +36667,7 @@ function RenderCompItem(props) {
|
|
|
36697
36667
|
getPopupContainer: function getPopupContainer() {
|
|
36698
36668
|
return document.body;
|
|
36699
36669
|
}
|
|
36700
|
-
})) || 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 && (
|
|
36670
|
+
})) || 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, {
|
|
36701
36671
|
disabled: disabled,
|
|
36702
36672
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36703
36673
|
businessType: "background-category",
|
|
@@ -36710,7 +36680,7 @@ function RenderCompItem(props) {
|
|
|
36710
36680
|
getPopupContainer: function getPopupContainer() {
|
|
36711
36681
|
return document.body;
|
|
36712
36682
|
}
|
|
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) === 40 && (
|
|
36683
|
+
})) || 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, {
|
|
36714
36684
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36715
36685
|
style: styleCommon,
|
|
36716
36686
|
placeholder: '请选择'
|
|
@@ -36733,7 +36703,7 @@ function RenderCompItem(props) {
|
|
|
36733
36703
|
onChange: function onChange(value) {
|
|
36734
36704
|
handleEdit(ites.code, value);
|
|
36735
36705
|
}
|
|
36736
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
36706
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36737
36707
|
style: {
|
|
36738
36708
|
display: 'flex'
|
|
36739
36709
|
}
|
|
@@ -37245,7 +37215,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37245
37215
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
37246
37216
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
37247
37217
|
}
|
|
37248
|
-
var parallelTreeData =
|
|
37218
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
37249
37219
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
37250
37220
|
var _i$key;
|
|
37251
37221
|
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);
|
|
@@ -38172,13 +38142,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
38172
38142
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
38173
38143
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
38174
38144
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
38175
|
-
var list =
|
|
38145
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
38176
38146
|
var requiredList = list.filter(function (c) {
|
|
38177
38147
|
return c.required == 1;
|
|
38178
38148
|
}) || []; // 获取对象属性为true的集合
|
|
38179
38149
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
38180
38150
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
38181
|
-
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) ?
|
|
38151
|
+
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];
|
|
38182
38152
|
(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) {
|
|
38183
38153
|
if (requiredList.some(function (r) {
|
|
38184
38154
|
return r.id === e.elementId;
|
|
@@ -38767,7 +38737,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38767
38737
|
style: {
|
|
38768
38738
|
float: 'right'
|
|
38769
38739
|
}
|
|
38770
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
38740
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38771
38741
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38772
38742
|
ruleGroupInfo: {
|
|
38773
38743
|
ruleGroupList: ruleGroupList,
|
|
@@ -38785,7 +38755,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38785
38755
|
callBack: function callBack(newData) {
|
|
38786
38756
|
upDateData(newData);
|
|
38787
38757
|
}
|
|
38788
|
-
}))) : (
|
|
38758
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38789
38759
|
style: {
|
|
38790
38760
|
padding: 20
|
|
38791
38761
|
}
|
|
@@ -39160,4 +39130,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
39160
39130
|
}, children));
|
|
39161
39131
|
};
|
|
39162
39132
|
|
|
39163
|
-
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 };
|
|
39133
|
+
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 };
|