@bit-sun/business-component 4.0.13-alpha.31 → 4.0.13-alpha.33
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,88 +32,9 @@ 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
|
-
}
|
|
75
35
|
function _callSuper(t, o, e) {
|
|
76
36
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
77
37
|
}
|
|
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
|
-
}
|
|
117
38
|
function _isNativeReflectConstruct() {
|
|
118
39
|
try {
|
|
119
40
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -122,9 +43,6 @@ function _isNativeReflectConstruct() {
|
|
|
122
43
|
return !!t;
|
|
123
44
|
})();
|
|
124
45
|
}
|
|
125
|
-
function _iterableToArray(r) {
|
|
126
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
127
|
-
}
|
|
128
46
|
function _iterableToArrayLimit(r, l) {
|
|
129
47
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
130
48
|
if (null != t) {
|
|
@@ -152,15 +70,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
152
70
|
return a;
|
|
153
71
|
}
|
|
154
72
|
}
|
|
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
|
-
}
|
|
164
73
|
function ownKeys(e, r) {
|
|
165
74
|
var t = Object.keys(e);
|
|
166
75
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -182,31 +91,6 @@ function _objectSpread2(e) {
|
|
|
182
91
|
}
|
|
183
92
|
return e;
|
|
184
93
|
}
|
|
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
|
-
}
|
|
210
94
|
function _regeneratorRuntime() {
|
|
211
95
|
_regeneratorRuntime = function () {
|
|
212
96
|
return e;
|
|
@@ -508,20 +392,6 @@ function _regeneratorRuntime() {
|
|
|
508
392
|
}
|
|
509
393
|
}, e;
|
|
510
394
|
}
|
|
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
|
-
}
|
|
525
395
|
function _toPrimitive(t, r) {
|
|
526
396
|
if ("object" != typeof t || !t) return t;
|
|
527
397
|
var e = t[Symbol.toPrimitive];
|
|
@@ -545,13 +415,181 @@ function _typeof(o) {
|
|
|
545
415
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
546
416
|
}, _typeof(o);
|
|
547
417
|
}
|
|
548
|
-
function
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
var
|
|
552
|
-
|
|
418
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
419
|
+
try {
|
|
420
|
+
var info = gen[key](arg);
|
|
421
|
+
var value = info.value;
|
|
422
|
+
} catch (error) {
|
|
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);
|
|
553
460
|
}
|
|
554
461
|
}
|
|
462
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
463
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
464
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
465
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
466
|
+
writable: false
|
|
467
|
+
});
|
|
468
|
+
return Constructor;
|
|
469
|
+
}
|
|
470
|
+
function _defineProperty(obj, key, value) {
|
|
471
|
+
key = _toPropertyKey(key);
|
|
472
|
+
if (key in obj) {
|
|
473
|
+
Object.defineProperty(obj, key, {
|
|
474
|
+
value: value,
|
|
475
|
+
enumerable: true,
|
|
476
|
+
configurable: true,
|
|
477
|
+
writable: true
|
|
478
|
+
});
|
|
479
|
+
} else {
|
|
480
|
+
obj[key] = value;
|
|
481
|
+
}
|
|
482
|
+
return obj;
|
|
483
|
+
}
|
|
484
|
+
function _inherits(subClass, superClass) {
|
|
485
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
486
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
487
|
+
}
|
|
488
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
489
|
+
constructor: {
|
|
490
|
+
value: subClass,
|
|
491
|
+
writable: true,
|
|
492
|
+
configurable: true
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
Object.defineProperty(subClass, "prototype", {
|
|
496
|
+
writable: false
|
|
497
|
+
});
|
|
498
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
499
|
+
}
|
|
500
|
+
function _getPrototypeOf(o) {
|
|
501
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
502
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
503
|
+
};
|
|
504
|
+
return _getPrototypeOf(o);
|
|
505
|
+
}
|
|
506
|
+
function _setPrototypeOf(o, p) {
|
|
507
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
508
|
+
o.__proto__ = p;
|
|
509
|
+
return o;
|
|
510
|
+
};
|
|
511
|
+
return _setPrototypeOf(o, p);
|
|
512
|
+
}
|
|
513
|
+
function _objectDestructuringEmpty(obj) {
|
|
514
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
515
|
+
}
|
|
516
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
517
|
+
if (source == null) return {};
|
|
518
|
+
var target = {};
|
|
519
|
+
for (var key in source) {
|
|
520
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
521
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
522
|
+
target[key] = source[key];
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return target;
|
|
526
|
+
}
|
|
527
|
+
function _objectWithoutProperties(source, excluded) {
|
|
528
|
+
if (source == null) return {};
|
|
529
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
530
|
+
var key, i;
|
|
531
|
+
if (Object.getOwnPropertySymbols) {
|
|
532
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
533
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
534
|
+
key = sourceSymbolKeys[i];
|
|
535
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
536
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
537
|
+
target[key] = source[key];
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
return target;
|
|
541
|
+
}
|
|
542
|
+
function _assertThisInitialized(self) {
|
|
543
|
+
if (self === void 0) {
|
|
544
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
545
|
+
}
|
|
546
|
+
return self;
|
|
547
|
+
}
|
|
548
|
+
function _possibleConstructorReturn(self, call) {
|
|
549
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
550
|
+
return call;
|
|
551
|
+
} else if (call !== void 0) {
|
|
552
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
553
|
+
}
|
|
554
|
+
return _assertThisInitialized(self);
|
|
555
|
+
}
|
|
556
|
+
function _slicedToArray(arr, i) {
|
|
557
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
558
|
+
}
|
|
559
|
+
function _toArray(arr) {
|
|
560
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
561
|
+
}
|
|
562
|
+
function _toConsumableArray(arr) {
|
|
563
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
564
|
+
}
|
|
565
|
+
function _arrayWithoutHoles(arr) {
|
|
566
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
567
|
+
}
|
|
568
|
+
function _arrayWithHoles(arr) {
|
|
569
|
+
if (Array.isArray(arr)) return arr;
|
|
570
|
+
}
|
|
571
|
+
function _iterableToArray(iter) {
|
|
572
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
573
|
+
}
|
|
574
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
575
|
+
if (!o) return;
|
|
576
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
577
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
578
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
579
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
580
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
581
|
+
}
|
|
582
|
+
function _arrayLikeToArray(arr, len) {
|
|
583
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
584
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
585
|
+
return arr2;
|
|
586
|
+
}
|
|
587
|
+
function _nonIterableSpread() {
|
|
588
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
589
|
+
}
|
|
590
|
+
function _nonIterableRest() {
|
|
591
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
592
|
+
}
|
|
555
593
|
|
|
556
594
|
var ENUM = {
|
|
557
595
|
// 浏览器缓存信息
|
|
@@ -1060,13 +1098,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1060
1098
|
imgHtml.innerHTML = str;
|
|
1061
1099
|
}
|
|
1062
1100
|
// 测试使用 测试类型缩小 end
|
|
1063
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1101
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1064
1102
|
className: "clomnsImg"
|
|
1065
1103
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1066
1104
|
src: url,
|
|
1067
1105
|
width: "16px",
|
|
1068
1106
|
height: "16px"
|
|
1069
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1107
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1070
1108
|
className: "clomnsImg2"
|
|
1071
1109
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1072
1110
|
src: noImg
|
|
@@ -1203,7 +1241,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1203
1241
|
}
|
|
1204
1242
|
save_link.click();
|
|
1205
1243
|
}
|
|
1206
|
-
var
|
|
1244
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1207
1245
|
return data.map(function (item) {
|
|
1208
1246
|
if (!item.name || !item.path) {
|
|
1209
1247
|
return null;
|
|
@@ -1223,7 +1261,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1223
1261
|
authority: item.authority || parentAuthority
|
|
1224
1262
|
});
|
|
1225
1263
|
if (item.routes) {
|
|
1226
|
-
var children =
|
|
1264
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1227
1265
|
// Reduce memory usage
|
|
1228
1266
|
result.children = children;
|
|
1229
1267
|
}
|
|
@@ -1233,7 +1271,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1233
1271
|
return item;
|
|
1234
1272
|
});
|
|
1235
1273
|
};
|
|
1236
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1274
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1237
1275
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1238
1276
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1239
1277
|
if (backHistoryPath) {
|
|
@@ -1542,7 +1580,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1542
1580
|
// sheepMap是表头字段中英文映射
|
|
1543
1581
|
// sheetCount:表的数量,默认一张
|
|
1544
1582
|
var resolveFile = /*#__PURE__*/function () {
|
|
1545
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1583
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1546
1584
|
var config,
|
|
1547
1585
|
data,
|
|
1548
1586
|
_args = arguments;
|
|
@@ -1581,7 +1619,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1581
1619
|
}();
|
|
1582
1620
|
//读取文件
|
|
1583
1621
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1584
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1622
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1585
1623
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1586
1624
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1587
1625
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1674,14 +1712,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1674
1712
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1675
1713
|
|
|
1676
1714
|
// 获取树平行结构
|
|
1677
|
-
var
|
|
1715
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1678
1716
|
var childrenKey = chilKey || 'children';
|
|
1679
1717
|
treeData.forEach(function (el) {
|
|
1680
1718
|
var _el$childrenKey;
|
|
1681
1719
|
result.push(el);
|
|
1682
1720
|
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) {
|
|
1683
1721
|
// 子级递归
|
|
1684
|
-
|
|
1722
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1685
1723
|
}
|
|
1686
1724
|
});
|
|
1687
1725
|
return result;
|
|
@@ -1958,13 +1996,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1958
1996
|
imgHtml.innerHTML = str;
|
|
1959
1997
|
}
|
|
1960
1998
|
// 测试使用 测试类型缩小 end
|
|
1961
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1999
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1962
2000
|
className: "clomnsImg"
|
|
1963
2001
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1964
2002
|
src: url,
|
|
1965
2003
|
width: "16px",
|
|
1966
2004
|
height: "16px"
|
|
1967
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2005
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1968
2006
|
src: noImg
|
|
1969
2007
|
}))));
|
|
1970
2008
|
};
|
|
@@ -2026,7 +2064,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2026
2064
|
}
|
|
2027
2065
|
});
|
|
2028
2066
|
};
|
|
2029
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2067
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2030
2068
|
disabled: disabled,
|
|
2031
2069
|
onChange: function onChange(e) {
|
|
2032
2070
|
var v = e.target.value;
|
|
@@ -2036,7 +2074,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2036
2074
|
width: 170
|
|
2037
2075
|
},
|
|
2038
2076
|
value: inputValue
|
|
2039
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2077
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2040
2078
|
disabled: disabled,
|
|
2041
2079
|
onBlur: function onBlur(e) {
|
|
2042
2080
|
var v = parseFloat(e.target.value);
|
|
@@ -2415,16 +2453,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2415
2453
|
var handleExportBarCode = handleExport;
|
|
2416
2454
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2417
2455
|
var routerMap = {};
|
|
2418
|
-
var
|
|
2456
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2419
2457
|
data.forEach(function (menuItem) {
|
|
2420
2458
|
if (menuItem.children) {
|
|
2421
|
-
|
|
2459
|
+
flattenMenuData(menuItem.children);
|
|
2422
2460
|
}
|
|
2423
2461
|
// Reduce memory usage
|
|
2424
2462
|
routerMap[menuItem.path] = menuItem;
|
|
2425
2463
|
});
|
|
2426
2464
|
};
|
|
2427
|
-
|
|
2465
|
+
flattenMenuData(menuData);
|
|
2428
2466
|
return routerMap;
|
|
2429
2467
|
};
|
|
2430
2468
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2567,7 +2605,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2567
2605
|
return request$1(url, parms).then(handleResponseData);
|
|
2568
2606
|
};
|
|
2569
2607
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2570
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2608
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2571
2609
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2572
2610
|
while (1) switch (_context.prev = _context.next) {
|
|
2573
2611
|
case 0:
|
|
@@ -3246,7 +3284,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3246
3284
|
style: {
|
|
3247
3285
|
color: 'red'
|
|
3248
3286
|
}
|
|
3249
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, getTemplate && (/*#__PURE__*/React$1.createElement(Button, {
|
|
3287
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, getTemplate && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
3250
3288
|
onClick: getTemplate
|
|
3251
3289
|
}, "\u4E0B\u8F7D\u6A21\u677F")), /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165")))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3252
3290
|
trigger: ['click'],
|
|
@@ -3923,7 +3961,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3923
3961
|
placement: "bottomLeft"
|
|
3924
3962
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3925
3963
|
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"))
|
|
3926
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3964
|
+
}, /*#__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, {
|
|
3927
3965
|
trigger: ['click'],
|
|
3928
3966
|
overlay: this.menuList,
|
|
3929
3967
|
placement: "bottomRight"
|
|
@@ -4444,7 +4482,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4444
4482
|
destroyTooltipOnHide: true,
|
|
4445
4483
|
placement: "topRight",
|
|
4446
4484
|
autoAdjustOverflow: false,
|
|
4447
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4485
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
4448
4486
|
style: {
|
|
4449
4487
|
margin: '6px 8px 0px'
|
|
4450
4488
|
},
|
|
@@ -4746,10 +4784,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4746
4784
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4747
4785
|
});
|
|
4748
4786
|
},
|
|
4749
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4787
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
4750
4788
|
size: "small",
|
|
4751
4789
|
className: 'searchSelectSpin'
|
|
4752
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4790
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
4753
4791
|
style: {
|
|
4754
4792
|
textAlign: 'center'
|
|
4755
4793
|
}
|
|
@@ -4981,7 +5019,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4981
5019
|
title: item.name,
|
|
4982
5020
|
className: "propertyGroup_checkbox_container"
|
|
4983
5021
|
}, item.name));
|
|
4984
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5022
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
4985
5023
|
style: {
|
|
4986
5024
|
width: '50px',
|
|
4987
5025
|
cursor: 'pointer',
|
|
@@ -4994,7 +5032,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4994
5032
|
setShowNotCommon(!showNotCommon);
|
|
4995
5033
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4996
5034
|
}
|
|
4997
|
-
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
5035
|
+
}, 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"))))));
|
|
4998
5036
|
};
|
|
4999
5037
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
5000
5038
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5224,7 +5262,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5224
5262
|
propertyData: item,
|
|
5225
5263
|
handleProperyItemChange: handleProperyItemChange
|
|
5226
5264
|
});
|
|
5227
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5265
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5228
5266
|
style: {
|
|
5229
5267
|
width: '50px',
|
|
5230
5268
|
cursor: 'pointer',
|
|
@@ -5234,7 +5272,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5234
5272
|
onClick: function onClick() {
|
|
5235
5273
|
return setShowNotCommon(!showNotCommon);
|
|
5236
5274
|
}
|
|
5237
|
-
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5275
|
+
}, 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"))))))));
|
|
5238
5276
|
};
|
|
5239
5277
|
|
|
5240
5278
|
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
@@ -6352,13 +6390,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6352
6390
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6353
6391
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6354
6392
|
className: 'search_select'
|
|
6355
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6393
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6356
6394
|
onClick: function onClick() {
|
|
6357
6395
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6358
6396
|
(_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);
|
|
6359
6397
|
showModal();
|
|
6360
6398
|
}
|
|
6361
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6399
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6362
6400
|
title: getShowStr({
|
|
6363
6401
|
viewShowValueStr: viewShowValueStr,
|
|
6364
6402
|
labelInValue: labelInValue,
|
|
@@ -6397,10 +6435,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6397
6435
|
dropdownRender: function dropdownRender(menu) {
|
|
6398
6436
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6399
6437
|
},
|
|
6400
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6438
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
6401
6439
|
size: "small",
|
|
6402
6440
|
className: 'searchSelectSpin'
|
|
6403
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6441
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
6404
6442
|
style: {
|
|
6405
6443
|
textAlign: 'center'
|
|
6406
6444
|
}
|
|
@@ -6440,7 +6478,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6440
6478
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6441
6479
|
filterTxt: searchValue
|
|
6442
6480
|
}));
|
|
6443
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6481
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6444
6482
|
maskClosable: false,
|
|
6445
6483
|
destroyOnClose: true,
|
|
6446
6484
|
width: "calc(100% - 320px)",
|
|
@@ -7039,7 +7077,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7039
7077
|
style: {
|
|
7040
7078
|
width: 525
|
|
7041
7079
|
}
|
|
7042
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
7080
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
7043
7081
|
checked: !dataSource.some(function (item) {
|
|
7044
7082
|
if (item.hidden) return true;
|
|
7045
7083
|
return false;
|
|
@@ -7077,13 +7115,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7077
7115
|
_this2.onChange(e, item.title);
|
|
7078
7116
|
}
|
|
7079
7117
|
}, item.title);
|
|
7080
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
7118
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
7081
7119
|
style: {
|
|
7082
7120
|
width: '144px'
|
|
7083
7121
|
}
|
|
7084
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
7122
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
7085
7123
|
className: 'sort_table_column_all_empty'
|
|
7086
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7124
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7087
7125
|
className: 'sort_table_column_special'
|
|
7088
7126
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
7089
7127
|
className: 'sort_table_column_all'
|
|
@@ -7272,7 +7310,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7272
7310
|
});
|
|
7273
7311
|
};
|
|
7274
7312
|
// 格式化树选择器数据源
|
|
7275
|
-
var
|
|
7313
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7276
7314
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7277
7315
|
return {
|
|
7278
7316
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7282,7 +7320,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7282
7320
|
isLeaf: !haveChildren,
|
|
7283
7321
|
disabled: haveChildren,
|
|
7284
7322
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7285
|
-
return
|
|
7323
|
+
return mapSearchTree(i, resKeyValue);
|
|
7286
7324
|
}) : []
|
|
7287
7325
|
};
|
|
7288
7326
|
};
|
|
@@ -7291,7 +7329,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7291
7329
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7292
7330
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7293
7331
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7294
|
-
return
|
|
7332
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7295
7333
|
}) || [];
|
|
7296
7334
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7297
7335
|
};
|
|
@@ -7463,7 +7501,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7463
7501
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7464
7502
|
// FIXME: 特殊业务逻辑
|
|
7465
7503
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7466
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7504
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7467
7505
|
var result;
|
|
7468
7506
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7469
7507
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7716,7 +7754,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7716
7754
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7717
7755
|
value: text || null,
|
|
7718
7756
|
onChange: function () {
|
|
7719
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7757
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7720
7758
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7721
7759
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7722
7760
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8324,10 +8362,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8324
8362
|
var newColumns = arr.map(function (col) {
|
|
8325
8363
|
return _objectSpread2({}, col);
|
|
8326
8364
|
});
|
|
8327
|
-
var
|
|
8365
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8328
8366
|
var i = indexArr.shift();
|
|
8329
8367
|
if (indexArr.length > 0) {
|
|
8330
|
-
|
|
8368
|
+
handleIndex(arr[i].children, indexArr);
|
|
8331
8369
|
} else {
|
|
8332
8370
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8333
8371
|
width: size.width
|
|
@@ -8335,7 +8373,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8335
8373
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8336
8374
|
}
|
|
8337
8375
|
};
|
|
8338
|
-
|
|
8376
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8339
8377
|
callback(newColumns);
|
|
8340
8378
|
};
|
|
8341
8379
|
};
|
|
@@ -8345,13 +8383,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8345
8383
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8346
8384
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8347
8385
|
};
|
|
8348
|
-
var
|
|
8386
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8349
8387
|
arr.forEach(function (item, index) {
|
|
8350
8388
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8351
8389
|
return i || i === 0;
|
|
8352
8390
|
});
|
|
8353
8391
|
if (noEmptyArray$1(item.children)) {
|
|
8354
|
-
|
|
8392
|
+
handleColumns(item.children, indexArrInside);
|
|
8355
8393
|
} else {
|
|
8356
8394
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8357
8395
|
item.onHeaderCell = function (column) {
|
|
@@ -8367,14 +8405,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8367
8405
|
handleAntdColumnsSpecialParams(item);
|
|
8368
8406
|
return _objectSpread2({}, item);
|
|
8369
8407
|
});
|
|
8370
|
-
|
|
8408
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8371
8409
|
return setShowToChooseColumnsCallback(res);
|
|
8372
8410
|
});
|
|
8373
8411
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8374
8412
|
handleAntdColumnsSpecialParams(item);
|
|
8375
8413
|
return _objectSpread2({}, item);
|
|
8376
8414
|
});
|
|
8377
|
-
|
|
8415
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8378
8416
|
return setShowColumnsCallback(res);
|
|
8379
8417
|
});
|
|
8380
8418
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8385,7 +8423,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8385
8423
|
id: "add_select_div_".concat(uniqueValue)
|
|
8386
8424
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8387
8425
|
onClick: handleShowModal
|
|
8388
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8426
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
8389
8427
|
width: "calc(100% - 320px)",
|
|
8390
8428
|
style: {
|
|
8391
8429
|
top: 20
|
|
@@ -9299,7 +9337,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9299
9337
|
});
|
|
9300
9338
|
};
|
|
9301
9339
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9302
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9340
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9303
9341
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9304
9342
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9305
9343
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9382,10 +9420,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9382
9420
|
var newColumns = arr.map(function (col) {
|
|
9383
9421
|
return _objectSpread2({}, col);
|
|
9384
9422
|
});
|
|
9385
|
-
var
|
|
9423
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9386
9424
|
var i = indexArr.shift();
|
|
9387
9425
|
if (indexArr.length > 0) {
|
|
9388
|
-
|
|
9426
|
+
handleIndex(arr[i].children, indexArr);
|
|
9389
9427
|
} else {
|
|
9390
9428
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9391
9429
|
width: size.width
|
|
@@ -9393,17 +9431,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9393
9431
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9394
9432
|
}
|
|
9395
9433
|
};
|
|
9396
|
-
|
|
9434
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9397
9435
|
callback(newColumns);
|
|
9398
9436
|
};
|
|
9399
9437
|
};
|
|
9400
|
-
var
|
|
9438
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9401
9439
|
arr.forEach(function (item, index) {
|
|
9402
9440
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9403
9441
|
return i || i === 0;
|
|
9404
9442
|
});
|
|
9405
9443
|
if (noEmptyArray$1(item.children)) {
|
|
9406
|
-
|
|
9444
|
+
handleColumns(item.children, indexArrInside);
|
|
9407
9445
|
} else {
|
|
9408
9446
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9409
9447
|
item.onHeaderCell = function (column) {
|
|
@@ -9419,7 +9457,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9419
9457
|
handleAntdColumnsSpecialParams(item);
|
|
9420
9458
|
return _objectSpread2({}, item);
|
|
9421
9459
|
});
|
|
9422
|
-
|
|
9460
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9423
9461
|
return setShowColumnsCallback(res);
|
|
9424
9462
|
});
|
|
9425
9463
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9735,7 +9773,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9735
9773
|
});
|
|
9736
9774
|
};
|
|
9737
9775
|
// 格式化树选择器数据源
|
|
9738
|
-
var
|
|
9776
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9739
9777
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9740
9778
|
return {
|
|
9741
9779
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9745,7 +9783,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9745
9783
|
isLeaf: !haveChildren,
|
|
9746
9784
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9747
9785
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9748
|
-
return
|
|
9786
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9749
9787
|
}) : []
|
|
9750
9788
|
};
|
|
9751
9789
|
};
|
|
@@ -9759,7 +9797,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9759
9797
|
disabledJudge = false;
|
|
9760
9798
|
}
|
|
9761
9799
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9762
|
-
return
|
|
9800
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9763
9801
|
}) || [];
|
|
9764
9802
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9765
9803
|
};
|
|
@@ -10876,6 +10914,16 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10876
10914
|
type: 'select',
|
|
10877
10915
|
label: '逻辑仓类型',
|
|
10878
10916
|
initialSource: getDictionarySource$1('SC00004')
|
|
10917
|
+
}, {
|
|
10918
|
+
name: 'belongArea',
|
|
10919
|
+
field: {
|
|
10920
|
+
type: 'select',
|
|
10921
|
+
props: {
|
|
10922
|
+
mode: 'multiple'
|
|
10923
|
+
}
|
|
10924
|
+
},
|
|
10925
|
+
label: '管理大区',
|
|
10926
|
+
initialSource: getDictionarySource$1('BUSINESS_belongArea')
|
|
10879
10927
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
10880
10928
|
name: 'qp-isEnable-eq',
|
|
10881
10929
|
type: 'select',
|
|
@@ -10911,7 +10959,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10911
10959
|
render: function render(text) {
|
|
10912
10960
|
return getDictionaryTextByValue$1('SC00001', text);
|
|
10913
10961
|
}
|
|
10914
|
-
}] : []))
|
|
10962
|
+
}] : [])),
|
|
10963
|
+
noEmptySearchField: true
|
|
10915
10964
|
}, modalTableBusProps);
|
|
10916
10965
|
}
|
|
10917
10966
|
if (type === 'ownerWarehouse') {
|
|
@@ -11525,11 +11574,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11525
11574
|
sourceName: 'code'
|
|
11526
11575
|
}, requestConfigProp);
|
|
11527
11576
|
tableSearchForm = [{
|
|
11528
|
-
name: 'qp-name-
|
|
11577
|
+
name: 'qp-name-in',
|
|
11529
11578
|
label: '商店名称',
|
|
11530
11579
|
type: 'multipleQueryInput'
|
|
11531
11580
|
}, {
|
|
11532
|
-
name: 'qp-code-
|
|
11581
|
+
name: 'qp-code-in',
|
|
11533
11582
|
label: '商店编码',
|
|
11534
11583
|
type: 'multipleQueryInput'
|
|
11535
11584
|
}, {
|
|
@@ -14063,7 +14112,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
14063
14112
|
};
|
|
14064
14113
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
14065
14114
|
onClick: handleShowModal
|
|
14066
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14115
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14067
14116
|
onOk: handleOk,
|
|
14068
14117
|
onCancel: handleCancel,
|
|
14069
14118
|
destroyOnClose: true,
|
|
@@ -14182,7 +14231,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14182
14231
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
14183
14232
|
_remoteSource$special = remoteSource.specialBracket,
|
|
14184
14233
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
14185
|
-
var
|
|
14234
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
14186
14235
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
14187
14236
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
14188
14237
|
return {
|
|
@@ -14194,7 +14243,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14194
14243
|
isLeaf: !haveChildren,
|
|
14195
14244
|
disabled: isDisabled(haveChildren, isRoot),
|
|
14196
14245
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
14197
|
-
return
|
|
14246
|
+
return mapSearchTree(i);
|
|
14198
14247
|
}) : []
|
|
14199
14248
|
};
|
|
14200
14249
|
};
|
|
@@ -14212,8 +14261,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14212
14261
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
14213
14262
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
14214
14263
|
headers: headers
|
|
14215
|
-
}).then(/*#__PURE__*/function () {
|
|
14216
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14264
|
+
}).then( /*#__PURE__*/function () {
|
|
14265
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14217
14266
|
var _ctx$form;
|
|
14218
14267
|
var resData, coverData, data, dataList;
|
|
14219
14268
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -14240,7 +14289,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14240
14289
|
case 9:
|
|
14241
14290
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14242
14291
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14243
|
-
return
|
|
14292
|
+
return mapSearchTree(ites);
|
|
14244
14293
|
}) || [];
|
|
14245
14294
|
case 11:
|
|
14246
14295
|
_context.next = 14;
|
|
@@ -14278,11 +14327,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14278
14327
|
return _formatResult;
|
|
14279
14328
|
}
|
|
14280
14329
|
};
|
|
14281
|
-
var
|
|
14330
|
+
var parallelData = function parallelData(data, result) {
|
|
14282
14331
|
data.forEach(function (i) {
|
|
14283
14332
|
result.push(i);
|
|
14284
14333
|
if (i[treeChildrenRoom]) {
|
|
14285
|
-
|
|
14334
|
+
parallelData(i[treeChildrenRoom], result);
|
|
14286
14335
|
}
|
|
14287
14336
|
});
|
|
14288
14337
|
return result;
|
|
@@ -14322,7 +14371,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14322
14371
|
var _ctx$form2;
|
|
14323
14372
|
var handleData = formatData(data);
|
|
14324
14373
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14325
|
-
var parallelTreeData =
|
|
14374
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14326
14375
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14327
14376
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14328
14377
|
onChangeName && onChangeName(dataName);
|
|
@@ -14365,7 +14414,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14365
14414
|
var getShowStr = function getShowStr() {
|
|
14366
14415
|
var isMultiple = multiple || treeCheckable;
|
|
14367
14416
|
var kongValue = '无';
|
|
14368
|
-
var parallelTreeData =
|
|
14417
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14369
14418
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14370
14419
|
if (isMultiple) {
|
|
14371
14420
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14377,7 +14426,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14377
14426
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14378
14427
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14379
14428
|
className: 'tree_search_select'
|
|
14380
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14429
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14381
14430
|
title: getShowStr(),
|
|
14382
14431
|
style: {
|
|
14383
14432
|
overflow: 'hidden',
|
|
@@ -14385,7 +14434,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14385
14434
|
whiteSpace: 'nowrap'
|
|
14386
14435
|
},
|
|
14387
14436
|
className: 'search_select_show'
|
|
14388
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14437
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14389
14438
|
treeCheckable: treeCheckable,
|
|
14390
14439
|
maxTagCount: maxTagCount,
|
|
14391
14440
|
showSearch: showSearch,
|
|
@@ -14582,7 +14631,7 @@ var index$2 = (function (props) {
|
|
|
14582
14631
|
} : {}
|
|
14583
14632
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14584
14633
|
className: 'status-label-operate'
|
|
14585
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14634
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14586
14635
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14587
14636
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14588
14637
|
style: {
|
|
@@ -15363,7 +15412,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15363
15412
|
style: {
|
|
15364
15413
|
width: 525
|
|
15365
15414
|
}
|
|
15366
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15415
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15367
15416
|
checked: !dataSource.some(function (item) {
|
|
15368
15417
|
if (item.hidden) return true;
|
|
15369
15418
|
return false;
|
|
@@ -15401,13 +15450,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15401
15450
|
_this2.onChange(e, item.title);
|
|
15402
15451
|
}
|
|
15403
15452
|
}, item.title);
|
|
15404
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15453
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15405
15454
|
style: {
|
|
15406
15455
|
width: '144px'
|
|
15407
15456
|
}
|
|
15408
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15457
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15409
15458
|
className: 'sort_table_column_all_empty'
|
|
15410
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15459
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15411
15460
|
className: 'sort_table_column_special'
|
|
15412
15461
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15413
15462
|
className: 'sort_table_column_all'
|
|
@@ -15586,10 +15635,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15586
15635
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15587
15636
|
return _objectSpread2({}, col);
|
|
15588
15637
|
});
|
|
15589
|
-
var
|
|
15638
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15590
15639
|
var i = indexArr.shift();
|
|
15591
15640
|
if (indexArr.length > 0) {
|
|
15592
|
-
|
|
15641
|
+
handleIndex(arr[i].children, indexArr);
|
|
15593
15642
|
} else {
|
|
15594
15643
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15595
15644
|
width: size.width
|
|
@@ -15597,7 +15646,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15597
15646
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15598
15647
|
}
|
|
15599
15648
|
};
|
|
15600
|
-
|
|
15649
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15601
15650
|
_this.setState({
|
|
15602
15651
|
showColumns: _toConsumableArray(newColumns)
|
|
15603
15652
|
});
|
|
@@ -15638,7 +15687,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15638
15687
|
};
|
|
15639
15688
|
setIsResizing(true);
|
|
15640
15689
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15641
|
-
document.addEventListener('mouseup',
|
|
15690
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15642
15691
|
};
|
|
15643
15692
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15644
15693
|
e.stopPropagation();
|
|
@@ -15654,9 +15703,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15654
15703
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15655
15704
|
}
|
|
15656
15705
|
};
|
|
15657
|
-
var
|
|
15706
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15658
15707
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15659
|
-
document.removeEventListener('mouseup',
|
|
15708
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15660
15709
|
setIsResizing(false);
|
|
15661
15710
|
};
|
|
15662
15711
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15777,13 +15826,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15777
15826
|
showSummary = summary;
|
|
15778
15827
|
}
|
|
15779
15828
|
}
|
|
15780
|
-
var
|
|
15829
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15781
15830
|
arr.forEach(function (item, index) {
|
|
15782
15831
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15783
15832
|
return i || i === 0;
|
|
15784
15833
|
});
|
|
15785
15834
|
if (noEmptyArray$1(item.children)) {
|
|
15786
|
-
|
|
15835
|
+
handleColumns(item.children, indexArrInside);
|
|
15787
15836
|
} else {
|
|
15788
15837
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15789
15838
|
item.onHeaderCell = function (column) {
|
|
@@ -15799,7 +15848,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15799
15848
|
handleBssulaColumnsSpecialParams(item);
|
|
15800
15849
|
return _objectSpread2({}, item);
|
|
15801
15850
|
});
|
|
15802
|
-
|
|
15851
|
+
handleColumns(showCol, []);
|
|
15803
15852
|
if (dynamicColumns.length) {
|
|
15804
15853
|
showCol = this.handledynamicColumns(showCol);
|
|
15805
15854
|
}
|
|
@@ -15840,7 +15889,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15840
15889
|
cell: this.ResizeableTitle
|
|
15841
15890
|
}
|
|
15842
15891
|
}
|
|
15843
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15892
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15844
15893
|
summary: summary
|
|
15845
15894
|
})));
|
|
15846
15895
|
}
|
|
@@ -15937,10 +15986,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15937
15986
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15938
15987
|
return _objectSpread2({}, col);
|
|
15939
15988
|
});
|
|
15940
|
-
var
|
|
15989
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15941
15990
|
var i = indexArr.shift();
|
|
15942
15991
|
if (indexArr.length > 0) {
|
|
15943
|
-
|
|
15992
|
+
handleIndex(arr[i].children, indexArr);
|
|
15944
15993
|
} else {
|
|
15945
15994
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15946
15995
|
width: size.width
|
|
@@ -15948,7 +15997,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15948
15997
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15949
15998
|
}
|
|
15950
15999
|
};
|
|
15951
|
-
|
|
16000
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15952
16001
|
_this.setState({
|
|
15953
16002
|
showColumns: _toConsumableArray(newColumns)
|
|
15954
16003
|
});
|
|
@@ -16024,13 +16073,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16024
16073
|
showSummary = summary;
|
|
16025
16074
|
}
|
|
16026
16075
|
}
|
|
16027
|
-
var
|
|
16076
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
16028
16077
|
arr.forEach(function (item, index) {
|
|
16029
16078
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
16030
16079
|
return i || i === 0;
|
|
16031
16080
|
});
|
|
16032
16081
|
if (noEmptyArray$1(item.children)) {
|
|
16033
|
-
|
|
16082
|
+
handleColumns(item.children, indexArrInside);
|
|
16034
16083
|
} else {
|
|
16035
16084
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
16036
16085
|
item.onHeaderCell = function (column) {
|
|
@@ -16046,7 +16095,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16046
16095
|
handleAntdColumnsSpecialParams(item);
|
|
16047
16096
|
return _objectSpread2({}, item);
|
|
16048
16097
|
});
|
|
16049
|
-
|
|
16098
|
+
handleColumns(showCol, []);
|
|
16050
16099
|
if (dynamicColumns.length) {
|
|
16051
16100
|
showCol = this.handledynamicColumns(showCol);
|
|
16052
16101
|
}
|
|
@@ -16086,7 +16135,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16086
16135
|
cell: this.ResizeableTitle
|
|
16087
16136
|
}
|
|
16088
16137
|
}
|
|
16089
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16138
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
16090
16139
|
summary: summary
|
|
16091
16140
|
})));
|
|
16092
16141
|
}
|
|
@@ -16146,7 +16195,7 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
16146
16195
|
};
|
|
16147
16196
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
16148
16197
|
var routerMap = {};
|
|
16149
|
-
var
|
|
16198
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
16150
16199
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
16151
16200
|
data.forEach(function (menuItem) {
|
|
16152
16201
|
// 面包屑路径,增加显示一级导航路径显示
|
|
@@ -16161,13 +16210,13 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
16161
16210
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
16162
16211
|
});
|
|
16163
16212
|
if (newMenuItem.children) {
|
|
16164
|
-
|
|
16213
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
16165
16214
|
}
|
|
16166
16215
|
// Reduce memory usage
|
|
16167
16216
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
16168
16217
|
});
|
|
16169
16218
|
};
|
|
16170
|
-
|
|
16219
|
+
flattenMenuData(menuData, {
|
|
16171
16220
|
isMenuRoot: true
|
|
16172
16221
|
});
|
|
16173
16222
|
return routerMap;
|
|
@@ -16532,7 +16581,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16532
16581
|
display: 'flex',
|
|
16533
16582
|
gap: '8px'
|
|
16534
16583
|
}
|
|
16535
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16584
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16536
16585
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16537
16586
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16538
16587
|
onClick: function onClick() {
|
|
@@ -16540,7 +16589,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16540
16589
|
},
|
|
16541
16590
|
width: 24,
|
|
16542
16591
|
src: scanning
|
|
16543
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16592
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16544
16593
|
title: "\u5168\u5C4F"
|
|
16545
16594
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16546
16595
|
onClick: function onClick() {
|
|
@@ -16548,7 +16597,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16548
16597
|
},
|
|
16549
16598
|
width: 24,
|
|
16550
16599
|
src: quanping
|
|
16551
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16600
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16552
16601
|
}, function (prevProps, nextProps) {
|
|
16553
16602
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16554
16603
|
return false;
|
|
@@ -16633,7 +16682,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16633
16682
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16634
16683
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16635
16684
|
}, item));
|
|
16636
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16685
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16637
16686
|
}, function (prevProps, nextProps) {
|
|
16638
16687
|
if (prevProps.title !== nextProps.title) {
|
|
16639
16688
|
return false;
|
|
@@ -17273,7 +17322,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17273
17322
|
});
|
|
17274
17323
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17275
17324
|
className: 'sort_table_wrapper'
|
|
17276
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17325
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17277
17326
|
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
17278
17327
|
wrapClassName: 'sort_table_wrapper',
|
|
17279
17328
|
width: 810,
|
|
@@ -17324,7 +17373,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17324
17373
|
width: 525,
|
|
17325
17374
|
height: 24
|
|
17326
17375
|
}
|
|
17327
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17376
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17328
17377
|
checked: !dataSource.some(function (item) {
|
|
17329
17378
|
if (item.hidden) return true;
|
|
17330
17379
|
return false;
|
|
@@ -17378,13 +17427,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17378
17427
|
_this2.onChange(e, item.title);
|
|
17379
17428
|
}
|
|
17380
17429
|
}, item.title);
|
|
17381
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17430
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17382
17431
|
style: {
|
|
17383
17432
|
width: '144px'
|
|
17384
17433
|
}
|
|
17385
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17434
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17386
17435
|
className: 'sort_table_column_all_empty'
|
|
17387
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17436
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17388
17437
|
className: 'sort_table_column_special'
|
|
17389
17438
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
17390
17439
|
className: 'sort_table_column_all'
|
|
@@ -17858,7 +17907,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17858
17907
|
});
|
|
17859
17908
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17860
17909
|
className: 'sort_table_wrapper'
|
|
17861
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17910
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17862
17911
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17863
17912
|
wrapClassName: 'sort_table_wrapper',
|
|
17864
17913
|
width: 820,
|
|
@@ -17903,7 +17952,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17903
17952
|
style: {
|
|
17904
17953
|
width: 525
|
|
17905
17954
|
}
|
|
17906
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17955
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17907
17956
|
checked: !dataSource.some(function (item) {
|
|
17908
17957
|
if (item.hidden) return true;
|
|
17909
17958
|
return false;
|
|
@@ -17939,11 +17988,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17939
17988
|
_this2.onChange(e, item.name);
|
|
17940
17989
|
}
|
|
17941
17990
|
}, item.label);
|
|
17942
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17991
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17943
17992
|
style: {
|
|
17944
17993
|
width: '144px'
|
|
17945
17994
|
}
|
|
17946
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17995
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17947
17996
|
className: 'sort_table_column_all_empty'
|
|
17948
17997
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17949
17998
|
className: 'sort_table_content_wrapper'
|
|
@@ -18042,7 +18091,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18042
18091
|
};
|
|
18043
18092
|
setIsResizing(true);
|
|
18044
18093
|
document.addEventListener('mousemove', handleMouseMove);
|
|
18045
|
-
document.addEventListener('mouseup',
|
|
18094
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
18046
18095
|
};
|
|
18047
18096
|
var handleMouseMove = function handleMouseMove(e) {
|
|
18048
18097
|
e.stopPropagation();
|
|
@@ -18058,9 +18107,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18058
18107
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
18059
18108
|
}
|
|
18060
18109
|
};
|
|
18061
|
-
var
|
|
18110
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
18062
18111
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
18063
|
-
document.removeEventListener('mouseup',
|
|
18112
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
18064
18113
|
setIsResizing(false);
|
|
18065
18114
|
};
|
|
18066
18115
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18471,7 +18520,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18471
18520
|
actionsRender = actionsRender.concat([{
|
|
18472
18521
|
type: 'text',
|
|
18473
18522
|
props: {
|
|
18474
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18523
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18475
18524
|
request: {
|
|
18476
18525
|
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),
|
|
18477
18526
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18717,7 +18766,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18717
18766
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18718
18767
|
bsTableCode: bsTableCode,
|
|
18719
18768
|
onlyModal: true
|
|
18720
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
18769
|
+
}), (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, {
|
|
18721
18770
|
ref: exportTableRef,
|
|
18722
18771
|
setShowColumns: setShowExportColumns,
|
|
18723
18772
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18810,11 +18859,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18810
18859
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18811
18860
|
var resultList = [];
|
|
18812
18861
|
var newRouter = cloneDeep(router);
|
|
18813
|
-
var
|
|
18862
|
+
var deep = function deep(router) {
|
|
18814
18863
|
if (router && Array.isArray(router)) {
|
|
18815
18864
|
router.forEach(function (item) {
|
|
18816
18865
|
if (item.children && Array.isArray(item.children)) {
|
|
18817
|
-
|
|
18866
|
+
deep(item.children);
|
|
18818
18867
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18819
18868
|
return d === item.code;
|
|
18820
18869
|
})) {
|
|
@@ -18828,10 +18877,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18828
18877
|
resultList.push(_objectSpread2({}, router));
|
|
18829
18878
|
}
|
|
18830
18879
|
};
|
|
18831
|
-
|
|
18880
|
+
deep(newRouter);
|
|
18832
18881
|
callBack([].concat(resultList));
|
|
18833
18882
|
};
|
|
18834
|
-
var
|
|
18883
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18835
18884
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18836
18885
|
var _loop = function _loop(i) {
|
|
18837
18886
|
if (routesData[i].hideInMenu) {
|
|
@@ -18845,7 +18894,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18845
18894
|
return 0; // continue
|
|
18846
18895
|
}
|
|
18847
18896
|
if (routesData[i].children) {
|
|
18848
|
-
|
|
18897
|
+
setMenuTreeData(routesData[i].children);
|
|
18849
18898
|
}
|
|
18850
18899
|
},
|
|
18851
18900
|
_ret;
|
|
@@ -18866,16 +18915,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18866
18915
|
};
|
|
18867
18916
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18868
18917
|
var routerMap = {};
|
|
18869
|
-
var
|
|
18918
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18870
18919
|
data.forEach(function (menuItem) {
|
|
18871
18920
|
if (menuItem.children) {
|
|
18872
|
-
|
|
18921
|
+
flattenMenuData(menuItem.children);
|
|
18873
18922
|
}
|
|
18874
18923
|
// Reduce memory usage
|
|
18875
18924
|
routerMap[menuItem.path] = menuItem;
|
|
18876
18925
|
});
|
|
18877
18926
|
};
|
|
18878
|
-
|
|
18927
|
+
flattenMenuData(menuData);
|
|
18879
18928
|
return routerMap;
|
|
18880
18929
|
};
|
|
18881
18930
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -19021,7 +19070,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19021
19070
|
sethomepageData(homepageDataList);
|
|
19022
19071
|
setroutesData(routesDataList);
|
|
19023
19072
|
}, []);
|
|
19024
|
-
var
|
|
19073
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19025
19074
|
if (!child.hideInMenu && child.children) {
|
|
19026
19075
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19027
19076
|
style: {
|
|
@@ -19031,7 +19080,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19031
19080
|
}, formatMessage({
|
|
19032
19081
|
id: "".concat(child.locale)
|
|
19033
19082
|
})), child.children.map(function (menuItem) {
|
|
19034
|
-
return
|
|
19083
|
+
return renderChildItem(menuItem);
|
|
19035
19084
|
}));
|
|
19036
19085
|
} else if (!child.hideInMenu && child.path) {
|
|
19037
19086
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19066,7 +19115,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19066
19115
|
className: 'drawerWarp'
|
|
19067
19116
|
}, homepageData && homepageData.filter(function (d) {
|
|
19068
19117
|
return !d.hideInMenu;
|
|
19069
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
19118
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
19070
19119
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19071
19120
|
dataSource: homepageData,
|
|
19072
19121
|
renderItem: function renderItem(child) {
|
|
@@ -19101,7 +19150,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19101
19150
|
bordered: true,
|
|
19102
19151
|
dataSource: item.children,
|
|
19103
19152
|
renderItem: function renderItem(child) {
|
|
19104
|
-
return
|
|
19153
|
+
return renderChildItem(child);
|
|
19105
19154
|
}
|
|
19106
19155
|
});
|
|
19107
19156
|
})));
|
|
@@ -19161,7 +19210,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19161
19210
|
src: allfunc
|
|
19162
19211
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
19163
19212
|
className: 'btnSpan2'
|
|
19164
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19213
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19165
19214
|
style: {
|
|
19166
19215
|
left: isDrawer ? 140 : 0,
|
|
19167
19216
|
top: 50
|
|
@@ -19207,7 +19256,7 @@ function outLogin(_x) {
|
|
|
19207
19256
|
return _outLogin.apply(this, arguments);
|
|
19208
19257
|
}
|
|
19209
19258
|
function _outLogin() {
|
|
19210
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19259
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19211
19260
|
var res;
|
|
19212
19261
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19213
19262
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19349,7 +19398,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19349
19398
|
});
|
|
19350
19399
|
};
|
|
19351
19400
|
var loginOut = /*#__PURE__*/function () {
|
|
19352
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19401
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19353
19402
|
var sessionId;
|
|
19354
19403
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19355
19404
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19453,7 +19502,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19453
19502
|
marginRight: '0px'
|
|
19454
19503
|
},
|
|
19455
19504
|
src: './xialajiantou-new.svg'
|
|
19456
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19505
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19457
19506
|
};
|
|
19458
19507
|
|
|
19459
19508
|
// -- 查询店铺 --
|
|
@@ -19461,7 +19510,7 @@ function getStoreByName(_x) {
|
|
|
19461
19510
|
return _getStoreByName.apply(this, arguments);
|
|
19462
19511
|
}
|
|
19463
19512
|
function _getStoreByName() {
|
|
19464
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19513
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19465
19514
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19466
19515
|
while (1) switch (_context.prev = _context.next) {
|
|
19467
19516
|
case 0:
|
|
@@ -19529,7 +19578,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19529
19578
|
return _fetchUserList.apply(this, arguments);
|
|
19530
19579
|
}
|
|
19531
19580
|
function _fetchUserList() {
|
|
19532
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19581
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19533
19582
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19534
19583
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19535
19584
|
case 0:
|
|
@@ -19577,7 +19626,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19577
19626
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19578
19627
|
}, [debounceTimeout, key]);
|
|
19579
19628
|
var changeInput = /*#__PURE__*/function () {
|
|
19580
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19629
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19581
19630
|
var res;
|
|
19582
19631
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19583
19632
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19599,7 +19648,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19599
19648
|
};
|
|
19600
19649
|
}();
|
|
19601
19650
|
useEffect(function () {
|
|
19602
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19651
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19603
19652
|
var res;
|
|
19604
19653
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19605
19654
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19764,7 +19813,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19764
19813
|
var resultList = [];
|
|
19765
19814
|
var newRouter = cloneDeep$1(router);
|
|
19766
19815
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19767
|
-
var
|
|
19816
|
+
var deep = function deep(router) {
|
|
19768
19817
|
if (router && Array.isArray(router)) {
|
|
19769
19818
|
router.forEach(function (item) {
|
|
19770
19819
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19774,7 +19823,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19774
19823
|
d.nameEdit = true;
|
|
19775
19824
|
}
|
|
19776
19825
|
});
|
|
19777
|
-
|
|
19826
|
+
deep(item.routes);
|
|
19778
19827
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19779
19828
|
id: "menu.".concat(item.name)
|
|
19780
19829
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19793,7 +19842,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19793
19842
|
}));
|
|
19794
19843
|
}
|
|
19795
19844
|
};
|
|
19796
|
-
|
|
19845
|
+
deep(newRouter);
|
|
19797
19846
|
setroutesData([].concat(resultList));
|
|
19798
19847
|
};
|
|
19799
19848
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19875,7 +19924,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19875
19924
|
},
|
|
19876
19925
|
title: item.fullPathName
|
|
19877
19926
|
}, renderLineStyl(item.fullPathName));
|
|
19878
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19927
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19879
19928
|
employeeCode: employeeCode
|
|
19880
19929
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19881
19930
|
};
|
|
@@ -19890,7 +19939,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19890
19939
|
var TreeNode = Tree.TreeNode;
|
|
19891
19940
|
var Search$2 = Input.Search;
|
|
19892
19941
|
var dataList = [];
|
|
19893
|
-
var
|
|
19942
|
+
var generateList = function generateList(data) {
|
|
19894
19943
|
for (var i = 0; i < data.length; i++) {
|
|
19895
19944
|
var node = data[i];
|
|
19896
19945
|
var path = node.path,
|
|
@@ -19900,11 +19949,11 @@ var _generateList = function generateList(data) {
|
|
|
19900
19949
|
name: name
|
|
19901
19950
|
});
|
|
19902
19951
|
if (node.children) {
|
|
19903
|
-
|
|
19952
|
+
generateList(node.children);
|
|
19904
19953
|
}
|
|
19905
19954
|
}
|
|
19906
19955
|
};
|
|
19907
|
-
var
|
|
19956
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19908
19957
|
var parentKey;
|
|
19909
19958
|
for (var i = 0; i < tree.length; i++) {
|
|
19910
19959
|
var node = tree[i];
|
|
@@ -19913,8 +19962,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19913
19962
|
return item.path === path;
|
|
19914
19963
|
})) {
|
|
19915
19964
|
parentKey = node.path;
|
|
19916
|
-
} else if (
|
|
19917
|
-
parentKey =
|
|
19965
|
+
} else if (getParentKey(path, node.children)) {
|
|
19966
|
+
parentKey = getParentKey(path, node.children);
|
|
19918
19967
|
}
|
|
19919
19968
|
}
|
|
19920
19969
|
}
|
|
@@ -19945,7 +19994,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19945
19994
|
var treeData = _this.state.treeData;
|
|
19946
19995
|
var expandedKeys = dataList.map(function (item) {
|
|
19947
19996
|
if (item.name.indexOf(value) > -1) {
|
|
19948
|
-
return
|
|
19997
|
+
return getParentKey(item.path, treeData);
|
|
19949
19998
|
}
|
|
19950
19999
|
return null;
|
|
19951
20000
|
}).filter(function (item, i, self) {
|
|
@@ -19959,22 +20008,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19959
20008
|
};
|
|
19960
20009
|
_this.getPathList = function (originData) {
|
|
19961
20010
|
var pathList = [];
|
|
19962
|
-
var
|
|
20011
|
+
var getList = function getList(data) {
|
|
19963
20012
|
if (Array.isArray(data)) {
|
|
19964
20013
|
data.forEach(function (item) {
|
|
19965
20014
|
pathList.push(item.path);
|
|
19966
20015
|
if (item.children) {
|
|
19967
|
-
|
|
20016
|
+
getList(item.children);
|
|
19968
20017
|
}
|
|
19969
20018
|
});
|
|
19970
20019
|
} else {
|
|
19971
20020
|
pathList.push(data.path);
|
|
19972
20021
|
if (data.children) {
|
|
19973
|
-
|
|
20022
|
+
getList(data.children);
|
|
19974
20023
|
}
|
|
19975
20024
|
}
|
|
19976
20025
|
};
|
|
19977
|
-
|
|
20026
|
+
getList(originData);
|
|
19978
20027
|
return pathList;
|
|
19979
20028
|
};
|
|
19980
20029
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19983,18 +20032,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19983
20032
|
customerMenuData = _this$props.customerMenuData,
|
|
19984
20033
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19985
20034
|
var filterItem;
|
|
19986
|
-
var
|
|
20035
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19987
20036
|
menuData.forEach(function (item) {
|
|
19988
20037
|
if (item.path === path) {
|
|
19989
20038
|
filterItem = _objectSpread2({}, item);
|
|
19990
20039
|
return;
|
|
19991
20040
|
}
|
|
19992
20041
|
if (item.children) {
|
|
19993
|
-
|
|
20042
|
+
filterMenuItem(item.children);
|
|
19994
20043
|
}
|
|
19995
20044
|
});
|
|
19996
20045
|
};
|
|
19997
|
-
|
|
20046
|
+
filterMenuItem(treeData);
|
|
19998
20047
|
var addPathList = _this.getPathList(filterItem);
|
|
19999
20048
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
20000
20049
|
var isRepet = false;
|
|
@@ -20024,8 +20073,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20024
20073
|
return item.path === '/';
|
|
20025
20074
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20026
20075
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20027
|
-
|
|
20028
|
-
|
|
20076
|
+
setMenuTreeData(routesData);
|
|
20077
|
+
generateList(routesData);
|
|
20029
20078
|
this.setState({
|
|
20030
20079
|
treeData: routesData
|
|
20031
20080
|
});
|
|
@@ -20039,16 +20088,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20039
20088
|
expandedKeys = _this$state.expandedKeys,
|
|
20040
20089
|
autoExpandParent = _this$state.autoExpandParent,
|
|
20041
20090
|
treeData = _this$state.treeData;
|
|
20042
|
-
var
|
|
20091
|
+
var loop = function loop(data) {
|
|
20043
20092
|
return data.map(function (item) {
|
|
20044
20093
|
var index = item.name.indexOf(searchValue);
|
|
20045
20094
|
var beforeStr = item.name.substr(0, index);
|
|
20046
20095
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
20047
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
20096
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
20048
20097
|
style: {
|
|
20049
20098
|
color: '#f50'
|
|
20050
20099
|
}
|
|
20051
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
20100
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
20052
20101
|
if (item.children && item.children.length) {
|
|
20053
20102
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20054
20103
|
path: item.path,
|
|
@@ -20070,7 +20119,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20070
20119
|
width: 18,
|
|
20071
20120
|
src: arrowRight
|
|
20072
20121
|
}))))
|
|
20073
|
-
},
|
|
20122
|
+
}, loop(item.children));
|
|
20074
20123
|
}
|
|
20075
20124
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
20076
20125
|
path: item.path,
|
|
@@ -20120,7 +20169,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20120
20169
|
onExpand: this.onExpand,
|
|
20121
20170
|
expandedKeys: expandedKeys,
|
|
20122
20171
|
autoExpandParent: autoExpandParent
|
|
20123
|
-
},
|
|
20172
|
+
}, loop(treeData))));
|
|
20124
20173
|
}
|
|
20125
20174
|
}]);
|
|
20126
20175
|
}(React$1.Component);
|
|
@@ -20153,24 +20202,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20153
20202
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
20154
20203
|
var dragObj;
|
|
20155
20204
|
var finalDropItem;
|
|
20156
|
-
var
|
|
20205
|
+
var loop = function loop(data, path, callback) {
|
|
20157
20206
|
for (var i = 0; i < data.length; i++) {
|
|
20158
20207
|
if (data[i].path === path) {
|
|
20159
20208
|
return callback(data[i], i, data);
|
|
20160
20209
|
}
|
|
20161
20210
|
if (data[i].children) {
|
|
20162
|
-
|
|
20211
|
+
loop(data[i].children, path, callback);
|
|
20163
20212
|
}
|
|
20164
20213
|
}
|
|
20165
20214
|
};
|
|
20166
20215
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
20167
|
-
|
|
20216
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
20168
20217
|
arr.splice(index, 1);
|
|
20169
20218
|
dragObj = item;
|
|
20170
20219
|
});
|
|
20171
20220
|
if (!info.dropToGap) {
|
|
20172
20221
|
// Drop on the content
|
|
20173
|
-
|
|
20222
|
+
loop(data, dropKey, function (item) {
|
|
20174
20223
|
item.children = item.children || [];
|
|
20175
20224
|
item.children.unshift(dragObj);
|
|
20176
20225
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20181,7 +20230,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20181
20230
|
// Is expanded
|
|
20182
20231
|
dropPosition === 1 // On the bottom gap
|
|
20183
20232
|
) {
|
|
20184
|
-
|
|
20233
|
+
loop(data, dropKey, function (item) {
|
|
20185
20234
|
item.children = item.children || [];
|
|
20186
20235
|
item.children.unshift(dragObj);
|
|
20187
20236
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20189,7 +20238,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20189
20238
|
} else {
|
|
20190
20239
|
var ar;
|
|
20191
20240
|
var i;
|
|
20192
|
-
|
|
20241
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
20193
20242
|
ar = arr;
|
|
20194
20243
|
i = index;
|
|
20195
20244
|
});
|
|
@@ -20228,17 +20277,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20228
20277
|
title: '编辑名称',
|
|
20229
20278
|
callBack: function callBack(newName) {
|
|
20230
20279
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20231
|
-
var
|
|
20280
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
20232
20281
|
oldTreeData.forEach(function (treeItem) {
|
|
20233
20282
|
if (treeItem.path === item.path) {
|
|
20234
20283
|
treeItem.name = newName;
|
|
20235
20284
|
}
|
|
20236
20285
|
if (treeItem.children) {
|
|
20237
|
-
|
|
20286
|
+
editTreeDataName(treeItem.children);
|
|
20238
20287
|
}
|
|
20239
20288
|
});
|
|
20240
20289
|
};
|
|
20241
|
-
|
|
20290
|
+
editTreeDataName(oldTreeData);
|
|
20242
20291
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20243
20292
|
_this.setState({
|
|
20244
20293
|
modalInfo: {
|
|
@@ -20283,7 +20332,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20283
20332
|
title: '新增子目录',
|
|
20284
20333
|
callBack: function callBack(newName) {
|
|
20285
20334
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20286
|
-
var
|
|
20335
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
20287
20336
|
oldTreeData.forEach(function (treeItem) {
|
|
20288
20337
|
if (treeItem.path === item.path) {
|
|
20289
20338
|
treeItem.children ? treeItem.children.push({
|
|
@@ -20295,11 +20344,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20295
20344
|
}];
|
|
20296
20345
|
}
|
|
20297
20346
|
if (treeItem.children) {
|
|
20298
|
-
|
|
20347
|
+
addChildFolder(treeItem.children);
|
|
20299
20348
|
}
|
|
20300
20349
|
});
|
|
20301
20350
|
};
|
|
20302
|
-
|
|
20351
|
+
addChildFolder(oldTreeData);
|
|
20303
20352
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20304
20353
|
_this.setState({
|
|
20305
20354
|
modalInfo: {
|
|
@@ -20358,7 +20407,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20358
20407
|
var _this$state = this.state,
|
|
20359
20408
|
modalInfo = _this$state.modalInfo,
|
|
20360
20409
|
checkedKeys = _this$state.checkedKeys;
|
|
20361
|
-
var
|
|
20410
|
+
var loop = function loop(data) {
|
|
20362
20411
|
return data.map(function (item) {
|
|
20363
20412
|
if (item.children && item.children.length) {
|
|
20364
20413
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -20375,7 +20424,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20375
20424
|
e.stopPropagation();
|
|
20376
20425
|
}
|
|
20377
20426
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
20378
|
-
},
|
|
20427
|
+
}, loop(item.children));
|
|
20379
20428
|
}
|
|
20380
20429
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
20381
20430
|
path: item.path,
|
|
@@ -20454,7 +20503,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20454
20503
|
children: 'children'
|
|
20455
20504
|
},
|
|
20456
20505
|
onDrop: this.onDrop
|
|
20457
|
-
},
|
|
20506
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20458
20507
|
width: 600,
|
|
20459
20508
|
bodyStyle: {
|
|
20460
20509
|
paddingTop: '32px',
|
|
@@ -20567,7 +20616,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20567
20616
|
pathname: item.path
|
|
20568
20617
|
});
|
|
20569
20618
|
};
|
|
20570
|
-
var
|
|
20619
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20571
20620
|
return menuData.map(function (item) {
|
|
20572
20621
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20573
20622
|
style: {
|
|
@@ -20582,7 +20631,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20582
20631
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20583
20632
|
paddingLeft: '4px'
|
|
20584
20633
|
}
|
|
20585
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20634
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20586
20635
|
});
|
|
20587
20636
|
};
|
|
20588
20637
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20608,7 +20657,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20608
20657
|
style: {
|
|
20609
20658
|
paddingLeft: '5px'
|
|
20610
20659
|
}
|
|
20611
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20660
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20612
20661
|
style: {
|
|
20613
20662
|
left: isDrawer ? 140 : 0
|
|
20614
20663
|
},
|
|
@@ -20629,7 +20678,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20629
20678
|
visible: isDrawer
|
|
20630
20679
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20631
20680
|
className: 'menu_title_line'
|
|
20632
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20681
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20633
20682
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20634
20683
|
style: {
|
|
20635
20684
|
fontWeight: '600',
|
|
@@ -20703,7 +20752,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20703
20752
|
return item.path === '/';
|
|
20704
20753
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20705
20754
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20706
|
-
|
|
20755
|
+
setMenuTreeData(routesData);
|
|
20707
20756
|
routesData.forEach(function (item) {
|
|
20708
20757
|
if (item.children) {
|
|
20709
20758
|
routesDataList.push(item);
|
|
@@ -20733,7 +20782,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20733
20782
|
setHeight(clientHeight - 190);
|
|
20734
20783
|
setDrawHeight(clientHeight - 70);
|
|
20735
20784
|
};
|
|
20736
|
-
var
|
|
20785
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20737
20786
|
if (!child.hideInMenu && child.children) {
|
|
20738
20787
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20739
20788
|
style: {
|
|
@@ -20743,7 +20792,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20743
20792
|
}, formatMessage({
|
|
20744
20793
|
id: "".concat(child.locale)
|
|
20745
20794
|
})), child.children.map(function (menuItem) {
|
|
20746
|
-
return
|
|
20795
|
+
return renderChildItem(menuItem);
|
|
20747
20796
|
}));
|
|
20748
20797
|
} else if (!child.hideInMenu && child.path) {
|
|
20749
20798
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20885,7 +20934,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20885
20934
|
onMenuClick(e, item);
|
|
20886
20935
|
}
|
|
20887
20936
|
}, item.name);
|
|
20888
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20937
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
20889
20938
|
className: 'search_menu_content'
|
|
20890
20939
|
}, SearhData.map(function (item) {
|
|
20891
20940
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20894,7 +20943,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20894
20943
|
},
|
|
20895
20944
|
key: item.path
|
|
20896
20945
|
}, item.name);
|
|
20897
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20946
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20898
20947
|
style: {
|
|
20899
20948
|
height: "".concat(rightMenuHeight, "px"),
|
|
20900
20949
|
overflowY: 'scroll',
|
|
@@ -20906,7 +20955,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20906
20955
|
className: 'drawerWarp_right'
|
|
20907
20956
|
}, homepageData && homepageData.filter(function (d) {
|
|
20908
20957
|
return !d.hideInMenu;
|
|
20909
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20958
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
20910
20959
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20911
20960
|
dataSource: homepageData,
|
|
20912
20961
|
renderItem: function renderItem(child) {
|
|
@@ -20947,7 +20996,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20947
20996
|
bordered: true,
|
|
20948
20997
|
dataSource: item.children,
|
|
20949
20998
|
renderItem: function renderItem(child) {
|
|
20950
|
-
return
|
|
20999
|
+
return renderChildItem(child);
|
|
20951
21000
|
}
|
|
20952
21001
|
});
|
|
20953
21002
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -21105,10 +21154,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21105
21154
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
21106
21155
|
var menuKeys = [];
|
|
21107
21156
|
var docsId = [];
|
|
21108
|
-
var
|
|
21157
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
21109
21158
|
data.forEach(function (item) {
|
|
21110
21159
|
if (item.children && item.children.length > 0) {
|
|
21111
|
-
|
|
21160
|
+
getLimitedMenuKeys(item.children);
|
|
21112
21161
|
} else {
|
|
21113
21162
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
21114
21163
|
menuKeys.push(originPath);
|
|
@@ -21119,7 +21168,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21119
21168
|
});
|
|
21120
21169
|
};
|
|
21121
21170
|
try {
|
|
21122
|
-
|
|
21171
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
21123
21172
|
} catch (e) {}
|
|
21124
21173
|
return {
|
|
21125
21174
|
menuKeys: menuKeys,
|
|
@@ -21353,10 +21402,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21353
21402
|
return (node.path || '').includes('all-general-documents');
|
|
21354
21403
|
};
|
|
21355
21404
|
// 递归获取树列表
|
|
21356
|
-
var
|
|
21405
|
+
var getTreeList = function getTreeList(data) {
|
|
21357
21406
|
data.forEach(function (node) {
|
|
21358
21407
|
if (node.routes && node.routes.length > 0) {
|
|
21359
|
-
|
|
21408
|
+
getTreeList(node.routes);
|
|
21360
21409
|
return;
|
|
21361
21410
|
}
|
|
21362
21411
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21387,7 +21436,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21387
21436
|
}
|
|
21388
21437
|
});
|
|
21389
21438
|
};
|
|
21390
|
-
|
|
21439
|
+
getTreeList(treeData);
|
|
21391
21440
|
return treeList;
|
|
21392
21441
|
};
|
|
21393
21442
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -22016,7 +22065,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22016
22065
|
updateState = _ref8.updateState;
|
|
22017
22066
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
22018
22067
|
className: "tab_title_content"
|
|
22019
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
22068
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
22020
22069
|
info: item,
|
|
22021
22070
|
operateFun: _this3.operateFun,
|
|
22022
22071
|
listenRouterState: listenRouterState
|
|
@@ -22152,7 +22201,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22152
22201
|
};
|
|
22153
22202
|
}
|
|
22154
22203
|
var OperationsSlot = {
|
|
22155
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
22204
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
22156
22205
|
className: 'tab_left_operate'
|
|
22157
22206
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
22158
22207
|
onClick: function onClick() {
|
|
@@ -22168,7 +22217,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22168
22217
|
_this3.setTabNavTransLate(-100);
|
|
22169
22218
|
}
|
|
22170
22219
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
22171
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
22220
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
22172
22221
|
style: {
|
|
22173
22222
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
22174
22223
|
},
|
|
@@ -22266,7 +22315,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22266
22315
|
onMouseLeave: function onMouseLeave() {
|
|
22267
22316
|
_this3.setShowMenu(false);
|
|
22268
22317
|
}
|
|
22269
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
22318
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
22270
22319
|
style: {
|
|
22271
22320
|
position: 'absolute',
|
|
22272
22321
|
top: '14px',
|
|
@@ -22285,7 +22334,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22285
22334
|
postMenuData: function postMenuData(menus) {
|
|
22286
22335
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
22287
22336
|
},
|
|
22288
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
22337
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
22289
22338
|
ref: this.allFunc,
|
|
22290
22339
|
itemPath: itemPath,
|
|
22291
22340
|
handleClose: this.handleClose,
|
|
@@ -22303,7 +22352,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22303
22352
|
},
|
|
22304
22353
|
menu: {
|
|
22305
22354
|
request: function () {
|
|
22306
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22355
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22307
22356
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22308
22357
|
while (1) switch (_context.prev = _context.next) {
|
|
22309
22358
|
case 0:
|
|
@@ -22438,7 +22487,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22438
22487
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22439
22488
|
timeFormat = _this$props4.timeFormat,
|
|
22440
22489
|
transparentProps = _this$props4.transparentProps;
|
|
22441
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22490
|
+
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({
|
|
22442
22491
|
getDictionarySource: getDictionarySource,
|
|
22443
22492
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22444
22493
|
timeFormat: timeFormat
|
|
@@ -22462,12 +22511,12 @@ var index$5 = (function (props) {
|
|
|
22462
22511
|
});
|
|
22463
22512
|
|
|
22464
22513
|
// @ts-nocheck
|
|
22465
|
-
var
|
|
22514
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22466
22515
|
var result = [];
|
|
22467
22516
|
columns.forEach(function (column) {
|
|
22468
22517
|
if (column.children) {
|
|
22469
22518
|
result.push(column);
|
|
22470
|
-
result.push.apply(result,
|
|
22519
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22471
22520
|
} else {
|
|
22472
22521
|
result.push(column);
|
|
22473
22522
|
}
|
|
@@ -22476,7 +22525,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22476
22525
|
};
|
|
22477
22526
|
var convertToRows = function convertToRows(originColumns) {
|
|
22478
22527
|
var maxLevel = 1;
|
|
22479
|
-
var
|
|
22528
|
+
var traverse = function traverse(column, parent) {
|
|
22480
22529
|
if (parent) {
|
|
22481
22530
|
column.level = parent.level + 1;
|
|
22482
22531
|
if (maxLevel < column.level) {
|
|
@@ -22486,7 +22535,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22486
22535
|
if (column.children) {
|
|
22487
22536
|
var colSpan = 0;
|
|
22488
22537
|
column.children.forEach(function (subColumn) {
|
|
22489
|
-
|
|
22538
|
+
traverse(subColumn, column);
|
|
22490
22539
|
colSpan += subColumn.colSpan;
|
|
22491
22540
|
});
|
|
22492
22541
|
column.colSpan = colSpan;
|
|
@@ -22496,13 +22545,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22496
22545
|
};
|
|
22497
22546
|
originColumns.forEach(function (column) {
|
|
22498
22547
|
column.level = 1;
|
|
22499
|
-
|
|
22548
|
+
traverse(column);
|
|
22500
22549
|
});
|
|
22501
22550
|
var rows = [];
|
|
22502
22551
|
for (var i = 0; i < maxLevel; i++) {
|
|
22503
22552
|
rows.push([]);
|
|
22504
22553
|
}
|
|
22505
|
-
var allColumns =
|
|
22554
|
+
var allColumns = getAllColumns(originColumns);
|
|
22506
22555
|
allColumns.forEach(function (column) {
|
|
22507
22556
|
if (!column.children) {
|
|
22508
22557
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22542,7 +22591,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22542
22591
|
};
|
|
22543
22592
|
var headersToRows = function headersToRows(originColumns) {
|
|
22544
22593
|
var maxLevel = 1;
|
|
22545
|
-
var
|
|
22594
|
+
var traverse = function traverse(column, parent) {
|
|
22546
22595
|
if (parent) {
|
|
22547
22596
|
//计算当前元素属于第几个层级
|
|
22548
22597
|
column.level = parent.level + 1;
|
|
@@ -22555,7 +22604,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22555
22604
|
var colSpan = 0;
|
|
22556
22605
|
column.children.forEach(function (subColumn) {
|
|
22557
22606
|
//进行递归
|
|
22558
|
-
|
|
22607
|
+
traverse(subColumn, column);
|
|
22559
22608
|
colSpan += subColumn.colSpan;
|
|
22560
22609
|
});
|
|
22561
22610
|
column.colSpan = colSpan;
|
|
@@ -22565,14 +22614,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22565
22614
|
};
|
|
22566
22615
|
originColumns.forEach(function (column) {
|
|
22567
22616
|
column.level = 1;
|
|
22568
|
-
|
|
22617
|
+
traverse(column);
|
|
22569
22618
|
});
|
|
22570
22619
|
var rows = [];
|
|
22571
22620
|
var lastData = [];
|
|
22572
22621
|
for (var i = 0; i < maxLevel; i++) {
|
|
22573
22622
|
rows.push([]);
|
|
22574
22623
|
}
|
|
22575
|
-
var allColumns =
|
|
22624
|
+
var allColumns = getAllColumns(originColumns);
|
|
22576
22625
|
allColumns.forEach(function (column) {
|
|
22577
22626
|
if (!column.children) {
|
|
22578
22627
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28589,7 +28638,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28589
28638
|
}
|
|
28590
28639
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28591
28640
|
};
|
|
28592
|
-
var
|
|
28641
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28593
28642
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28594
28643
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28595
28644
|
var children = hightLightData.children,
|
|
@@ -28600,7 +28649,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28600
28649
|
lineEnd = _loc2[2];
|
|
28601
28650
|
if (children) {
|
|
28602
28651
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28603
|
-
return
|
|
28652
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28604
28653
|
});
|
|
28605
28654
|
}
|
|
28606
28655
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28612,7 +28661,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28612
28661
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28613
28662
|
data.forEach(function (node) {
|
|
28614
28663
|
if (!node) return;
|
|
28615
|
-
node.toggled =
|
|
28664
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28616
28665
|
node.active = isHightLight(node, highLightLine);
|
|
28617
28666
|
if (node.children) {
|
|
28618
28667
|
if (node.active) {
|
|
@@ -30043,7 +30092,7 @@ var valueType = {
|
|
|
30043
30092
|
};
|
|
30044
30093
|
|
|
30045
30094
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30046
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30095
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30047
30096
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30048
30097
|
while (1) switch (_context.prev = _context.next) {
|
|
30049
30098
|
case 0:
|
|
@@ -30111,7 +30160,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30111
30160
|
value: false
|
|
30112
30161
|
}];
|
|
30113
30162
|
var ref = useRef();
|
|
30114
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30163
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30115
30164
|
var _ref$current, source;
|
|
30116
30165
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30117
30166
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30225,7 +30274,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30225
30274
|
source: {
|
|
30226
30275
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30227
30276
|
type: function () {
|
|
30228
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30277
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30229
30278
|
var form, values, name, relates, source;
|
|
30230
30279
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30231
30280
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30705,7 +30754,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30705
30754
|
source: {
|
|
30706
30755
|
relates: ['choiceType', 'inputType'],
|
|
30707
30756
|
type: function () {
|
|
30708
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30757
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30709
30758
|
var values, name, form, source;
|
|
30710
30759
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30711
30760
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30927,7 +30976,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30927
30976
|
width: 900,
|
|
30928
30977
|
maskClosable: false,
|
|
30929
30978
|
onOk: function () {
|
|
30930
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30979
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30931
30980
|
var _ref$current4, _res$editableStatus;
|
|
30932
30981
|
var res, _res$defaultValue;
|
|
30933
30982
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30999,7 +31048,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30999
31048
|
}()
|
|
31000
31049
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
31001
31050
|
ref: ref
|
|
31002
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31051
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31003
31052
|
};
|
|
31004
31053
|
|
|
31005
31054
|
// @ts-nocheck
|
|
@@ -31613,7 +31662,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31613
31662
|
return setVisible(false);
|
|
31614
31663
|
},
|
|
31615
31664
|
className: 'customFieldsDrawer'
|
|
31616
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31665
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
31617
31666
|
style: {
|
|
31618
31667
|
display: 'flex'
|
|
31619
31668
|
}
|
|
@@ -31622,13 +31671,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31622
31671
|
flex: 1,
|
|
31623
31672
|
width: 500
|
|
31624
31673
|
}
|
|
31625
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31674
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31626
31675
|
style: {
|
|
31627
31676
|
padding: "10px 0",
|
|
31628
31677
|
fontSize: "16px",
|
|
31629
31678
|
fontWeight: "bolder"
|
|
31630
31679
|
}
|
|
31631
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31680
|
+
}, "\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", {
|
|
31632
31681
|
style: {
|
|
31633
31682
|
flex: 1
|
|
31634
31683
|
}
|
|
@@ -31637,7 +31686,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31637
31686
|
onRun: onClickRun,
|
|
31638
31687
|
value: jsonEditorVal,
|
|
31639
31688
|
shallowHeight: height
|
|
31640
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31689
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
31641
31690
|
defaultActiveKey: activeKey,
|
|
31642
31691
|
onChange: function onChange(v) {
|
|
31643
31692
|
return setActiveKey(v);
|
|
@@ -31654,13 +31703,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31654
31703
|
flex: 1,
|
|
31655
31704
|
width: 500
|
|
31656
31705
|
}
|
|
31657
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31706
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31658
31707
|
style: {
|
|
31659
31708
|
padding: "10px 0",
|
|
31660
31709
|
fontSize: "16px",
|
|
31661
31710
|
fontWeight: "bolder"
|
|
31662
31711
|
}
|
|
31663
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31712
|
+
}, "\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", {
|
|
31664
31713
|
style: {
|
|
31665
31714
|
flex: 1
|
|
31666
31715
|
}
|
|
@@ -31682,13 +31731,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31682
31731
|
flex: 1,
|
|
31683
31732
|
width: 500
|
|
31684
31733
|
}
|
|
31685
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31734
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31686
31735
|
style: {
|
|
31687
31736
|
padding: "10px 0",
|
|
31688
31737
|
fontSize: "16px",
|
|
31689
31738
|
fontWeight: "bolder"
|
|
31690
31739
|
}
|
|
31691
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
31740
|
+
}, "\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", {
|
|
31692
31741
|
style: {
|
|
31693
31742
|
flex: 1
|
|
31694
31743
|
}
|
|
@@ -31834,7 +31883,7 @@ function getMetaData(_x) {
|
|
|
31834
31883
|
|
|
31835
31884
|
// 获取数据
|
|
31836
31885
|
function _getMetaData() {
|
|
31837
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31886
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31838
31887
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31839
31888
|
while (1) switch (_context.prev = _context.next) {
|
|
31840
31889
|
case 0:
|
|
@@ -32056,7 +32105,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32056
32105
|
tableState = _useState4[0],
|
|
32057
32106
|
setTableState = _useState4[1];
|
|
32058
32107
|
var handleOpen = /*#__PURE__*/function () {
|
|
32059
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32108
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32060
32109
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32061
32110
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32062
32111
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32375,7 +32424,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32375
32424
|
destroyOnClose: true
|
|
32376
32425
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
32377
32426
|
ref: queryTableRef
|
|
32378
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React$1.createElement(Row, {
|
|
32427
|
+
}, 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, {
|
|
32379
32428
|
justify: "center",
|
|
32380
32429
|
style: {
|
|
32381
32430
|
marginBottom: 30,
|
|
@@ -32491,7 +32540,7 @@ var CustomSelector = (function (props) {
|
|
|
32491
32540
|
var _props$ctx7;
|
|
32492
32541
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32493
32542
|
}
|
|
32494
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32543
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
32495
32544
|
type: "primary",
|
|
32496
32545
|
style: {
|
|
32497
32546
|
width: '30px',
|
|
@@ -32577,7 +32626,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32577
32626
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32578
32627
|
handSource = _useState2[0],
|
|
32579
32628
|
setHandSource = _useState2[1];
|
|
32580
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32629
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32581
32630
|
var resData, data;
|
|
32582
32631
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32583
32632
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32729,7 +32778,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32729
32778
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32730
32779
|
}
|
|
32731
32780
|
function _getRegularThresholdRange() {
|
|
32732
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32781
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32733
32782
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32734
32783
|
while (1) switch (_context.prev = _context.next) {
|
|
32735
32784
|
case 0:
|
|
@@ -32883,7 +32932,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32883
32932
|
};
|
|
32884
32933
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32885
32934
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32886
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32935
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32887
32936
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32888
32937
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32889
32938
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33840,7 +33889,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33840
33889
|
isAll: true,
|
|
33841
33890
|
needNameAndCode: true,
|
|
33842
33891
|
notChangeOnSelect: true,
|
|
33843
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33892
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33844
33893
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33845
33894
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33846
33895
|
case 0:
|
|
@@ -33889,7 +33938,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33889
33938
|
isAll: true,
|
|
33890
33939
|
needNameAndCode: true,
|
|
33891
33940
|
notChangeOnSelect: true,
|
|
33892
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33941
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33893
33942
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33894
33943
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33895
33944
|
case 0:
|
|
@@ -33940,7 +33989,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33940
33989
|
isAll: true,
|
|
33941
33990
|
needNameAndCode: true,
|
|
33942
33991
|
notChangeOnSelect: true,
|
|
33943
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33992
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33944
33993
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33945
33994
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33946
33995
|
case 0:
|
|
@@ -35918,7 +35967,7 @@ var App$1 = function App(_ref) {
|
|
|
35918
35967
|
borderRadius: '5px',
|
|
35919
35968
|
cursor: 'pointer'
|
|
35920
35969
|
}
|
|
35921
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35970
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35922
35971
|
autoFocus: true,
|
|
35923
35972
|
onClick: function onClick(e) {
|
|
35924
35973
|
return e.stopPropagation();
|
|
@@ -36205,7 +36254,7 @@ function RenderCompItem(props) {
|
|
|
36205
36254
|
dictData = _useState2[0],
|
|
36206
36255
|
setDictData = _useState2[1];
|
|
36207
36256
|
var getDictData = /*#__PURE__*/function () {
|
|
36208
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36257
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36209
36258
|
var _data$map;
|
|
36210
36259
|
var data;
|
|
36211
36260
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -36247,7 +36296,7 @@ function RenderCompItem(props) {
|
|
|
36247
36296
|
var style2 = {
|
|
36248
36297
|
width: '100px'
|
|
36249
36298
|
};
|
|
36250
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
|
|
36299
|
+
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, {
|
|
36251
36300
|
disabled: disabled,
|
|
36252
36301
|
allowClear: true,
|
|
36253
36302
|
onClear: function onClear() {
|
|
@@ -36258,7 +36307,7 @@ function RenderCompItem(props) {
|
|
|
36258
36307
|
onBlur: function onBlur(e) {
|
|
36259
36308
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
36260
36309
|
}
|
|
36261
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React$1.createElement(InputNumber, {
|
|
36310
|
+
})) || 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, {
|
|
36262
36311
|
disabled: disabled,
|
|
36263
36312
|
// max={Number.MAX_SAFE_INTEGER}
|
|
36264
36313
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -36271,7 +36320,7 @@ function RenderCompItem(props) {
|
|
|
36271
36320
|
onChange: function onChange(value) {
|
|
36272
36321
|
handleEdit(ites.code, value);
|
|
36273
36322
|
}
|
|
36274
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React$1.createElement(DatePicker, {
|
|
36323
|
+
})) || 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, {
|
|
36275
36324
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
36276
36325
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
36277
36326
|
disabled: disabled,
|
|
@@ -36281,7 +36330,7 @@ function RenderCompItem(props) {
|
|
|
36281
36330
|
onChange: function onChange(value, dateString) {
|
|
36282
36331
|
handleEdit(ites.code, dateString);
|
|
36283
36332
|
}
|
|
36284
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
36333
|
+
})) || 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, {
|
|
36285
36334
|
showTime: true,
|
|
36286
36335
|
disabled: disabled,
|
|
36287
36336
|
defaultValue: ites.defaultValue,
|
|
@@ -36290,7 +36339,7 @@ function RenderCompItem(props) {
|
|
|
36290
36339
|
onChange: function onChange(value, timeString) {
|
|
36291
36340
|
handleEdit(ites.code, timeString);
|
|
36292
36341
|
}
|
|
36293
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
|
|
36342
|
+
})) || 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, {
|
|
36294
36343
|
disabled: disabled,
|
|
36295
36344
|
defaultChecked: !!ites.defaultValue,
|
|
36296
36345
|
style: style2,
|
|
@@ -36298,7 +36347,7 @@ function RenderCompItem(props) {
|
|
|
36298
36347
|
onChange: function onChange(value) {
|
|
36299
36348
|
handleEdit(ites.code, value);
|
|
36300
36349
|
}
|
|
36301
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
36350
|
+
})) || 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({
|
|
36302
36351
|
disabled: disabled,
|
|
36303
36352
|
allowClear: true,
|
|
36304
36353
|
showArrow: true
|
|
@@ -36316,7 +36365,7 @@ function RenderCompItem(props) {
|
|
|
36316
36365
|
key: it,
|
|
36317
36366
|
value: it
|
|
36318
36367
|
}, ites.enumeration[it]);
|
|
36319
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
36368
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
36320
36369
|
disabled: disabled,
|
|
36321
36370
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
36322
36371
|
defaultValue: ites.defaultValue,
|
|
@@ -36326,7 +36375,7 @@ function RenderCompItem(props) {
|
|
|
36326
36375
|
handleEdit(ites.code, value);
|
|
36327
36376
|
},
|
|
36328
36377
|
dictionaryCode: ites.dictionaryCode
|
|
36329
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36378
|
+
})) || 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, {
|
|
36330
36379
|
selectBusinessType: "physicalWarehouse",
|
|
36331
36380
|
selectProps: _objectSpread2({
|
|
36332
36381
|
style: styleCommon,
|
|
@@ -36348,7 +36397,7 @@ function RenderCompItem(props) {
|
|
|
36348
36397
|
getPopupContainer: function getPopupContainer() {
|
|
36349
36398
|
return document.body;
|
|
36350
36399
|
}
|
|
36351
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36400
|
+
})) || 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, {
|
|
36352
36401
|
selectBusinessType: "realWarehouse",
|
|
36353
36402
|
selectProps: _objectSpread2({
|
|
36354
36403
|
style: styleCommon,
|
|
@@ -36370,7 +36419,7 @@ function RenderCompItem(props) {
|
|
|
36370
36419
|
getPopupContainer: function getPopupContainer() {
|
|
36371
36420
|
return document.body;
|
|
36372
36421
|
}
|
|
36373
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36422
|
+
})) || 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, {
|
|
36374
36423
|
selectBusinessType: "virtualWarehouse",
|
|
36375
36424
|
selectProps: _objectSpread2({
|
|
36376
36425
|
style: styleCommon,
|
|
@@ -36392,7 +36441,7 @@ function RenderCompItem(props) {
|
|
|
36392
36441
|
getPopupContainer: function getPopupContainer() {
|
|
36393
36442
|
return document.body;
|
|
36394
36443
|
}
|
|
36395
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36444
|
+
})) || 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, {
|
|
36396
36445
|
selectBusinessType: "channelWarehouse",
|
|
36397
36446
|
selectProps: _objectSpread2({
|
|
36398
36447
|
style: styleCommon,
|
|
@@ -36414,7 +36463,7 @@ function RenderCompItem(props) {
|
|
|
36414
36463
|
getPopupContainer: function getPopupContainer() {
|
|
36415
36464
|
return document.body;
|
|
36416
36465
|
}
|
|
36417
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36466
|
+
})) || 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, {
|
|
36418
36467
|
selectBusinessType: "spuCommodity",
|
|
36419
36468
|
selectProps: _objectSpread2({
|
|
36420
36469
|
style: styleCommon,
|
|
@@ -36435,7 +36484,7 @@ function RenderCompItem(props) {
|
|
|
36435
36484
|
getPopupContainer: function getPopupContainer() {
|
|
36436
36485
|
return document.body;
|
|
36437
36486
|
}
|
|
36438
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36487
|
+
})) || 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, {
|
|
36439
36488
|
selectBusinessType: "skuCommodity",
|
|
36440
36489
|
selectProps: _objectSpread2({
|
|
36441
36490
|
style: styleCommon,
|
|
@@ -36456,13 +36505,13 @@ function RenderCompItem(props) {
|
|
|
36456
36505
|
getPopupContainer: function getPopupContainer() {
|
|
36457
36506
|
return document.body;
|
|
36458
36507
|
}
|
|
36459
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
36508
|
+
})) || 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, {
|
|
36460
36509
|
disabled: disabled,
|
|
36461
36510
|
isAll: true,
|
|
36462
36511
|
needNameAndCode: true,
|
|
36463
36512
|
notChangeOnSelect: true,
|
|
36464
36513
|
initRequestSource: function () {
|
|
36465
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36514
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36466
36515
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36467
36516
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36468
36517
|
case 0:
|
|
@@ -36504,7 +36553,7 @@ function RenderCompItem(props) {
|
|
|
36504
36553
|
getPopupContainer: function getPopupContainer() {
|
|
36505
36554
|
return document.body;
|
|
36506
36555
|
}
|
|
36507
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36556
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36508
36557
|
disabled: disabled,
|
|
36509
36558
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36510
36559
|
businessType: "department",
|
|
@@ -36517,7 +36566,7 @@ function RenderCompItem(props) {
|
|
|
36517
36566
|
getPopupContainer: function getPopupContainer() {
|
|
36518
36567
|
return document.body;
|
|
36519
36568
|
}
|
|
36520
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36569
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36521
36570
|
disabled: disabled,
|
|
36522
36571
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36523
36572
|
businessType: "purchase-organization",
|
|
@@ -36530,7 +36579,7 @@ function RenderCompItem(props) {
|
|
|
36530
36579
|
getPopupContainer: function getPopupContainer() {
|
|
36531
36580
|
return document.body;
|
|
36532
36581
|
}
|
|
36533
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36582
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36534
36583
|
disabled: disabled,
|
|
36535
36584
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36536
36585
|
businessType: "sales-organization",
|
|
@@ -36543,7 +36592,7 @@ function RenderCompItem(props) {
|
|
|
36543
36592
|
getPopupContainer: function getPopupContainer() {
|
|
36544
36593
|
return document.body;
|
|
36545
36594
|
}
|
|
36546
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36595
|
+
})) || 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, {
|
|
36547
36596
|
selectBusinessType: "supplier2",
|
|
36548
36597
|
selectProps: _objectSpread2({
|
|
36549
36598
|
style: styleCommon,
|
|
@@ -36564,7 +36613,7 @@ function RenderCompItem(props) {
|
|
|
36564
36613
|
getPopupContainer: function getPopupContainer() {
|
|
36565
36614
|
return document.body;
|
|
36566
36615
|
}
|
|
36567
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36616
|
+
})) || 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, {
|
|
36568
36617
|
selectBusinessType: "customer2",
|
|
36569
36618
|
selectProps: _objectSpread2({
|
|
36570
36619
|
style: styleCommon,
|
|
@@ -36585,7 +36634,7 @@ function RenderCompItem(props) {
|
|
|
36585
36634
|
getPopupContainer: function getPopupContainer() {
|
|
36586
36635
|
return document.body;
|
|
36587
36636
|
}
|
|
36588
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36637
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36589
36638
|
selectBusinessType: "shopFile2",
|
|
36590
36639
|
selectProps: _objectSpread2({
|
|
36591
36640
|
style: styleCommon,
|
|
@@ -36606,7 +36655,7 @@ function RenderCompItem(props) {
|
|
|
36606
36655
|
getPopupContainer: function getPopupContainer() {
|
|
36607
36656
|
return document.body;
|
|
36608
36657
|
}
|
|
36609
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36658
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36610
36659
|
selectBusinessType: "employee2",
|
|
36611
36660
|
selectProps: _objectSpread2({
|
|
36612
36661
|
style: styleCommon,
|
|
@@ -36627,7 +36676,7 @@ function RenderCompItem(props) {
|
|
|
36627
36676
|
getPopupContainer: function getPopupContainer() {
|
|
36628
36677
|
return document.body;
|
|
36629
36678
|
}
|
|
36630
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
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) === 280 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36631
36680
|
disabled: disabled,
|
|
36632
36681
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36633
36682
|
businessType: "stock-organization",
|
|
@@ -36640,7 +36689,7 @@ function RenderCompItem(props) {
|
|
|
36640
36689
|
getPopupContainer: function getPopupContainer() {
|
|
36641
36690
|
return document.body;
|
|
36642
36691
|
}
|
|
36643
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36692
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36644
36693
|
disabled: disabled,
|
|
36645
36694
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36646
36695
|
businessType: "settle-organization",
|
|
@@ -36653,7 +36702,7 @@ function RenderCompItem(props) {
|
|
|
36653
36702
|
getPopupContainer: function getPopupContainer() {
|
|
36654
36703
|
return document.body;
|
|
36655
36704
|
}
|
|
36656
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36705
|
+
})) || 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, {
|
|
36657
36706
|
selectBusinessType: "deliveryMode",
|
|
36658
36707
|
selectProps: _objectSpread2({
|
|
36659
36708
|
style: styleCommon,
|
|
@@ -36674,7 +36723,7 @@ function RenderCompItem(props) {
|
|
|
36674
36723
|
getPopupContainer: function getPopupContainer() {
|
|
36675
36724
|
return document.body;
|
|
36676
36725
|
}
|
|
36677
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36726
|
+
})) || 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, {
|
|
36678
36727
|
selectBusinessType: "role",
|
|
36679
36728
|
selectProps: _objectSpread2({
|
|
36680
36729
|
style: styleCommon,
|
|
@@ -36695,7 +36744,7 @@ function RenderCompItem(props) {
|
|
|
36695
36744
|
getPopupContainer: function getPopupContainer() {
|
|
36696
36745
|
return document.body;
|
|
36697
36746
|
}
|
|
36698
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36747
|
+
})) || 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, {
|
|
36699
36748
|
selectBusinessType: "brand",
|
|
36700
36749
|
selectProps: _objectSpread2({
|
|
36701
36750
|
style: styleCommon,
|
|
@@ -36716,7 +36765,7 @@ function RenderCompItem(props) {
|
|
|
36716
36765
|
getPopupContainer: function getPopupContainer() {
|
|
36717
36766
|
return document.body;
|
|
36718
36767
|
}
|
|
36719
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36768
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36720
36769
|
disabled: disabled,
|
|
36721
36770
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36722
36771
|
businessType: "background-category",
|
|
@@ -36729,7 +36778,7 @@ function RenderCompItem(props) {
|
|
|
36729
36778
|
getPopupContainer: function getPopupContainer() {
|
|
36730
36779
|
return document.body;
|
|
36731
36780
|
}
|
|
36732
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
36781
|
+
})) || 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, {
|
|
36733
36782
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36734
36783
|
style: styleCommon,
|
|
36735
36784
|
placeholder: '请选择'
|
|
@@ -36752,7 +36801,7 @@ function RenderCompItem(props) {
|
|
|
36752
36801
|
onChange: function onChange(value) {
|
|
36753
36802
|
handleEdit(ites.code, value);
|
|
36754
36803
|
}
|
|
36755
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36804
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
36756
36805
|
style: {
|
|
36757
36806
|
display: 'flex'
|
|
36758
36807
|
}
|
|
@@ -37265,7 +37314,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37265
37314
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
37266
37315
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
37267
37316
|
}
|
|
37268
|
-
var parallelTreeData =
|
|
37317
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
37269
37318
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
37270
37319
|
var _i$key;
|
|
37271
37320
|
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);
|
|
@@ -38234,13 +38283,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
38234
38283
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
38235
38284
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
38236
38285
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
38237
|
-
var list =
|
|
38286
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
38238
38287
|
var requiredList = list.filter(function (c) {
|
|
38239
38288
|
return c.required == 1;
|
|
38240
38289
|
}) || []; // 获取对象属性为true的集合
|
|
38241
38290
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
38242
38291
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
38243
|
-
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ?
|
|
38292
|
+
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];
|
|
38244
38293
|
(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) {
|
|
38245
38294
|
if (requiredList.some(function (r) {
|
|
38246
38295
|
return r.id === e.elementId;
|
|
@@ -38829,7 +38878,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38829
38878
|
style: {
|
|
38830
38879
|
float: 'right'
|
|
38831
38880
|
}
|
|
38832
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38881
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38833
38882
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38834
38883
|
ruleGroupInfo: {
|
|
38835
38884
|
ruleGroupList: ruleGroupList,
|
|
@@ -38847,7 +38896,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38847
38896
|
callBack: function callBack(newData) {
|
|
38848
38897
|
upDateData(newData);
|
|
38849
38898
|
}
|
|
38850
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38899
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
38851
38900
|
style: {
|
|
38852
38901
|
padding: 20
|
|
38853
38902
|
}
|
|
@@ -39222,4 +39271,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
39222
39271
|
}, children));
|
|
39223
39272
|
};
|
|
39224
39273
|
|
|
39225
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
39274
|
+
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 };
|