@bit-sun/business-component 4.0.13-alpha.6 → 4.0.13-alpha.8
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 s = Object.getOwnPropertySymbols(e);
|
|
192
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(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 (e.includes(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);
|
|
553
430
|
}
|
|
554
431
|
}
|
|
432
|
+
function _asyncToGenerator(fn) {
|
|
433
|
+
return function () {
|
|
434
|
+
var self = this,
|
|
435
|
+
args = arguments;
|
|
436
|
+
return new Promise(function (resolve, reject) {
|
|
437
|
+
var gen = fn.apply(self, args);
|
|
438
|
+
function _next(value) {
|
|
439
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
440
|
+
}
|
|
441
|
+
function _throw(err) {
|
|
442
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
443
|
+
}
|
|
444
|
+
_next(undefined);
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
function _classCallCheck(instance, Constructor) {
|
|
449
|
+
if (!(instance instanceof Constructor)) {
|
|
450
|
+
throw new TypeError("Cannot call a class as a function");
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
function _defineProperties(target, props) {
|
|
454
|
+
for (var i = 0; i < props.length; i++) {
|
|
455
|
+
var descriptor = props[i];
|
|
456
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
457
|
+
descriptor.configurable = true;
|
|
458
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
459
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
463
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
464
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
465
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
466
|
+
writable: false
|
|
467
|
+
});
|
|
468
|
+
return Constructor;
|
|
469
|
+
}
|
|
470
|
+
function _defineProperty(obj, key, value) {
|
|
471
|
+
key = _toPropertyKey(key);
|
|
472
|
+
if (key in obj) {
|
|
473
|
+
Object.defineProperty(obj, key, {
|
|
474
|
+
value: value,
|
|
475
|
+
enumerable: true,
|
|
476
|
+
configurable: true,
|
|
477
|
+
writable: true
|
|
478
|
+
});
|
|
479
|
+
} else {
|
|
480
|
+
obj[key] = value;
|
|
481
|
+
}
|
|
482
|
+
return obj;
|
|
483
|
+
}
|
|
484
|
+
function _inherits(subClass, superClass) {
|
|
485
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
486
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
487
|
+
}
|
|
488
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
489
|
+
constructor: {
|
|
490
|
+
value: subClass,
|
|
491
|
+
writable: true,
|
|
492
|
+
configurable: true
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
Object.defineProperty(subClass, "prototype", {
|
|
496
|
+
writable: false
|
|
497
|
+
});
|
|
498
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
499
|
+
}
|
|
500
|
+
function _getPrototypeOf(o) {
|
|
501
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
502
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
503
|
+
};
|
|
504
|
+
return _getPrototypeOf(o);
|
|
505
|
+
}
|
|
506
|
+
function _setPrototypeOf(o, p) {
|
|
507
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
508
|
+
o.__proto__ = p;
|
|
509
|
+
return o;
|
|
510
|
+
};
|
|
511
|
+
return _setPrototypeOf(o, p);
|
|
512
|
+
}
|
|
513
|
+
function _objectDestructuringEmpty(obj) {
|
|
514
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
515
|
+
}
|
|
516
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
517
|
+
if (source == null) return {};
|
|
518
|
+
var target = {};
|
|
519
|
+
for (var key in source) {
|
|
520
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
521
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
522
|
+
target[key] = source[key];
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return target;
|
|
526
|
+
}
|
|
527
|
+
function _objectWithoutProperties(source, excluded) {
|
|
528
|
+
if (source == null) return {};
|
|
529
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
530
|
+
var key, i;
|
|
531
|
+
if (Object.getOwnPropertySymbols) {
|
|
532
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
533
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
534
|
+
key = sourceSymbolKeys[i];
|
|
535
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
536
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
537
|
+
target[key] = source[key];
|
|
538
|
+
}
|
|
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:
|
|
@@ -3245,7 +3283,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3245
3283
|
style: {
|
|
3246
3284
|
color: 'red'
|
|
3247
3285
|
}
|
|
3248
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3286
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3249
3287
|
trigger: ['click'],
|
|
3250
3288
|
overlay: this.menuList,
|
|
3251
3289
|
placement: "bottomRight"
|
|
@@ -3920,7 +3958,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3920
3958
|
placement: "bottomLeft"
|
|
3921
3959
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3922
3960
|
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"))
|
|
3923
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3961
|
+
}, /*#__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, {
|
|
3924
3962
|
trigger: ['click'],
|
|
3925
3963
|
overlay: this.menuList,
|
|
3926
3964
|
placement: "bottomRight"
|
|
@@ -4439,7 +4477,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4439
4477
|
destroyTooltipOnHide: true,
|
|
4440
4478
|
placement: "topRight",
|
|
4441
4479
|
autoAdjustOverflow: false,
|
|
4442
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4480
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
4443
4481
|
style: {
|
|
4444
4482
|
margin: '6px 8px 0px'
|
|
4445
4483
|
},
|
|
@@ -4740,10 +4778,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4740
4778
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4741
4779
|
});
|
|
4742
4780
|
},
|
|
4743
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4781
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
4744
4782
|
size: "small",
|
|
4745
4783
|
className: 'searchSelectSpin'
|
|
4746
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4784
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
4747
4785
|
style: {
|
|
4748
4786
|
textAlign: 'center'
|
|
4749
4787
|
}
|
|
@@ -4975,7 +5013,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4975
5013
|
title: item.name,
|
|
4976
5014
|
className: "propertyGroup_checkbox_container"
|
|
4977
5015
|
}, item.name));
|
|
4978
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
5016
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
4979
5017
|
style: {
|
|
4980
5018
|
width: '50px',
|
|
4981
5019
|
cursor: 'pointer',
|
|
@@ -4988,7 +5026,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4988
5026
|
setShowNotCommon(!showNotCommon);
|
|
4989
5027
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4990
5028
|
}
|
|
4991
|
-
}, 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"))))));
|
|
5029
|
+
}, 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"))))));
|
|
4992
5030
|
};
|
|
4993
5031
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4994
5032
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5218,7 +5256,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5218
5256
|
propertyData: item,
|
|
5219
5257
|
handleProperyItemChange: handleProperyItemChange
|
|
5220
5258
|
});
|
|
5221
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5259
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5222
5260
|
style: {
|
|
5223
5261
|
width: '50px',
|
|
5224
5262
|
cursor: 'pointer',
|
|
@@ -5228,7 +5266,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5228
5266
|
onClick: function onClick() {
|
|
5229
5267
|
return setShowNotCommon(!showNotCommon);
|
|
5230
5268
|
}
|
|
5231
|
-
}, 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"))))))));
|
|
5269
|
+
}, 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"))))))));
|
|
5232
5270
|
};
|
|
5233
5271
|
|
|
5234
5272
|
var Option$1 = Select.Option;
|
|
@@ -5242,6 +5280,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5242
5280
|
modalTableProps = _props$modalTableProp === void 0 ? {} : _props$modalTableProp,
|
|
5243
5281
|
_props$labelInValue = props.labelInValue,
|
|
5244
5282
|
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
5283
|
+
needTopSelectedSource = props.needTopSelectedSource,
|
|
5245
5284
|
rCTemp = props.requestConfig,
|
|
5246
5285
|
ctx = props.ctx,
|
|
5247
5286
|
_props$onlyShowStr = props.onlyShowStr,
|
|
@@ -5584,7 +5623,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5584
5623
|
value: value,
|
|
5585
5624
|
type: type,
|
|
5586
5625
|
items: items,
|
|
5587
|
-
queryParams: queryParams
|
|
5626
|
+
queryParams: queryParams,
|
|
5627
|
+
needTopSelectedSource: needTopSelectedSource
|
|
5588
5628
|
});
|
|
5589
5629
|
if (callback) {
|
|
5590
5630
|
callback(source);
|
|
@@ -6230,13 +6270,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6230
6270
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6231
6271
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6232
6272
|
className: 'search_select'
|
|
6233
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6273
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6234
6274
|
onClick: function onClick() {
|
|
6235
6275
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6236
6276
|
(_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);
|
|
6237
6277
|
showModal();
|
|
6238
6278
|
}
|
|
6239
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6279
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
6240
6280
|
title: getShowStr({
|
|
6241
6281
|
viewShowValueStr: viewShowValueStr,
|
|
6242
6282
|
labelInValue: labelInValue,
|
|
@@ -6275,10 +6315,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6275
6315
|
dropdownRender: function dropdownRender(menu) {
|
|
6276
6316
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6277
6317
|
},
|
|
6278
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6318
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
6279
6319
|
size: "small",
|
|
6280
6320
|
className: 'searchSelectSpin'
|
|
6281
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6321
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
6282
6322
|
style: {
|
|
6283
6323
|
textAlign: 'center'
|
|
6284
6324
|
}
|
|
@@ -6318,7 +6358,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6318
6358
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6319
6359
|
filterTxt: searchValue
|
|
6320
6360
|
}));
|
|
6321
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6361
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6322
6362
|
maskClosable: false,
|
|
6323
6363
|
destroyOnClose: true,
|
|
6324
6364
|
width: "80%",
|
|
@@ -6915,7 +6955,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6915
6955
|
style: {
|
|
6916
6956
|
width: 525
|
|
6917
6957
|
}
|
|
6918
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6958
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6919
6959
|
checked: !dataSource.some(function (item) {
|
|
6920
6960
|
if (item.hidden) return true;
|
|
6921
6961
|
return false;
|
|
@@ -6953,13 +6993,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6953
6993
|
_this2.onChange(e, item.title);
|
|
6954
6994
|
}
|
|
6955
6995
|
}, item.title);
|
|
6956
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6996
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
6957
6997
|
style: {
|
|
6958
6998
|
width: '144px'
|
|
6959
6999
|
}
|
|
6960
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
7000
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
6961
7001
|
className: 'sort_table_column_all_empty'
|
|
6962
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
7002
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6963
7003
|
className: 'sort_table_column_special'
|
|
6964
7004
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6965
7005
|
className: 'sort_table_column_all'
|
|
@@ -7148,7 +7188,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7148
7188
|
});
|
|
7149
7189
|
};
|
|
7150
7190
|
// 格式化树选择器数据源
|
|
7151
|
-
var
|
|
7191
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7152
7192
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7153
7193
|
return {
|
|
7154
7194
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7158,7 +7198,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7158
7198
|
isLeaf: !haveChildren,
|
|
7159
7199
|
disabled: haveChildren,
|
|
7160
7200
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7161
|
-
return
|
|
7201
|
+
return mapSearchTree(i, resKeyValue);
|
|
7162
7202
|
}) : []
|
|
7163
7203
|
};
|
|
7164
7204
|
};
|
|
@@ -7167,7 +7207,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7167
7207
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7168
7208
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7169
7209
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7170
|
-
return
|
|
7210
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7171
7211
|
}) || [];
|
|
7172
7212
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7173
7213
|
};
|
|
@@ -7338,7 +7378,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7338
7378
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7339
7379
|
// FIXME: 特殊业务逻辑
|
|
7340
7380
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7341
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7381
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7342
7382
|
var result;
|
|
7343
7383
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7344
7384
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7591,7 +7631,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7591
7631
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7592
7632
|
value: text || null,
|
|
7593
7633
|
onChange: function () {
|
|
7594
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7634
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7595
7635
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7596
7636
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7597
7637
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8199,10 +8239,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8199
8239
|
var newColumns = arr.map(function (col) {
|
|
8200
8240
|
return _objectSpread2({}, col);
|
|
8201
8241
|
});
|
|
8202
|
-
var
|
|
8242
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8203
8243
|
var i = indexArr.shift();
|
|
8204
8244
|
if (indexArr.length > 0) {
|
|
8205
|
-
|
|
8245
|
+
handleIndex(arr[i].children, indexArr);
|
|
8206
8246
|
} else {
|
|
8207
8247
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8208
8248
|
width: size.width
|
|
@@ -8210,7 +8250,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8210
8250
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8211
8251
|
}
|
|
8212
8252
|
};
|
|
8213
|
-
|
|
8253
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8214
8254
|
callback(newColumns);
|
|
8215
8255
|
};
|
|
8216
8256
|
};
|
|
@@ -8220,13 +8260,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8220
8260
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8221
8261
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8222
8262
|
};
|
|
8223
|
-
var
|
|
8263
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8224
8264
|
arr.forEach(function (item, index) {
|
|
8225
8265
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8226
8266
|
return i || i === 0;
|
|
8227
8267
|
});
|
|
8228
8268
|
if (noEmptyArray$1(item.children)) {
|
|
8229
|
-
|
|
8269
|
+
handleColumns(item.children, indexArrInside);
|
|
8230
8270
|
} else {
|
|
8231
8271
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8232
8272
|
item.onHeaderCell = function (column) {
|
|
@@ -8242,14 +8282,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8242
8282
|
handleAntdColumnsSpecialParams(item);
|
|
8243
8283
|
return _objectSpread2({}, item);
|
|
8244
8284
|
});
|
|
8245
|
-
|
|
8285
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8246
8286
|
return setShowToChooseColumnsCallback(res);
|
|
8247
8287
|
});
|
|
8248
8288
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8249
8289
|
handleAntdColumnsSpecialParams(item);
|
|
8250
8290
|
return _objectSpread2({}, item);
|
|
8251
8291
|
});
|
|
8252
|
-
|
|
8292
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8253
8293
|
return setShowColumnsCallback(res);
|
|
8254
8294
|
});
|
|
8255
8295
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8260,7 +8300,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8260
8300
|
id: "add_select_div_".concat(uniqueValue)
|
|
8261
8301
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8262
8302
|
onClick: handleShowModal
|
|
8263
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8303
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
8264
8304
|
width: '1200px',
|
|
8265
8305
|
style: {
|
|
8266
8306
|
top: 20
|
|
@@ -9174,7 +9214,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9174
9214
|
});
|
|
9175
9215
|
};
|
|
9176
9216
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9177
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9217
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9178
9218
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9179
9219
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9180
9220
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9257,10 +9297,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9257
9297
|
var newColumns = arr.map(function (col) {
|
|
9258
9298
|
return _objectSpread2({}, col);
|
|
9259
9299
|
});
|
|
9260
|
-
var
|
|
9300
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9261
9301
|
var i = indexArr.shift();
|
|
9262
9302
|
if (indexArr.length > 0) {
|
|
9263
|
-
|
|
9303
|
+
handleIndex(arr[i].children, indexArr);
|
|
9264
9304
|
} else {
|
|
9265
9305
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9266
9306
|
width: size.width
|
|
@@ -9268,17 +9308,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9268
9308
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9269
9309
|
}
|
|
9270
9310
|
};
|
|
9271
|
-
|
|
9311
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9272
9312
|
callback(newColumns);
|
|
9273
9313
|
};
|
|
9274
9314
|
};
|
|
9275
|
-
var
|
|
9315
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9276
9316
|
arr.forEach(function (item, index) {
|
|
9277
9317
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9278
9318
|
return i || i === 0;
|
|
9279
9319
|
});
|
|
9280
9320
|
if (noEmptyArray$1(item.children)) {
|
|
9281
|
-
|
|
9321
|
+
handleColumns(item.children, indexArrInside);
|
|
9282
9322
|
} else {
|
|
9283
9323
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9284
9324
|
item.onHeaderCell = function (column) {
|
|
@@ -9294,7 +9334,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9294
9334
|
handleAntdColumnsSpecialParams(item);
|
|
9295
9335
|
return _objectSpread2({}, item);
|
|
9296
9336
|
});
|
|
9297
|
-
|
|
9337
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9298
9338
|
return setShowColumnsCallback(res);
|
|
9299
9339
|
});
|
|
9300
9340
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9609,7 +9649,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9609
9649
|
});
|
|
9610
9650
|
};
|
|
9611
9651
|
// 格式化树选择器数据源
|
|
9612
|
-
var
|
|
9652
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9613
9653
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9614
9654
|
return {
|
|
9615
9655
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9619,7 +9659,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9619
9659
|
isLeaf: !haveChildren,
|
|
9620
9660
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9621
9661
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9622
|
-
return
|
|
9662
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9623
9663
|
}) : []
|
|
9624
9664
|
};
|
|
9625
9665
|
};
|
|
@@ -9633,7 +9673,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9633
9673
|
disabledJudge = false;
|
|
9634
9674
|
}
|
|
9635
9675
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9636
|
-
return
|
|
9676
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9637
9677
|
}) || [];
|
|
9638
9678
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9639
9679
|
};
|
|
@@ -13743,7 +13783,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13743
13783
|
};
|
|
13744
13784
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13745
13785
|
onClick: handleShowModal
|
|
13746
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13786
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13747
13787
|
onOk: handleOk,
|
|
13748
13788
|
onCancel: handleCancel,
|
|
13749
13789
|
destroyOnClose: true,
|
|
@@ -13862,7 +13902,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13862
13902
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13863
13903
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13864
13904
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13865
|
-
var
|
|
13905
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13866
13906
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13867
13907
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13868
13908
|
return {
|
|
@@ -13874,7 +13914,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13874
13914
|
isLeaf: !haveChildren,
|
|
13875
13915
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13876
13916
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13877
|
-
return
|
|
13917
|
+
return mapSearchTree(i);
|
|
13878
13918
|
}) : []
|
|
13879
13919
|
};
|
|
13880
13920
|
};
|
|
@@ -13892,8 +13932,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13892
13932
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13893
13933
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13894
13934
|
headers: headers
|
|
13895
|
-
}).then(/*#__PURE__*/function () {
|
|
13896
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13935
|
+
}).then( /*#__PURE__*/function () {
|
|
13936
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13897
13937
|
var _ctx$form;
|
|
13898
13938
|
var resData, coverData, data, dataList;
|
|
13899
13939
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13920,7 +13960,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13920
13960
|
case 9:
|
|
13921
13961
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13922
13962
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13923
|
-
return
|
|
13963
|
+
return mapSearchTree(ites);
|
|
13924
13964
|
}) || [];
|
|
13925
13965
|
case 11:
|
|
13926
13966
|
_context.next = 14;
|
|
@@ -13958,11 +13998,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13958
13998
|
return _formatResult;
|
|
13959
13999
|
}
|
|
13960
14000
|
};
|
|
13961
|
-
var
|
|
14001
|
+
var parallelData = function parallelData(data, result) {
|
|
13962
14002
|
data.forEach(function (i) {
|
|
13963
14003
|
result.push(i);
|
|
13964
14004
|
if (i[treeChildrenRoom]) {
|
|
13965
|
-
|
|
14005
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13966
14006
|
}
|
|
13967
14007
|
});
|
|
13968
14008
|
return result;
|
|
@@ -14002,7 +14042,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14002
14042
|
var _ctx$form2;
|
|
14003
14043
|
var handleData = formatData(data);
|
|
14004
14044
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14005
|
-
var parallelTreeData =
|
|
14045
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14006
14046
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14007
14047
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14008
14048
|
onChangeName && onChangeName(dataName);
|
|
@@ -14045,7 +14085,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14045
14085
|
var getShowStr = function getShowStr() {
|
|
14046
14086
|
var isMultiple = multiple || treeCheckable;
|
|
14047
14087
|
var kongValue = '无';
|
|
14048
|
-
var parallelTreeData =
|
|
14088
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14049
14089
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14050
14090
|
if (isMultiple) {
|
|
14051
14091
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14057,7 +14097,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14057
14097
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14058
14098
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14059
14099
|
className: 'tree_search_select'
|
|
14060
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14100
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14061
14101
|
title: getShowStr(),
|
|
14062
14102
|
style: {
|
|
14063
14103
|
overflow: 'hidden',
|
|
@@ -14065,7 +14105,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14065
14105
|
whiteSpace: 'nowrap'
|
|
14066
14106
|
},
|
|
14067
14107
|
className: 'search_select_show'
|
|
14068
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14108
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14069
14109
|
treeCheckable: treeCheckable,
|
|
14070
14110
|
maxTagCount: maxTagCount,
|
|
14071
14111
|
showSearch: showSearch,
|
|
@@ -14262,7 +14302,7 @@ var index$2 = (function (props) {
|
|
|
14262
14302
|
} : {}
|
|
14263
14303
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14264
14304
|
className: 'status-label-operate'
|
|
14265
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14305
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
14266
14306
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14267
14307
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14268
14308
|
style: {
|
|
@@ -15043,7 +15083,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15043
15083
|
style: {
|
|
15044
15084
|
width: 525
|
|
15045
15085
|
}
|
|
15046
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15086
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15047
15087
|
checked: !dataSource.some(function (item) {
|
|
15048
15088
|
if (item.hidden) return true;
|
|
15049
15089
|
return false;
|
|
@@ -15081,13 +15121,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15081
15121
|
_this2.onChange(e, item.title);
|
|
15082
15122
|
}
|
|
15083
15123
|
}, item.title);
|
|
15084
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15124
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
15085
15125
|
style: {
|
|
15086
15126
|
width: '144px'
|
|
15087
15127
|
}
|
|
15088
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15128
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
15089
15129
|
className: 'sort_table_column_all_empty'
|
|
15090
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15130
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15091
15131
|
className: 'sort_table_column_special'
|
|
15092
15132
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15093
15133
|
className: 'sort_table_column_all'
|
|
@@ -15266,10 +15306,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15266
15306
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15267
15307
|
return _objectSpread2({}, col);
|
|
15268
15308
|
});
|
|
15269
|
-
var
|
|
15309
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15270
15310
|
var i = indexArr.shift();
|
|
15271
15311
|
if (indexArr.length > 0) {
|
|
15272
|
-
|
|
15312
|
+
handleIndex(arr[i].children, indexArr);
|
|
15273
15313
|
} else {
|
|
15274
15314
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15275
15315
|
width: size.width
|
|
@@ -15277,7 +15317,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15277
15317
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15278
15318
|
}
|
|
15279
15319
|
};
|
|
15280
|
-
|
|
15320
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15281
15321
|
_this.setState({
|
|
15282
15322
|
showColumns: _toConsumableArray(newColumns)
|
|
15283
15323
|
});
|
|
@@ -15318,7 +15358,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15318
15358
|
};
|
|
15319
15359
|
setIsResizing(true);
|
|
15320
15360
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15321
|
-
document.addEventListener('mouseup',
|
|
15361
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15322
15362
|
};
|
|
15323
15363
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15324
15364
|
e.stopPropagation();
|
|
@@ -15334,9 +15374,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15334
15374
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15335
15375
|
}
|
|
15336
15376
|
};
|
|
15337
|
-
var
|
|
15377
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15338
15378
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15339
|
-
document.removeEventListener('mouseup',
|
|
15379
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15340
15380
|
setIsResizing(false);
|
|
15341
15381
|
};
|
|
15342
15382
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15457,13 +15497,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15457
15497
|
showSummary = summary;
|
|
15458
15498
|
}
|
|
15459
15499
|
}
|
|
15460
|
-
var
|
|
15500
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15461
15501
|
arr.forEach(function (item, index) {
|
|
15462
15502
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15463
15503
|
return i || i === 0;
|
|
15464
15504
|
});
|
|
15465
15505
|
if (noEmptyArray$1(item.children)) {
|
|
15466
|
-
|
|
15506
|
+
handleColumns(item.children, indexArrInside);
|
|
15467
15507
|
} else {
|
|
15468
15508
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15469
15509
|
item.onHeaderCell = function (column) {
|
|
@@ -15479,7 +15519,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15479
15519
|
handleBssulaColumnsSpecialParams(item);
|
|
15480
15520
|
return _objectSpread2({}, item);
|
|
15481
15521
|
});
|
|
15482
|
-
|
|
15522
|
+
handleColumns(showCol, []);
|
|
15483
15523
|
if (dynamicColumns.length) {
|
|
15484
15524
|
showCol = this.handledynamicColumns(showCol);
|
|
15485
15525
|
}
|
|
@@ -15520,7 +15560,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15520
15560
|
cell: this.ResizeableTitle
|
|
15521
15561
|
}
|
|
15522
15562
|
}
|
|
15523
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15563
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15524
15564
|
summary: summary
|
|
15525
15565
|
})));
|
|
15526
15566
|
}
|
|
@@ -15617,10 +15657,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15617
15657
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15618
15658
|
return _objectSpread2({}, col);
|
|
15619
15659
|
});
|
|
15620
|
-
var
|
|
15660
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15621
15661
|
var i = indexArr.shift();
|
|
15622
15662
|
if (indexArr.length > 0) {
|
|
15623
|
-
|
|
15663
|
+
handleIndex(arr[i].children, indexArr);
|
|
15624
15664
|
} else {
|
|
15625
15665
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15626
15666
|
width: size.width
|
|
@@ -15628,7 +15668,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15628
15668
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15629
15669
|
}
|
|
15630
15670
|
};
|
|
15631
|
-
|
|
15671
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15632
15672
|
_this.setState({
|
|
15633
15673
|
showColumns: _toConsumableArray(newColumns)
|
|
15634
15674
|
});
|
|
@@ -15704,13 +15744,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15704
15744
|
showSummary = summary;
|
|
15705
15745
|
}
|
|
15706
15746
|
}
|
|
15707
|
-
var
|
|
15747
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15708
15748
|
arr.forEach(function (item, index) {
|
|
15709
15749
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15710
15750
|
return i || i === 0;
|
|
15711
15751
|
});
|
|
15712
15752
|
if (noEmptyArray$1(item.children)) {
|
|
15713
|
-
|
|
15753
|
+
handleColumns(item.children, indexArrInside);
|
|
15714
15754
|
} else {
|
|
15715
15755
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15716
15756
|
item.onHeaderCell = function (column) {
|
|
@@ -15726,7 +15766,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15726
15766
|
handleAntdColumnsSpecialParams(item);
|
|
15727
15767
|
return _objectSpread2({}, item);
|
|
15728
15768
|
});
|
|
15729
|
-
|
|
15769
|
+
handleColumns(showCol, []);
|
|
15730
15770
|
if (dynamicColumns.length) {
|
|
15731
15771
|
showCol = this.handledynamicColumns(showCol);
|
|
15732
15772
|
}
|
|
@@ -15766,7 +15806,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15766
15806
|
cell: this.ResizeableTitle
|
|
15767
15807
|
}
|
|
15768
15808
|
}
|
|
15769
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15809
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15770
15810
|
summary: summary
|
|
15771
15811
|
})));
|
|
15772
15812
|
}
|
|
@@ -15826,20 +15866,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15826
15866
|
};
|
|
15827
15867
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15828
15868
|
var routerMap = {};
|
|
15829
|
-
var
|
|
15869
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15830
15870
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15831
15871
|
data.forEach(function (menuItem) {
|
|
15832
15872
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15833
15873
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15834
15874
|
});
|
|
15835
15875
|
if (newMenuItem.children) {
|
|
15836
|
-
|
|
15876
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15837
15877
|
}
|
|
15838
15878
|
// Reduce memory usage
|
|
15839
15879
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15840
15880
|
});
|
|
15841
15881
|
};
|
|
15842
|
-
|
|
15882
|
+
flattenMenuData(menuData, {});
|
|
15843
15883
|
return routerMap;
|
|
15844
15884
|
};
|
|
15845
15885
|
// mode类型判断
|
|
@@ -16165,7 +16205,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16165
16205
|
display: 'flex',
|
|
16166
16206
|
gap: '8px'
|
|
16167
16207
|
}
|
|
16168
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16208
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16169
16209
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16170
16210
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16171
16211
|
onClick: function onClick() {
|
|
@@ -16173,7 +16213,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16173
16213
|
},
|
|
16174
16214
|
width: 24,
|
|
16175
16215
|
src: scanning
|
|
16176
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16216
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16177
16217
|
title: "\u5168\u5C4F"
|
|
16178
16218
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16179
16219
|
onClick: function onClick() {
|
|
@@ -16181,7 +16221,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16181
16221
|
},
|
|
16182
16222
|
width: 24,
|
|
16183
16223
|
src: quanping
|
|
16184
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16224
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16185
16225
|
}, function (prevProps, nextProps) {
|
|
16186
16226
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16187
16227
|
return false;
|
|
@@ -16266,7 +16306,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16266
16306
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16267
16307
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16268
16308
|
}, item));
|
|
16269
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16309
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16270
16310
|
}, function (prevProps, nextProps) {
|
|
16271
16311
|
if (prevProps.title !== nextProps.title) {
|
|
16272
16312
|
return false;
|
|
@@ -16906,8 +16946,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16906
16946
|
});
|
|
16907
16947
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16908
16948
|
className: 'sort_table_wrapper'
|
|
16909
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16910
|
-
title: "\
|
|
16949
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16950
|
+
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
16911
16951
|
wrapClassName: 'sort_table_wrapper',
|
|
16912
16952
|
width: 810,
|
|
16913
16953
|
visible: visible,
|
|
@@ -16944,7 +16984,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16944
16984
|
className: 'sort_table_column_wrapper'
|
|
16945
16985
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16946
16986
|
className: 'sort_table_column_count'
|
|
16947
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\
|
|
16987
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u5C55\u793A\u7684\u8868\u683C\u5217")), /*#__PURE__*/React$1.createElement("div", {
|
|
16948
16988
|
className: 'sort_table_column'
|
|
16949
16989
|
}, /*#__PURE__*/React$1.createElement(Input, {
|
|
16950
16990
|
prefix: /*#__PURE__*/React$1.createElement(SearchOutlined, {
|
|
@@ -16957,7 +16997,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16957
16997
|
width: 525,
|
|
16958
16998
|
height: 24
|
|
16959
16999
|
}
|
|
16960
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17000
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16961
17001
|
checked: !dataSource.some(function (item) {
|
|
16962
17002
|
if (item.hidden) return true;
|
|
16963
17003
|
return false;
|
|
@@ -17011,13 +17051,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17011
17051
|
_this2.onChange(e, item.title);
|
|
17012
17052
|
}
|
|
17013
17053
|
}, item.title);
|
|
17014
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17054
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17015
17055
|
style: {
|
|
17016
17056
|
width: '144px'
|
|
17017
17057
|
}
|
|
17018
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17058
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17019
17059
|
className: 'sort_table_column_all_empty'
|
|
17020
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17060
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
17021
17061
|
className: 'sort_table_column_special'
|
|
17022
17062
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
17023
17063
|
className: 'sort_table_column_all'
|
|
@@ -17039,7 +17079,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17039
17079
|
className: 'sort_table_content_wrapper'
|
|
17040
17080
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
17041
17081
|
className: 'sort_table_content_count'
|
|
17042
|
-
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\
|
|
17082
|
+
}, /*#__PURE__*/React$1.createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u5C55\u793A\u5217\u6392\u5E8F")), /*#__PURE__*/React$1.createElement("div", {
|
|
17043
17083
|
className: 'sort_table_content'
|
|
17044
17084
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
17045
17085
|
style: {
|
|
@@ -17491,7 +17531,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17491
17531
|
});
|
|
17492
17532
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17493
17533
|
className: 'sort_table_wrapper'
|
|
17494
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17534
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17495
17535
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17496
17536
|
wrapClassName: 'sort_table_wrapper',
|
|
17497
17537
|
width: 820,
|
|
@@ -17536,7 +17576,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17536
17576
|
style: {
|
|
17537
17577
|
width: 525
|
|
17538
17578
|
}
|
|
17539
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17579
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17540
17580
|
checked: !dataSource.some(function (item) {
|
|
17541
17581
|
if (item.hidden) return true;
|
|
17542
17582
|
return false;
|
|
@@ -17572,11 +17612,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17572
17612
|
_this2.onChange(e, item.name);
|
|
17573
17613
|
}
|
|
17574
17614
|
}, item.label);
|
|
17575
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17615
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17576
17616
|
style: {
|
|
17577
17617
|
width: '144px'
|
|
17578
17618
|
}
|
|
17579
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17619
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17580
17620
|
className: 'sort_table_column_all_empty'
|
|
17581
17621
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17582
17622
|
className: 'sort_table_content_wrapper'
|
|
@@ -17675,7 +17715,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17675
17715
|
};
|
|
17676
17716
|
setIsResizing(true);
|
|
17677
17717
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17678
|
-
document.addEventListener('mouseup',
|
|
17718
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17679
17719
|
};
|
|
17680
17720
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17681
17721
|
e.stopPropagation();
|
|
@@ -17691,9 +17731,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17691
17731
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17692
17732
|
}
|
|
17693
17733
|
};
|
|
17694
|
-
var
|
|
17734
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17695
17735
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17696
|
-
document.removeEventListener('mouseup',
|
|
17736
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17697
17737
|
setIsResizing(false);
|
|
17698
17738
|
};
|
|
17699
17739
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18104,7 +18144,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18104
18144
|
actionsRender = actionsRender.concat([{
|
|
18105
18145
|
type: 'text',
|
|
18106
18146
|
props: {
|
|
18107
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18147
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18108
18148
|
request: {
|
|
18109
18149
|
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),
|
|
18110
18150
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18350,7 +18390,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18350
18390
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18351
18391
|
bsTableCode: bsTableCode,
|
|
18352
18392
|
onlyModal: true
|
|
18353
|
-
}), (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, {
|
|
18393
|
+
}), (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, {
|
|
18354
18394
|
ref: exportTableRef,
|
|
18355
18395
|
setShowColumns: setShowExportColumns,
|
|
18356
18396
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18443,11 +18483,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18443
18483
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18444
18484
|
var resultList = [];
|
|
18445
18485
|
var newRouter = cloneDeep(router);
|
|
18446
|
-
var
|
|
18486
|
+
var deep = function deep(router) {
|
|
18447
18487
|
if (router && Array.isArray(router)) {
|
|
18448
18488
|
router.forEach(function (item) {
|
|
18449
18489
|
if (item.children && Array.isArray(item.children)) {
|
|
18450
|
-
|
|
18490
|
+
deep(item.children);
|
|
18451
18491
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18452
18492
|
return d === item.code;
|
|
18453
18493
|
})) {
|
|
@@ -18461,10 +18501,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18461
18501
|
resultList.push(_objectSpread2({}, router));
|
|
18462
18502
|
}
|
|
18463
18503
|
};
|
|
18464
|
-
|
|
18504
|
+
deep(newRouter);
|
|
18465
18505
|
callBack([].concat(resultList));
|
|
18466
18506
|
};
|
|
18467
|
-
var
|
|
18507
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18468
18508
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18469
18509
|
var _loop = function _loop(i) {
|
|
18470
18510
|
if (routesData[i].hideInMenu) {
|
|
@@ -18478,7 +18518,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18478
18518
|
return 0; // continue
|
|
18479
18519
|
}
|
|
18480
18520
|
if (routesData[i].children) {
|
|
18481
|
-
|
|
18521
|
+
setMenuTreeData(routesData[i].children);
|
|
18482
18522
|
}
|
|
18483
18523
|
},
|
|
18484
18524
|
_ret;
|
|
@@ -18499,16 +18539,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18499
18539
|
};
|
|
18500
18540
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18501
18541
|
var routerMap = {};
|
|
18502
|
-
var
|
|
18542
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18503
18543
|
data.forEach(function (menuItem) {
|
|
18504
18544
|
if (menuItem.children) {
|
|
18505
|
-
|
|
18545
|
+
flattenMenuData(menuItem.children);
|
|
18506
18546
|
}
|
|
18507
18547
|
// Reduce memory usage
|
|
18508
18548
|
routerMap[menuItem.path] = menuItem;
|
|
18509
18549
|
});
|
|
18510
18550
|
};
|
|
18511
|
-
|
|
18551
|
+
flattenMenuData(menuData);
|
|
18512
18552
|
return routerMap;
|
|
18513
18553
|
};
|
|
18514
18554
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18654,7 +18694,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18654
18694
|
sethomepageData(homepageDataList);
|
|
18655
18695
|
setroutesData(routesDataList);
|
|
18656
18696
|
}, []);
|
|
18657
|
-
var
|
|
18697
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18658
18698
|
if (!child.hideInMenu && child.children) {
|
|
18659
18699
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18660
18700
|
style: {
|
|
@@ -18664,7 +18704,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18664
18704
|
}, formatMessage({
|
|
18665
18705
|
id: "".concat(child.locale)
|
|
18666
18706
|
})), child.children.map(function (menuItem) {
|
|
18667
|
-
return
|
|
18707
|
+
return renderChildItem(menuItem);
|
|
18668
18708
|
}));
|
|
18669
18709
|
} else if (!child.hideInMenu && child.path) {
|
|
18670
18710
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18699,7 +18739,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18699
18739
|
className: 'drawerWarp'
|
|
18700
18740
|
}, homepageData && homepageData.filter(function (d) {
|
|
18701
18741
|
return !d.hideInMenu;
|
|
18702
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18742
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
18703
18743
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18704
18744
|
dataSource: homepageData,
|
|
18705
18745
|
renderItem: function renderItem(child) {
|
|
@@ -18734,7 +18774,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18734
18774
|
bordered: true,
|
|
18735
18775
|
dataSource: item.children,
|
|
18736
18776
|
renderItem: function renderItem(child) {
|
|
18737
|
-
return
|
|
18777
|
+
return renderChildItem(child);
|
|
18738
18778
|
}
|
|
18739
18779
|
});
|
|
18740
18780
|
})));
|
|
@@ -18794,7 +18834,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18794
18834
|
src: allfunc
|
|
18795
18835
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18796
18836
|
className: 'btnSpan2'
|
|
18797
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18837
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18798
18838
|
style: {
|
|
18799
18839
|
left: isDrawer ? 140 : 0,
|
|
18800
18840
|
top: 50
|
|
@@ -18840,7 +18880,7 @@ function outLogin(_x) {
|
|
|
18840
18880
|
return _outLogin.apply(this, arguments);
|
|
18841
18881
|
}
|
|
18842
18882
|
function _outLogin() {
|
|
18843
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18883
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18844
18884
|
var res;
|
|
18845
18885
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18846
18886
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18982,7 +19022,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18982
19022
|
});
|
|
18983
19023
|
};
|
|
18984
19024
|
var loginOut = /*#__PURE__*/function () {
|
|
18985
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19025
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18986
19026
|
var sessionId;
|
|
18987
19027
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18988
19028
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19086,7 +19126,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19086
19126
|
marginRight: '0px'
|
|
19087
19127
|
},
|
|
19088
19128
|
src: './xialajiantou-new.svg'
|
|
19089
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19129
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19090
19130
|
};
|
|
19091
19131
|
|
|
19092
19132
|
// -- 查询店铺 --
|
|
@@ -19094,7 +19134,7 @@ function getStoreByName(_x) {
|
|
|
19094
19134
|
return _getStoreByName.apply(this, arguments);
|
|
19095
19135
|
}
|
|
19096
19136
|
function _getStoreByName() {
|
|
19097
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19137
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19098
19138
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19099
19139
|
while (1) switch (_context.prev = _context.next) {
|
|
19100
19140
|
case 0:
|
|
@@ -19162,7 +19202,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19162
19202
|
return _fetchUserList.apply(this, arguments);
|
|
19163
19203
|
}
|
|
19164
19204
|
function _fetchUserList() {
|
|
19165
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19205
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19166
19206
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19167
19207
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19168
19208
|
case 0:
|
|
@@ -19210,7 +19250,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19210
19250
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19211
19251
|
}, [debounceTimeout, key]);
|
|
19212
19252
|
var changeInput = /*#__PURE__*/function () {
|
|
19213
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19253
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19214
19254
|
var res;
|
|
19215
19255
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19216
19256
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19232,7 +19272,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19232
19272
|
};
|
|
19233
19273
|
}();
|
|
19234
19274
|
useEffect(function () {
|
|
19235
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19275
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19236
19276
|
var res;
|
|
19237
19277
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19238
19278
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19397,7 +19437,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19397
19437
|
var resultList = [];
|
|
19398
19438
|
var newRouter = cloneDeep$1(router);
|
|
19399
19439
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19400
|
-
var
|
|
19440
|
+
var deep = function deep(router) {
|
|
19401
19441
|
if (router && Array.isArray(router)) {
|
|
19402
19442
|
router.forEach(function (item) {
|
|
19403
19443
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19407,7 +19447,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19407
19447
|
d.nameEdit = true;
|
|
19408
19448
|
}
|
|
19409
19449
|
});
|
|
19410
|
-
|
|
19450
|
+
deep(item.routes);
|
|
19411
19451
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19412
19452
|
id: "menu.".concat(item.name)
|
|
19413
19453
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19426,7 +19466,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19426
19466
|
}));
|
|
19427
19467
|
}
|
|
19428
19468
|
};
|
|
19429
|
-
|
|
19469
|
+
deep(newRouter);
|
|
19430
19470
|
setroutesData([].concat(resultList));
|
|
19431
19471
|
};
|
|
19432
19472
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19508,7 +19548,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19508
19548
|
},
|
|
19509
19549
|
title: item.fullPathName
|
|
19510
19550
|
}, renderLineStyl(item.fullPathName));
|
|
19511
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19551
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19512
19552
|
employeeCode: employeeCode
|
|
19513
19553
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19514
19554
|
};
|
|
@@ -19523,7 +19563,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19523
19563
|
var TreeNode = Tree.TreeNode;
|
|
19524
19564
|
var Search$2 = Input.Search;
|
|
19525
19565
|
var dataList = [];
|
|
19526
|
-
var
|
|
19566
|
+
var generateList = function generateList(data) {
|
|
19527
19567
|
for (var i = 0; i < data.length; i++) {
|
|
19528
19568
|
var node = data[i];
|
|
19529
19569
|
var path = node.path,
|
|
@@ -19533,11 +19573,11 @@ var _generateList = function generateList(data) {
|
|
|
19533
19573
|
name: name
|
|
19534
19574
|
});
|
|
19535
19575
|
if (node.children) {
|
|
19536
|
-
|
|
19576
|
+
generateList(node.children);
|
|
19537
19577
|
}
|
|
19538
19578
|
}
|
|
19539
19579
|
};
|
|
19540
|
-
var
|
|
19580
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19541
19581
|
var parentKey;
|
|
19542
19582
|
for (var i = 0; i < tree.length; i++) {
|
|
19543
19583
|
var node = tree[i];
|
|
@@ -19546,8 +19586,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19546
19586
|
return item.path === path;
|
|
19547
19587
|
})) {
|
|
19548
19588
|
parentKey = node.path;
|
|
19549
|
-
} else if (
|
|
19550
|
-
parentKey =
|
|
19589
|
+
} else if (getParentKey(path, node.children)) {
|
|
19590
|
+
parentKey = getParentKey(path, node.children);
|
|
19551
19591
|
}
|
|
19552
19592
|
}
|
|
19553
19593
|
}
|
|
@@ -19578,7 +19618,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19578
19618
|
var treeData = _this.state.treeData;
|
|
19579
19619
|
var expandedKeys = dataList.map(function (item) {
|
|
19580
19620
|
if (item.name.indexOf(value) > -1) {
|
|
19581
|
-
return
|
|
19621
|
+
return getParentKey(item.path, treeData);
|
|
19582
19622
|
}
|
|
19583
19623
|
return null;
|
|
19584
19624
|
}).filter(function (item, i, self) {
|
|
@@ -19592,22 +19632,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19592
19632
|
};
|
|
19593
19633
|
_this.getPathList = function (originData) {
|
|
19594
19634
|
var pathList = [];
|
|
19595
|
-
var
|
|
19635
|
+
var getList = function getList(data) {
|
|
19596
19636
|
if (Array.isArray(data)) {
|
|
19597
19637
|
data.forEach(function (item) {
|
|
19598
19638
|
pathList.push(item.path);
|
|
19599
19639
|
if (item.children) {
|
|
19600
|
-
|
|
19640
|
+
getList(item.children);
|
|
19601
19641
|
}
|
|
19602
19642
|
});
|
|
19603
19643
|
} else {
|
|
19604
19644
|
pathList.push(data.path);
|
|
19605
19645
|
if (data.children) {
|
|
19606
|
-
|
|
19646
|
+
getList(data.children);
|
|
19607
19647
|
}
|
|
19608
19648
|
}
|
|
19609
19649
|
};
|
|
19610
|
-
|
|
19650
|
+
getList(originData);
|
|
19611
19651
|
return pathList;
|
|
19612
19652
|
};
|
|
19613
19653
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19616,18 +19656,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19616
19656
|
customerMenuData = _this$props.customerMenuData,
|
|
19617
19657
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19618
19658
|
var filterItem;
|
|
19619
|
-
var
|
|
19659
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19620
19660
|
menuData.forEach(function (item) {
|
|
19621
19661
|
if (item.path === path) {
|
|
19622
19662
|
filterItem = _objectSpread2({}, item);
|
|
19623
19663
|
return;
|
|
19624
19664
|
}
|
|
19625
19665
|
if (item.children) {
|
|
19626
|
-
|
|
19666
|
+
filterMenuItem(item.children);
|
|
19627
19667
|
}
|
|
19628
19668
|
});
|
|
19629
19669
|
};
|
|
19630
|
-
|
|
19670
|
+
filterMenuItem(treeData);
|
|
19631
19671
|
var addPathList = _this.getPathList(filterItem);
|
|
19632
19672
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19633
19673
|
var isRepet = false;
|
|
@@ -19657,8 +19697,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19657
19697
|
return item.path === '/';
|
|
19658
19698
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19659
19699
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19660
|
-
|
|
19661
|
-
|
|
19700
|
+
setMenuTreeData(routesData);
|
|
19701
|
+
generateList(routesData);
|
|
19662
19702
|
this.setState({
|
|
19663
19703
|
treeData: routesData
|
|
19664
19704
|
});
|
|
@@ -19672,16 +19712,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19672
19712
|
expandedKeys = _this$state.expandedKeys,
|
|
19673
19713
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19674
19714
|
treeData = _this$state.treeData;
|
|
19675
|
-
var
|
|
19715
|
+
var loop = function loop(data) {
|
|
19676
19716
|
return data.map(function (item) {
|
|
19677
19717
|
var index = item.name.indexOf(searchValue);
|
|
19678
19718
|
var beforeStr = item.name.substr(0, index);
|
|
19679
19719
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19680
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19720
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19681
19721
|
style: {
|
|
19682
19722
|
color: '#f50'
|
|
19683
19723
|
}
|
|
19684
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19724
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19685
19725
|
if (item.children && item.children.length) {
|
|
19686
19726
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19687
19727
|
path: item.path,
|
|
@@ -19703,7 +19743,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19703
19743
|
width: 18,
|
|
19704
19744
|
src: arrowRight
|
|
19705
19745
|
}))))
|
|
19706
|
-
},
|
|
19746
|
+
}, loop(item.children));
|
|
19707
19747
|
}
|
|
19708
19748
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19709
19749
|
path: item.path,
|
|
@@ -19753,7 +19793,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19753
19793
|
onExpand: this.onExpand,
|
|
19754
19794
|
expandedKeys: expandedKeys,
|
|
19755
19795
|
autoExpandParent: autoExpandParent
|
|
19756
|
-
},
|
|
19796
|
+
}, loop(treeData))));
|
|
19757
19797
|
}
|
|
19758
19798
|
}]);
|
|
19759
19799
|
}(React$1.Component);
|
|
@@ -19786,24 +19826,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19786
19826
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19787
19827
|
var dragObj;
|
|
19788
19828
|
var finalDropItem;
|
|
19789
|
-
var
|
|
19829
|
+
var loop = function loop(data, path, callback) {
|
|
19790
19830
|
for (var i = 0; i < data.length; i++) {
|
|
19791
19831
|
if (data[i].path === path) {
|
|
19792
19832
|
return callback(data[i], i, data);
|
|
19793
19833
|
}
|
|
19794
19834
|
if (data[i].children) {
|
|
19795
|
-
|
|
19835
|
+
loop(data[i].children, path, callback);
|
|
19796
19836
|
}
|
|
19797
19837
|
}
|
|
19798
19838
|
};
|
|
19799
19839
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19800
|
-
|
|
19840
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19801
19841
|
arr.splice(index, 1);
|
|
19802
19842
|
dragObj = item;
|
|
19803
19843
|
});
|
|
19804
19844
|
if (!info.dropToGap) {
|
|
19805
19845
|
// Drop on the content
|
|
19806
|
-
|
|
19846
|
+
loop(data, dropKey, function (item) {
|
|
19807
19847
|
item.children = item.children || [];
|
|
19808
19848
|
item.children.unshift(dragObj);
|
|
19809
19849
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19814,7 +19854,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19814
19854
|
// Is expanded
|
|
19815
19855
|
dropPosition === 1 // On the bottom gap
|
|
19816
19856
|
) {
|
|
19817
|
-
|
|
19857
|
+
loop(data, dropKey, function (item) {
|
|
19818
19858
|
item.children = item.children || [];
|
|
19819
19859
|
item.children.unshift(dragObj);
|
|
19820
19860
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19822,7 +19862,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19822
19862
|
} else {
|
|
19823
19863
|
var ar;
|
|
19824
19864
|
var i;
|
|
19825
|
-
|
|
19865
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19826
19866
|
ar = arr;
|
|
19827
19867
|
i = index;
|
|
19828
19868
|
});
|
|
@@ -19861,17 +19901,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19861
19901
|
title: '编辑名称',
|
|
19862
19902
|
callBack: function callBack(newName) {
|
|
19863
19903
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19864
|
-
var
|
|
19904
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19865
19905
|
oldTreeData.forEach(function (treeItem) {
|
|
19866
19906
|
if (treeItem.path === item.path) {
|
|
19867
19907
|
treeItem.name = newName;
|
|
19868
19908
|
}
|
|
19869
19909
|
if (treeItem.children) {
|
|
19870
|
-
|
|
19910
|
+
editTreeDataName(treeItem.children);
|
|
19871
19911
|
}
|
|
19872
19912
|
});
|
|
19873
19913
|
};
|
|
19874
|
-
|
|
19914
|
+
editTreeDataName(oldTreeData);
|
|
19875
19915
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19876
19916
|
_this.setState({
|
|
19877
19917
|
modalInfo: {
|
|
@@ -19916,7 +19956,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19916
19956
|
title: '新增子目录',
|
|
19917
19957
|
callBack: function callBack(newName) {
|
|
19918
19958
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19919
|
-
var
|
|
19959
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19920
19960
|
oldTreeData.forEach(function (treeItem) {
|
|
19921
19961
|
if (treeItem.path === item.path) {
|
|
19922
19962
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19928,11 +19968,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19928
19968
|
}];
|
|
19929
19969
|
}
|
|
19930
19970
|
if (treeItem.children) {
|
|
19931
|
-
|
|
19971
|
+
addChildFolder(treeItem.children);
|
|
19932
19972
|
}
|
|
19933
19973
|
});
|
|
19934
19974
|
};
|
|
19935
|
-
|
|
19975
|
+
addChildFolder(oldTreeData);
|
|
19936
19976
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19937
19977
|
_this.setState({
|
|
19938
19978
|
modalInfo: {
|
|
@@ -19991,7 +20031,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19991
20031
|
var _this$state = this.state,
|
|
19992
20032
|
modalInfo = _this$state.modalInfo,
|
|
19993
20033
|
checkedKeys = _this$state.checkedKeys;
|
|
19994
|
-
var
|
|
20034
|
+
var loop = function loop(data) {
|
|
19995
20035
|
return data.map(function (item) {
|
|
19996
20036
|
if (item.children && item.children.length) {
|
|
19997
20037
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -20008,7 +20048,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20008
20048
|
e.stopPropagation();
|
|
20009
20049
|
}
|
|
20010
20050
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
20011
|
-
},
|
|
20051
|
+
}, loop(item.children));
|
|
20012
20052
|
}
|
|
20013
20053
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
20014
20054
|
path: item.path,
|
|
@@ -20087,7 +20127,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20087
20127
|
children: 'children'
|
|
20088
20128
|
},
|
|
20089
20129
|
onDrop: this.onDrop
|
|
20090
|
-
},
|
|
20130
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20091
20131
|
width: 600,
|
|
20092
20132
|
bodyStyle: {
|
|
20093
20133
|
paddingTop: '32px',
|
|
@@ -20200,7 +20240,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20200
20240
|
pathname: item.path
|
|
20201
20241
|
});
|
|
20202
20242
|
};
|
|
20203
|
-
var
|
|
20243
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20204
20244
|
return menuData.map(function (item) {
|
|
20205
20245
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20206
20246
|
style: {
|
|
@@ -20215,7 +20255,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20215
20255
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20216
20256
|
paddingLeft: '4px'
|
|
20217
20257
|
}
|
|
20218
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20258
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20219
20259
|
});
|
|
20220
20260
|
};
|
|
20221
20261
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20241,7 +20281,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20241
20281
|
style: {
|
|
20242
20282
|
paddingLeft: '5px'
|
|
20243
20283
|
}
|
|
20244
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20284
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20245
20285
|
style: {
|
|
20246
20286
|
left: isDrawer ? 140 : 0
|
|
20247
20287
|
},
|
|
@@ -20262,7 +20302,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20262
20302
|
visible: isDrawer
|
|
20263
20303
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20264
20304
|
className: 'menu_title_line'
|
|
20265
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20305
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20266
20306
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20267
20307
|
style: {
|
|
20268
20308
|
fontWeight: '600',
|
|
@@ -20336,7 +20376,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20336
20376
|
return item.path === '/';
|
|
20337
20377
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20338
20378
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20339
|
-
|
|
20379
|
+
setMenuTreeData(routesData);
|
|
20340
20380
|
routesData.forEach(function (item) {
|
|
20341
20381
|
if (item.children) {
|
|
20342
20382
|
routesDataList.push(item);
|
|
@@ -20366,7 +20406,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20366
20406
|
setHeight(clientHeight - 190);
|
|
20367
20407
|
setDrawHeight(clientHeight - 70);
|
|
20368
20408
|
};
|
|
20369
|
-
var
|
|
20409
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20370
20410
|
if (!child.hideInMenu && child.children) {
|
|
20371
20411
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20372
20412
|
style: {
|
|
@@ -20376,7 +20416,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20376
20416
|
}, formatMessage({
|
|
20377
20417
|
id: "".concat(child.locale)
|
|
20378
20418
|
})), child.children.map(function (menuItem) {
|
|
20379
|
-
return
|
|
20419
|
+
return renderChildItem(menuItem);
|
|
20380
20420
|
}));
|
|
20381
20421
|
} else if (!child.hideInMenu && child.path) {
|
|
20382
20422
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20518,7 +20558,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20518
20558
|
onMenuClick(e, item);
|
|
20519
20559
|
}
|
|
20520
20560
|
}, item.name);
|
|
20521
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20561
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
20522
20562
|
className: 'search_menu_content'
|
|
20523
20563
|
}, SearhData.map(function (item) {
|
|
20524
20564
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20527,7 +20567,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20527
20567
|
},
|
|
20528
20568
|
key: item.path
|
|
20529
20569
|
}, item.name);
|
|
20530
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20570
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20531
20571
|
style: {
|
|
20532
20572
|
height: "".concat(rightMenuHeight, "px"),
|
|
20533
20573
|
overflowY: 'scroll',
|
|
@@ -20539,7 +20579,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20539
20579
|
className: 'drawerWarp_right'
|
|
20540
20580
|
}, homepageData && homepageData.filter(function (d) {
|
|
20541
20581
|
return !d.hideInMenu;
|
|
20542
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20582
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
20543
20583
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20544
20584
|
dataSource: homepageData,
|
|
20545
20585
|
renderItem: function renderItem(child) {
|
|
@@ -20580,7 +20620,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20580
20620
|
bordered: true,
|
|
20581
20621
|
dataSource: item.children,
|
|
20582
20622
|
renderItem: function renderItem(child) {
|
|
20583
|
-
return
|
|
20623
|
+
return renderChildItem(child);
|
|
20584
20624
|
}
|
|
20585
20625
|
});
|
|
20586
20626
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20738,10 +20778,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20738
20778
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20739
20779
|
var menuKeys = [];
|
|
20740
20780
|
var docsId = [];
|
|
20741
|
-
var
|
|
20781
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20742
20782
|
data.forEach(function (item) {
|
|
20743
20783
|
if (item.children && item.children.length > 0) {
|
|
20744
|
-
|
|
20784
|
+
getLimitedMenuKeys(item.children);
|
|
20745
20785
|
} else {
|
|
20746
20786
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20747
20787
|
menuKeys.push(originPath);
|
|
@@ -20752,7 +20792,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20752
20792
|
});
|
|
20753
20793
|
};
|
|
20754
20794
|
try {
|
|
20755
|
-
|
|
20795
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20756
20796
|
} catch (e) {}
|
|
20757
20797
|
return {
|
|
20758
20798
|
menuKeys: menuKeys,
|
|
@@ -20986,10 +21026,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20986
21026
|
return (node.path || '').includes('all-general-documents');
|
|
20987
21027
|
};
|
|
20988
21028
|
// 递归获取树列表
|
|
20989
|
-
var
|
|
21029
|
+
var getTreeList = function getTreeList(data) {
|
|
20990
21030
|
data.forEach(function (node) {
|
|
20991
21031
|
if (node.routes && node.routes.length > 0) {
|
|
20992
|
-
|
|
21032
|
+
getTreeList(node.routes);
|
|
20993
21033
|
return;
|
|
20994
21034
|
}
|
|
20995
21035
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21020,7 +21060,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21020
21060
|
}
|
|
21021
21061
|
});
|
|
21022
21062
|
};
|
|
21023
|
-
|
|
21063
|
+
getTreeList(treeData);
|
|
21024
21064
|
return treeList;
|
|
21025
21065
|
};
|
|
21026
21066
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21649,7 +21689,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21649
21689
|
updateState = _ref8.updateState;
|
|
21650
21690
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21651
21691
|
className: "tab_title_content"
|
|
21652
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21692
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21653
21693
|
info: item,
|
|
21654
21694
|
operateFun: _this3.operateFun,
|
|
21655
21695
|
listenRouterState: listenRouterState
|
|
@@ -21785,7 +21825,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21785
21825
|
};
|
|
21786
21826
|
}
|
|
21787
21827
|
var OperationsSlot = {
|
|
21788
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21828
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21789
21829
|
className: 'tab_left_operate'
|
|
21790
21830
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21791
21831
|
onClick: function onClick() {
|
|
@@ -21801,7 +21841,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21801
21841
|
_this3.setTabNavTransLate(-100);
|
|
21802
21842
|
}
|
|
21803
21843
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21804
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21844
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21805
21845
|
style: {
|
|
21806
21846
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21807
21847
|
},
|
|
@@ -21899,7 +21939,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21899
21939
|
onMouseLeave: function onMouseLeave() {
|
|
21900
21940
|
_this3.setShowMenu(false);
|
|
21901
21941
|
}
|
|
21902
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21942
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21903
21943
|
style: {
|
|
21904
21944
|
position: 'absolute',
|
|
21905
21945
|
top: '14px',
|
|
@@ -21918,7 +21958,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21918
21958
|
postMenuData: function postMenuData(menus) {
|
|
21919
21959
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21920
21960
|
},
|
|
21921
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21961
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21922
21962
|
ref: this.allFunc,
|
|
21923
21963
|
itemPath: itemPath,
|
|
21924
21964
|
handleClose: this.handleClose,
|
|
@@ -21936,7 +21976,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21936
21976
|
},
|
|
21937
21977
|
menu: {
|
|
21938
21978
|
request: function () {
|
|
21939
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21979
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21940
21980
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21941
21981
|
while (1) switch (_context.prev = _context.next) {
|
|
21942
21982
|
case 0:
|
|
@@ -22071,7 +22111,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22071
22111
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22072
22112
|
timeFormat = _this$props4.timeFormat,
|
|
22073
22113
|
transparentProps = _this$props4.transparentProps;
|
|
22074
|
-
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({
|
|
22114
|
+
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({
|
|
22075
22115
|
getDictionarySource: getDictionarySource,
|
|
22076
22116
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22077
22117
|
timeFormat: timeFormat
|
|
@@ -22095,12 +22135,12 @@ var index$5 = (function (props) {
|
|
|
22095
22135
|
});
|
|
22096
22136
|
|
|
22097
22137
|
// @ts-nocheck
|
|
22098
|
-
var
|
|
22138
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22099
22139
|
var result = [];
|
|
22100
22140
|
columns.forEach(function (column) {
|
|
22101
22141
|
if (column.children) {
|
|
22102
22142
|
result.push(column);
|
|
22103
|
-
result.push.apply(result,
|
|
22143
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22104
22144
|
} else {
|
|
22105
22145
|
result.push(column);
|
|
22106
22146
|
}
|
|
@@ -22109,7 +22149,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22109
22149
|
};
|
|
22110
22150
|
var convertToRows = function convertToRows(originColumns) {
|
|
22111
22151
|
var maxLevel = 1;
|
|
22112
|
-
var
|
|
22152
|
+
var traverse = function traverse(column, parent) {
|
|
22113
22153
|
if (parent) {
|
|
22114
22154
|
column.level = parent.level + 1;
|
|
22115
22155
|
if (maxLevel < column.level) {
|
|
@@ -22119,7 +22159,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22119
22159
|
if (column.children) {
|
|
22120
22160
|
var colSpan = 0;
|
|
22121
22161
|
column.children.forEach(function (subColumn) {
|
|
22122
|
-
|
|
22162
|
+
traverse(subColumn, column);
|
|
22123
22163
|
colSpan += subColumn.colSpan;
|
|
22124
22164
|
});
|
|
22125
22165
|
column.colSpan = colSpan;
|
|
@@ -22129,13 +22169,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22129
22169
|
};
|
|
22130
22170
|
originColumns.forEach(function (column) {
|
|
22131
22171
|
column.level = 1;
|
|
22132
|
-
|
|
22172
|
+
traverse(column);
|
|
22133
22173
|
});
|
|
22134
22174
|
var rows = [];
|
|
22135
22175
|
for (var i = 0; i < maxLevel; i++) {
|
|
22136
22176
|
rows.push([]);
|
|
22137
22177
|
}
|
|
22138
|
-
var allColumns =
|
|
22178
|
+
var allColumns = getAllColumns(originColumns);
|
|
22139
22179
|
allColumns.forEach(function (column) {
|
|
22140
22180
|
if (!column.children) {
|
|
22141
22181
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22175,7 +22215,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22175
22215
|
};
|
|
22176
22216
|
var headersToRows = function headersToRows(originColumns) {
|
|
22177
22217
|
var maxLevel = 1;
|
|
22178
|
-
var
|
|
22218
|
+
var traverse = function traverse(column, parent) {
|
|
22179
22219
|
if (parent) {
|
|
22180
22220
|
//计算当前元素属于第几个层级
|
|
22181
22221
|
column.level = parent.level + 1;
|
|
@@ -22188,7 +22228,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22188
22228
|
var colSpan = 0;
|
|
22189
22229
|
column.children.forEach(function (subColumn) {
|
|
22190
22230
|
//进行递归
|
|
22191
|
-
|
|
22231
|
+
traverse(subColumn, column);
|
|
22192
22232
|
colSpan += subColumn.colSpan;
|
|
22193
22233
|
});
|
|
22194
22234
|
column.colSpan = colSpan;
|
|
@@ -22198,14 +22238,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22198
22238
|
};
|
|
22199
22239
|
originColumns.forEach(function (column) {
|
|
22200
22240
|
column.level = 1;
|
|
22201
|
-
|
|
22241
|
+
traverse(column);
|
|
22202
22242
|
});
|
|
22203
22243
|
var rows = [];
|
|
22204
22244
|
var lastData = [];
|
|
22205
22245
|
for (var i = 0; i < maxLevel; i++) {
|
|
22206
22246
|
rows.push([]);
|
|
22207
22247
|
}
|
|
22208
|
-
var allColumns =
|
|
22248
|
+
var allColumns = getAllColumns(originColumns);
|
|
22209
22249
|
allColumns.forEach(function (column) {
|
|
22210
22250
|
if (!column.children) {
|
|
22211
22251
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28222,7 +28262,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28222
28262
|
}
|
|
28223
28263
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28224
28264
|
};
|
|
28225
|
-
var
|
|
28265
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28226
28266
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28227
28267
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28228
28268
|
var children = hightLightData.children,
|
|
@@ -28233,7 +28273,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28233
28273
|
lineEnd = _loc2[2];
|
|
28234
28274
|
if (children) {
|
|
28235
28275
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28236
|
-
return
|
|
28276
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28237
28277
|
});
|
|
28238
28278
|
}
|
|
28239
28279
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28245,7 +28285,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28245
28285
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28246
28286
|
data.forEach(function (node) {
|
|
28247
28287
|
if (!node) return;
|
|
28248
|
-
node.toggled =
|
|
28288
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28249
28289
|
node.active = isHightLight(node, highLightLine);
|
|
28250
28290
|
if (node.children) {
|
|
28251
28291
|
if (node.active) {
|
|
@@ -29676,7 +29716,7 @@ var valueType = {
|
|
|
29676
29716
|
};
|
|
29677
29717
|
|
|
29678
29718
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29679
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29719
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29680
29720
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29681
29721
|
while (1) switch (_context.prev = _context.next) {
|
|
29682
29722
|
case 0:
|
|
@@ -29744,7 +29784,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29744
29784
|
value: false
|
|
29745
29785
|
}];
|
|
29746
29786
|
var ref = useRef();
|
|
29747
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29787
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29748
29788
|
var _ref$current, source;
|
|
29749
29789
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29750
29790
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29858,7 +29898,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29858
29898
|
source: {
|
|
29859
29899
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29860
29900
|
type: function () {
|
|
29861
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29901
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29862
29902
|
var form, values, name, relates, source;
|
|
29863
29903
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29864
29904
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30338,7 +30378,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30338
30378
|
source: {
|
|
30339
30379
|
relates: ['choiceType', 'inputType'],
|
|
30340
30380
|
type: function () {
|
|
30341
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30381
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30342
30382
|
var values, name, form, source;
|
|
30343
30383
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30344
30384
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30560,7 +30600,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30560
30600
|
width: 900,
|
|
30561
30601
|
maskClosable: false,
|
|
30562
30602
|
onOk: function () {
|
|
30563
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30603
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30564
30604
|
var _ref$current4, _res$editableStatus;
|
|
30565
30605
|
var res, _res$defaultValue;
|
|
30566
30606
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30632,7 +30672,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30632
30672
|
}()
|
|
30633
30673
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30634
30674
|
ref: ref
|
|
30635
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30675
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30636
30676
|
};
|
|
30637
30677
|
|
|
30638
30678
|
// @ts-nocheck
|
|
@@ -31246,7 +31286,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31246
31286
|
return setVisible(false);
|
|
31247
31287
|
},
|
|
31248
31288
|
className: 'customFieldsDrawer'
|
|
31249
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31289
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
31250
31290
|
style: {
|
|
31251
31291
|
display: 'flex'
|
|
31252
31292
|
}
|
|
@@ -31255,13 +31295,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31255
31295
|
flex: 1,
|
|
31256
31296
|
width: 500
|
|
31257
31297
|
}
|
|
31258
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31298
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31259
31299
|
style: {
|
|
31260
31300
|
padding: "10px 0",
|
|
31261
31301
|
fontSize: "16px",
|
|
31262
31302
|
fontWeight: "bolder"
|
|
31263
31303
|
}
|
|
31264
|
-
}, "\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", {
|
|
31304
|
+
}, "\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", {
|
|
31265
31305
|
style: {
|
|
31266
31306
|
flex: 1
|
|
31267
31307
|
}
|
|
@@ -31270,7 +31310,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31270
31310
|
onRun: onClickRun,
|
|
31271
31311
|
value: jsonEditorVal,
|
|
31272
31312
|
shallowHeight: height
|
|
31273
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31313
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
31274
31314
|
defaultActiveKey: activeKey,
|
|
31275
31315
|
onChange: function onChange(v) {
|
|
31276
31316
|
return setActiveKey(v);
|
|
@@ -31287,13 +31327,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31287
31327
|
flex: 1,
|
|
31288
31328
|
width: 500
|
|
31289
31329
|
}
|
|
31290
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31330
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31291
31331
|
style: {
|
|
31292
31332
|
padding: "10px 0",
|
|
31293
31333
|
fontSize: "16px",
|
|
31294
31334
|
fontWeight: "bolder"
|
|
31295
31335
|
}
|
|
31296
|
-
}, "\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", {
|
|
31336
|
+
}, "\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", {
|
|
31297
31337
|
style: {
|
|
31298
31338
|
flex: 1
|
|
31299
31339
|
}
|
|
@@ -31315,13 +31355,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31315
31355
|
flex: 1,
|
|
31316
31356
|
width: 500
|
|
31317
31357
|
}
|
|
31318
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31358
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
31319
31359
|
style: {
|
|
31320
31360
|
padding: "10px 0",
|
|
31321
31361
|
fontSize: "16px",
|
|
31322
31362
|
fontWeight: "bolder"
|
|
31323
31363
|
}
|
|
31324
|
-
}, "\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", {
|
|
31364
|
+
}, "\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", {
|
|
31325
31365
|
style: {
|
|
31326
31366
|
flex: 1
|
|
31327
31367
|
}
|
|
@@ -31467,7 +31507,7 @@ function getMetaData(_x) {
|
|
|
31467
31507
|
|
|
31468
31508
|
// 获取数据
|
|
31469
31509
|
function _getMetaData() {
|
|
31470
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31510
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31471
31511
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31472
31512
|
while (1) switch (_context.prev = _context.next) {
|
|
31473
31513
|
case 0:
|
|
@@ -31689,7 +31729,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31689
31729
|
tableState = _useState4[0],
|
|
31690
31730
|
setTableState = _useState4[1];
|
|
31691
31731
|
var handleOpen = /*#__PURE__*/function () {
|
|
31692
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31732
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31693
31733
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31694
31734
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31695
31735
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32008,7 +32048,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32008
32048
|
destroyOnClose: true
|
|
32009
32049
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
32010
32050
|
ref: queryTableRef
|
|
32011
|
-
}, 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, {
|
|
32051
|
+
}, 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, {
|
|
32012
32052
|
justify: "center",
|
|
32013
32053
|
style: {
|
|
32014
32054
|
marginBottom: 30,
|
|
@@ -32124,7 +32164,7 @@ var CustomSelector = (function (props) {
|
|
|
32124
32164
|
var _props$ctx7;
|
|
32125
32165
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32126
32166
|
}
|
|
32127
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32167
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
32128
32168
|
type: "primary",
|
|
32129
32169
|
style: {
|
|
32130
32170
|
width: '30px',
|
|
@@ -32210,7 +32250,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32210
32250
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32211
32251
|
handSource = _useState2[0],
|
|
32212
32252
|
setHandSource = _useState2[1];
|
|
32213
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32253
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32214
32254
|
var resData, data;
|
|
32215
32255
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32216
32256
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32362,7 +32402,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32362
32402
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32363
32403
|
}
|
|
32364
32404
|
function _getRegularThresholdRange() {
|
|
32365
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32405
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32366
32406
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32367
32407
|
while (1) switch (_context.prev = _context.next) {
|
|
32368
32408
|
case 0:
|
|
@@ -32516,7 +32556,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32516
32556
|
};
|
|
32517
32557
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32518
32558
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32519
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32559
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32520
32560
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32521
32561
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32522
32562
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33473,7 +33513,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33473
33513
|
isAll: true,
|
|
33474
33514
|
needNameAndCode: true,
|
|
33475
33515
|
notChangeOnSelect: true,
|
|
33476
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33516
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33477
33517
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33478
33518
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33479
33519
|
case 0:
|
|
@@ -33522,7 +33562,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33522
33562
|
isAll: true,
|
|
33523
33563
|
needNameAndCode: true,
|
|
33524
33564
|
notChangeOnSelect: true,
|
|
33525
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33565
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33526
33566
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33527
33567
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33528
33568
|
case 0:
|
|
@@ -33573,7 +33613,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33573
33613
|
isAll: true,
|
|
33574
33614
|
needNameAndCode: true,
|
|
33575
33615
|
notChangeOnSelect: true,
|
|
33576
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33616
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33577
33617
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33578
33618
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33579
33619
|
case 0:
|
|
@@ -35551,7 +35591,7 @@ var App$1 = function App(_ref) {
|
|
|
35551
35591
|
borderRadius: '5px',
|
|
35552
35592
|
cursor: 'pointer'
|
|
35553
35593
|
}
|
|
35554
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35594
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35555
35595
|
autoFocus: true,
|
|
35556
35596
|
onClick: function onClick(e) {
|
|
35557
35597
|
return e.stopPropagation();
|
|
@@ -35838,7 +35878,7 @@ function RenderCompItem(props) {
|
|
|
35838
35878
|
dictData = _useState2[0],
|
|
35839
35879
|
setDictData = _useState2[1];
|
|
35840
35880
|
var getDictData = /*#__PURE__*/function () {
|
|
35841
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35881
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35842
35882
|
var _data$map;
|
|
35843
35883
|
var data;
|
|
35844
35884
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35880,7 +35920,7 @@ function RenderCompItem(props) {
|
|
|
35880
35920
|
var style2 = {
|
|
35881
35921
|
width: '100px'
|
|
35882
35922
|
};
|
|
35883
|
-
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, {
|
|
35923
|
+
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, {
|
|
35884
35924
|
disabled: disabled,
|
|
35885
35925
|
allowClear: true,
|
|
35886
35926
|
onClear: function onClear() {
|
|
@@ -35891,7 +35931,7 @@ function RenderCompItem(props) {
|
|
|
35891
35931
|
onBlur: function onBlur(e) {
|
|
35892
35932
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35893
35933
|
}
|
|
35894
|
-
})) || 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, {
|
|
35934
|
+
})) || 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, {
|
|
35895
35935
|
disabled: disabled,
|
|
35896
35936
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35897
35937
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35904,7 +35944,7 @@ function RenderCompItem(props) {
|
|
|
35904
35944
|
onChange: function onChange(value) {
|
|
35905
35945
|
handleEdit(ites.code, value);
|
|
35906
35946
|
}
|
|
35907
|
-
})) || 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, {
|
|
35947
|
+
})) || 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, {
|
|
35908
35948
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35909
35949
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35910
35950
|
disabled: disabled,
|
|
@@ -35914,7 +35954,7 @@ function RenderCompItem(props) {
|
|
|
35914
35954
|
onChange: function onChange(value, dateString) {
|
|
35915
35955
|
handleEdit(ites.code, dateString);
|
|
35916
35956
|
}
|
|
35917
|
-
})) || 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, {
|
|
35957
|
+
})) || 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, {
|
|
35918
35958
|
showTime: true,
|
|
35919
35959
|
disabled: disabled,
|
|
35920
35960
|
defaultValue: ites.defaultValue,
|
|
@@ -35923,7 +35963,7 @@ function RenderCompItem(props) {
|
|
|
35923
35963
|
onChange: function onChange(value, timeString) {
|
|
35924
35964
|
handleEdit(ites.code, timeString);
|
|
35925
35965
|
}
|
|
35926
|
-
})) || 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, {
|
|
35966
|
+
})) || 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, {
|
|
35927
35967
|
disabled: disabled,
|
|
35928
35968
|
defaultChecked: !!ites.defaultValue,
|
|
35929
35969
|
style: style2,
|
|
@@ -35931,7 +35971,7 @@ function RenderCompItem(props) {
|
|
|
35931
35971
|
onChange: function onChange(value) {
|
|
35932
35972
|
handleEdit(ites.code, value);
|
|
35933
35973
|
}
|
|
35934
|
-
})) || 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({
|
|
35974
|
+
})) || 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({
|
|
35935
35975
|
disabled: disabled,
|
|
35936
35976
|
allowClear: true,
|
|
35937
35977
|
showArrow: true
|
|
@@ -35949,7 +35989,7 @@ function RenderCompItem(props) {
|
|
|
35949
35989
|
key: it,
|
|
35950
35990
|
value: it
|
|
35951
35991
|
}, ites.enumeration[it]);
|
|
35952
|
-
}))) || 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, {
|
|
35992
|
+
}))) || 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, {
|
|
35953
35993
|
disabled: disabled,
|
|
35954
35994
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35955
35995
|
defaultValue: ites.defaultValue,
|
|
@@ -35959,7 +35999,7 @@ function RenderCompItem(props) {
|
|
|
35959
35999
|
handleEdit(ites.code, value);
|
|
35960
36000
|
},
|
|
35961
36001
|
dictionaryCode: ites.dictionaryCode
|
|
35962
|
-
})) || 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, {
|
|
36002
|
+
})) || 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, {
|
|
35963
36003
|
selectBusinessType: "physicalWarehouse",
|
|
35964
36004
|
selectProps: _objectSpread2({
|
|
35965
36005
|
style: styleCommon,
|
|
@@ -35981,7 +36021,7 @@ function RenderCompItem(props) {
|
|
|
35981
36021
|
getPopupContainer: function getPopupContainer() {
|
|
35982
36022
|
return document.body;
|
|
35983
36023
|
}
|
|
35984
|
-
})) || 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, {
|
|
36024
|
+
})) || 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, {
|
|
35985
36025
|
selectBusinessType: "realWarehouse",
|
|
35986
36026
|
selectProps: _objectSpread2({
|
|
35987
36027
|
style: styleCommon,
|
|
@@ -36003,7 +36043,7 @@ function RenderCompItem(props) {
|
|
|
36003
36043
|
getPopupContainer: function getPopupContainer() {
|
|
36004
36044
|
return document.body;
|
|
36005
36045
|
}
|
|
36006
|
-
})) || 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, {
|
|
36046
|
+
})) || 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, {
|
|
36007
36047
|
selectBusinessType: "virtualWarehouse",
|
|
36008
36048
|
selectProps: _objectSpread2({
|
|
36009
36049
|
style: styleCommon,
|
|
@@ -36025,7 +36065,7 @@ function RenderCompItem(props) {
|
|
|
36025
36065
|
getPopupContainer: function getPopupContainer() {
|
|
36026
36066
|
return document.body;
|
|
36027
36067
|
}
|
|
36028
|
-
})) || 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, {
|
|
36068
|
+
})) || 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, {
|
|
36029
36069
|
selectBusinessType: "channelWarehouse",
|
|
36030
36070
|
selectProps: _objectSpread2({
|
|
36031
36071
|
style: styleCommon,
|
|
@@ -36047,7 +36087,7 @@ function RenderCompItem(props) {
|
|
|
36047
36087
|
getPopupContainer: function getPopupContainer() {
|
|
36048
36088
|
return document.body;
|
|
36049
36089
|
}
|
|
36050
|
-
})) || 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, {
|
|
36090
|
+
})) || 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, {
|
|
36051
36091
|
selectBusinessType: "spuCommodity",
|
|
36052
36092
|
selectProps: _objectSpread2({
|
|
36053
36093
|
style: styleCommon,
|
|
@@ -36068,7 +36108,7 @@ function RenderCompItem(props) {
|
|
|
36068
36108
|
getPopupContainer: function getPopupContainer() {
|
|
36069
36109
|
return document.body;
|
|
36070
36110
|
}
|
|
36071
|
-
})) || 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, {
|
|
36111
|
+
})) || 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, {
|
|
36072
36112
|
selectBusinessType: "skuCommodity",
|
|
36073
36113
|
selectProps: _objectSpread2({
|
|
36074
36114
|
style: styleCommon,
|
|
@@ -36089,13 +36129,13 @@ function RenderCompItem(props) {
|
|
|
36089
36129
|
getPopupContainer: function getPopupContainer() {
|
|
36090
36130
|
return document.body;
|
|
36091
36131
|
}
|
|
36092
|
-
})) || 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, {
|
|
36132
|
+
})) || 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, {
|
|
36093
36133
|
disabled: disabled,
|
|
36094
36134
|
isAll: true,
|
|
36095
36135
|
needNameAndCode: true,
|
|
36096
36136
|
notChangeOnSelect: true,
|
|
36097
36137
|
initRequestSource: function () {
|
|
36098
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36138
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36099
36139
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36100
36140
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36101
36141
|
case 0:
|
|
@@ -36137,7 +36177,7 @@ function RenderCompItem(props) {
|
|
|
36137
36177
|
getPopupContainer: function getPopupContainer() {
|
|
36138
36178
|
return document.body;
|
|
36139
36179
|
}
|
|
36140
|
-
})) || 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, {
|
|
36180
|
+
})) || 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, {
|
|
36141
36181
|
disabled: disabled,
|
|
36142
36182
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36143
36183
|
businessType: "department",
|
|
@@ -36150,7 +36190,7 @@ function RenderCompItem(props) {
|
|
|
36150
36190
|
getPopupContainer: function getPopupContainer() {
|
|
36151
36191
|
return document.body;
|
|
36152
36192
|
}
|
|
36153
|
-
})) || 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, {
|
|
36193
|
+
})) || 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, {
|
|
36154
36194
|
disabled: disabled,
|
|
36155
36195
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36156
36196
|
businessType: "purchase-organization",
|
|
@@ -36163,7 +36203,7 @@ function RenderCompItem(props) {
|
|
|
36163
36203
|
getPopupContainer: function getPopupContainer() {
|
|
36164
36204
|
return document.body;
|
|
36165
36205
|
}
|
|
36166
|
-
})) || 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, {
|
|
36206
|
+
})) || 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, {
|
|
36167
36207
|
disabled: disabled,
|
|
36168
36208
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36169
36209
|
businessType: "sales-organization",
|
|
@@ -36176,7 +36216,7 @@ function RenderCompItem(props) {
|
|
|
36176
36216
|
getPopupContainer: function getPopupContainer() {
|
|
36177
36217
|
return document.body;
|
|
36178
36218
|
}
|
|
36179
|
-
})) || 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, {
|
|
36219
|
+
})) || 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, {
|
|
36180
36220
|
selectBusinessType: "supplier2",
|
|
36181
36221
|
selectProps: _objectSpread2({
|
|
36182
36222
|
style: styleCommon,
|
|
@@ -36197,7 +36237,7 @@ function RenderCompItem(props) {
|
|
|
36197
36237
|
getPopupContainer: function getPopupContainer() {
|
|
36198
36238
|
return document.body;
|
|
36199
36239
|
}
|
|
36200
|
-
})) || 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, {
|
|
36240
|
+
})) || 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, {
|
|
36201
36241
|
selectBusinessType: "customer2",
|
|
36202
36242
|
selectProps: _objectSpread2({
|
|
36203
36243
|
style: styleCommon,
|
|
@@ -36218,7 +36258,7 @@ function RenderCompItem(props) {
|
|
|
36218
36258
|
getPopupContainer: function getPopupContainer() {
|
|
36219
36259
|
return document.body;
|
|
36220
36260
|
}
|
|
36221
|
-
})) || 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, {
|
|
36261
|
+
})) || 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, {
|
|
36222
36262
|
selectBusinessType: "shopFile2",
|
|
36223
36263
|
selectProps: _objectSpread2({
|
|
36224
36264
|
style: styleCommon,
|
|
@@ -36239,7 +36279,7 @@ function RenderCompItem(props) {
|
|
|
36239
36279
|
getPopupContainer: function getPopupContainer() {
|
|
36240
36280
|
return document.body;
|
|
36241
36281
|
}
|
|
36242
|
-
})) || 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, {
|
|
36282
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36243
36283
|
selectBusinessType: "employee2",
|
|
36244
36284
|
selectProps: _objectSpread2({
|
|
36245
36285
|
style: styleCommon,
|
|
@@ -36260,7 +36300,7 @@ function RenderCompItem(props) {
|
|
|
36260
36300
|
getPopupContainer: function getPopupContainer() {
|
|
36261
36301
|
return document.body;
|
|
36262
36302
|
}
|
|
36263
|
-
})) || 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, {
|
|
36303
|
+
})) || 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, {
|
|
36264
36304
|
disabled: disabled,
|
|
36265
36305
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36266
36306
|
businessType: "stock-organization",
|
|
@@ -36273,7 +36313,7 @@ function RenderCompItem(props) {
|
|
|
36273
36313
|
getPopupContainer: function getPopupContainer() {
|
|
36274
36314
|
return document.body;
|
|
36275
36315
|
}
|
|
36276
|
-
})) || 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, {
|
|
36316
|
+
})) || 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, {
|
|
36277
36317
|
disabled: disabled,
|
|
36278
36318
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36279
36319
|
businessType: "settle-organization",
|
|
@@ -36286,7 +36326,7 @@ function RenderCompItem(props) {
|
|
|
36286
36326
|
getPopupContainer: function getPopupContainer() {
|
|
36287
36327
|
return document.body;
|
|
36288
36328
|
}
|
|
36289
|
-
})) || 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, {
|
|
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) === 310 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36290
36330
|
selectBusinessType: "deliveryMode",
|
|
36291
36331
|
selectProps: _objectSpread2({
|
|
36292
36332
|
style: styleCommon,
|
|
@@ -36307,7 +36347,7 @@ function RenderCompItem(props) {
|
|
|
36307
36347
|
getPopupContainer: function getPopupContainer() {
|
|
36308
36348
|
return document.body;
|
|
36309
36349
|
}
|
|
36310
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
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) === 360 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36311
36351
|
selectBusinessType: "role",
|
|
36312
36352
|
selectProps: _objectSpread2({
|
|
36313
36353
|
style: styleCommon,
|
|
@@ -36328,7 +36368,7 @@ function RenderCompItem(props) {
|
|
|
36328
36368
|
getPopupContainer: function getPopupContainer() {
|
|
36329
36369
|
return document.body;
|
|
36330
36370
|
}
|
|
36331
|
-
})) || 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, {
|
|
36371
|
+
})) || 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, {
|
|
36332
36372
|
selectBusinessType: "brand",
|
|
36333
36373
|
selectProps: _objectSpread2({
|
|
36334
36374
|
style: styleCommon,
|
|
@@ -36349,7 +36389,7 @@ function RenderCompItem(props) {
|
|
|
36349
36389
|
getPopupContainer: function getPopupContainer() {
|
|
36350
36390
|
return document.body;
|
|
36351
36391
|
}
|
|
36352
|
-
})) || 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, {
|
|
36392
|
+
})) || 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, {
|
|
36353
36393
|
disabled: disabled,
|
|
36354
36394
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36355
36395
|
businessType: "background-category",
|
|
@@ -36362,7 +36402,7 @@ function RenderCompItem(props) {
|
|
|
36362
36402
|
getPopupContainer: function getPopupContainer() {
|
|
36363
36403
|
return document.body;
|
|
36364
36404
|
}
|
|
36365
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
36405
|
+
})) || 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, {
|
|
36366
36406
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36367
36407
|
style: styleCommon,
|
|
36368
36408
|
placeholder: '请选择'
|
|
@@ -36385,7 +36425,7 @@ function RenderCompItem(props) {
|
|
|
36385
36425
|
onChange: function onChange(value) {
|
|
36386
36426
|
handleEdit(ites.code, value);
|
|
36387
36427
|
}
|
|
36388
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36428
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
36389
36429
|
style: {
|
|
36390
36430
|
display: 'flex'
|
|
36391
36431
|
}
|
|
@@ -36897,7 +36937,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36897
36937
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36898
36938
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36899
36939
|
}
|
|
36900
|
-
var parallelTreeData =
|
|
36940
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36901
36941
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36902
36942
|
var _i$key;
|
|
36903
36943
|
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);
|
|
@@ -37824,13 +37864,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37824
37864
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37825
37865
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37826
37866
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37827
|
-
var list =
|
|
37867
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37828
37868
|
var requiredList = list.filter(function (c) {
|
|
37829
37869
|
return c.required == 1;
|
|
37830
37870
|
}) || []; // 获取对象属性为true的集合
|
|
37831
37871
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37832
37872
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37833
|
-
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) ?
|
|
37873
|
+
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];
|
|
37834
37874
|
(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) {
|
|
37835
37875
|
if (requiredList.some(function (r) {
|
|
37836
37876
|
return r.id === e.elementId;
|
|
@@ -38419,7 +38459,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38419
38459
|
style: {
|
|
38420
38460
|
float: 'right'
|
|
38421
38461
|
}
|
|
38422
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38462
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38423
38463
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38424
38464
|
ruleGroupInfo: {
|
|
38425
38465
|
ruleGroupList: ruleGroupList,
|
|
@@ -38437,7 +38477,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38437
38477
|
callBack: function callBack(newData) {
|
|
38438
38478
|
upDateData(newData);
|
|
38439
38479
|
}
|
|
38440
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38480
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
38441
38481
|
style: {
|
|
38442
38482
|
padding: 20
|
|
38443
38483
|
}
|
|
@@ -38812,4 +38852,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38812
38852
|
}, children));
|
|
38813
38853
|
};
|
|
38814
38854
|
|
|
38815
|
-
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,
|
|
38855
|
+
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 };
|