@bit-sun/business-component 4.0.13-alpha.35 → 4.0.13-alpha.37
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");
|
|
487
|
-
}
|
|
488
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
489
|
-
constructor: {
|
|
490
|
-
value: subClass,
|
|
491
|
-
writable: true,
|
|
492
|
-
configurable: true
|
|
493
|
-
}
|
|
494
|
-
});
|
|
495
|
-
Object.defineProperty(subClass, "prototype", {
|
|
496
|
-
writable: false
|
|
497
|
-
});
|
|
498
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
499
|
-
}
|
|
500
|
-
function _getPrototypeOf(o) {
|
|
501
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
502
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
503
|
-
};
|
|
504
|
-
return _getPrototypeOf(o);
|
|
505
|
-
}
|
|
506
|
-
function _setPrototypeOf(o, p) {
|
|
507
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
508
|
-
o.__proto__ = p;
|
|
509
|
-
return o;
|
|
510
|
-
};
|
|
511
|
-
return _setPrototypeOf(o, p);
|
|
512
|
-
}
|
|
513
|
-
function _objectDestructuringEmpty(obj) {
|
|
514
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
515
|
-
}
|
|
516
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
517
|
-
if (source == null) return {};
|
|
518
|
-
var target = {};
|
|
519
|
-
for (var key in source) {
|
|
520
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
521
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
522
|
-
target[key] = source[key];
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
return target;
|
|
526
|
-
}
|
|
527
|
-
function _objectWithoutProperties(source, excluded) {
|
|
528
|
-
if (source == null) return {};
|
|
529
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
530
|
-
var key, i;
|
|
531
|
-
if (Object.getOwnPropertySymbols) {
|
|
532
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
533
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
534
|
-
key = sourceSymbolKeys[i];
|
|
535
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
536
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
537
|
-
target[key] = source[key];
|
|
538
|
-
}
|
|
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;
|
|
539
553
|
}
|
|
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:
|
|
@@ -3371,7 +3333,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3371
3333
|
style: {
|
|
3372
3334
|
color: 'red'
|
|
3373
3335
|
}
|
|
3374
|
-
}, "\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 && (
|
|
3336
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, getTemplate && (/*#__PURE__*/React$1.createElement(Button, {
|
|
3375
3337
|
onClick: getTemplate
|
|
3376
3338
|
}, "\u4E0B\u8F7D\u6A21\u677F")), /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165")))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3377
3339
|
trigger: ['click'],
|
|
@@ -4072,7 +4034,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
4072
4034
|
placement: "bottomLeft"
|
|
4073
4035
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
4074
4036
|
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"))
|
|
4075
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
4037
|
+
}, /*#__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, {
|
|
4076
4038
|
trigger: ['click'],
|
|
4077
4039
|
overlay: this.menuList,
|
|
4078
4040
|
placement: "bottomRight"
|
|
@@ -4300,11 +4262,11 @@ var getRealStr = function getRealStr(oldSelect, newSelect, record) {
|
|
|
4300
4262
|
var getCurrentSRKs = function getCurrentSRKs(selectMode, labelInValue, value) {
|
|
4301
4263
|
return selectMode ? labelInValue ? value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
4302
4264
|
return (s === null || s === void 0 ? void 0 : s.value) || s;
|
|
4303
|
-
}) : value : labelInValue ? (value === null || value === void 0 ? void 0 : value.value) && [value === null || value === void 0 ? void 0 : value.value] || [] : value && [value] || [];
|
|
4265
|
+
}) : value || [] : labelInValue ? (value === null || value === void 0 ? void 0 : value.value) && [value === null || value === void 0 ? void 0 : value.value] || [] : value && [value] || [];
|
|
4304
4266
|
};
|
|
4305
4267
|
var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
4306
4268
|
// 判空处理
|
|
4307
|
-
if (!(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length)) return items || [];
|
|
4269
|
+
if (!currentSRKs || !(currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.length)) return items || [];
|
|
4308
4270
|
// 创建映射对象 用于记录原始选中顺序
|
|
4309
4271
|
var orderMap = new Map();
|
|
4310
4272
|
currentSRKs === null || currentSRKs === void 0 ? void 0 : currentSRKs.forEach(function (value, index) {
|
|
@@ -4596,7 +4558,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref4) {
|
|
|
4596
4558
|
destroyTooltipOnHide: true,
|
|
4597
4559
|
placement: "topRight",
|
|
4598
4560
|
autoAdjustOverflow: false,
|
|
4599
|
-
title: (
|
|
4561
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4600
4562
|
style: {
|
|
4601
4563
|
margin: '6px 8px 0px'
|
|
4602
4564
|
},
|
|
@@ -4898,10 +4860,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4898
4860
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4899
4861
|
});
|
|
4900
4862
|
},
|
|
4901
|
-
notFoundContent: fetching ? (
|
|
4863
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4902
4864
|
size: "small",
|
|
4903
4865
|
className: 'searchSelectSpin'
|
|
4904
|
-
})) : (
|
|
4866
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4905
4867
|
style: {
|
|
4906
4868
|
textAlign: 'center'
|
|
4907
4869
|
}
|
|
@@ -5133,7 +5095,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5133
5095
|
title: item.name,
|
|
5134
5096
|
className: "propertyGroup_checkbox_container"
|
|
5135
5097
|
}, item.name));
|
|
5136
|
-
}), !!notCommonUseProperty.length && (
|
|
5098
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5137
5099
|
style: {
|
|
5138
5100
|
width: '50px',
|
|
5139
5101
|
cursor: 'pointer',
|
|
@@ -5146,7 +5108,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5146
5108
|
setShowNotCommon(!showNotCommon);
|
|
5147
5109
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
5148
5110
|
}
|
|
5149
|
-
}, showNotCommon && (
|
|
5111
|
+
}, 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"))))));
|
|
5150
5112
|
};
|
|
5151
5113
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
5152
5114
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5376,7 +5338,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5376
5338
|
propertyData: item,
|
|
5377
5339
|
handleProperyItemChange: handleProperyItemChange
|
|
5378
5340
|
});
|
|
5379
|
-
}))), !!notCommonProperty.length && (
|
|
5341
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5380
5342
|
style: {
|
|
5381
5343
|
width: '50px',
|
|
5382
5344
|
cursor: 'pointer',
|
|
@@ -5386,7 +5348,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5386
5348
|
onClick: function onClick() {
|
|
5387
5349
|
return setShowNotCommon(!showNotCommon);
|
|
5388
5350
|
}
|
|
5389
|
-
}, showNotCommon && (
|
|
5351
|
+
}, 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"))))))));
|
|
5390
5352
|
};
|
|
5391
5353
|
|
|
5392
5354
|
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
@@ -5486,7 +5448,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5486
5448
|
noNeedSplit = _ref$noNeedSplit === void 0 ? false : _ref$noNeedSplit,
|
|
5487
5449
|
noOperate = _ref.noOperate,
|
|
5488
5450
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5489
|
-
searchStartLength = _ref.searchStartLength
|
|
5451
|
+
searchStartLength = _ref.searchStartLength,
|
|
5452
|
+
_ref$isQuery = _ref.isQuery,
|
|
5453
|
+
isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery;
|
|
5490
5454
|
var requestConfig = _objectSpread2({
|
|
5491
5455
|
url: url,
|
|
5492
5456
|
method: method,
|
|
@@ -5553,7 +5517,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5553
5517
|
return item;
|
|
5554
5518
|
}).length > 0;
|
|
5555
5519
|
};
|
|
5556
|
-
var sDisabled = disabled || isHaveDependency && !!!isHaveDValue();
|
|
5520
|
+
var sDisabled = disabled || isHaveDependency && !!!isHaveDValue() && !isQuery;
|
|
5557
5521
|
var _useState = useState([]),
|
|
5558
5522
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5559
5523
|
items = _useState2[0],
|
|
@@ -6020,7 +5984,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6020
5984
|
var refreshItems = function refreshItems() {
|
|
6021
5985
|
// 查看是否存在关联值 如果有关联值 就查询 没有就不能查询
|
|
6022
5986
|
if (fieldValToParam && ctx && fixedparamsDisabled) {
|
|
6023
|
-
if (!!isHaveDValue()) {
|
|
5987
|
+
if (!!isHaveDValue() || isQuery) {
|
|
6024
5988
|
run();
|
|
6025
5989
|
} else {
|
|
6026
5990
|
clearSelectDataSource();
|
|
@@ -6504,13 +6468,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6504
6468
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6505
6469
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6506
6470
|
className: 'search_select'
|
|
6507
|
-
}, fieldComponent ? (
|
|
6471
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6508
6472
|
onClick: function onClick() {
|
|
6509
6473
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6510
6474
|
(_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);
|
|
6511
6475
|
showModal();
|
|
6512
6476
|
}
|
|
6513
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
6477
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6514
6478
|
title: getShowStr({
|
|
6515
6479
|
viewShowValueStr: viewShowValueStr,
|
|
6516
6480
|
labelInValue: labelInValue,
|
|
@@ -6549,10 +6513,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6549
6513
|
dropdownRender: function dropdownRender(menu) {
|
|
6550
6514
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6551
6515
|
},
|
|
6552
|
-
notFoundContent: fetching ? (
|
|
6516
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6553
6517
|
size: "small",
|
|
6554
6518
|
className: 'searchSelectSpin'
|
|
6555
|
-
})) : (
|
|
6519
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6556
6520
|
style: {
|
|
6557
6521
|
textAlign: 'center'
|
|
6558
6522
|
}
|
|
@@ -6592,7 +6556,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6592
6556
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6593
6557
|
filterTxt: searchValue
|
|
6594
6558
|
}));
|
|
6595
|
-
}))), needModalTable && isModalVisible && (
|
|
6559
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6596
6560
|
maskClosable: false,
|
|
6597
6561
|
destroyOnClose: true,
|
|
6598
6562
|
width: "calc(100% - 320px)",
|
|
@@ -7191,7 +7155,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7191
7155
|
style: {
|
|
7192
7156
|
width: 525
|
|
7193
7157
|
}
|
|
7194
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
7158
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
7195
7159
|
checked: !dataSource.some(function (item) {
|
|
7196
7160
|
if (item.hidden) return true;
|
|
7197
7161
|
return false;
|
|
@@ -7229,13 +7193,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7229
7193
|
_this2.onChange(e, item.title);
|
|
7230
7194
|
}
|
|
7231
7195
|
}, item.title);
|
|
7232
|
-
}), !!seatchDataSource.length && (
|
|
7196
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
7233
7197
|
style: {
|
|
7234
7198
|
width: '144px'
|
|
7235
7199
|
}
|
|
7236
|
-
})), !seatchDataSource.length && (
|
|
7200
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
7237
7201
|
className: 'sort_table_column_all_empty'
|
|
7238
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
7202
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7239
7203
|
className: 'sort_table_column_special'
|
|
7240
7204
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
7241
7205
|
className: 'sort_table_column_all'
|
|
@@ -7424,7 +7388,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7424
7388
|
});
|
|
7425
7389
|
};
|
|
7426
7390
|
// 格式化树选择器数据源
|
|
7427
|
-
var
|
|
7391
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7428
7392
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7429
7393
|
return {
|
|
7430
7394
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7434,7 +7398,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7434
7398
|
isLeaf: !haveChildren,
|
|
7435
7399
|
disabled: haveChildren,
|
|
7436
7400
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7437
|
-
return
|
|
7401
|
+
return _mapSearchTree(i, resKeyValue);
|
|
7438
7402
|
}) : []
|
|
7439
7403
|
};
|
|
7440
7404
|
};
|
|
@@ -7443,7 +7407,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7443
7407
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7444
7408
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7445
7409
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7446
|
-
return
|
|
7410
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
7447
7411
|
}) || [];
|
|
7448
7412
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7449
7413
|
};
|
|
@@ -7615,7 +7579,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7615
7579
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7616
7580
|
// FIXME: 特殊业务逻辑
|
|
7617
7581
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7618
|
-
var _ref2 = _asyncToGenerator(
|
|
7582
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7619
7583
|
var result;
|
|
7620
7584
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7621
7585
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7868,7 +7832,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7868
7832
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7869
7833
|
value: text || null,
|
|
7870
7834
|
onChange: function () {
|
|
7871
|
-
var _onChange = _asyncToGenerator(
|
|
7835
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7872
7836
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7873
7837
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7874
7838
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8476,10 +8440,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8476
8440
|
var newColumns = arr.map(function (col) {
|
|
8477
8441
|
return _objectSpread2({}, col);
|
|
8478
8442
|
});
|
|
8479
|
-
var
|
|
8443
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8480
8444
|
var i = indexArr.shift();
|
|
8481
8445
|
if (indexArr.length > 0) {
|
|
8482
|
-
|
|
8446
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8483
8447
|
} else {
|
|
8484
8448
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8485
8449
|
width: size.width
|
|
@@ -8487,7 +8451,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8487
8451
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8488
8452
|
}
|
|
8489
8453
|
};
|
|
8490
|
-
|
|
8454
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8491
8455
|
callback(newColumns);
|
|
8492
8456
|
};
|
|
8493
8457
|
};
|
|
@@ -8497,13 +8461,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8497
8461
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8498
8462
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8499
8463
|
};
|
|
8500
|
-
var
|
|
8464
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8501
8465
|
arr.forEach(function (item, index) {
|
|
8502
8466
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8503
8467
|
return i || i === 0;
|
|
8504
8468
|
});
|
|
8505
8469
|
if (noEmptyArray$1(item.children)) {
|
|
8506
|
-
|
|
8470
|
+
_handleColumns(item.children, indexArrInside);
|
|
8507
8471
|
} else {
|
|
8508
8472
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8509
8473
|
item.onHeaderCell = function (column) {
|
|
@@ -8519,14 +8483,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8519
8483
|
handleAntdColumnsSpecialParams(item);
|
|
8520
8484
|
return _objectSpread2({}, item);
|
|
8521
8485
|
});
|
|
8522
|
-
|
|
8486
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
8523
8487
|
return setShowToChooseColumnsCallback(res);
|
|
8524
8488
|
});
|
|
8525
8489
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8526
8490
|
handleAntdColumnsSpecialParams(item);
|
|
8527
8491
|
return _objectSpread2({}, item);
|
|
8528
8492
|
});
|
|
8529
|
-
|
|
8493
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8530
8494
|
return setShowColumnsCallback(res);
|
|
8531
8495
|
});
|
|
8532
8496
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8537,7 +8501,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8537
8501
|
id: "add_select_div_".concat(uniqueValue)
|
|
8538
8502
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8539
8503
|
onClick: handleShowModal
|
|
8540
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
8504
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8541
8505
|
width: "calc(100% - 320px)",
|
|
8542
8506
|
style: {
|
|
8543
8507
|
top: 20
|
|
@@ -9451,7 +9415,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9451
9415
|
});
|
|
9452
9416
|
};
|
|
9453
9417
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9454
|
-
var _ref4 = _asyncToGenerator(
|
|
9418
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9455
9419
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9456
9420
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9457
9421
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9534,10 +9498,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9534
9498
|
var newColumns = arr.map(function (col) {
|
|
9535
9499
|
return _objectSpread2({}, col);
|
|
9536
9500
|
});
|
|
9537
|
-
var
|
|
9501
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
9538
9502
|
var i = indexArr.shift();
|
|
9539
9503
|
if (indexArr.length > 0) {
|
|
9540
|
-
|
|
9504
|
+
_handleIndex(arr[i].children, indexArr);
|
|
9541
9505
|
} else {
|
|
9542
9506
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9543
9507
|
width: size.width
|
|
@@ -9545,17 +9509,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9545
9509
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9546
9510
|
}
|
|
9547
9511
|
};
|
|
9548
|
-
|
|
9512
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
9549
9513
|
callback(newColumns);
|
|
9550
9514
|
};
|
|
9551
9515
|
};
|
|
9552
|
-
var
|
|
9516
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9553
9517
|
arr.forEach(function (item, index) {
|
|
9554
9518
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9555
9519
|
return i || i === 0;
|
|
9556
9520
|
});
|
|
9557
9521
|
if (noEmptyArray$1(item.children)) {
|
|
9558
|
-
|
|
9522
|
+
_handleColumns(item.children, indexArrInside);
|
|
9559
9523
|
} else {
|
|
9560
9524
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9561
9525
|
item.onHeaderCell = function (column) {
|
|
@@ -9571,7 +9535,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9571
9535
|
handleAntdColumnsSpecialParams(item);
|
|
9572
9536
|
return _objectSpread2({}, item);
|
|
9573
9537
|
});
|
|
9574
|
-
|
|
9538
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9575
9539
|
return setShowColumnsCallback(res);
|
|
9576
9540
|
});
|
|
9577
9541
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9887,7 +9851,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9887
9851
|
});
|
|
9888
9852
|
};
|
|
9889
9853
|
// 格式化树选择器数据源
|
|
9890
|
-
var
|
|
9854
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9891
9855
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9892
9856
|
return {
|
|
9893
9857
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9897,7 +9861,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9897
9861
|
isLeaf: !haveChildren,
|
|
9898
9862
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9899
9863
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9900
|
-
return
|
|
9864
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9901
9865
|
}) : []
|
|
9902
9866
|
};
|
|
9903
9867
|
};
|
|
@@ -9911,7 +9875,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9911
9875
|
disabledJudge = false;
|
|
9912
9876
|
}
|
|
9913
9877
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9914
|
-
return
|
|
9878
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9915
9879
|
}) || [];
|
|
9916
9880
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9917
9881
|
};
|
|
@@ -14232,7 +14196,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
14232
14196
|
};
|
|
14233
14197
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
14234
14198
|
onClick: handleShowModal
|
|
14235
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
14199
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14236
14200
|
onOk: handleOk,
|
|
14237
14201
|
onCancel: handleCancel,
|
|
14238
14202
|
destroyOnClose: true,
|
|
@@ -14351,7 +14315,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14351
14315
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
14352
14316
|
_remoteSource$special = remoteSource.specialBracket,
|
|
14353
14317
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
14354
|
-
var
|
|
14318
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
14355
14319
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
14356
14320
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
14357
14321
|
return {
|
|
@@ -14363,7 +14327,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14363
14327
|
isLeaf: !haveChildren,
|
|
14364
14328
|
disabled: isDisabled(haveChildren, isRoot),
|
|
14365
14329
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
14366
|
-
return
|
|
14330
|
+
return _mapSearchTree(i);
|
|
14367
14331
|
}) : []
|
|
14368
14332
|
};
|
|
14369
14333
|
};
|
|
@@ -14381,8 +14345,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14381
14345
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
14382
14346
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14383
14347
|
headers: headers
|
|
14384
|
-
}).then(
|
|
14385
|
-
var _ref = _asyncToGenerator(
|
|
14348
|
+
}).then(/*#__PURE__*/function () {
|
|
14349
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14386
14350
|
var _ctx$form;
|
|
14387
14351
|
var resData, coverData, data, dataList;
|
|
14388
14352
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -14409,7 +14373,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14409
14373
|
case 9:
|
|
14410
14374
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14411
14375
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14412
|
-
return
|
|
14376
|
+
return _mapSearchTree(ites);
|
|
14413
14377
|
}) || [];
|
|
14414
14378
|
case 11:
|
|
14415
14379
|
_context.next = 14;
|
|
@@ -14447,11 +14411,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14447
14411
|
return _formatResult;
|
|
14448
14412
|
}
|
|
14449
14413
|
};
|
|
14450
|
-
var
|
|
14414
|
+
var _parallelData = function parallelData(data, result) {
|
|
14451
14415
|
data.forEach(function (i) {
|
|
14452
14416
|
result.push(i);
|
|
14453
14417
|
if (i[treeChildrenRoom]) {
|
|
14454
|
-
|
|
14418
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
14455
14419
|
}
|
|
14456
14420
|
});
|
|
14457
14421
|
return result;
|
|
@@ -14491,7 +14455,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14491
14455
|
var _ctx$form2;
|
|
14492
14456
|
var handleData = formatData(data);
|
|
14493
14457
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14494
|
-
var parallelTreeData =
|
|
14458
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14495
14459
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14496
14460
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14497
14461
|
onChangeName && onChangeName(dataName);
|
|
@@ -14534,7 +14498,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14534
14498
|
var getShowStr = function getShowStr() {
|
|
14535
14499
|
var isMultiple = multiple || treeCheckable;
|
|
14536
14500
|
var kongValue = '无';
|
|
14537
|
-
var parallelTreeData =
|
|
14501
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14538
14502
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14539
14503
|
if (isMultiple) {
|
|
14540
14504
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14546,7 +14510,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14546
14510
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14547
14511
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14548
14512
|
className: 'tree_search_select'
|
|
14549
|
-
}, isShouldShowStr ? (
|
|
14513
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14550
14514
|
title: getShowStr(),
|
|
14551
14515
|
style: {
|
|
14552
14516
|
overflow: 'hidden',
|
|
@@ -14554,7 +14518,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14554
14518
|
whiteSpace: 'nowrap'
|
|
14555
14519
|
},
|
|
14556
14520
|
className: 'search_select_show'
|
|
14557
|
-
}, getShowStr())) : (
|
|
14521
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14558
14522
|
treeCheckable: treeCheckable,
|
|
14559
14523
|
maxTagCount: maxTagCount,
|
|
14560
14524
|
showSearch: showSearch,
|
|
@@ -14751,7 +14715,7 @@ var index$2 = (function (props) {
|
|
|
14751
14715
|
} : {}
|
|
14752
14716
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14753
14717
|
className: 'status-label-operate'
|
|
14754
|
-
}, item.isDone ? (
|
|
14718
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14755
14719
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14756
14720
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14757
14721
|
style: {
|
|
@@ -15532,7 +15496,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15532
15496
|
style: {
|
|
15533
15497
|
width: 525
|
|
15534
15498
|
}
|
|
15535
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15499
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15536
15500
|
checked: !dataSource.some(function (item) {
|
|
15537
15501
|
if (item.hidden) return true;
|
|
15538
15502
|
return false;
|
|
@@ -15570,13 +15534,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15570
15534
|
_this2.onChange(e, item.title);
|
|
15571
15535
|
}
|
|
15572
15536
|
}, item.title);
|
|
15573
|
-
}), !!seatchDataSource.length && (
|
|
15537
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15574
15538
|
style: {
|
|
15575
15539
|
width: '144px'
|
|
15576
15540
|
}
|
|
15577
|
-
})), !seatchDataSource.length && (
|
|
15541
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15578
15542
|
className: 'sort_table_column_all_empty'
|
|
15579
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15543
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15580
15544
|
className: 'sort_table_column_special'
|
|
15581
15545
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15582
15546
|
className: 'sort_table_column_all'
|
|
@@ -15755,10 +15719,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15755
15719
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15756
15720
|
return _objectSpread2({}, col);
|
|
15757
15721
|
});
|
|
15758
|
-
var
|
|
15722
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15759
15723
|
var i = indexArr.shift();
|
|
15760
15724
|
if (indexArr.length > 0) {
|
|
15761
|
-
|
|
15725
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15762
15726
|
} else {
|
|
15763
15727
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15764
15728
|
width: size.width
|
|
@@ -15766,7 +15730,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15766
15730
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15767
15731
|
}
|
|
15768
15732
|
};
|
|
15769
|
-
|
|
15733
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15770
15734
|
_this.setState({
|
|
15771
15735
|
showColumns: _toConsumableArray(newColumns)
|
|
15772
15736
|
});
|
|
@@ -15807,7 +15771,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15807
15771
|
};
|
|
15808
15772
|
setIsResizing(true);
|
|
15809
15773
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15810
|
-
document.addEventListener('mouseup',
|
|
15774
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
15811
15775
|
};
|
|
15812
15776
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15813
15777
|
e.stopPropagation();
|
|
@@ -15823,9 +15787,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15823
15787
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15824
15788
|
}
|
|
15825
15789
|
};
|
|
15826
|
-
var
|
|
15790
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15827
15791
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15828
|
-
document.removeEventListener('mouseup',
|
|
15792
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15829
15793
|
setIsResizing(false);
|
|
15830
15794
|
};
|
|
15831
15795
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15946,13 +15910,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15946
15910
|
showSummary = summary;
|
|
15947
15911
|
}
|
|
15948
15912
|
}
|
|
15949
|
-
var
|
|
15913
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15950
15914
|
arr.forEach(function (item, index) {
|
|
15951
15915
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15952
15916
|
return i || i === 0;
|
|
15953
15917
|
});
|
|
15954
15918
|
if (noEmptyArray$1(item.children)) {
|
|
15955
|
-
|
|
15919
|
+
_handleColumns(item.children, indexArrInside);
|
|
15956
15920
|
} else {
|
|
15957
15921
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15958
15922
|
item.onHeaderCell = function (column) {
|
|
@@ -15968,7 +15932,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15968
15932
|
handleBssulaColumnsSpecialParams(item);
|
|
15969
15933
|
return _objectSpread2({}, item);
|
|
15970
15934
|
});
|
|
15971
|
-
|
|
15935
|
+
_handleColumns(showCol, []);
|
|
15972
15936
|
if (dynamicColumns.length) {
|
|
15973
15937
|
showCol = this.handledynamicColumns(showCol);
|
|
15974
15938
|
}
|
|
@@ -16009,7 +15973,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16009
15973
|
cell: this.ResizeableTitle
|
|
16010
15974
|
}
|
|
16011
15975
|
}
|
|
16012
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15976
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16013
15977
|
summary: summary
|
|
16014
15978
|
})));
|
|
16015
15979
|
}
|
|
@@ -16106,10 +16070,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16106
16070
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
16107
16071
|
return _objectSpread2({}, col);
|
|
16108
16072
|
});
|
|
16109
|
-
var
|
|
16073
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
16110
16074
|
var i = indexArr.shift();
|
|
16111
16075
|
if (indexArr.length > 0) {
|
|
16112
|
-
|
|
16076
|
+
_handleIndex(arr[i].children, indexArr);
|
|
16113
16077
|
} else {
|
|
16114
16078
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
16115
16079
|
width: size.width
|
|
@@ -16117,7 +16081,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16117
16081
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
16118
16082
|
}
|
|
16119
16083
|
};
|
|
16120
|
-
|
|
16084
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
16121
16085
|
_this.setState({
|
|
16122
16086
|
showColumns: _toConsumableArray(newColumns)
|
|
16123
16087
|
});
|
|
@@ -16193,13 +16157,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16193
16157
|
showSummary = summary;
|
|
16194
16158
|
}
|
|
16195
16159
|
}
|
|
16196
|
-
var
|
|
16160
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
16197
16161
|
arr.forEach(function (item, index) {
|
|
16198
16162
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
16199
16163
|
return i || i === 0;
|
|
16200
16164
|
});
|
|
16201
16165
|
if (noEmptyArray$1(item.children)) {
|
|
16202
|
-
|
|
16166
|
+
_handleColumns(item.children, indexArrInside);
|
|
16203
16167
|
} else {
|
|
16204
16168
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
16205
16169
|
item.onHeaderCell = function (column) {
|
|
@@ -16215,7 +16179,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16215
16179
|
handleAntdColumnsSpecialParams(item);
|
|
16216
16180
|
return _objectSpread2({}, item);
|
|
16217
16181
|
});
|
|
16218
|
-
|
|
16182
|
+
_handleColumns(showCol, []);
|
|
16219
16183
|
if (dynamicColumns.length) {
|
|
16220
16184
|
showCol = this.handledynamicColumns(showCol);
|
|
16221
16185
|
}
|
|
@@ -16255,7 +16219,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16255
16219
|
cell: this.ResizeableTitle
|
|
16256
16220
|
}
|
|
16257
16221
|
}
|
|
16258
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
16222
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16259
16223
|
summary: summary
|
|
16260
16224
|
})));
|
|
16261
16225
|
}
|
|
@@ -16315,7 +16279,7 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
16315
16279
|
};
|
|
16316
16280
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
16317
16281
|
var routerMap = {};
|
|
16318
|
-
var
|
|
16282
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
16319
16283
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
16320
16284
|
data.forEach(function (menuItem) {
|
|
16321
16285
|
// 面包屑路径,增加显示一级导航路径显示
|
|
@@ -16330,13 +16294,13 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
16330
16294
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
16331
16295
|
});
|
|
16332
16296
|
if (newMenuItem.children) {
|
|
16333
|
-
|
|
16297
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
16334
16298
|
}
|
|
16335
16299
|
// Reduce memory usage
|
|
16336
16300
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
16337
16301
|
});
|
|
16338
16302
|
};
|
|
16339
|
-
|
|
16303
|
+
_flattenMenuData2(menuData, {
|
|
16340
16304
|
isMenuRoot: true
|
|
16341
16305
|
});
|
|
16342
16306
|
return routerMap;
|
|
@@ -16701,7 +16665,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16701
16665
|
display: 'flex',
|
|
16702
16666
|
gap: '8px'
|
|
16703
16667
|
}
|
|
16704
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
16668
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16705
16669
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16706
16670
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16707
16671
|
onClick: function onClick() {
|
|
@@ -16709,7 +16673,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16709
16673
|
},
|
|
16710
16674
|
width: 24,
|
|
16711
16675
|
src: scanning
|
|
16712
|
-
}))) : (
|
|
16676
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16713
16677
|
title: "\u5168\u5C4F"
|
|
16714
16678
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16715
16679
|
onClick: function onClick() {
|
|
@@ -16717,7 +16681,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16717
16681
|
},
|
|
16718
16682
|
width: 24,
|
|
16719
16683
|
src: quanping
|
|
16720
|
-
}))))) : null)), alertProps && (
|
|
16684
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16721
16685
|
}, function (prevProps, nextProps) {
|
|
16722
16686
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16723
16687
|
return false;
|
|
@@ -16802,7 +16766,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16802
16766
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16803
16767
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16804
16768
|
}, item));
|
|
16805
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
16769
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16806
16770
|
}, function (prevProps, nextProps) {
|
|
16807
16771
|
if (prevProps.title !== nextProps.title) {
|
|
16808
16772
|
return false;
|
|
@@ -17442,7 +17406,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17442
17406
|
});
|
|
17443
17407
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17444
17408
|
className: 'sort_table_wrapper'
|
|
17445
|
-
}, visible && (
|
|
17409
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17446
17410
|
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
17447
17411
|
wrapClassName: 'sort_table_wrapper',
|
|
17448
17412
|
width: 810,
|
|
@@ -17493,7 +17457,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17493
17457
|
width: 525,
|
|
17494
17458
|
height: 24
|
|
17495
17459
|
}
|
|
17496
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17460
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17497
17461
|
checked: !dataSource.some(function (item) {
|
|
17498
17462
|
if (item.hidden) return true;
|
|
17499
17463
|
return false;
|
|
@@ -17547,13 +17511,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17547
17511
|
_this2.onChange(e, item.title);
|
|
17548
17512
|
}
|
|
17549
17513
|
}, item.title);
|
|
17550
|
-
}), !!seatchDataSource.length && (
|
|
17514
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17551
17515
|
style: {
|
|
17552
17516
|
width: '144px'
|
|
17553
17517
|
}
|
|
17554
|
-
})), !seatchDataSource.length && (
|
|
17518
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17555
17519
|
className: 'sort_table_column_all_empty'
|
|
17556
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
17520
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17557
17521
|
className: 'sort_table_column_special'
|
|
17558
17522
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
17559
17523
|
className: 'sort_table_column_all'
|
|
@@ -18027,7 +17991,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
18027
17991
|
});
|
|
18028
17992
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
18029
17993
|
className: 'sort_table_wrapper'
|
|
18030
|
-
}, visible && (
|
|
17994
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
18031
17995
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
18032
17996
|
wrapClassName: 'sort_table_wrapper',
|
|
18033
17997
|
width: 820,
|
|
@@ -18072,7 +18036,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
18072
18036
|
style: {
|
|
18073
18037
|
width: 525
|
|
18074
18038
|
}
|
|
18075
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
18039
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
18076
18040
|
checked: !dataSource.some(function (item) {
|
|
18077
18041
|
if (item.hidden) return true;
|
|
18078
18042
|
return false;
|
|
@@ -18108,11 +18072,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
18108
18072
|
_this2.onChange(e, item.name);
|
|
18109
18073
|
}
|
|
18110
18074
|
}, item.label);
|
|
18111
|
-
}), !!newSearchSource.length && (
|
|
18075
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
18112
18076
|
style: {
|
|
18113
18077
|
width: '144px'
|
|
18114
18078
|
}
|
|
18115
|
-
})), !newSearchSource.length && (
|
|
18079
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
18116
18080
|
className: 'sort_table_column_all_empty'
|
|
18117
18081
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
18118
18082
|
className: 'sort_table_content_wrapper'
|
|
@@ -18211,7 +18175,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18211
18175
|
};
|
|
18212
18176
|
setIsResizing(true);
|
|
18213
18177
|
document.addEventListener('mousemove', handleMouseMove);
|
|
18214
|
-
document.addEventListener('mouseup',
|
|
18178
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
18215
18179
|
};
|
|
18216
18180
|
var handleMouseMove = function handleMouseMove(e) {
|
|
18217
18181
|
e.stopPropagation();
|
|
@@ -18227,9 +18191,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18227
18191
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
18228
18192
|
}
|
|
18229
18193
|
};
|
|
18230
|
-
var
|
|
18194
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
18231
18195
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
18232
|
-
document.removeEventListener('mouseup',
|
|
18196
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
18233
18197
|
setIsResizing(false);
|
|
18234
18198
|
};
|
|
18235
18199
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18640,7 +18604,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18640
18604
|
actionsRender = actionsRender.concat([{
|
|
18641
18605
|
type: 'text',
|
|
18642
18606
|
props: {
|
|
18643
|
-
children: (
|
|
18607
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18644
18608
|
request: {
|
|
18645
18609
|
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),
|
|
18646
18610
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18886,7 +18850,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18886
18850
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18887
18851
|
bsTableCode: bsTableCode,
|
|
18888
18852
|
onlyModal: true
|
|
18889
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
18853
|
+
}), (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, {
|
|
18890
18854
|
ref: exportTableRef,
|
|
18891
18855
|
setShowColumns: setShowExportColumns,
|
|
18892
18856
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18979,11 +18943,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18979
18943
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18980
18944
|
var resultList = [];
|
|
18981
18945
|
var newRouter = cloneDeep(router);
|
|
18982
|
-
var
|
|
18946
|
+
var _deep = function deep(router) {
|
|
18983
18947
|
if (router && Array.isArray(router)) {
|
|
18984
18948
|
router.forEach(function (item) {
|
|
18985
18949
|
if (item.children && Array.isArray(item.children)) {
|
|
18986
|
-
|
|
18950
|
+
_deep(item.children);
|
|
18987
18951
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18988
18952
|
return d === item.code;
|
|
18989
18953
|
})) {
|
|
@@ -18997,10 +18961,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18997
18961
|
resultList.push(_objectSpread2({}, router));
|
|
18998
18962
|
}
|
|
18999
18963
|
};
|
|
19000
|
-
|
|
18964
|
+
_deep(newRouter);
|
|
19001
18965
|
callBack([].concat(resultList));
|
|
19002
18966
|
};
|
|
19003
|
-
var
|
|
18967
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
19004
18968
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
19005
18969
|
var _loop = function _loop(i) {
|
|
19006
18970
|
if (routesData[i].hideInMenu) {
|
|
@@ -19014,7 +18978,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
19014
18978
|
return 0; // continue
|
|
19015
18979
|
}
|
|
19016
18980
|
if (routesData[i].children) {
|
|
19017
|
-
|
|
18981
|
+
_setMenuTreeData(routesData[i].children);
|
|
19018
18982
|
}
|
|
19019
18983
|
},
|
|
19020
18984
|
_ret;
|
|
@@ -19035,16 +18999,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
19035
18999
|
};
|
|
19036
19000
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
19037
19001
|
var routerMap = {};
|
|
19038
|
-
var
|
|
19002
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
19039
19003
|
data.forEach(function (menuItem) {
|
|
19040
19004
|
if (menuItem.children) {
|
|
19041
|
-
|
|
19005
|
+
_flattenMenuData(menuItem.children);
|
|
19042
19006
|
}
|
|
19043
19007
|
// Reduce memory usage
|
|
19044
19008
|
routerMap[menuItem.path] = menuItem;
|
|
19045
19009
|
});
|
|
19046
19010
|
};
|
|
19047
|
-
|
|
19011
|
+
_flattenMenuData(menuData);
|
|
19048
19012
|
return routerMap;
|
|
19049
19013
|
};
|
|
19050
19014
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -19190,7 +19154,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19190
19154
|
sethomepageData(homepageDataList);
|
|
19191
19155
|
setroutesData(routesDataList);
|
|
19192
19156
|
}, []);
|
|
19193
|
-
var
|
|
19157
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
19194
19158
|
if (!child.hideInMenu && child.children) {
|
|
19195
19159
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19196
19160
|
style: {
|
|
@@ -19200,7 +19164,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19200
19164
|
}, formatMessage({
|
|
19201
19165
|
id: "".concat(child.locale)
|
|
19202
19166
|
})), child.children.map(function (menuItem) {
|
|
19203
|
-
return
|
|
19167
|
+
return _renderChildItem(menuItem);
|
|
19204
19168
|
}));
|
|
19205
19169
|
} else if (!child.hideInMenu && child.path) {
|
|
19206
19170
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19235,7 +19199,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19235
19199
|
className: 'drawerWarp'
|
|
19236
19200
|
}, homepageData && homepageData.filter(function (d) {
|
|
19237
19201
|
return !d.hideInMenu;
|
|
19238
|
-
}).length > 0 && (
|
|
19202
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19239
19203
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19240
19204
|
dataSource: homepageData,
|
|
19241
19205
|
renderItem: function renderItem(child) {
|
|
@@ -19270,7 +19234,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19270
19234
|
bordered: true,
|
|
19271
19235
|
dataSource: item.children,
|
|
19272
19236
|
renderItem: function renderItem(child) {
|
|
19273
|
-
return
|
|
19237
|
+
return _renderChildItem(child);
|
|
19274
19238
|
}
|
|
19275
19239
|
});
|
|
19276
19240
|
})));
|
|
@@ -19330,7 +19294,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19330
19294
|
src: allfunc
|
|
19331
19295
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
19332
19296
|
className: 'btnSpan2'
|
|
19333
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
19297
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19334
19298
|
style: {
|
|
19335
19299
|
left: isDrawer ? 140 : 0,
|
|
19336
19300
|
top: 50
|
|
@@ -19376,7 +19340,7 @@ function outLogin(_x) {
|
|
|
19376
19340
|
return _outLogin.apply(this, arguments);
|
|
19377
19341
|
}
|
|
19378
19342
|
function _outLogin() {
|
|
19379
|
-
_outLogin = _asyncToGenerator(
|
|
19343
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19380
19344
|
var res;
|
|
19381
19345
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19382
19346
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19518,7 +19482,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19518
19482
|
});
|
|
19519
19483
|
};
|
|
19520
19484
|
var loginOut = /*#__PURE__*/function () {
|
|
19521
|
-
var _ref2 = _asyncToGenerator(
|
|
19485
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19522
19486
|
var sessionId;
|
|
19523
19487
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19524
19488
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19622,7 +19586,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19622
19586
|
marginRight: '0px'
|
|
19623
19587
|
},
|
|
19624
19588
|
src: './xialajiantou-new.svg'
|
|
19625
|
-
}))))), loginModalParams.visible && (
|
|
19589
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19626
19590
|
};
|
|
19627
19591
|
|
|
19628
19592
|
// -- 查询店铺 --
|
|
@@ -19630,7 +19594,7 @@ function getStoreByName(_x) {
|
|
|
19630
19594
|
return _getStoreByName.apply(this, arguments);
|
|
19631
19595
|
}
|
|
19632
19596
|
function _getStoreByName() {
|
|
19633
|
-
_getStoreByName = _asyncToGenerator(
|
|
19597
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19634
19598
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19635
19599
|
while (1) switch (_context.prev = _context.next) {
|
|
19636
19600
|
case 0:
|
|
@@ -19698,7 +19662,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19698
19662
|
return _fetchUserList.apply(this, arguments);
|
|
19699
19663
|
}
|
|
19700
19664
|
function _fetchUserList() {
|
|
19701
|
-
_fetchUserList = _asyncToGenerator(
|
|
19665
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19702
19666
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19703
19667
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19704
19668
|
case 0:
|
|
@@ -19746,7 +19710,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19746
19710
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19747
19711
|
}, [debounceTimeout, key]);
|
|
19748
19712
|
var changeInput = /*#__PURE__*/function () {
|
|
19749
|
-
var _ref = _asyncToGenerator(
|
|
19713
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19750
19714
|
var res;
|
|
19751
19715
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19752
19716
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19768,7 +19732,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19768
19732
|
};
|
|
19769
19733
|
}();
|
|
19770
19734
|
useEffect(function () {
|
|
19771
|
-
_asyncToGenerator(
|
|
19735
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19772
19736
|
var res;
|
|
19773
19737
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19774
19738
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19933,7 +19897,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19933
19897
|
var resultList = [];
|
|
19934
19898
|
var newRouter = cloneDeep$1(router);
|
|
19935
19899
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19936
|
-
var
|
|
19900
|
+
var _deep = function deep(router) {
|
|
19937
19901
|
if (router && Array.isArray(router)) {
|
|
19938
19902
|
router.forEach(function (item) {
|
|
19939
19903
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19943,7 +19907,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19943
19907
|
d.nameEdit = true;
|
|
19944
19908
|
}
|
|
19945
19909
|
});
|
|
19946
|
-
|
|
19910
|
+
_deep(item.routes);
|
|
19947
19911
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19948
19912
|
id: "menu.".concat(item.name)
|
|
19949
19913
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19962,7 +19926,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19962
19926
|
}));
|
|
19963
19927
|
}
|
|
19964
19928
|
};
|
|
19965
|
-
|
|
19929
|
+
_deep(newRouter);
|
|
19966
19930
|
setroutesData([].concat(resultList));
|
|
19967
19931
|
};
|
|
19968
19932
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -20044,7 +20008,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
20044
20008
|
},
|
|
20045
20009
|
title: item.fullPathName
|
|
20046
20010
|
}, renderLineStyl(item.fullPathName));
|
|
20047
|
-
}))))), showSelectStore && (
|
|
20011
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
20048
20012
|
employeeCode: employeeCode
|
|
20049
20013
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
20050
20014
|
};
|
|
@@ -20059,7 +20023,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
20059
20023
|
var TreeNode = Tree.TreeNode;
|
|
20060
20024
|
var Search$2 = Input.Search;
|
|
20061
20025
|
var dataList = [];
|
|
20062
|
-
var
|
|
20026
|
+
var _generateList = function generateList(data) {
|
|
20063
20027
|
for (var i = 0; i < data.length; i++) {
|
|
20064
20028
|
var node = data[i];
|
|
20065
20029
|
var path = node.path,
|
|
@@ -20069,11 +20033,11 @@ var generateList = function generateList(data) {
|
|
|
20069
20033
|
name: name
|
|
20070
20034
|
});
|
|
20071
20035
|
if (node.children) {
|
|
20072
|
-
|
|
20036
|
+
_generateList(node.children);
|
|
20073
20037
|
}
|
|
20074
20038
|
}
|
|
20075
20039
|
};
|
|
20076
|
-
var
|
|
20040
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
20077
20041
|
var parentKey;
|
|
20078
20042
|
for (var i = 0; i < tree.length; i++) {
|
|
20079
20043
|
var node = tree[i];
|
|
@@ -20082,8 +20046,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
20082
20046
|
return item.path === path;
|
|
20083
20047
|
})) {
|
|
20084
20048
|
parentKey = node.path;
|
|
20085
|
-
} else if (
|
|
20086
|
-
parentKey =
|
|
20049
|
+
} else if (_getParentKey(path, node.children)) {
|
|
20050
|
+
parentKey = _getParentKey(path, node.children);
|
|
20087
20051
|
}
|
|
20088
20052
|
}
|
|
20089
20053
|
}
|
|
@@ -20114,7 +20078,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20114
20078
|
var treeData = _this.state.treeData;
|
|
20115
20079
|
var expandedKeys = dataList.map(function (item) {
|
|
20116
20080
|
if (item.name.indexOf(value) > -1) {
|
|
20117
|
-
return
|
|
20081
|
+
return _getParentKey(item.path, treeData);
|
|
20118
20082
|
}
|
|
20119
20083
|
return null;
|
|
20120
20084
|
}).filter(function (item, i, self) {
|
|
@@ -20128,22 +20092,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20128
20092
|
};
|
|
20129
20093
|
_this.getPathList = function (originData) {
|
|
20130
20094
|
var pathList = [];
|
|
20131
|
-
var
|
|
20095
|
+
var _getList = function getList(data) {
|
|
20132
20096
|
if (Array.isArray(data)) {
|
|
20133
20097
|
data.forEach(function (item) {
|
|
20134
20098
|
pathList.push(item.path);
|
|
20135
20099
|
if (item.children) {
|
|
20136
|
-
|
|
20100
|
+
_getList(item.children);
|
|
20137
20101
|
}
|
|
20138
20102
|
});
|
|
20139
20103
|
} else {
|
|
20140
20104
|
pathList.push(data.path);
|
|
20141
20105
|
if (data.children) {
|
|
20142
|
-
|
|
20106
|
+
_getList(data.children);
|
|
20143
20107
|
}
|
|
20144
20108
|
}
|
|
20145
20109
|
};
|
|
20146
|
-
|
|
20110
|
+
_getList(originData);
|
|
20147
20111
|
return pathList;
|
|
20148
20112
|
};
|
|
20149
20113
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -20152,18 +20116,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20152
20116
|
customerMenuData = _this$props.customerMenuData,
|
|
20153
20117
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
20154
20118
|
var filterItem;
|
|
20155
|
-
var
|
|
20119
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
20156
20120
|
menuData.forEach(function (item) {
|
|
20157
20121
|
if (item.path === path) {
|
|
20158
20122
|
filterItem = _objectSpread2({}, item);
|
|
20159
20123
|
return;
|
|
20160
20124
|
}
|
|
20161
20125
|
if (item.children) {
|
|
20162
|
-
|
|
20126
|
+
_filterMenuItem(item.children);
|
|
20163
20127
|
}
|
|
20164
20128
|
});
|
|
20165
20129
|
};
|
|
20166
|
-
|
|
20130
|
+
_filterMenuItem(treeData);
|
|
20167
20131
|
var addPathList = _this.getPathList(filterItem);
|
|
20168
20132
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
20169
20133
|
var isRepet = false;
|
|
@@ -20193,8 +20157,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20193
20157
|
return item.path === '/';
|
|
20194
20158
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20195
20159
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20196
|
-
|
|
20197
|
-
|
|
20160
|
+
_setMenuTreeData(routesData);
|
|
20161
|
+
_generateList(routesData);
|
|
20198
20162
|
this.setState({
|
|
20199
20163
|
treeData: routesData
|
|
20200
20164
|
});
|
|
@@ -20208,16 +20172,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20208
20172
|
expandedKeys = _this$state.expandedKeys,
|
|
20209
20173
|
autoExpandParent = _this$state.autoExpandParent,
|
|
20210
20174
|
treeData = _this$state.treeData;
|
|
20211
|
-
var
|
|
20175
|
+
var _loop = function loop(data) {
|
|
20212
20176
|
return data.map(function (item) {
|
|
20213
20177
|
var index = item.name.indexOf(searchValue);
|
|
20214
20178
|
var beforeStr = item.name.substr(0, index);
|
|
20215
20179
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
20216
|
-
var name = index > -1 ? (
|
|
20180
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
20217
20181
|
style: {
|
|
20218
20182
|
color: '#f50'
|
|
20219
20183
|
}
|
|
20220
|
-
}, searchValue), afterStr)) : (
|
|
20184
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
20221
20185
|
if (item.children && item.children.length) {
|
|
20222
20186
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20223
20187
|
path: item.path,
|
|
@@ -20239,7 +20203,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20239
20203
|
width: 18,
|
|
20240
20204
|
src: arrowRight
|
|
20241
20205
|
}))))
|
|
20242
|
-
},
|
|
20206
|
+
}, _loop(item.children));
|
|
20243
20207
|
}
|
|
20244
20208
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20245
20209
|
path: item.path,
|
|
@@ -20289,7 +20253,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20289
20253
|
onExpand: this.onExpand,
|
|
20290
20254
|
expandedKeys: expandedKeys,
|
|
20291
20255
|
autoExpandParent: autoExpandParent
|
|
20292
|
-
},
|
|
20256
|
+
}, _loop(treeData))));
|
|
20293
20257
|
}
|
|
20294
20258
|
}]);
|
|
20295
20259
|
}(React$1.Component);
|
|
@@ -20322,24 +20286,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20322
20286
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
20323
20287
|
var dragObj;
|
|
20324
20288
|
var finalDropItem;
|
|
20325
|
-
var
|
|
20289
|
+
var _loop = function loop(data, path, callback) {
|
|
20326
20290
|
for (var i = 0; i < data.length; i++) {
|
|
20327
20291
|
if (data[i].path === path) {
|
|
20328
20292
|
return callback(data[i], i, data);
|
|
20329
20293
|
}
|
|
20330
20294
|
if (data[i].children) {
|
|
20331
|
-
|
|
20295
|
+
_loop(data[i].children, path, callback);
|
|
20332
20296
|
}
|
|
20333
20297
|
}
|
|
20334
20298
|
};
|
|
20335
20299
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
20336
|
-
|
|
20300
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
20337
20301
|
arr.splice(index, 1);
|
|
20338
20302
|
dragObj = item;
|
|
20339
20303
|
});
|
|
20340
20304
|
if (!info.dropToGap) {
|
|
20341
20305
|
// Drop on the content
|
|
20342
|
-
|
|
20306
|
+
_loop(data, dropKey, function (item) {
|
|
20343
20307
|
item.children = item.children || [];
|
|
20344
20308
|
item.children.unshift(dragObj);
|
|
20345
20309
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20350,7 +20314,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20350
20314
|
// Is expanded
|
|
20351
20315
|
dropPosition === 1 // On the bottom gap
|
|
20352
20316
|
) {
|
|
20353
|
-
|
|
20317
|
+
_loop(data, dropKey, function (item) {
|
|
20354
20318
|
item.children = item.children || [];
|
|
20355
20319
|
item.children.unshift(dragObj);
|
|
20356
20320
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20358,7 +20322,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20358
20322
|
} else {
|
|
20359
20323
|
var ar;
|
|
20360
20324
|
var i;
|
|
20361
|
-
|
|
20325
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
20362
20326
|
ar = arr;
|
|
20363
20327
|
i = index;
|
|
20364
20328
|
});
|
|
@@ -20397,17 +20361,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20397
20361
|
title: '编辑名称',
|
|
20398
20362
|
callBack: function callBack(newName) {
|
|
20399
20363
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20400
|
-
var
|
|
20364
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
20401
20365
|
oldTreeData.forEach(function (treeItem) {
|
|
20402
20366
|
if (treeItem.path === item.path) {
|
|
20403
20367
|
treeItem.name = newName;
|
|
20404
20368
|
}
|
|
20405
20369
|
if (treeItem.children) {
|
|
20406
|
-
|
|
20370
|
+
_editTreeDataName(treeItem.children);
|
|
20407
20371
|
}
|
|
20408
20372
|
});
|
|
20409
20373
|
};
|
|
20410
|
-
|
|
20374
|
+
_editTreeDataName(oldTreeData);
|
|
20411
20375
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20412
20376
|
_this.setState({
|
|
20413
20377
|
modalInfo: {
|
|
@@ -20452,7 +20416,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20452
20416
|
title: '新增子目录',
|
|
20453
20417
|
callBack: function callBack(newName) {
|
|
20454
20418
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20455
|
-
var
|
|
20419
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
20456
20420
|
oldTreeData.forEach(function (treeItem) {
|
|
20457
20421
|
if (treeItem.path === item.path) {
|
|
20458
20422
|
treeItem.children ? treeItem.children.push({
|
|
@@ -20464,11 +20428,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20464
20428
|
}];
|
|
20465
20429
|
}
|
|
20466
20430
|
if (treeItem.children) {
|
|
20467
|
-
|
|
20431
|
+
_addChildFolder(treeItem.children);
|
|
20468
20432
|
}
|
|
20469
20433
|
});
|
|
20470
20434
|
};
|
|
20471
|
-
|
|
20435
|
+
_addChildFolder(oldTreeData);
|
|
20472
20436
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20473
20437
|
_this.setState({
|
|
20474
20438
|
modalInfo: {
|
|
@@ -20527,7 +20491,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20527
20491
|
var _this$state = this.state,
|
|
20528
20492
|
modalInfo = _this$state.modalInfo,
|
|
20529
20493
|
checkedKeys = _this$state.checkedKeys;
|
|
20530
|
-
var
|
|
20494
|
+
var _loop2 = function loop(data) {
|
|
20531
20495
|
return data.map(function (item) {
|
|
20532
20496
|
if (item.children && item.children.length) {
|
|
20533
20497
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -20544,7 +20508,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20544
20508
|
e.stopPropagation();
|
|
20545
20509
|
}
|
|
20546
20510
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
20547
|
-
},
|
|
20511
|
+
}, _loop2(item.children));
|
|
20548
20512
|
}
|
|
20549
20513
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
20550
20514
|
path: item.path,
|
|
@@ -20623,7 +20587,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20623
20587
|
children: 'children'
|
|
20624
20588
|
},
|
|
20625
20589
|
onDrop: this.onDrop
|
|
20626
|
-
},
|
|
20590
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20627
20591
|
width: 600,
|
|
20628
20592
|
bodyStyle: {
|
|
20629
20593
|
paddingTop: '32px',
|
|
@@ -20736,7 +20700,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20736
20700
|
pathname: item.path
|
|
20737
20701
|
});
|
|
20738
20702
|
};
|
|
20739
|
-
var
|
|
20703
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
20740
20704
|
return menuData.map(function (item) {
|
|
20741
20705
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20742
20706
|
style: {
|
|
@@ -20751,7 +20715,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20751
20715
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20752
20716
|
paddingLeft: '4px'
|
|
20753
20717
|
}
|
|
20754
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20718
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
20755
20719
|
});
|
|
20756
20720
|
};
|
|
20757
20721
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20777,7 +20741,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20777
20741
|
style: {
|
|
20778
20742
|
paddingLeft: '5px'
|
|
20779
20743
|
}
|
|
20780
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
20744
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20781
20745
|
style: {
|
|
20782
20746
|
left: isDrawer ? 140 : 0
|
|
20783
20747
|
},
|
|
@@ -20798,7 +20762,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20798
20762
|
visible: isDrawer
|
|
20799
20763
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20800
20764
|
className: 'menu_title_line'
|
|
20801
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20765
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20802
20766
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20803
20767
|
style: {
|
|
20804
20768
|
fontWeight: '600',
|
|
@@ -20872,7 +20836,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20872
20836
|
return item.path === '/';
|
|
20873
20837
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20874
20838
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20875
|
-
|
|
20839
|
+
_setMenuTreeData(routesData);
|
|
20876
20840
|
routesData.forEach(function (item) {
|
|
20877
20841
|
if (item.children) {
|
|
20878
20842
|
routesDataList.push(item);
|
|
@@ -20902,7 +20866,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20902
20866
|
setHeight(clientHeight - 190);
|
|
20903
20867
|
setDrawHeight(clientHeight - 70);
|
|
20904
20868
|
};
|
|
20905
|
-
var
|
|
20869
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20906
20870
|
if (!child.hideInMenu && child.children) {
|
|
20907
20871
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20908
20872
|
style: {
|
|
@@ -20912,7 +20876,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20912
20876
|
}, formatMessage({
|
|
20913
20877
|
id: "".concat(child.locale)
|
|
20914
20878
|
})), child.children.map(function (menuItem) {
|
|
20915
|
-
return
|
|
20879
|
+
return _renderChildItem(menuItem);
|
|
20916
20880
|
}));
|
|
20917
20881
|
} else if (!child.hideInMenu && child.path) {
|
|
20918
20882
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -21054,7 +21018,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21054
21018
|
onMenuClick(e, item);
|
|
21055
21019
|
}
|
|
21056
21020
|
}, item.name);
|
|
21057
|
-
}))), !!SearhData.length ? (
|
|
21021
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
21058
21022
|
className: 'search_menu_content'
|
|
21059
21023
|
}, SearhData.map(function (item) {
|
|
21060
21024
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -21063,7 +21027,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21063
21027
|
},
|
|
21064
21028
|
key: item.path
|
|
21065
21029
|
}, item.name);
|
|
21066
|
-
}))) : (
|
|
21030
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
21067
21031
|
style: {
|
|
21068
21032
|
height: "".concat(rightMenuHeight, "px"),
|
|
21069
21033
|
overflowY: 'scroll',
|
|
@@ -21075,7 +21039,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21075
21039
|
className: 'drawerWarp_right'
|
|
21076
21040
|
}, homepageData && homepageData.filter(function (d) {
|
|
21077
21041
|
return !d.hideInMenu;
|
|
21078
|
-
}).length > 0 && (
|
|
21042
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
21079
21043
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
21080
21044
|
dataSource: homepageData,
|
|
21081
21045
|
renderItem: function renderItem(child) {
|
|
@@ -21116,7 +21080,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
21116
21080
|
bordered: true,
|
|
21117
21081
|
dataSource: item.children,
|
|
21118
21082
|
renderItem: function renderItem(child) {
|
|
21119
|
-
return
|
|
21083
|
+
return _renderChildItem(child);
|
|
21120
21084
|
}
|
|
21121
21085
|
});
|
|
21122
21086
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -21274,10 +21238,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21274
21238
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
21275
21239
|
var menuKeys = [];
|
|
21276
21240
|
var docsId = [];
|
|
21277
|
-
var
|
|
21241
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
21278
21242
|
data.forEach(function (item) {
|
|
21279
21243
|
if (item.children && item.children.length > 0) {
|
|
21280
|
-
|
|
21244
|
+
_getLimitedMenuKeys(item.children);
|
|
21281
21245
|
} else {
|
|
21282
21246
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
21283
21247
|
menuKeys.push(originPath);
|
|
@@ -21288,7 +21252,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21288
21252
|
});
|
|
21289
21253
|
};
|
|
21290
21254
|
try {
|
|
21291
|
-
|
|
21255
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
21292
21256
|
} catch (e) {}
|
|
21293
21257
|
return {
|
|
21294
21258
|
menuKeys: menuKeys,
|
|
@@ -21522,10 +21486,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21522
21486
|
return (node.path || '').includes('all-general-documents');
|
|
21523
21487
|
};
|
|
21524
21488
|
// 递归获取树列表
|
|
21525
|
-
var
|
|
21489
|
+
var _getTreeList = function getTreeList(data) {
|
|
21526
21490
|
data.forEach(function (node) {
|
|
21527
21491
|
if (node.routes && node.routes.length > 0) {
|
|
21528
|
-
|
|
21492
|
+
_getTreeList(node.routes);
|
|
21529
21493
|
return;
|
|
21530
21494
|
}
|
|
21531
21495
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21556,7 +21520,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21556
21520
|
}
|
|
21557
21521
|
});
|
|
21558
21522
|
};
|
|
21559
|
-
|
|
21523
|
+
_getTreeList(treeData);
|
|
21560
21524
|
return treeList;
|
|
21561
21525
|
};
|
|
21562
21526
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -22185,7 +22149,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22185
22149
|
updateState = _ref8.updateState;
|
|
22186
22150
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
22187
22151
|
className: "tab_title_content"
|
|
22188
|
-
}, item.tab, item.key !== '/' && (
|
|
22152
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
22189
22153
|
info: item,
|
|
22190
22154
|
operateFun: _this3.operateFun,
|
|
22191
22155
|
listenRouterState: listenRouterState
|
|
@@ -22321,7 +22285,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22321
22285
|
};
|
|
22322
22286
|
}
|
|
22323
22287
|
var OperationsSlot = {
|
|
22324
|
-
left: (
|
|
22288
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
22325
22289
|
className: 'tab_left_operate'
|
|
22326
22290
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
22327
22291
|
onClick: function onClick() {
|
|
@@ -22337,7 +22301,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22337
22301
|
_this3.setTabNavTransLate(-100);
|
|
22338
22302
|
}
|
|
22339
22303
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
22340
|
-
right: (
|
|
22304
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
22341
22305
|
style: {
|
|
22342
22306
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
22343
22307
|
},
|
|
@@ -22435,7 +22399,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22435
22399
|
onMouseLeave: function onMouseLeave() {
|
|
22436
22400
|
_this3.setShowMenu(false);
|
|
22437
22401
|
}
|
|
22438
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
22402
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
22439
22403
|
style: {
|
|
22440
22404
|
position: 'absolute',
|
|
22441
22405
|
top: '14px',
|
|
@@ -22454,7 +22418,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22454
22418
|
postMenuData: function postMenuData(menus) {
|
|
22455
22419
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
22456
22420
|
},
|
|
22457
|
-
links: [!this.state.collapse ? (
|
|
22421
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
22458
22422
|
ref: this.allFunc,
|
|
22459
22423
|
itemPath: itemPath,
|
|
22460
22424
|
handleClose: this.handleClose,
|
|
@@ -22472,7 +22436,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22472
22436
|
},
|
|
22473
22437
|
menu: {
|
|
22474
22438
|
request: function () {
|
|
22475
|
-
var _request = _asyncToGenerator(
|
|
22439
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22476
22440
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22477
22441
|
while (1) switch (_context.prev = _context.next) {
|
|
22478
22442
|
case 0:
|
|
@@ -22607,7 +22571,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22607
22571
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22608
22572
|
timeFormat = _this$props4.timeFormat,
|
|
22609
22573
|
transparentProps = _this$props4.transparentProps;
|
|
22610
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
22574
|
+
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({
|
|
22611
22575
|
getDictionarySource: getDictionarySource,
|
|
22612
22576
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22613
22577
|
timeFormat: timeFormat
|
|
@@ -22631,12 +22595,12 @@ var index$5 = (function (props) {
|
|
|
22631
22595
|
});
|
|
22632
22596
|
|
|
22633
22597
|
// @ts-nocheck
|
|
22634
|
-
var
|
|
22598
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
22635
22599
|
var result = [];
|
|
22636
22600
|
columns.forEach(function (column) {
|
|
22637
22601
|
if (column.children) {
|
|
22638
22602
|
result.push(column);
|
|
22639
|
-
result.push.apply(result,
|
|
22603
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
22640
22604
|
} else {
|
|
22641
22605
|
result.push(column);
|
|
22642
22606
|
}
|
|
@@ -22645,7 +22609,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
22645
22609
|
};
|
|
22646
22610
|
var convertToRows = function convertToRows(originColumns) {
|
|
22647
22611
|
var maxLevel = 1;
|
|
22648
|
-
var
|
|
22612
|
+
var _traverse = function traverse(column, parent) {
|
|
22649
22613
|
if (parent) {
|
|
22650
22614
|
column.level = parent.level + 1;
|
|
22651
22615
|
if (maxLevel < column.level) {
|
|
@@ -22655,7 +22619,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22655
22619
|
if (column.children) {
|
|
22656
22620
|
var colSpan = 0;
|
|
22657
22621
|
column.children.forEach(function (subColumn) {
|
|
22658
|
-
|
|
22622
|
+
_traverse(subColumn, column);
|
|
22659
22623
|
colSpan += subColumn.colSpan;
|
|
22660
22624
|
});
|
|
22661
22625
|
column.colSpan = colSpan;
|
|
@@ -22665,13 +22629,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22665
22629
|
};
|
|
22666
22630
|
originColumns.forEach(function (column) {
|
|
22667
22631
|
column.level = 1;
|
|
22668
|
-
|
|
22632
|
+
_traverse(column);
|
|
22669
22633
|
});
|
|
22670
22634
|
var rows = [];
|
|
22671
22635
|
for (var i = 0; i < maxLevel; i++) {
|
|
22672
22636
|
rows.push([]);
|
|
22673
22637
|
}
|
|
22674
|
-
var allColumns =
|
|
22638
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22675
22639
|
allColumns.forEach(function (column) {
|
|
22676
22640
|
if (!column.children) {
|
|
22677
22641
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22711,7 +22675,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22711
22675
|
};
|
|
22712
22676
|
var headersToRows = function headersToRows(originColumns) {
|
|
22713
22677
|
var maxLevel = 1;
|
|
22714
|
-
var
|
|
22678
|
+
var _traverse2 = function traverse(column, parent) {
|
|
22715
22679
|
if (parent) {
|
|
22716
22680
|
//计算当前元素属于第几个层级
|
|
22717
22681
|
column.level = parent.level + 1;
|
|
@@ -22724,7 +22688,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22724
22688
|
var colSpan = 0;
|
|
22725
22689
|
column.children.forEach(function (subColumn) {
|
|
22726
22690
|
//进行递归
|
|
22727
|
-
|
|
22691
|
+
_traverse2(subColumn, column);
|
|
22728
22692
|
colSpan += subColumn.colSpan;
|
|
22729
22693
|
});
|
|
22730
22694
|
column.colSpan = colSpan;
|
|
@@ -22734,14 +22698,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22734
22698
|
};
|
|
22735
22699
|
originColumns.forEach(function (column) {
|
|
22736
22700
|
column.level = 1;
|
|
22737
|
-
|
|
22701
|
+
_traverse2(column);
|
|
22738
22702
|
});
|
|
22739
22703
|
var rows = [];
|
|
22740
22704
|
var lastData = [];
|
|
22741
22705
|
for (var i = 0; i < maxLevel; i++) {
|
|
22742
22706
|
rows.push([]);
|
|
22743
22707
|
}
|
|
22744
|
-
var allColumns =
|
|
22708
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22745
22709
|
allColumns.forEach(function (column) {
|
|
22746
22710
|
if (!column.children) {
|
|
22747
22711
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28758,7 +28722,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28758
28722
|
}
|
|
28759
28723
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28760
28724
|
};
|
|
28761
|
-
var
|
|
28725
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
28762
28726
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28763
28727
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28764
28728
|
var children = hightLightData.children,
|
|
@@ -28769,7 +28733,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28769
28733
|
lineEnd = _loc2[2];
|
|
28770
28734
|
if (children) {
|
|
28771
28735
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28772
|
-
return
|
|
28736
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
28773
28737
|
});
|
|
28774
28738
|
}
|
|
28775
28739
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28781,7 +28745,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28781
28745
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28782
28746
|
data.forEach(function (node) {
|
|
28783
28747
|
if (!node) return;
|
|
28784
|
-
node.toggled =
|
|
28748
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
28785
28749
|
node.active = isHightLight(node, highLightLine);
|
|
28786
28750
|
if (node.children) {
|
|
28787
28751
|
if (node.active) {
|
|
@@ -30212,7 +30176,7 @@ var valueType = {
|
|
|
30212
30176
|
};
|
|
30213
30177
|
|
|
30214
30178
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30215
|
-
var _ref = _asyncToGenerator(
|
|
30179
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30216
30180
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30217
30181
|
while (1) switch (_context.prev = _context.next) {
|
|
30218
30182
|
case 0:
|
|
@@ -30280,7 +30244,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30280
30244
|
value: false
|
|
30281
30245
|
}];
|
|
30282
30246
|
var ref = useRef();
|
|
30283
|
-
useMount(
|
|
30247
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30284
30248
|
var _ref$current, source;
|
|
30285
30249
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30286
30250
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30394,7 +30358,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30394
30358
|
source: {
|
|
30395
30359
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30396
30360
|
type: function () {
|
|
30397
|
-
var _type = _asyncToGenerator(
|
|
30361
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30398
30362
|
var form, values, name, relates, source;
|
|
30399
30363
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30400
30364
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30874,7 +30838,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30874
30838
|
source: {
|
|
30875
30839
|
relates: ['choiceType', 'inputType'],
|
|
30876
30840
|
type: function () {
|
|
30877
|
-
var _type2 = _asyncToGenerator(
|
|
30841
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30878
30842
|
var values, name, form, source;
|
|
30879
30843
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30880
30844
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -31096,7 +31060,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31096
31060
|
width: 900,
|
|
31097
31061
|
maskClosable: false,
|
|
31098
31062
|
onOk: function () {
|
|
31099
|
-
var _onOk = _asyncToGenerator(
|
|
31063
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31100
31064
|
var _ref$current4, _res$editableStatus;
|
|
31101
31065
|
var res, _res$defaultValue;
|
|
31102
31066
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -31168,7 +31132,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31168
31132
|
}()
|
|
31169
31133
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
31170
31134
|
ref: ref
|
|
31171
|
-
})), maintainOptionsModal.visible && (
|
|
31135
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31172
31136
|
};
|
|
31173
31137
|
|
|
31174
31138
|
// @ts-nocheck
|
|
@@ -31782,7 +31746,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31782
31746
|
return setVisible(false);
|
|
31783
31747
|
},
|
|
31784
31748
|
className: 'customFieldsDrawer'
|
|
31785
|
-
}, detailTablesSetting.length == 0 && (
|
|
31749
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31786
31750
|
style: {
|
|
31787
31751
|
display: 'flex'
|
|
31788
31752
|
}
|
|
@@ -31791,13 +31755,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31791
31755
|
flex: 1,
|
|
31792
31756
|
width: 500
|
|
31793
31757
|
}
|
|
31794
|
-
}, isEmpty(moduleParams) ? (
|
|
31758
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31795
31759
|
style: {
|
|
31796
31760
|
padding: "10px 0",
|
|
31797
31761
|
fontSize: "16px",
|
|
31798
31762
|
fontWeight: "bolder"
|
|
31799
31763
|
}
|
|
31800
|
-
}, "\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")) : (
|
|
31764
|
+
}, "\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", {
|
|
31801
31765
|
style: {
|
|
31802
31766
|
flex: 1
|
|
31803
31767
|
}
|
|
@@ -31806,7 +31770,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31806
31770
|
onRun: onClickRun,
|
|
31807
31771
|
value: jsonEditorVal,
|
|
31808
31772
|
shallowHeight: height
|
|
31809
|
-
})))), detailTablesSetting.length > 0 && (
|
|
31773
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31810
31774
|
defaultActiveKey: activeKey,
|
|
31811
31775
|
onChange: function onChange(v) {
|
|
31812
31776
|
return setActiveKey(v);
|
|
@@ -31823,13 +31787,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31823
31787
|
flex: 1,
|
|
31824
31788
|
width: 500
|
|
31825
31789
|
}
|
|
31826
|
-
}, isEmpty(moduleParams) ? (
|
|
31790
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31827
31791
|
style: {
|
|
31828
31792
|
padding: "10px 0",
|
|
31829
31793
|
fontSize: "16px",
|
|
31830
31794
|
fontWeight: "bolder"
|
|
31831
31795
|
}
|
|
31832
|
-
}, "\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")) : (
|
|
31796
|
+
}, "\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", {
|
|
31833
31797
|
style: {
|
|
31834
31798
|
flex: 1
|
|
31835
31799
|
}
|
|
@@ -31851,13 +31815,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31851
31815
|
flex: 1,
|
|
31852
31816
|
width: 500
|
|
31853
31817
|
}
|
|
31854
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
31818
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31855
31819
|
style: {
|
|
31856
31820
|
padding: "10px 0",
|
|
31857
31821
|
fontSize: "16px",
|
|
31858
31822
|
fontWeight: "bolder"
|
|
31859
31823
|
}
|
|
31860
|
-
}, "\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")) : (
|
|
31824
|
+
}, "\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", {
|
|
31861
31825
|
style: {
|
|
31862
31826
|
flex: 1
|
|
31863
31827
|
}
|
|
@@ -32003,7 +31967,7 @@ function getMetaData(_x) {
|
|
|
32003
31967
|
|
|
32004
31968
|
// 获取数据
|
|
32005
31969
|
function _getMetaData() {
|
|
32006
|
-
_getMetaData = _asyncToGenerator(
|
|
31970
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
32007
31971
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32008
31972
|
while (1) switch (_context.prev = _context.next) {
|
|
32009
31973
|
case 0:
|
|
@@ -32225,7 +32189,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32225
32189
|
tableState = _useState4[0],
|
|
32226
32190
|
setTableState = _useState4[1];
|
|
32227
32191
|
var handleOpen = /*#__PURE__*/function () {
|
|
32228
|
-
var _ref = _asyncToGenerator(
|
|
32192
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32229
32193
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32230
32194
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32231
32195
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32544,7 +32508,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32544
32508
|
destroyOnClose: true
|
|
32545
32509
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
32546
32510
|
ref: queryTableRef
|
|
32547
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
32511
|
+
}, 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, {
|
|
32548
32512
|
justify: "center",
|
|
32549
32513
|
style: {
|
|
32550
32514
|
marginBottom: 30,
|
|
@@ -32660,7 +32624,7 @@ var CustomSelector = (function (props) {
|
|
|
32660
32624
|
var _props$ctx7;
|
|
32661
32625
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32662
32626
|
}
|
|
32663
|
-
})), showType === 'modalTable' && (
|
|
32627
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32664
32628
|
type: "primary",
|
|
32665
32629
|
style: {
|
|
32666
32630
|
width: '30px',
|
|
@@ -32746,7 +32710,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32746
32710
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32747
32711
|
handSource = _useState2[0],
|
|
32748
32712
|
setHandSource = _useState2[1];
|
|
32749
|
-
useEffect(
|
|
32713
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32750
32714
|
var resData, data;
|
|
32751
32715
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32752
32716
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32898,7 +32862,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32898
32862
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32899
32863
|
}
|
|
32900
32864
|
function _getRegularThresholdRange() {
|
|
32901
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
32865
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32902
32866
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32903
32867
|
while (1) switch (_context.prev = _context.next) {
|
|
32904
32868
|
case 0:
|
|
@@ -33052,7 +33016,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33052
33016
|
};
|
|
33053
33017
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
33054
33018
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
33055
|
-
var _ref = _asyncToGenerator(
|
|
33019
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33056
33020
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
33057
33021
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
33058
33022
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -34009,7 +33973,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34009
33973
|
isAll: true,
|
|
34010
33974
|
needNameAndCode: true,
|
|
34011
33975
|
notChangeOnSelect: true,
|
|
34012
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33976
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34013
33977
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
34014
33978
|
while (1) switch (_context2.prev = _context2.next) {
|
|
34015
33979
|
case 0:
|
|
@@ -34058,7 +34022,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34058
34022
|
isAll: true,
|
|
34059
34023
|
needNameAndCode: true,
|
|
34060
34024
|
notChangeOnSelect: true,
|
|
34061
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
34025
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
34062
34026
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
34063
34027
|
while (1) switch (_context3.prev = _context3.next) {
|
|
34064
34028
|
case 0:
|
|
@@ -34109,7 +34073,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34109
34073
|
isAll: true,
|
|
34110
34074
|
needNameAndCode: true,
|
|
34111
34075
|
notChangeOnSelect: true,
|
|
34112
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
34076
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
34113
34077
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
34114
34078
|
while (1) switch (_context4.prev = _context4.next) {
|
|
34115
34079
|
case 0:
|
|
@@ -36087,7 +36051,7 @@ var App$1 = function App(_ref) {
|
|
|
36087
36051
|
borderRadius: '5px',
|
|
36088
36052
|
cursor: 'pointer'
|
|
36089
36053
|
}
|
|
36090
|
-
}, isStaticNumber ? (
|
|
36054
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
36091
36055
|
autoFocus: true,
|
|
36092
36056
|
onClick: function onClick(e) {
|
|
36093
36057
|
return e.stopPropagation();
|
|
@@ -36374,7 +36338,7 @@ function RenderCompItem(props) {
|
|
|
36374
36338
|
dictData = _useState2[0],
|
|
36375
36339
|
setDictData = _useState2[1];
|
|
36376
36340
|
var getDictData = /*#__PURE__*/function () {
|
|
36377
|
-
var _ref = _asyncToGenerator(
|
|
36341
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36378
36342
|
var _data$map;
|
|
36379
36343
|
var data;
|
|
36380
36344
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -36416,7 +36380,7 @@ function RenderCompItem(props) {
|
|
|
36416
36380
|
var style2 = {
|
|
36417
36381
|
width: '100px'
|
|
36418
36382
|
};
|
|
36419
|
-
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 && (
|
|
36383
|
+
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, {
|
|
36420
36384
|
disabled: disabled,
|
|
36421
36385
|
allowClear: true,
|
|
36422
36386
|
onClear: function onClear() {
|
|
@@ -36427,7 +36391,7 @@ function RenderCompItem(props) {
|
|
|
36427
36391
|
onBlur: function onBlur(e) {
|
|
36428
36392
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
36429
36393
|
}
|
|
36430
|
-
})) || 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) && (
|
|
36394
|
+
})) || 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, {
|
|
36431
36395
|
disabled: disabled,
|
|
36432
36396
|
// max={Number.MAX_SAFE_INTEGER}
|
|
36433
36397
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -36440,7 +36404,7 @@ function RenderCompItem(props) {
|
|
|
36440
36404
|
onChange: function onChange(value) {
|
|
36441
36405
|
handleEdit(ites.code, value);
|
|
36442
36406
|
}
|
|
36443
|
-
})) || 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) && (
|
|
36407
|
+
})) || 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, {
|
|
36444
36408
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
36445
36409
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
36446
36410
|
disabled: disabled,
|
|
@@ -36450,7 +36414,7 @@ function RenderCompItem(props) {
|
|
|
36450
36414
|
onChange: function onChange(value, dateString) {
|
|
36451
36415
|
handleEdit(ites.code, dateString);
|
|
36452
36416
|
}
|
|
36453
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
36417
|
+
})) || 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, {
|
|
36454
36418
|
showTime: true,
|
|
36455
36419
|
disabled: disabled,
|
|
36456
36420
|
defaultValue: ites.defaultValue,
|
|
@@ -36459,7 +36423,7 @@ function RenderCompItem(props) {
|
|
|
36459
36423
|
onChange: function onChange(value, timeString) {
|
|
36460
36424
|
handleEdit(ites.code, timeString);
|
|
36461
36425
|
}
|
|
36462
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
36426
|
+
})) || 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, {
|
|
36463
36427
|
disabled: disabled,
|
|
36464
36428
|
defaultChecked: !!ites.defaultValue,
|
|
36465
36429
|
style: style2,
|
|
@@ -36467,7 +36431,7 @@ function RenderCompItem(props) {
|
|
|
36467
36431
|
onChange: function onChange(value) {
|
|
36468
36432
|
handleEdit(ites.code, value);
|
|
36469
36433
|
}
|
|
36470
|
-
})) || 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 && (
|
|
36434
|
+
})) || 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({
|
|
36471
36435
|
disabled: disabled,
|
|
36472
36436
|
allowClear: true,
|
|
36473
36437
|
showArrow: true
|
|
@@ -36485,7 +36449,7 @@ function RenderCompItem(props) {
|
|
|
36485
36449
|
key: it,
|
|
36486
36450
|
value: it
|
|
36487
36451
|
}, ites.enumeration[it]);
|
|
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) === 20 && (
|
|
36452
|
+
}))) || 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, {
|
|
36489
36453
|
disabled: disabled,
|
|
36490
36454
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
36491
36455
|
defaultValue: ites.defaultValue,
|
|
@@ -36495,7 +36459,7 @@ function RenderCompItem(props) {
|
|
|
36495
36459
|
handleEdit(ites.code, value);
|
|
36496
36460
|
},
|
|
36497
36461
|
dictionaryCode: ites.dictionaryCode
|
|
36498
|
-
})) || 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 && (
|
|
36462
|
+
})) || 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, {
|
|
36499
36463
|
selectBusinessType: "physicalWarehouse",
|
|
36500
36464
|
selectProps: _objectSpread2({
|
|
36501
36465
|
style: styleCommon,
|
|
@@ -36517,7 +36481,7 @@ function RenderCompItem(props) {
|
|
|
36517
36481
|
getPopupContainer: function getPopupContainer() {
|
|
36518
36482
|
return document.body;
|
|
36519
36483
|
}
|
|
36520
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (
|
|
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) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36521
36485
|
selectBusinessType: "realWarehouse",
|
|
36522
36486
|
selectProps: _objectSpread2({
|
|
36523
36487
|
style: styleCommon,
|
|
@@ -36539,7 +36503,7 @@ function RenderCompItem(props) {
|
|
|
36539
36503
|
getPopupContainer: function getPopupContainer() {
|
|
36540
36504
|
return document.body;
|
|
36541
36505
|
}
|
|
36542
|
-
})) || 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 && (
|
|
36506
|
+
})) || 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, {
|
|
36543
36507
|
selectBusinessType: "virtualWarehouse",
|
|
36544
36508
|
selectProps: _objectSpread2({
|
|
36545
36509
|
style: styleCommon,
|
|
@@ -36561,7 +36525,7 @@ function RenderCompItem(props) {
|
|
|
36561
36525
|
getPopupContainer: function getPopupContainer() {
|
|
36562
36526
|
return document.body;
|
|
36563
36527
|
}
|
|
36564
|
-
})) || 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 && (
|
|
36528
|
+
})) || 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, {
|
|
36565
36529
|
selectBusinessType: "channelWarehouse",
|
|
36566
36530
|
selectProps: _objectSpread2({
|
|
36567
36531
|
style: styleCommon,
|
|
@@ -36583,7 +36547,7 @@ function RenderCompItem(props) {
|
|
|
36583
36547
|
getPopupContainer: function getPopupContainer() {
|
|
36584
36548
|
return document.body;
|
|
36585
36549
|
}
|
|
36586
|
-
})) || 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 && (
|
|
36550
|
+
})) || 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, {
|
|
36587
36551
|
selectBusinessType: "spuCommodity",
|
|
36588
36552
|
selectProps: _objectSpread2({
|
|
36589
36553
|
style: styleCommon,
|
|
@@ -36604,7 +36568,7 @@ function RenderCompItem(props) {
|
|
|
36604
36568
|
getPopupContainer: function getPopupContainer() {
|
|
36605
36569
|
return document.body;
|
|
36606
36570
|
}
|
|
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) === 160 && (
|
|
36571
|
+
})) || 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, {
|
|
36608
36572
|
selectBusinessType: "skuCommodity",
|
|
36609
36573
|
selectProps: _objectSpread2({
|
|
36610
36574
|
style: styleCommon,
|
|
@@ -36625,13 +36589,13 @@ function RenderCompItem(props) {
|
|
|
36625
36589
|
getPopupContainer: function getPopupContainer() {
|
|
36626
36590
|
return document.body;
|
|
36627
36591
|
}
|
|
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) === 190 && (
|
|
36592
|
+
})) || 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, {
|
|
36629
36593
|
disabled: disabled,
|
|
36630
36594
|
isAll: true,
|
|
36631
36595
|
needNameAndCode: true,
|
|
36632
36596
|
notChangeOnSelect: true,
|
|
36633
36597
|
initRequestSource: function () {
|
|
36634
|
-
var _initRequestSource = _asyncToGenerator(
|
|
36598
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36635
36599
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36636
36600
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36637
36601
|
case 0:
|
|
@@ -36673,7 +36637,7 @@ function RenderCompItem(props) {
|
|
|
36673
36637
|
getPopupContainer: function getPopupContainer() {
|
|
36674
36638
|
return document.body;
|
|
36675
36639
|
}
|
|
36676
|
-
})) || 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 && (
|
|
36640
|
+
})) || 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, {
|
|
36677
36641
|
disabled: disabled,
|
|
36678
36642
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36679
36643
|
businessType: "department",
|
|
@@ -36686,7 +36650,7 @@ function RenderCompItem(props) {
|
|
|
36686
36650
|
getPopupContainer: function getPopupContainer() {
|
|
36687
36651
|
return document.body;
|
|
36688
36652
|
}
|
|
36689
|
-
})) || 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 && (
|
|
36653
|
+
})) || 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, {
|
|
36690
36654
|
disabled: disabled,
|
|
36691
36655
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36692
36656
|
businessType: "purchase-organization",
|
|
@@ -36699,7 +36663,7 @@ function RenderCompItem(props) {
|
|
|
36699
36663
|
getPopupContainer: function getPopupContainer() {
|
|
36700
36664
|
return document.body;
|
|
36701
36665
|
}
|
|
36702
|
-
})) || 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 && (
|
|
36666
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36703
36667
|
disabled: disabled,
|
|
36704
36668
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36705
36669
|
businessType: "sales-organization",
|
|
@@ -36712,7 +36676,7 @@ function RenderCompItem(props) {
|
|
|
36712
36676
|
getPopupContainer: function getPopupContainer() {
|
|
36713
36677
|
return document.body;
|
|
36714
36678
|
}
|
|
36715
|
-
})) || 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 && (
|
|
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) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36716
36680
|
selectBusinessType: "supplier2",
|
|
36717
36681
|
selectProps: _objectSpread2({
|
|
36718
36682
|
style: styleCommon,
|
|
@@ -36733,7 +36697,7 @@ function RenderCompItem(props) {
|
|
|
36733
36697
|
getPopupContainer: function getPopupContainer() {
|
|
36734
36698
|
return document.body;
|
|
36735
36699
|
}
|
|
36736
|
-
})) || 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 && (
|
|
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) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36737
36701
|
selectBusinessType: "customer2",
|
|
36738
36702
|
selectProps: _objectSpread2({
|
|
36739
36703
|
style: styleCommon,
|
|
@@ -36754,7 +36718,7 @@ function RenderCompItem(props) {
|
|
|
36754
36718
|
getPopupContainer: function getPopupContainer() {
|
|
36755
36719
|
return document.body;
|
|
36756
36720
|
}
|
|
36757
|
-
})) || 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 && (
|
|
36721
|
+
})) || 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, {
|
|
36758
36722
|
selectBusinessType: "shopFile2",
|
|
36759
36723
|
selectProps: _objectSpread2({
|
|
36760
36724
|
style: styleCommon,
|
|
@@ -36775,7 +36739,7 @@ function RenderCompItem(props) {
|
|
|
36775
36739
|
getPopupContainer: function getPopupContainer() {
|
|
36776
36740
|
return document.body;
|
|
36777
36741
|
}
|
|
36778
|
-
})) || 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 && (
|
|
36742
|
+
})) || 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, {
|
|
36779
36743
|
selectBusinessType: "employee2",
|
|
36780
36744
|
selectProps: _objectSpread2({
|
|
36781
36745
|
style: styleCommon,
|
|
@@ -36796,7 +36760,7 @@ function RenderCompItem(props) {
|
|
|
36796
36760
|
getPopupContainer: function getPopupContainer() {
|
|
36797
36761
|
return document.body;
|
|
36798
36762
|
}
|
|
36799
|
-
})) || 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 && (
|
|
36763
|
+
})) || 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, {
|
|
36800
36764
|
disabled: disabled,
|
|
36801
36765
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36802
36766
|
businessType: "stock-organization",
|
|
@@ -36809,7 +36773,7 @@ function RenderCompItem(props) {
|
|
|
36809
36773
|
getPopupContainer: function getPopupContainer() {
|
|
36810
36774
|
return document.body;
|
|
36811
36775
|
}
|
|
36812
|
-
})) || 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 && (
|
|
36776
|
+
})) || 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, {
|
|
36813
36777
|
disabled: disabled,
|
|
36814
36778
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36815
36779
|
businessType: "settle-organization",
|
|
@@ -36822,7 +36786,7 @@ function RenderCompItem(props) {
|
|
|
36822
36786
|
getPopupContainer: function getPopupContainer() {
|
|
36823
36787
|
return document.body;
|
|
36824
36788
|
}
|
|
36825
|
-
})) || 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 && (
|
|
36789
|
+
})) || 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, {
|
|
36826
36790
|
selectBusinessType: "deliveryMode",
|
|
36827
36791
|
selectProps: _objectSpread2({
|
|
36828
36792
|
style: styleCommon,
|
|
@@ -36843,7 +36807,7 @@ function RenderCompItem(props) {
|
|
|
36843
36807
|
getPopupContainer: function getPopupContainer() {
|
|
36844
36808
|
return document.body;
|
|
36845
36809
|
}
|
|
36846
|
-
})) || 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 && (
|
|
36810
|
+
})) || 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, {
|
|
36847
36811
|
selectBusinessType: "role",
|
|
36848
36812
|
selectProps: _objectSpread2({
|
|
36849
36813
|
style: styleCommon,
|
|
@@ -36864,7 +36828,7 @@ function RenderCompItem(props) {
|
|
|
36864
36828
|
getPopupContainer: function getPopupContainer() {
|
|
36865
36829
|
return document.body;
|
|
36866
36830
|
}
|
|
36867
|
-
})) || 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 && (
|
|
36831
|
+
})) || 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, {
|
|
36868
36832
|
selectBusinessType: "brand",
|
|
36869
36833
|
selectProps: _objectSpread2({
|
|
36870
36834
|
style: styleCommon,
|
|
@@ -36885,7 +36849,7 @@ function RenderCompItem(props) {
|
|
|
36885
36849
|
getPopupContainer: function getPopupContainer() {
|
|
36886
36850
|
return document.body;
|
|
36887
36851
|
}
|
|
36888
|
-
})) || 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 && (
|
|
36852
|
+
})) || 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, {
|
|
36889
36853
|
disabled: disabled,
|
|
36890
36854
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36891
36855
|
businessType: "background-category",
|
|
@@ -36898,7 +36862,7 @@ function RenderCompItem(props) {
|
|
|
36898
36862
|
getPopupContainer: function getPopupContainer() {
|
|
36899
36863
|
return document.body;
|
|
36900
36864
|
}
|
|
36901
|
-
})) || 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 && (
|
|
36865
|
+
})) || 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, {
|
|
36902
36866
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36903
36867
|
style: styleCommon,
|
|
36904
36868
|
placeholder: '请选择'
|
|
@@ -36921,7 +36885,7 @@ function RenderCompItem(props) {
|
|
|
36921
36885
|
onChange: function onChange(value) {
|
|
36922
36886
|
handleEdit(ites.code, value);
|
|
36923
36887
|
}
|
|
36924
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
36888
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36925
36889
|
style: {
|
|
36926
36890
|
display: 'flex'
|
|
36927
36891
|
}
|
|
@@ -37434,7 +37398,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37434
37398
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
37435
37399
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
37436
37400
|
}
|
|
37437
|
-
var parallelTreeData =
|
|
37401
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
37438
37402
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
37439
37403
|
var _i$key;
|
|
37440
37404
|
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);
|
|
@@ -38403,13 +38367,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
38403
38367
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
38404
38368
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
38405
38369
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
38406
|
-
var list =
|
|
38370
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
38407
38371
|
var requiredList = list.filter(function (c) {
|
|
38408
38372
|
return c.required == 1;
|
|
38409
38373
|
}) || []; // 获取对象属性为true的集合
|
|
38410
38374
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
38411
38375
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
38412
|
-
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) ?
|
|
38376
|
+
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];
|
|
38413
38377
|
(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) {
|
|
38414
38378
|
if (requiredList.some(function (r) {
|
|
38415
38379
|
return r.id === e.elementId;
|
|
@@ -38998,7 +38962,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38998
38962
|
style: {
|
|
38999
38963
|
float: 'right'
|
|
39000
38964
|
}
|
|
39001
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
38965
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
39002
38966
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
39003
38967
|
ruleGroupInfo: {
|
|
39004
38968
|
ruleGroupList: ruleGroupList,
|
|
@@ -39016,7 +38980,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
39016
38980
|
callBack: function callBack(newData) {
|
|
39017
38981
|
upDateData(newData);
|
|
39018
38982
|
}
|
|
39019
|
-
}))) : (
|
|
38983
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
39020
38984
|
style: {
|
|
39021
38985
|
padding: 20
|
|
39022
38986
|
}
|
|
@@ -39391,4 +39355,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
39391
39355
|
}, children));
|
|
39392
39356
|
};
|
|
39393
39357
|
|
|
39394
|
-
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 };
|
|
39358
|
+
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 };
|