@bit-sun/business-component 4.0.13-alpha.1 → 4.0.13-alpha.3
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/components/Business/BsSulaQueryTable/utils.d.ts +1 -1
- package/dist/index.esm.js +462 -420
- package/dist/index.js +463 -421
- package/package.json +1 -1
- package/src/components/Business/BsSulaQueryTable/utils.tsx +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +9 -4
- package/src/components/Functional/DataValidation/index.tsx +1 -0
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -5
- package/src/components/Functional/SearchSelect/utils.tsx +0 -1
package/dist/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var moment$1 = require('moment');
|
|
|
15
15
|
var icons = require('@ant-design/icons');
|
|
16
16
|
var bssula = require('bssula');
|
|
17
17
|
require('qs');
|
|
18
|
-
var ReactDOMServer = require('react-dom/server');
|
|
19
18
|
var XLSX = require('xlsx');
|
|
20
19
|
var reactBeautifulDnd = require('react-beautiful-dnd');
|
|
21
20
|
var ahooks = require('ahooks');
|
|
@@ -55,88 +54,9 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
55
54
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
56
55
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
57
56
|
|
|
58
|
-
function _arrayLikeToArray(r, a) {
|
|
59
|
-
(null == a || a > r.length) && (a = r.length);
|
|
60
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
61
|
-
return n;
|
|
62
|
-
}
|
|
63
|
-
function _arrayWithHoles(r) {
|
|
64
|
-
if (Array.isArray(r)) return r;
|
|
65
|
-
}
|
|
66
|
-
function _arrayWithoutHoles(r) {
|
|
67
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
68
|
-
}
|
|
69
|
-
function _assertThisInitialized(e) {
|
|
70
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
71
|
-
return e;
|
|
72
|
-
}
|
|
73
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
74
|
-
try {
|
|
75
|
-
var i = n[a](c),
|
|
76
|
-
u = i.value;
|
|
77
|
-
} catch (n) {
|
|
78
|
-
return void e(n);
|
|
79
|
-
}
|
|
80
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
81
|
-
}
|
|
82
|
-
function _asyncToGenerator(n) {
|
|
83
|
-
return function () {
|
|
84
|
-
var t = this,
|
|
85
|
-
e = arguments;
|
|
86
|
-
return new Promise(function (r, o) {
|
|
87
|
-
var a = n.apply(t, e);
|
|
88
|
-
function _next(n) {
|
|
89
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
90
|
-
}
|
|
91
|
-
function _throw(n) {
|
|
92
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
93
|
-
}
|
|
94
|
-
_next(void 0);
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
57
|
function _callSuper(t, o, e) {
|
|
99
58
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
100
59
|
}
|
|
101
|
-
function _classCallCheck(a, n) {
|
|
102
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
103
|
-
}
|
|
104
|
-
function _defineProperties(e, r) {
|
|
105
|
-
for (var t = 0; t < r.length; t++) {
|
|
106
|
-
var o = r[t];
|
|
107
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function _createClass(e, r, t) {
|
|
111
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
112
|
-
writable: !1
|
|
113
|
-
}), e;
|
|
114
|
-
}
|
|
115
|
-
function _defineProperty(e, r, t) {
|
|
116
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
117
|
-
value: t,
|
|
118
|
-
enumerable: !0,
|
|
119
|
-
configurable: !0,
|
|
120
|
-
writable: !0
|
|
121
|
-
}) : e[r] = t, e;
|
|
122
|
-
}
|
|
123
|
-
function _getPrototypeOf(t) {
|
|
124
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
125
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
126
|
-
}, _getPrototypeOf(t);
|
|
127
|
-
}
|
|
128
|
-
function _inherits(t, e) {
|
|
129
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
130
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
131
|
-
constructor: {
|
|
132
|
-
value: t,
|
|
133
|
-
writable: !0,
|
|
134
|
-
configurable: !0
|
|
135
|
-
}
|
|
136
|
-
}), Object.defineProperty(t, "prototype", {
|
|
137
|
-
writable: !1
|
|
138
|
-
}), e && _setPrototypeOf(t, e);
|
|
139
|
-
}
|
|
140
60
|
function _isNativeReflectConstruct() {
|
|
141
61
|
try {
|
|
142
62
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -145,9 +65,6 @@ function _isNativeReflectConstruct() {
|
|
|
145
65
|
return !!t;
|
|
146
66
|
})();
|
|
147
67
|
}
|
|
148
|
-
function _iterableToArray(r) {
|
|
149
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
150
|
-
}
|
|
151
68
|
function _iterableToArrayLimit(r, l) {
|
|
152
69
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
153
70
|
if (null != t) {
|
|
@@ -175,15 +92,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
175
92
|
return a;
|
|
176
93
|
}
|
|
177
94
|
}
|
|
178
|
-
function _nonIterableRest() {
|
|
179
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
180
|
-
}
|
|
181
|
-
function _nonIterableSpread() {
|
|
182
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
183
|
-
}
|
|
184
|
-
function _objectDestructuringEmpty(t) {
|
|
185
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
186
|
-
}
|
|
187
95
|
function ownKeys(e, r) {
|
|
188
96
|
var t = Object.keys(e);
|
|
189
97
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -205,31 +113,6 @@ function _objectSpread2(e) {
|
|
|
205
113
|
}
|
|
206
114
|
return e;
|
|
207
115
|
}
|
|
208
|
-
function _objectWithoutProperties(e, t) {
|
|
209
|
-
if (null == e) return {};
|
|
210
|
-
var o,
|
|
211
|
-
r,
|
|
212
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
|
-
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
215
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
|
-
}
|
|
217
|
-
return i;
|
|
218
|
-
}
|
|
219
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
220
|
-
if (null == r) return {};
|
|
221
|
-
var t = {};
|
|
222
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (e.includes(n)) continue;
|
|
224
|
-
t[n] = r[n];
|
|
225
|
-
}
|
|
226
|
-
return t;
|
|
227
|
-
}
|
|
228
|
-
function _possibleConstructorReturn(t, e) {
|
|
229
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
230
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
|
-
return _assertThisInitialized(t);
|
|
232
|
-
}
|
|
233
116
|
function _regeneratorRuntime() {
|
|
234
117
|
_regeneratorRuntime = function () {
|
|
235
118
|
return e;
|
|
@@ -531,20 +414,6 @@ function _regeneratorRuntime() {
|
|
|
531
414
|
}
|
|
532
415
|
}, e;
|
|
533
416
|
}
|
|
534
|
-
function _setPrototypeOf(t, e) {
|
|
535
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
536
|
-
return t.__proto__ = e, t;
|
|
537
|
-
}, _setPrototypeOf(t, e);
|
|
538
|
-
}
|
|
539
|
-
function _slicedToArray(r, e) {
|
|
540
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
541
|
-
}
|
|
542
|
-
function _toArray(r) {
|
|
543
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
544
|
-
}
|
|
545
|
-
function _toConsumableArray(r) {
|
|
546
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
547
|
-
}
|
|
548
417
|
function _toPrimitive(t, r) {
|
|
549
418
|
if ("object" != typeof t || !t) return t;
|
|
550
419
|
var e = t[Symbol.toPrimitive];
|
|
@@ -568,13 +437,181 @@ function _typeof(o) {
|
|
|
568
437
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
569
438
|
}, _typeof(o);
|
|
570
439
|
}
|
|
571
|
-
function
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
var
|
|
575
|
-
|
|
440
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
441
|
+
try {
|
|
442
|
+
var info = gen[key](arg);
|
|
443
|
+
var value = info.value;
|
|
444
|
+
} catch (error) {
|
|
445
|
+
reject(error);
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
if (info.done) {
|
|
449
|
+
resolve(value);
|
|
450
|
+
} else {
|
|
451
|
+
Promise.resolve(value).then(_next, _throw);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function _asyncToGenerator(fn) {
|
|
455
|
+
return function () {
|
|
456
|
+
var self = this,
|
|
457
|
+
args = arguments;
|
|
458
|
+
return new Promise(function (resolve, reject) {
|
|
459
|
+
var gen = fn.apply(self, args);
|
|
460
|
+
function _next(value) {
|
|
461
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
462
|
+
}
|
|
463
|
+
function _throw(err) {
|
|
464
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
465
|
+
}
|
|
466
|
+
_next(undefined);
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function _classCallCheck(instance, Constructor) {
|
|
471
|
+
if (!(instance instanceof Constructor)) {
|
|
472
|
+
throw new TypeError("Cannot call a class as a function");
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
function _defineProperties(target, props) {
|
|
476
|
+
for (var i = 0; i < props.length; i++) {
|
|
477
|
+
var descriptor = props[i];
|
|
478
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
479
|
+
descriptor.configurable = true;
|
|
480
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
481
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
576
482
|
}
|
|
577
483
|
}
|
|
484
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
485
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
486
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
487
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
488
|
+
writable: false
|
|
489
|
+
});
|
|
490
|
+
return Constructor;
|
|
491
|
+
}
|
|
492
|
+
function _defineProperty(obj, key, value) {
|
|
493
|
+
key = _toPropertyKey(key);
|
|
494
|
+
if (key in obj) {
|
|
495
|
+
Object.defineProperty(obj, key, {
|
|
496
|
+
value: value,
|
|
497
|
+
enumerable: true,
|
|
498
|
+
configurable: true,
|
|
499
|
+
writable: true
|
|
500
|
+
});
|
|
501
|
+
} else {
|
|
502
|
+
obj[key] = value;
|
|
503
|
+
}
|
|
504
|
+
return obj;
|
|
505
|
+
}
|
|
506
|
+
function _inherits(subClass, superClass) {
|
|
507
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
508
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
509
|
+
}
|
|
510
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
511
|
+
constructor: {
|
|
512
|
+
value: subClass,
|
|
513
|
+
writable: true,
|
|
514
|
+
configurable: true
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
Object.defineProperty(subClass, "prototype", {
|
|
518
|
+
writable: false
|
|
519
|
+
});
|
|
520
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
521
|
+
}
|
|
522
|
+
function _getPrototypeOf(o) {
|
|
523
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
524
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
525
|
+
};
|
|
526
|
+
return _getPrototypeOf(o);
|
|
527
|
+
}
|
|
528
|
+
function _setPrototypeOf(o, p) {
|
|
529
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
530
|
+
o.__proto__ = p;
|
|
531
|
+
return o;
|
|
532
|
+
};
|
|
533
|
+
return _setPrototypeOf(o, p);
|
|
534
|
+
}
|
|
535
|
+
function _objectDestructuringEmpty(obj) {
|
|
536
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
537
|
+
}
|
|
538
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
539
|
+
if (source == null) return {};
|
|
540
|
+
var target = {};
|
|
541
|
+
for (var key in source) {
|
|
542
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
543
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
544
|
+
target[key] = source[key];
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return target;
|
|
548
|
+
}
|
|
549
|
+
function _objectWithoutProperties(source, excluded) {
|
|
550
|
+
if (source == null) return {};
|
|
551
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
552
|
+
var key, i;
|
|
553
|
+
if (Object.getOwnPropertySymbols) {
|
|
554
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
555
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
556
|
+
key = sourceSymbolKeys[i];
|
|
557
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
558
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
559
|
+
target[key] = source[key];
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return target;
|
|
563
|
+
}
|
|
564
|
+
function _assertThisInitialized(self) {
|
|
565
|
+
if (self === void 0) {
|
|
566
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
567
|
+
}
|
|
568
|
+
return self;
|
|
569
|
+
}
|
|
570
|
+
function _possibleConstructorReturn(self, call) {
|
|
571
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
572
|
+
return call;
|
|
573
|
+
} else if (call !== void 0) {
|
|
574
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
575
|
+
}
|
|
576
|
+
return _assertThisInitialized(self);
|
|
577
|
+
}
|
|
578
|
+
function _slicedToArray(arr, i) {
|
|
579
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
580
|
+
}
|
|
581
|
+
function _toArray(arr) {
|
|
582
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
583
|
+
}
|
|
584
|
+
function _toConsumableArray(arr) {
|
|
585
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
586
|
+
}
|
|
587
|
+
function _arrayWithoutHoles(arr) {
|
|
588
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
589
|
+
}
|
|
590
|
+
function _arrayWithHoles(arr) {
|
|
591
|
+
if (Array.isArray(arr)) return arr;
|
|
592
|
+
}
|
|
593
|
+
function _iterableToArray(iter) {
|
|
594
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
595
|
+
}
|
|
596
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
597
|
+
if (!o) return;
|
|
598
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
599
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
600
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
601
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
602
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
603
|
+
}
|
|
604
|
+
function _arrayLikeToArray(arr, len) {
|
|
605
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
606
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
607
|
+
return arr2;
|
|
608
|
+
}
|
|
609
|
+
function _nonIterableSpread() {
|
|
610
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
611
|
+
}
|
|
612
|
+
function _nonIterableRest() {
|
|
613
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
614
|
+
}
|
|
578
615
|
|
|
579
616
|
var ENUM = {
|
|
580
617
|
// 浏览器缓存信息
|
|
@@ -1083,13 +1120,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1083
1120
|
imgHtml.innerHTML = str;
|
|
1084
1121
|
}
|
|
1085
1122
|
// 测试使用 测试类型缩小 end
|
|
1086
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1123
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1087
1124
|
className: "clomnsImg"
|
|
1088
1125
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1089
1126
|
src: url,
|
|
1090
1127
|
width: "16px",
|
|
1091
1128
|
height: "16px"
|
|
1092
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1129
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1093
1130
|
className: "clomnsImg2"
|
|
1094
1131
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1095
1132
|
src: noImg
|
|
@@ -1211,7 +1248,7 @@ var authFn = function authFn(code) {
|
|
|
1211
1248
|
};
|
|
1212
1249
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1213
1250
|
var renderToString = function renderToString(render) {
|
|
1214
|
-
return
|
|
1251
|
+
return render;
|
|
1215
1252
|
};
|
|
1216
1253
|
|
|
1217
1254
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -1225,7 +1262,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1225
1262
|
}
|
|
1226
1263
|
save_link.click();
|
|
1227
1264
|
}
|
|
1228
|
-
var
|
|
1265
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1229
1266
|
return data.map(function (item) {
|
|
1230
1267
|
if (!item.name || !item.path) {
|
|
1231
1268
|
return null;
|
|
@@ -1245,7 +1282,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1245
1282
|
authority: item.authority || parentAuthority
|
|
1246
1283
|
});
|
|
1247
1284
|
if (item.routes) {
|
|
1248
|
-
var children =
|
|
1285
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1249
1286
|
// Reduce memory usage
|
|
1250
1287
|
result.children = children;
|
|
1251
1288
|
}
|
|
@@ -1255,7 +1292,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1255
1292
|
return item;
|
|
1256
1293
|
});
|
|
1257
1294
|
};
|
|
1258
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1295
|
+
var memoizeOneFormatter = memoizeOne__default['default'](formatter, isEqual__default['default']);
|
|
1259
1296
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1260
1297
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1261
1298
|
if (backHistoryPath) {
|
|
@@ -1564,7 +1601,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1564
1601
|
// sheepMap是表头字段中英文映射
|
|
1565
1602
|
// sheetCount:表的数量,默认一张
|
|
1566
1603
|
var resolveFile = /*#__PURE__*/function () {
|
|
1567
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1604
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1568
1605
|
var config,
|
|
1569
1606
|
data,
|
|
1570
1607
|
_args = arguments;
|
|
@@ -1603,7 +1640,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1603
1640
|
}();
|
|
1604
1641
|
//读取文件
|
|
1605
1642
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1606
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1643
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1607
1644
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1608
1645
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1609
1646
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1696,14 +1733,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1696
1733
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1697
1734
|
|
|
1698
1735
|
// 获取树平行结构
|
|
1699
|
-
var
|
|
1736
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1700
1737
|
var childrenKey = chilKey || 'children';
|
|
1701
1738
|
treeData.forEach(function (el) {
|
|
1702
1739
|
var _el$childrenKey;
|
|
1703
1740
|
result.push(el);
|
|
1704
1741
|
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) {
|
|
1705
1742
|
// 子级递归
|
|
1706
|
-
|
|
1743
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1707
1744
|
}
|
|
1708
1745
|
});
|
|
1709
1746
|
return result;
|
|
@@ -1980,13 +2017,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1980
2017
|
imgHtml.innerHTML = str;
|
|
1981
2018
|
}
|
|
1982
2019
|
// 测试使用 测试类型缩小 end
|
|
1983
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
2020
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1984
2021
|
className: "clomnsImg"
|
|
1985
2022
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1986
2023
|
src: url,
|
|
1987
2024
|
width: "16px",
|
|
1988
2025
|
height: "16px"
|
|
1989
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2026
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1990
2027
|
src: noImg
|
|
1991
2028
|
}))));
|
|
1992
2029
|
};
|
|
@@ -2048,7 +2085,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2048
2085
|
}
|
|
2049
2086
|
});
|
|
2050
2087
|
};
|
|
2051
|
-
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (/*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2088
|
+
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2052
2089
|
disabled: disabled,
|
|
2053
2090
|
onChange: function onChange(e) {
|
|
2054
2091
|
var v = e.target.value;
|
|
@@ -2058,7 +2095,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2058
2095
|
width: 170
|
|
2059
2096
|
},
|
|
2060
2097
|
value: inputValue
|
|
2061
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2098
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2062
2099
|
disabled: disabled,
|
|
2063
2100
|
onBlur: function onBlur(e) {
|
|
2064
2101
|
var v = parseFloat(e.target.value);
|
|
@@ -2437,16 +2474,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2437
2474
|
var handleExportBarCode = handleExport;
|
|
2438
2475
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2439
2476
|
var routerMap = {};
|
|
2440
|
-
var
|
|
2477
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2441
2478
|
data.forEach(function (menuItem) {
|
|
2442
2479
|
if (menuItem.children) {
|
|
2443
|
-
|
|
2480
|
+
flattenMenuData(menuItem.children);
|
|
2444
2481
|
}
|
|
2445
2482
|
// Reduce memory usage
|
|
2446
2483
|
routerMap[menuItem.path] = menuItem;
|
|
2447
2484
|
});
|
|
2448
2485
|
};
|
|
2449
|
-
|
|
2486
|
+
flattenMenuData(menuData);
|
|
2450
2487
|
return routerMap;
|
|
2451
2488
|
};
|
|
2452
2489
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2589,7 +2626,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2589
2626
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2590
2627
|
};
|
|
2591
2628
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2592
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2629
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2593
2630
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2594
2631
|
while (1) switch (_context.prev = _context.next) {
|
|
2595
2632
|
case 0:
|
|
@@ -3263,7 +3300,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3263
3300
|
placement: "bottomLeft"
|
|
3264
3301
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3265
3302
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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"))
|
|
3266
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))
|
|
3303
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3304
|
+
style: {
|
|
3305
|
+
color: 'red'
|
|
3306
|
+
}
|
|
3307
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3267
3308
|
trigger: ['click'],
|
|
3268
3309
|
overlay: this.menuList,
|
|
3269
3310
|
placement: "bottomRight"
|
|
@@ -3938,7 +3979,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3938
3979
|
placement: "bottomLeft"
|
|
3939
3980
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3940
3981
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].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"))
|
|
3941
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3982
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3942
3983
|
trigger: ['click'],
|
|
3943
3984
|
overlay: this.menuList,
|
|
3944
3985
|
placement: "bottomRight"
|
|
@@ -4453,12 +4494,11 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4453
4494
|
onChange(newValue);
|
|
4454
4495
|
};
|
|
4455
4496
|
return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
4456
|
-
open: true,
|
|
4457
4497
|
overlayClassName: 'searchSelectMaxTagToolTip',
|
|
4458
4498
|
destroyTooltipOnHide: true,
|
|
4459
4499
|
placement: "topRight",
|
|
4460
4500
|
autoAdjustOverflow: false,
|
|
4461
|
-
title: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4501
|
+
title: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4462
4502
|
style: {
|
|
4463
4503
|
margin: '6px 8px 0px'
|
|
4464
4504
|
},
|
|
@@ -4560,10 +4600,8 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4560
4600
|
uniqueValue = _useState16[0],
|
|
4561
4601
|
setUniqueValue = _useState16[1];
|
|
4562
4602
|
React$1.useEffect(function () {
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
onValueChange(value);
|
|
4566
|
-
}
|
|
4603
|
+
setPopValue(value);
|
|
4604
|
+
onValueChange(value);
|
|
4567
4605
|
}, [value]);
|
|
4568
4606
|
React$1.useEffect(function () {
|
|
4569
4607
|
setUniqueValue(makeUniqueValue());
|
|
@@ -4584,7 +4622,6 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4584
4622
|
var formatValue = (_ToCDB = ToCDB$1(v)) === null || _ToCDB === void 0 ? void 0 : (_ToCDB$split = _ToCDB.split(/[/\n/\s,;]/)) === null || _ToCDB$split === void 0 ? void 0 : (_ToCDB$split$filter = _ToCDB$split.filter(function (item) {
|
|
4585
4623
|
return item;
|
|
4586
4624
|
})) === null || _ToCDB$split$filter === void 0 ? void 0 : _ToCDB$split$filter.join(',');
|
|
4587
|
-
console.log(formatValue, '1111formatValue');
|
|
4588
4625
|
setValue(formatValue);
|
|
4589
4626
|
};
|
|
4590
4627
|
var handleCancel = function handleCancel() {
|
|
@@ -4692,10 +4729,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4692
4729
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4693
4730
|
});
|
|
4694
4731
|
},
|
|
4695
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4732
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4696
4733
|
size: "small",
|
|
4697
4734
|
className: 'searchSelectSpin'
|
|
4698
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4735
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4699
4736
|
style: {
|
|
4700
4737
|
textAlign: 'center'
|
|
4701
4738
|
}
|
|
@@ -4927,7 +4964,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4927
4964
|
title: item.name,
|
|
4928
4965
|
className: "propertyGroup_checkbox_container"
|
|
4929
4966
|
}, item.name));
|
|
4930
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4967
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4931
4968
|
style: {
|
|
4932
4969
|
width: '50px',
|
|
4933
4970
|
cursor: 'pointer',
|
|
@@ -4940,7 +4977,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4940
4977
|
setShowNotCommon(!showNotCommon);
|
|
4941
4978
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4942
4979
|
}
|
|
4943
|
-
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4980
|
+
}, showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4944
4981
|
};
|
|
4945
4982
|
var PropertyGroup$1 = /*#__PURE__*/React__default['default'].memo(PropertyGroup, function (props, nextProps) {
|
|
4946
4983
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5170,7 +5207,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5170
5207
|
propertyData: item,
|
|
5171
5208
|
handleProperyItemChange: handleProperyItemChange
|
|
5172
5209
|
});
|
|
5173
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5210
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5174
5211
|
style: {
|
|
5175
5212
|
width: '50px',
|
|
5176
5213
|
cursor: 'pointer',
|
|
@@ -5180,7 +5217,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5180
5217
|
onClick: function onClick() {
|
|
5181
5218
|
return setShowNotCommon(!showNotCommon);
|
|
5182
5219
|
}
|
|
5183
|
-
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5220
|
+
}, showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5184
5221
|
};
|
|
5185
5222
|
|
|
5186
5223
|
var Option$1 = antd.Select.Option;
|
|
@@ -6199,13 +6236,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6199
6236
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6200
6237
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6201
6238
|
className: 'search_select'
|
|
6202
|
-
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6239
|
+
}, fieldComponent ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6203
6240
|
onClick: function onClick() {
|
|
6204
6241
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6205
6242
|
(_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);
|
|
6206
6243
|
showModal();
|
|
6207
6244
|
}
|
|
6208
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6245
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6209
6246
|
title: getShowStr(),
|
|
6210
6247
|
style: {
|
|
6211
6248
|
overflow: 'hidden',
|
|
@@ -6232,10 +6269,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6232
6269
|
dropdownRender: function dropdownRender(menu) {
|
|
6233
6270
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6234
6271
|
},
|
|
6235
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6272
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6236
6273
|
size: "small",
|
|
6237
6274
|
className: 'searchSelectSpin'
|
|
6238
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6275
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6239
6276
|
style: {
|
|
6240
6277
|
textAlign: 'center'
|
|
6241
6278
|
}
|
|
@@ -6275,7 +6312,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6275
6312
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6276
6313
|
filterTxt: searchValue
|
|
6277
6314
|
}));
|
|
6278
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6315
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6279
6316
|
maskClosable: false,
|
|
6280
6317
|
destroyOnClose: true,
|
|
6281
6318
|
width: "80%",
|
|
@@ -6872,7 +6909,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6872
6909
|
style: {
|
|
6873
6910
|
width: 525
|
|
6874
6911
|
}
|
|
6875
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6912
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6876
6913
|
checked: !dataSource.some(function (item) {
|
|
6877
6914
|
if (item.hidden) return true;
|
|
6878
6915
|
return false;
|
|
@@ -6910,13 +6947,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6910
6947
|
_this2.onChange(e, item.title);
|
|
6911
6948
|
}
|
|
6912
6949
|
}, item.title);
|
|
6913
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
6950
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6914
6951
|
style: {
|
|
6915
6952
|
width: '144px'
|
|
6916
6953
|
}
|
|
6917
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6954
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6918
6955
|
className: 'sort_table_column_all_empty'
|
|
6919
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6956
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6920
6957
|
className: 'sort_table_column_special'
|
|
6921
6958
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6922
6959
|
className: 'sort_table_column_all'
|
|
@@ -7105,7 +7142,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7105
7142
|
});
|
|
7106
7143
|
};
|
|
7107
7144
|
// 格式化树选择器数据源
|
|
7108
|
-
var
|
|
7145
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7109
7146
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7110
7147
|
return {
|
|
7111
7148
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7115,7 +7152,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7115
7152
|
isLeaf: !haveChildren,
|
|
7116
7153
|
disabled: haveChildren,
|
|
7117
7154
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7118
|
-
return
|
|
7155
|
+
return mapSearchTree(i, resKeyValue);
|
|
7119
7156
|
}) : []
|
|
7120
7157
|
};
|
|
7121
7158
|
};
|
|
@@ -7124,7 +7161,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7124
7161
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7125
7162
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7126
7163
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7127
|
-
return
|
|
7164
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7128
7165
|
}) || [];
|
|
7129
7166
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7130
7167
|
};
|
|
@@ -7295,7 +7332,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7295
7332
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7296
7333
|
// FIXME: 特殊业务逻辑
|
|
7297
7334
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7298
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7335
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7299
7336
|
var result;
|
|
7300
7337
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7301
7338
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7548,7 +7585,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7548
7585
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7549
7586
|
value: text || null,
|
|
7550
7587
|
onChange: function () {
|
|
7551
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7588
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7552
7589
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7553
7590
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7554
7591
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8156,10 +8193,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8156
8193
|
var newColumns = arr.map(function (col) {
|
|
8157
8194
|
return _objectSpread2({}, col);
|
|
8158
8195
|
});
|
|
8159
|
-
var
|
|
8196
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8160
8197
|
var i = indexArr.shift();
|
|
8161
8198
|
if (indexArr.length > 0) {
|
|
8162
|
-
|
|
8199
|
+
handleIndex(arr[i].children, indexArr);
|
|
8163
8200
|
} else {
|
|
8164
8201
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8165
8202
|
width: size.width
|
|
@@ -8167,7 +8204,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8167
8204
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8168
8205
|
}
|
|
8169
8206
|
};
|
|
8170
|
-
|
|
8207
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8171
8208
|
callback(newColumns);
|
|
8172
8209
|
};
|
|
8173
8210
|
};
|
|
@@ -8177,13 +8214,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8177
8214
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8178
8215
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8179
8216
|
};
|
|
8180
|
-
var
|
|
8217
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8181
8218
|
arr.forEach(function (item, index) {
|
|
8182
8219
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8183
8220
|
return i || i === 0;
|
|
8184
8221
|
});
|
|
8185
8222
|
if (noEmptyArray$1(item.children)) {
|
|
8186
|
-
|
|
8223
|
+
handleColumns(item.children, indexArrInside);
|
|
8187
8224
|
} else {
|
|
8188
8225
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8189
8226
|
item.onHeaderCell = function (column) {
|
|
@@ -8199,14 +8236,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8199
8236
|
handleAntdColumnsSpecialParams(item);
|
|
8200
8237
|
return _objectSpread2({}, item);
|
|
8201
8238
|
});
|
|
8202
|
-
|
|
8239
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8203
8240
|
return setShowToChooseColumnsCallback(res);
|
|
8204
8241
|
});
|
|
8205
8242
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8206
8243
|
handleAntdColumnsSpecialParams(item);
|
|
8207
8244
|
return _objectSpread2({}, item);
|
|
8208
8245
|
});
|
|
8209
|
-
|
|
8246
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8210
8247
|
return setShowColumnsCallback(res);
|
|
8211
8248
|
});
|
|
8212
8249
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8217,7 +8254,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8217
8254
|
id: "add_select_div_".concat(uniqueValue)
|
|
8218
8255
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
8219
8256
|
onClick: handleShowModal
|
|
8220
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8257
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8221
8258
|
width: '1200px',
|
|
8222
8259
|
style: {
|
|
8223
8260
|
top: 20
|
|
@@ -9131,7 +9168,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9131
9168
|
});
|
|
9132
9169
|
};
|
|
9133
9170
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9134
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9171
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9135
9172
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9136
9173
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9137
9174
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9214,10 +9251,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9214
9251
|
var newColumns = arr.map(function (col) {
|
|
9215
9252
|
return _objectSpread2({}, col);
|
|
9216
9253
|
});
|
|
9217
|
-
var
|
|
9254
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9218
9255
|
var i = indexArr.shift();
|
|
9219
9256
|
if (indexArr.length > 0) {
|
|
9220
|
-
|
|
9257
|
+
handleIndex(arr[i].children, indexArr);
|
|
9221
9258
|
} else {
|
|
9222
9259
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9223
9260
|
width: size.width
|
|
@@ -9225,17 +9262,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9225
9262
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9226
9263
|
}
|
|
9227
9264
|
};
|
|
9228
|
-
|
|
9265
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9229
9266
|
callback(newColumns);
|
|
9230
9267
|
};
|
|
9231
9268
|
};
|
|
9232
|
-
var
|
|
9269
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9233
9270
|
arr.forEach(function (item, index) {
|
|
9234
9271
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9235
9272
|
return i || i === 0;
|
|
9236
9273
|
});
|
|
9237
9274
|
if (noEmptyArray$1(item.children)) {
|
|
9238
|
-
|
|
9275
|
+
handleColumns(item.children, indexArrInside);
|
|
9239
9276
|
} else {
|
|
9240
9277
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9241
9278
|
item.onHeaderCell = function (column) {
|
|
@@ -9251,7 +9288,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9251
9288
|
handleAntdColumnsSpecialParams(item);
|
|
9252
9289
|
return _objectSpread2({}, item);
|
|
9253
9290
|
});
|
|
9254
|
-
|
|
9291
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9255
9292
|
return setShowColumnsCallback(res);
|
|
9256
9293
|
});
|
|
9257
9294
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -9566,7 +9603,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9566
9603
|
});
|
|
9567
9604
|
};
|
|
9568
9605
|
// 格式化树选择器数据源
|
|
9569
|
-
var
|
|
9606
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9570
9607
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9571
9608
|
return {
|
|
9572
9609
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9576,7 +9613,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9576
9613
|
isLeaf: !haveChildren,
|
|
9577
9614
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9578
9615
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9579
|
-
return
|
|
9616
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9580
9617
|
}) : []
|
|
9581
9618
|
};
|
|
9582
9619
|
};
|
|
@@ -9590,7 +9627,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9590
9627
|
disabledJudge = false;
|
|
9591
9628
|
}
|
|
9592
9629
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9593
|
-
return
|
|
9630
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9594
9631
|
}) || [];
|
|
9595
9632
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9596
9633
|
};
|
|
@@ -9857,16 +9894,19 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9857
9894
|
type: 'multipleQuerySearchSelect',
|
|
9858
9895
|
props: {
|
|
9859
9896
|
selectProps: {
|
|
9860
|
-
mode: "multiple"
|
|
9897
|
+
mode: "multiple",
|
|
9898
|
+
placeholder: '请输入SKU编码查询'
|
|
9861
9899
|
},
|
|
9862
9900
|
requestConfig: {
|
|
9863
9901
|
url: '/items/sku//listNoPage/Simple',
|
|
9864
|
-
filter: 'qp-name-like',
|
|
9865
|
-
// filter: 'qp-itemCode,name-orGroup,like',
|
|
9902
|
+
filter: 'qp-skuCode,name-orGroup,like',
|
|
9866
9903
|
mappingTextField: 'name',
|
|
9867
9904
|
mappingValueField: 'skuCode',
|
|
9868
9905
|
sourceName: 'qp-skuCode-in',
|
|
9869
|
-
specialBracket: true
|
|
9906
|
+
specialBracket: true,
|
|
9907
|
+
otherParams: {
|
|
9908
|
+
'ownOrgSign': getCurrentTargetBgId()
|
|
9909
|
+
} // 默认参数
|
|
9870
9910
|
}
|
|
9871
9911
|
}
|
|
9872
9912
|
}
|
|
@@ -9879,10 +9919,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9879
9919
|
field: {
|
|
9880
9920
|
type: 'multipleQuerySearchSelect',
|
|
9881
9921
|
props: {
|
|
9922
|
+
selectProps: {
|
|
9923
|
+
placeholder: '请输入SPU编码查询'
|
|
9924
|
+
},
|
|
9882
9925
|
requestConfig: {
|
|
9883
9926
|
url: '/items/item/listNoPage/Simple',
|
|
9884
|
-
filter: 'qp-name-like',
|
|
9885
|
-
// filter: 'qp-skuCode,name-orGroup,like',
|
|
9927
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
9886
9928
|
mappingTextField: 'name',
|
|
9887
9929
|
mappingValueField: 'itemCode',
|
|
9888
9930
|
sourceName: 'qp-itemCode-in',
|
|
@@ -13690,7 +13732,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13690
13732
|
};
|
|
13691
13733
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
13692
13734
|
onClick: handleShowModal
|
|
13693
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13735
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13694
13736
|
onOk: handleOk,
|
|
13695
13737
|
onCancel: handleCancel,
|
|
13696
13738
|
destroyOnClose: true,
|
|
@@ -13809,7 +13851,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13809
13851
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13810
13852
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13811
13853
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13812
|
-
var
|
|
13854
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13813
13855
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13814
13856
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13815
13857
|
return {
|
|
@@ -13821,7 +13863,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13821
13863
|
isLeaf: !haveChildren,
|
|
13822
13864
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13823
13865
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13824
|
-
return
|
|
13866
|
+
return mapSearchTree(i);
|
|
13825
13867
|
}) : []
|
|
13826
13868
|
};
|
|
13827
13869
|
};
|
|
@@ -13839,8 +13881,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13839
13881
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13840
13882
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
13841
13883
|
headers: headers
|
|
13842
|
-
}).then(/*#__PURE__*/function () {
|
|
13843
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13884
|
+
}).then( /*#__PURE__*/function () {
|
|
13885
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13844
13886
|
var _ctx$form;
|
|
13845
13887
|
var resData, coverData, data, dataList;
|
|
13846
13888
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13867,7 +13909,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13867
13909
|
case 9:
|
|
13868
13910
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13869
13911
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13870
|
-
return
|
|
13912
|
+
return mapSearchTree(ites);
|
|
13871
13913
|
}) || [];
|
|
13872
13914
|
case 11:
|
|
13873
13915
|
_context.next = 14;
|
|
@@ -13905,11 +13947,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13905
13947
|
return _formatResult;
|
|
13906
13948
|
}
|
|
13907
13949
|
};
|
|
13908
|
-
var
|
|
13950
|
+
var parallelData = function parallelData(data, result) {
|
|
13909
13951
|
data.forEach(function (i) {
|
|
13910
13952
|
result.push(i);
|
|
13911
13953
|
if (i[treeChildrenRoom]) {
|
|
13912
|
-
|
|
13954
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13913
13955
|
}
|
|
13914
13956
|
});
|
|
13915
13957
|
return result;
|
|
@@ -13949,7 +13991,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13949
13991
|
var _ctx$form2;
|
|
13950
13992
|
var handleData = formatData(data);
|
|
13951
13993
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13952
|
-
var parallelTreeData =
|
|
13994
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13953
13995
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13954
13996
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13955
13997
|
onChangeName && onChangeName(dataName);
|
|
@@ -13992,7 +14034,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13992
14034
|
var getShowStr = function getShowStr() {
|
|
13993
14035
|
var isMultiple = multiple || treeCheckable;
|
|
13994
14036
|
var kongValue = '无';
|
|
13995
|
-
var parallelTreeData =
|
|
14037
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13996
14038
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13997
14039
|
if (isMultiple) {
|
|
13998
14040
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14004,7 +14046,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14004
14046
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14005
14047
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14006
14048
|
className: 'tree_search_select'
|
|
14007
|
-
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14049
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14008
14050
|
title: getShowStr(),
|
|
14009
14051
|
style: {
|
|
14010
14052
|
overflow: 'hidden',
|
|
@@ -14012,7 +14054,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14012
14054
|
whiteSpace: 'nowrap'
|
|
14013
14055
|
},
|
|
14014
14056
|
className: 'search_select_show'
|
|
14015
|
-
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14057
|
+
}, getShowStr())) : ( /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14016
14058
|
treeCheckable: treeCheckable,
|
|
14017
14059
|
maxTagCount: maxTagCount,
|
|
14018
14060
|
showSearch: showSearch,
|
|
@@ -14209,7 +14251,7 @@ var index$2 = (function (props) {
|
|
|
14209
14251
|
} : {}
|
|
14210
14252
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14211
14253
|
className: 'status-label-operate'
|
|
14212
|
-
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14254
|
+
}, item.isDone ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14213
14255
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14214
14256
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14215
14257
|
style: {
|
|
@@ -14990,7 +15032,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14990
15032
|
style: {
|
|
14991
15033
|
width: 525
|
|
14992
15034
|
}
|
|
14993
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15035
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14994
15036
|
checked: !dataSource.some(function (item) {
|
|
14995
15037
|
if (item.hidden) return true;
|
|
14996
15038
|
return false;
|
|
@@ -15028,13 +15070,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15028
15070
|
_this2.onChange(e, item.title);
|
|
15029
15071
|
}
|
|
15030
15072
|
}, item.title);
|
|
15031
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
15073
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15032
15074
|
style: {
|
|
15033
15075
|
width: '144px'
|
|
15034
15076
|
}
|
|
15035
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
15077
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15036
15078
|
className: 'sort_table_column_all_empty'
|
|
15037
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15079
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15038
15080
|
className: 'sort_table_column_special'
|
|
15039
15081
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15040
15082
|
className: 'sort_table_column_all'
|
|
@@ -15213,10 +15255,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15213
15255
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15214
15256
|
return _objectSpread2({}, col);
|
|
15215
15257
|
});
|
|
15216
|
-
var
|
|
15258
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15217
15259
|
var i = indexArr.shift();
|
|
15218
15260
|
if (indexArr.length > 0) {
|
|
15219
|
-
|
|
15261
|
+
handleIndex(arr[i].children, indexArr);
|
|
15220
15262
|
} else {
|
|
15221
15263
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15222
15264
|
width: size.width
|
|
@@ -15224,7 +15266,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15224
15266
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15225
15267
|
}
|
|
15226
15268
|
};
|
|
15227
|
-
|
|
15269
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15228
15270
|
_this.setState({
|
|
15229
15271
|
showColumns: _toConsumableArray(newColumns)
|
|
15230
15272
|
});
|
|
@@ -15265,7 +15307,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15265
15307
|
};
|
|
15266
15308
|
setIsResizing(true);
|
|
15267
15309
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15268
|
-
document.addEventListener('mouseup',
|
|
15310
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15269
15311
|
};
|
|
15270
15312
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15271
15313
|
e.stopPropagation();
|
|
@@ -15281,9 +15323,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15281
15323
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15282
15324
|
}
|
|
15283
15325
|
};
|
|
15284
|
-
var
|
|
15326
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15285
15327
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15286
|
-
document.removeEventListener('mouseup',
|
|
15328
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15287
15329
|
setIsResizing(false);
|
|
15288
15330
|
};
|
|
15289
15331
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15404,13 +15446,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15404
15446
|
showSummary = summary;
|
|
15405
15447
|
}
|
|
15406
15448
|
}
|
|
15407
|
-
var
|
|
15449
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15408
15450
|
arr.forEach(function (item, index) {
|
|
15409
15451
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15410
15452
|
return i || i === 0;
|
|
15411
15453
|
});
|
|
15412
15454
|
if (noEmptyArray$1(item.children)) {
|
|
15413
|
-
|
|
15455
|
+
handleColumns(item.children, indexArrInside);
|
|
15414
15456
|
} else {
|
|
15415
15457
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15416
15458
|
item.onHeaderCell = function (column) {
|
|
@@ -15426,7 +15468,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15426
15468
|
handleBssulaColumnsSpecialParams(item);
|
|
15427
15469
|
return _objectSpread2({}, item);
|
|
15428
15470
|
});
|
|
15429
|
-
|
|
15471
|
+
handleColumns(showCol, []);
|
|
15430
15472
|
if (dynamicColumns.length) {
|
|
15431
15473
|
showCol = this.handledynamicColumns(showCol);
|
|
15432
15474
|
}
|
|
@@ -15467,7 +15509,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15467
15509
|
cell: this.ResizeableTitle
|
|
15468
15510
|
}
|
|
15469
15511
|
}
|
|
15470
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15512
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15471
15513
|
summary: summary
|
|
15472
15514
|
})));
|
|
15473
15515
|
}
|
|
@@ -15564,10 +15606,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15564
15606
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15565
15607
|
return _objectSpread2({}, col);
|
|
15566
15608
|
});
|
|
15567
|
-
var
|
|
15609
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15568
15610
|
var i = indexArr.shift();
|
|
15569
15611
|
if (indexArr.length > 0) {
|
|
15570
|
-
|
|
15612
|
+
handleIndex(arr[i].children, indexArr);
|
|
15571
15613
|
} else {
|
|
15572
15614
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15573
15615
|
width: size.width
|
|
@@ -15575,7 +15617,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15575
15617
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15576
15618
|
}
|
|
15577
15619
|
};
|
|
15578
|
-
|
|
15620
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15579
15621
|
_this.setState({
|
|
15580
15622
|
showColumns: _toConsumableArray(newColumns)
|
|
15581
15623
|
});
|
|
@@ -15651,13 +15693,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15651
15693
|
showSummary = summary;
|
|
15652
15694
|
}
|
|
15653
15695
|
}
|
|
15654
|
-
var
|
|
15696
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15655
15697
|
arr.forEach(function (item, index) {
|
|
15656
15698
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15657
15699
|
return i || i === 0;
|
|
15658
15700
|
});
|
|
15659
15701
|
if (noEmptyArray$1(item.children)) {
|
|
15660
|
-
|
|
15702
|
+
handleColumns(item.children, indexArrInside);
|
|
15661
15703
|
} else {
|
|
15662
15704
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15663
15705
|
item.onHeaderCell = function (column) {
|
|
@@ -15673,7 +15715,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15673
15715
|
handleAntdColumnsSpecialParams(item);
|
|
15674
15716
|
return _objectSpread2({}, item);
|
|
15675
15717
|
});
|
|
15676
|
-
|
|
15718
|
+
handleColumns(showCol, []);
|
|
15677
15719
|
if (dynamicColumns.length) {
|
|
15678
15720
|
showCol = this.handledynamicColumns(showCol);
|
|
15679
15721
|
}
|
|
@@ -15713,7 +15755,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15713
15755
|
cell: this.ResizeableTitle
|
|
15714
15756
|
}
|
|
15715
15757
|
}
|
|
15716
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15758
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15717
15759
|
summary: summary
|
|
15718
15760
|
})));
|
|
15719
15761
|
}
|
|
@@ -15773,20 +15815,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15773
15815
|
};
|
|
15774
15816
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15775
15817
|
var routerMap = {};
|
|
15776
|
-
var
|
|
15818
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15777
15819
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15778
15820
|
data.forEach(function (menuItem) {
|
|
15779
15821
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15780
15822
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15781
15823
|
});
|
|
15782
15824
|
if (newMenuItem.children) {
|
|
15783
|
-
|
|
15825
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15784
15826
|
}
|
|
15785
15827
|
// Reduce memory usage
|
|
15786
15828
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15787
15829
|
});
|
|
15788
15830
|
};
|
|
15789
|
-
|
|
15831
|
+
flattenMenuData(menuData, {});
|
|
15790
15832
|
return routerMap;
|
|
15791
15833
|
};
|
|
15792
15834
|
// mode类型判断
|
|
@@ -16112,7 +16154,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16112
16154
|
display: 'flex',
|
|
16113
16155
|
gap: '8px'
|
|
16114
16156
|
}
|
|
16115
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16157
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16116
16158
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16117
16159
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16118
16160
|
onClick: function onClick() {
|
|
@@ -16120,7 +16162,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16120
16162
|
},
|
|
16121
16163
|
width: 24,
|
|
16122
16164
|
src: scanning
|
|
16123
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16165
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16124
16166
|
title: "\u5168\u5C4F"
|
|
16125
16167
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16126
16168
|
onClick: function onClick() {
|
|
@@ -16128,7 +16170,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16128
16170
|
},
|
|
16129
16171
|
width: 24,
|
|
16130
16172
|
src: quanping
|
|
16131
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16173
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16132
16174
|
}, function (prevProps, nextProps) {
|
|
16133
16175
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16134
16176
|
return false;
|
|
@@ -16213,7 +16255,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16213
16255
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16214
16256
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16215
16257
|
}, item));
|
|
16216
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16258
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16217
16259
|
}, function (prevProps, nextProps) {
|
|
16218
16260
|
if (prevProps.title !== nextProps.title) {
|
|
16219
16261
|
return false;
|
|
@@ -16853,7 +16895,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16853
16895
|
});
|
|
16854
16896
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16855
16897
|
className: 'sort_table_wrapper'
|
|
16856
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16898
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16857
16899
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16858
16900
|
wrapClassName: 'sort_table_wrapper',
|
|
16859
16901
|
width: 810,
|
|
@@ -16904,7 +16946,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16904
16946
|
width: 525,
|
|
16905
16947
|
height: 24
|
|
16906
16948
|
}
|
|
16907
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16949
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16908
16950
|
checked: !dataSource.some(function (item) {
|
|
16909
16951
|
if (item.hidden) return true;
|
|
16910
16952
|
return false;
|
|
@@ -16958,13 +17000,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16958
17000
|
_this2.onChange(e, item.title);
|
|
16959
17001
|
}
|
|
16960
17002
|
}, item.title);
|
|
16961
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17003
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16962
17004
|
style: {
|
|
16963
17005
|
width: '144px'
|
|
16964
17006
|
}
|
|
16965
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17007
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16966
17008
|
className: 'sort_table_column_all_empty'
|
|
16967
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17009
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16968
17010
|
className: 'sort_table_column_special'
|
|
16969
17011
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16970
17012
|
className: 'sort_table_column_all'
|
|
@@ -17438,7 +17480,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17438
17480
|
});
|
|
17439
17481
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17440
17482
|
className: 'sort_table_wrapper'
|
|
17441
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17483
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17442
17484
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17443
17485
|
wrapClassName: 'sort_table_wrapper',
|
|
17444
17486
|
width: 820,
|
|
@@ -17483,7 +17525,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17483
17525
|
style: {
|
|
17484
17526
|
width: 525
|
|
17485
17527
|
}
|
|
17486
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17528
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17487
17529
|
checked: !dataSource.some(function (item) {
|
|
17488
17530
|
if (item.hidden) return true;
|
|
17489
17531
|
return false;
|
|
@@ -17519,11 +17561,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17519
17561
|
_this2.onChange(e, item.name);
|
|
17520
17562
|
}
|
|
17521
17563
|
}, item.label);
|
|
17522
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17564
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17523
17565
|
style: {
|
|
17524
17566
|
width: '144px'
|
|
17525
17567
|
}
|
|
17526
|
-
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17568
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17527
17569
|
className: 'sort_table_column_all_empty'
|
|
17528
17570
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17529
17571
|
className: 'sort_table_content_wrapper'
|
|
@@ -17622,7 +17664,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17622
17664
|
};
|
|
17623
17665
|
setIsResizing(true);
|
|
17624
17666
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17625
|
-
document.addEventListener('mouseup',
|
|
17667
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17626
17668
|
};
|
|
17627
17669
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17628
17670
|
e.stopPropagation();
|
|
@@ -17638,9 +17680,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17638
17680
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17639
17681
|
}
|
|
17640
17682
|
};
|
|
17641
|
-
var
|
|
17683
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17642
17684
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17643
|
-
document.removeEventListener('mouseup',
|
|
17685
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17644
17686
|
setIsResizing(false);
|
|
17645
17687
|
};
|
|
17646
17688
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18051,7 +18093,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18051
18093
|
actionsRender = actionsRender.concat([{
|
|
18052
18094
|
type: 'text',
|
|
18053
18095
|
props: {
|
|
18054
|
-
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18096
|
+
children: ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18055
18097
|
request: {
|
|
18056
18098
|
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),
|
|
18057
18099
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18297,7 +18339,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18297
18339
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18298
18340
|
bsTableCode: bsTableCode,
|
|
18299
18341
|
onlyModal: true
|
|
18300
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
18342
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
18301
18343
|
ref: exportTableRef,
|
|
18302
18344
|
setShowColumns: setShowExportColumns,
|
|
18303
18345
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18390,11 +18432,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18390
18432
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18391
18433
|
var resultList = [];
|
|
18392
18434
|
var newRouter = cloneDeep__default['default'](router);
|
|
18393
|
-
var
|
|
18435
|
+
var deep = function deep(router) {
|
|
18394
18436
|
if (router && Array.isArray(router)) {
|
|
18395
18437
|
router.forEach(function (item) {
|
|
18396
18438
|
if (item.children && Array.isArray(item.children)) {
|
|
18397
|
-
|
|
18439
|
+
deep(item.children);
|
|
18398
18440
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18399
18441
|
return d === item.code;
|
|
18400
18442
|
})) {
|
|
@@ -18408,10 +18450,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18408
18450
|
resultList.push(_objectSpread2({}, router));
|
|
18409
18451
|
}
|
|
18410
18452
|
};
|
|
18411
|
-
|
|
18453
|
+
deep(newRouter);
|
|
18412
18454
|
callBack([].concat(resultList));
|
|
18413
18455
|
};
|
|
18414
|
-
var
|
|
18456
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18415
18457
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18416
18458
|
var _loop = function _loop(i) {
|
|
18417
18459
|
if (routesData[i].hideInMenu) {
|
|
@@ -18425,7 +18467,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18425
18467
|
return 0; // continue
|
|
18426
18468
|
}
|
|
18427
18469
|
if (routesData[i].children) {
|
|
18428
|
-
|
|
18470
|
+
setMenuTreeData(routesData[i].children);
|
|
18429
18471
|
}
|
|
18430
18472
|
},
|
|
18431
18473
|
_ret;
|
|
@@ -18446,16 +18488,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18446
18488
|
};
|
|
18447
18489
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18448
18490
|
var routerMap = {};
|
|
18449
|
-
var
|
|
18491
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18450
18492
|
data.forEach(function (menuItem) {
|
|
18451
18493
|
if (menuItem.children) {
|
|
18452
|
-
|
|
18494
|
+
flattenMenuData(menuItem.children);
|
|
18453
18495
|
}
|
|
18454
18496
|
// Reduce memory usage
|
|
18455
18497
|
routerMap[menuItem.path] = menuItem;
|
|
18456
18498
|
});
|
|
18457
18499
|
};
|
|
18458
|
-
|
|
18500
|
+
flattenMenuData(menuData);
|
|
18459
18501
|
return routerMap;
|
|
18460
18502
|
};
|
|
18461
18503
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18601,7 +18643,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18601
18643
|
sethomepageData(homepageDataList);
|
|
18602
18644
|
setroutesData(routesDataList);
|
|
18603
18645
|
}, []);
|
|
18604
|
-
var
|
|
18646
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18605
18647
|
if (!child.hideInMenu && child.children) {
|
|
18606
18648
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
18607
18649
|
style: {
|
|
@@ -18611,7 +18653,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18611
18653
|
}, umi.formatMessage({
|
|
18612
18654
|
id: "".concat(child.locale)
|
|
18613
18655
|
})), child.children.map(function (menuItem) {
|
|
18614
|
-
return
|
|
18656
|
+
return renderChildItem(menuItem);
|
|
18615
18657
|
}));
|
|
18616
18658
|
} else if (!child.hideInMenu && child.path) {
|
|
18617
18659
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -18646,7 +18688,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18646
18688
|
className: 'drawerWarp'
|
|
18647
18689
|
}, homepageData && homepageData.filter(function (d) {
|
|
18648
18690
|
return !d.hideInMenu;
|
|
18649
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18691
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18650
18692
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
18651
18693
|
dataSource: homepageData,
|
|
18652
18694
|
renderItem: function renderItem(child) {
|
|
@@ -18681,7 +18723,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18681
18723
|
bordered: true,
|
|
18682
18724
|
dataSource: item.children,
|
|
18683
18725
|
renderItem: function renderItem(child) {
|
|
18684
|
-
return
|
|
18726
|
+
return renderChildItem(child);
|
|
18685
18727
|
}
|
|
18686
18728
|
});
|
|
18687
18729
|
})));
|
|
@@ -18741,7 +18783,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18741
18783
|
src: allfunc
|
|
18742
18784
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18743
18785
|
className: 'btnSpan2'
|
|
18744
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18786
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18745
18787
|
style: {
|
|
18746
18788
|
left: isDrawer ? 140 : 0,
|
|
18747
18789
|
top: 50
|
|
@@ -18787,7 +18829,7 @@ function outLogin(_x) {
|
|
|
18787
18829
|
return _outLogin.apply(this, arguments);
|
|
18788
18830
|
}
|
|
18789
18831
|
function _outLogin() {
|
|
18790
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18832
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18791
18833
|
var res;
|
|
18792
18834
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18793
18835
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18929,7 +18971,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18929
18971
|
});
|
|
18930
18972
|
};
|
|
18931
18973
|
var loginOut = /*#__PURE__*/function () {
|
|
18932
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18974
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18933
18975
|
var sessionId;
|
|
18934
18976
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18935
18977
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19033,7 +19075,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19033
19075
|
marginRight: '0px'
|
|
19034
19076
|
},
|
|
19035
19077
|
src: './xialajiantou-new.svg'
|
|
19036
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19078
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19037
19079
|
};
|
|
19038
19080
|
|
|
19039
19081
|
// -- 查询店铺 --
|
|
@@ -19041,7 +19083,7 @@ function getStoreByName(_x) {
|
|
|
19041
19083
|
return _getStoreByName.apply(this, arguments);
|
|
19042
19084
|
}
|
|
19043
19085
|
function _getStoreByName() {
|
|
19044
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19086
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19045
19087
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19046
19088
|
while (1) switch (_context.prev = _context.next) {
|
|
19047
19089
|
case 0:
|
|
@@ -19109,7 +19151,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19109
19151
|
return _fetchUserList.apply(this, arguments);
|
|
19110
19152
|
}
|
|
19111
19153
|
function _fetchUserList() {
|
|
19112
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19154
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19113
19155
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19114
19156
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19115
19157
|
case 0:
|
|
@@ -19157,7 +19199,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19157
19199
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
19158
19200
|
}, [debounceTimeout, key]);
|
|
19159
19201
|
var changeInput = /*#__PURE__*/function () {
|
|
19160
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19202
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19161
19203
|
var res;
|
|
19162
19204
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19163
19205
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19179,7 +19221,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19179
19221
|
};
|
|
19180
19222
|
}();
|
|
19181
19223
|
React$1.useEffect(function () {
|
|
19182
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19224
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19183
19225
|
var res;
|
|
19184
19226
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19185
19227
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19344,7 +19386,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19344
19386
|
var resultList = [];
|
|
19345
19387
|
var newRouter = _.cloneDeep(router);
|
|
19346
19388
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19347
|
-
var
|
|
19389
|
+
var deep = function deep(router) {
|
|
19348
19390
|
if (router && Array.isArray(router)) {
|
|
19349
19391
|
router.forEach(function (item) {
|
|
19350
19392
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19354,7 +19396,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19354
19396
|
d.nameEdit = true;
|
|
19355
19397
|
}
|
|
19356
19398
|
});
|
|
19357
|
-
|
|
19399
|
+
deep(item.routes);
|
|
19358
19400
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
19359
19401
|
id: "menu.".concat(item.name)
|
|
19360
19402
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19373,7 +19415,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19373
19415
|
}));
|
|
19374
19416
|
}
|
|
19375
19417
|
};
|
|
19376
|
-
|
|
19418
|
+
deep(newRouter);
|
|
19377
19419
|
setroutesData([].concat(resultList));
|
|
19378
19420
|
};
|
|
19379
19421
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19455,7 +19497,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19455
19497
|
},
|
|
19456
19498
|
title: item.fullPathName
|
|
19457
19499
|
}, renderLineStyl(item.fullPathName));
|
|
19458
|
-
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19500
|
+
}))))), showSelectStore && ( /*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19459
19501
|
employeeCode: employeeCode
|
|
19460
19502
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
19461
19503
|
};
|
|
@@ -19470,7 +19512,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19470
19512
|
var TreeNode = antd.Tree.TreeNode;
|
|
19471
19513
|
var Search$2 = antd.Input.Search;
|
|
19472
19514
|
var dataList = [];
|
|
19473
|
-
var
|
|
19515
|
+
var generateList = function generateList(data) {
|
|
19474
19516
|
for (var i = 0; i < data.length; i++) {
|
|
19475
19517
|
var node = data[i];
|
|
19476
19518
|
var path = node.path,
|
|
@@ -19480,11 +19522,11 @@ var _generateList = function generateList(data) {
|
|
|
19480
19522
|
name: name
|
|
19481
19523
|
});
|
|
19482
19524
|
if (node.children) {
|
|
19483
|
-
|
|
19525
|
+
generateList(node.children);
|
|
19484
19526
|
}
|
|
19485
19527
|
}
|
|
19486
19528
|
};
|
|
19487
|
-
var
|
|
19529
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19488
19530
|
var parentKey;
|
|
19489
19531
|
for (var i = 0; i < tree.length; i++) {
|
|
19490
19532
|
var node = tree[i];
|
|
@@ -19493,8 +19535,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19493
19535
|
return item.path === path;
|
|
19494
19536
|
})) {
|
|
19495
19537
|
parentKey = node.path;
|
|
19496
|
-
} else if (
|
|
19497
|
-
parentKey =
|
|
19538
|
+
} else if (getParentKey(path, node.children)) {
|
|
19539
|
+
parentKey = getParentKey(path, node.children);
|
|
19498
19540
|
}
|
|
19499
19541
|
}
|
|
19500
19542
|
}
|
|
@@ -19525,7 +19567,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19525
19567
|
var treeData = _this.state.treeData;
|
|
19526
19568
|
var expandedKeys = dataList.map(function (item) {
|
|
19527
19569
|
if (item.name.indexOf(value) > -1) {
|
|
19528
|
-
return
|
|
19570
|
+
return getParentKey(item.path, treeData);
|
|
19529
19571
|
}
|
|
19530
19572
|
return null;
|
|
19531
19573
|
}).filter(function (item, i, self) {
|
|
@@ -19539,22 +19581,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19539
19581
|
};
|
|
19540
19582
|
_this.getPathList = function (originData) {
|
|
19541
19583
|
var pathList = [];
|
|
19542
|
-
var
|
|
19584
|
+
var getList = function getList(data) {
|
|
19543
19585
|
if (Array.isArray(data)) {
|
|
19544
19586
|
data.forEach(function (item) {
|
|
19545
19587
|
pathList.push(item.path);
|
|
19546
19588
|
if (item.children) {
|
|
19547
|
-
|
|
19589
|
+
getList(item.children);
|
|
19548
19590
|
}
|
|
19549
19591
|
});
|
|
19550
19592
|
} else {
|
|
19551
19593
|
pathList.push(data.path);
|
|
19552
19594
|
if (data.children) {
|
|
19553
|
-
|
|
19595
|
+
getList(data.children);
|
|
19554
19596
|
}
|
|
19555
19597
|
}
|
|
19556
19598
|
};
|
|
19557
|
-
|
|
19599
|
+
getList(originData);
|
|
19558
19600
|
return pathList;
|
|
19559
19601
|
};
|
|
19560
19602
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19563,18 +19605,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19563
19605
|
customerMenuData = _this$props.customerMenuData,
|
|
19564
19606
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19565
19607
|
var filterItem;
|
|
19566
|
-
var
|
|
19608
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19567
19609
|
menuData.forEach(function (item) {
|
|
19568
19610
|
if (item.path === path) {
|
|
19569
19611
|
filterItem = _objectSpread2({}, item);
|
|
19570
19612
|
return;
|
|
19571
19613
|
}
|
|
19572
19614
|
if (item.children) {
|
|
19573
|
-
|
|
19615
|
+
filterMenuItem(item.children);
|
|
19574
19616
|
}
|
|
19575
19617
|
});
|
|
19576
19618
|
};
|
|
19577
|
-
|
|
19619
|
+
filterMenuItem(treeData);
|
|
19578
19620
|
var addPathList = _this.getPathList(filterItem);
|
|
19579
19621
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19580
19622
|
var isRepet = false;
|
|
@@ -19604,8 +19646,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19604
19646
|
return item.path === '/';
|
|
19605
19647
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19606
19648
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19607
|
-
|
|
19608
|
-
|
|
19649
|
+
setMenuTreeData(routesData);
|
|
19650
|
+
generateList(routesData);
|
|
19609
19651
|
this.setState({
|
|
19610
19652
|
treeData: routesData
|
|
19611
19653
|
});
|
|
@@ -19619,16 +19661,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19619
19661
|
expandedKeys = _this$state.expandedKeys,
|
|
19620
19662
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19621
19663
|
treeData = _this$state.treeData;
|
|
19622
|
-
var
|
|
19664
|
+
var loop = function loop(data) {
|
|
19623
19665
|
return data.map(function (item) {
|
|
19624
19666
|
var index = item.name.indexOf(searchValue);
|
|
19625
19667
|
var beforeStr = item.name.substr(0, index);
|
|
19626
19668
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19627
|
-
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19669
|
+
var name = index > -1 ? ( /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19628
19670
|
style: {
|
|
19629
19671
|
color: '#f50'
|
|
19630
19672
|
}
|
|
19631
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19673
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19632
19674
|
if (item.children && item.children.length) {
|
|
19633
19675
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19634
19676
|
path: item.path,
|
|
@@ -19650,7 +19692,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19650
19692
|
width: 18,
|
|
19651
19693
|
src: arrowRight
|
|
19652
19694
|
}))))
|
|
19653
|
-
},
|
|
19695
|
+
}, loop(item.children));
|
|
19654
19696
|
}
|
|
19655
19697
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19656
19698
|
path: item.path,
|
|
@@ -19700,7 +19742,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19700
19742
|
onExpand: this.onExpand,
|
|
19701
19743
|
expandedKeys: expandedKeys,
|
|
19702
19744
|
autoExpandParent: autoExpandParent
|
|
19703
|
-
},
|
|
19745
|
+
}, loop(treeData))));
|
|
19704
19746
|
}
|
|
19705
19747
|
}]);
|
|
19706
19748
|
}(React__default['default'].Component);
|
|
@@ -19733,24 +19775,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19733
19775
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19734
19776
|
var dragObj;
|
|
19735
19777
|
var finalDropItem;
|
|
19736
|
-
var
|
|
19778
|
+
var loop = function loop(data, path, callback) {
|
|
19737
19779
|
for (var i = 0; i < data.length; i++) {
|
|
19738
19780
|
if (data[i].path === path) {
|
|
19739
19781
|
return callback(data[i], i, data);
|
|
19740
19782
|
}
|
|
19741
19783
|
if (data[i].children) {
|
|
19742
|
-
|
|
19784
|
+
loop(data[i].children, path, callback);
|
|
19743
19785
|
}
|
|
19744
19786
|
}
|
|
19745
19787
|
};
|
|
19746
19788
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19747
|
-
|
|
19789
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19748
19790
|
arr.splice(index, 1);
|
|
19749
19791
|
dragObj = item;
|
|
19750
19792
|
});
|
|
19751
19793
|
if (!info.dropToGap) {
|
|
19752
19794
|
// Drop on the content
|
|
19753
|
-
|
|
19795
|
+
loop(data, dropKey, function (item) {
|
|
19754
19796
|
item.children = item.children || [];
|
|
19755
19797
|
item.children.unshift(dragObj);
|
|
19756
19798
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19761,7 +19803,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19761
19803
|
// Is expanded
|
|
19762
19804
|
dropPosition === 1 // On the bottom gap
|
|
19763
19805
|
) {
|
|
19764
|
-
|
|
19806
|
+
loop(data, dropKey, function (item) {
|
|
19765
19807
|
item.children = item.children || [];
|
|
19766
19808
|
item.children.unshift(dragObj);
|
|
19767
19809
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19769,7 +19811,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19769
19811
|
} else {
|
|
19770
19812
|
var ar;
|
|
19771
19813
|
var i;
|
|
19772
|
-
|
|
19814
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19773
19815
|
ar = arr;
|
|
19774
19816
|
i = index;
|
|
19775
19817
|
});
|
|
@@ -19808,17 +19850,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19808
19850
|
title: '编辑名称',
|
|
19809
19851
|
callBack: function callBack(newName) {
|
|
19810
19852
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19811
|
-
var
|
|
19853
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19812
19854
|
oldTreeData.forEach(function (treeItem) {
|
|
19813
19855
|
if (treeItem.path === item.path) {
|
|
19814
19856
|
treeItem.name = newName;
|
|
19815
19857
|
}
|
|
19816
19858
|
if (treeItem.children) {
|
|
19817
|
-
|
|
19859
|
+
editTreeDataName(treeItem.children);
|
|
19818
19860
|
}
|
|
19819
19861
|
});
|
|
19820
19862
|
};
|
|
19821
|
-
|
|
19863
|
+
editTreeDataName(oldTreeData);
|
|
19822
19864
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19823
19865
|
_this.setState({
|
|
19824
19866
|
modalInfo: {
|
|
@@ -19863,7 +19905,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19863
19905
|
title: '新增子目录',
|
|
19864
19906
|
callBack: function callBack(newName) {
|
|
19865
19907
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19866
|
-
var
|
|
19908
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19867
19909
|
oldTreeData.forEach(function (treeItem) {
|
|
19868
19910
|
if (treeItem.path === item.path) {
|
|
19869
19911
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19875,11 +19917,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19875
19917
|
}];
|
|
19876
19918
|
}
|
|
19877
19919
|
if (treeItem.children) {
|
|
19878
|
-
|
|
19920
|
+
addChildFolder(treeItem.children);
|
|
19879
19921
|
}
|
|
19880
19922
|
});
|
|
19881
19923
|
};
|
|
19882
|
-
|
|
19924
|
+
addChildFolder(oldTreeData);
|
|
19883
19925
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19884
19926
|
_this.setState({
|
|
19885
19927
|
modalInfo: {
|
|
@@ -19938,7 +19980,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19938
19980
|
var _this$state = this.state,
|
|
19939
19981
|
modalInfo = _this$state.modalInfo,
|
|
19940
19982
|
checkedKeys = _this$state.checkedKeys;
|
|
19941
|
-
var
|
|
19983
|
+
var loop = function loop(data) {
|
|
19942
19984
|
return data.map(function (item) {
|
|
19943
19985
|
if (item.children && item.children.length) {
|
|
19944
19986
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -19955,7 +19997,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19955
19997
|
e.stopPropagation();
|
|
19956
19998
|
}
|
|
19957
19999
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
19958
|
-
},
|
|
20000
|
+
}, loop(item.children));
|
|
19959
20001
|
}
|
|
19960
20002
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
19961
20003
|
path: item.path,
|
|
@@ -20034,7 +20076,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20034
20076
|
children: 'children'
|
|
20035
20077
|
},
|
|
20036
20078
|
onDrop: this.onDrop
|
|
20037
|
-
},
|
|
20079
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
20038
20080
|
width: 600,
|
|
20039
20081
|
bodyStyle: {
|
|
20040
20082
|
paddingTop: '32px',
|
|
@@ -20147,7 +20189,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20147
20189
|
pathname: item.path
|
|
20148
20190
|
});
|
|
20149
20191
|
};
|
|
20150
|
-
var
|
|
20192
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20151
20193
|
return menuData.map(function (item) {
|
|
20152
20194
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20153
20195
|
style: {
|
|
@@ -20162,7 +20204,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20162
20204
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20163
20205
|
paddingLeft: '4px'
|
|
20164
20206
|
}
|
|
20165
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20207
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20166
20208
|
});
|
|
20167
20209
|
};
|
|
20168
20210
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20188,7 +20230,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20188
20230
|
style: {
|
|
20189
20231
|
paddingLeft: '5px'
|
|
20190
20232
|
}
|
|
20191
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20233
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20192
20234
|
style: {
|
|
20193
20235
|
left: isDrawer ? 140 : 0
|
|
20194
20236
|
},
|
|
@@ -20209,7 +20251,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20209
20251
|
visible: isDrawer
|
|
20210
20252
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
20211
20253
|
className: 'menu_title_line'
|
|
20212
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20254
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
20213
20255
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20214
20256
|
style: {
|
|
20215
20257
|
fontWeight: '600',
|
|
@@ -20283,7 +20325,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20283
20325
|
return item.path === '/';
|
|
20284
20326
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20285
20327
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20286
|
-
|
|
20328
|
+
setMenuTreeData(routesData);
|
|
20287
20329
|
routesData.forEach(function (item) {
|
|
20288
20330
|
if (item.children) {
|
|
20289
20331
|
routesDataList.push(item);
|
|
@@ -20313,7 +20355,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20313
20355
|
setHeight(clientHeight - 190);
|
|
20314
20356
|
setDrawHeight(clientHeight - 70);
|
|
20315
20357
|
};
|
|
20316
|
-
var
|
|
20358
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20317
20359
|
if (!child.hideInMenu && child.children) {
|
|
20318
20360
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
20319
20361
|
style: {
|
|
@@ -20323,7 +20365,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20323
20365
|
}, umi.formatMessage({
|
|
20324
20366
|
id: "".concat(child.locale)
|
|
20325
20367
|
})), child.children.map(function (menuItem) {
|
|
20326
|
-
return
|
|
20368
|
+
return renderChildItem(menuItem);
|
|
20327
20369
|
}));
|
|
20328
20370
|
} else if (!child.hideInMenu && child.path) {
|
|
20329
20371
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -20465,7 +20507,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20465
20507
|
onMenuClick(e, item);
|
|
20466
20508
|
}
|
|
20467
20509
|
}, item.name);
|
|
20468
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20510
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20469
20511
|
className: 'search_menu_content'
|
|
20470
20512
|
}, SearhData.map(function (item) {
|
|
20471
20513
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20474,7 +20516,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20474
20516
|
},
|
|
20475
20517
|
key: item.path
|
|
20476
20518
|
}, item.name);
|
|
20477
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20519
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20478
20520
|
style: {
|
|
20479
20521
|
height: "".concat(rightMenuHeight, "px"),
|
|
20480
20522
|
overflowY: 'scroll',
|
|
@@ -20486,7 +20528,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20486
20528
|
className: 'drawerWarp_right'
|
|
20487
20529
|
}, homepageData && homepageData.filter(function (d) {
|
|
20488
20530
|
return !d.hideInMenu;
|
|
20489
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20531
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20490
20532
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
20491
20533
|
dataSource: homepageData,
|
|
20492
20534
|
renderItem: function renderItem(child) {
|
|
@@ -20527,7 +20569,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20527
20569
|
bordered: true,
|
|
20528
20570
|
dataSource: item.children,
|
|
20529
20571
|
renderItem: function renderItem(child) {
|
|
20530
|
-
return
|
|
20572
|
+
return renderChildItem(child);
|
|
20531
20573
|
}
|
|
20532
20574
|
});
|
|
20533
20575
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20685,10 +20727,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20685
20727
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20686
20728
|
var menuKeys = [];
|
|
20687
20729
|
var docsId = [];
|
|
20688
|
-
var
|
|
20730
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20689
20731
|
data.forEach(function (item) {
|
|
20690
20732
|
if (item.children && item.children.length > 0) {
|
|
20691
|
-
|
|
20733
|
+
getLimitedMenuKeys(item.children);
|
|
20692
20734
|
} else {
|
|
20693
20735
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20694
20736
|
menuKeys.push(originPath);
|
|
@@ -20699,7 +20741,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20699
20741
|
});
|
|
20700
20742
|
};
|
|
20701
20743
|
try {
|
|
20702
|
-
|
|
20744
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20703
20745
|
} catch (e) {}
|
|
20704
20746
|
return {
|
|
20705
20747
|
menuKeys: menuKeys,
|
|
@@ -20933,10 +20975,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20933
20975
|
return (node.path || '').includes('all-general-documents');
|
|
20934
20976
|
};
|
|
20935
20977
|
// 递归获取树列表
|
|
20936
|
-
var
|
|
20978
|
+
var getTreeList = function getTreeList(data) {
|
|
20937
20979
|
data.forEach(function (node) {
|
|
20938
20980
|
if (node.routes && node.routes.length > 0) {
|
|
20939
|
-
|
|
20981
|
+
getTreeList(node.routes);
|
|
20940
20982
|
return;
|
|
20941
20983
|
}
|
|
20942
20984
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20967,7 +21009,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20967
21009
|
}
|
|
20968
21010
|
});
|
|
20969
21011
|
};
|
|
20970
|
-
|
|
21012
|
+
getTreeList(treeData);
|
|
20971
21013
|
return treeList;
|
|
20972
21014
|
};
|
|
20973
21015
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21596,7 +21638,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21596
21638
|
updateState = _ref8.updateState;
|
|
21597
21639
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21598
21640
|
className: "tab_title_content"
|
|
21599
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21641
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21600
21642
|
info: item,
|
|
21601
21643
|
operateFun: _this3.operateFun,
|
|
21602
21644
|
listenRouterState: listenRouterState
|
|
@@ -21732,7 +21774,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21732
21774
|
};
|
|
21733
21775
|
}
|
|
21734
21776
|
var OperationsSlot = {
|
|
21735
|
-
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21777
|
+
left: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21736
21778
|
className: 'tab_left_operate'
|
|
21737
21779
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21738
21780
|
onClick: function onClick() {
|
|
@@ -21748,7 +21790,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21748
21790
|
_this3.setTabNavTransLate(-100);
|
|
21749
21791
|
}
|
|
21750
21792
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
21751
|
-
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21793
|
+
right: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21752
21794
|
style: {
|
|
21753
21795
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21754
21796
|
},
|
|
@@ -21846,7 +21888,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21846
21888
|
onMouseLeave: function onMouseLeave() {
|
|
21847
21889
|
_this3.setShowMenu(false);
|
|
21848
21890
|
}
|
|
21849
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21891
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21850
21892
|
style: {
|
|
21851
21893
|
position: 'absolute',
|
|
21852
21894
|
top: '14px',
|
|
@@ -21865,7 +21907,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21865
21907
|
postMenuData: function postMenuData(menus) {
|
|
21866
21908
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21867
21909
|
},
|
|
21868
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21910
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21869
21911
|
ref: this.allFunc,
|
|
21870
21912
|
itemPath: itemPath,
|
|
21871
21913
|
handleClose: this.handleClose,
|
|
@@ -21883,7 +21925,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21883
21925
|
},
|
|
21884
21926
|
menu: {
|
|
21885
21927
|
request: function () {
|
|
21886
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21928
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21887
21929
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21888
21930
|
while (1) switch (_context.prev = _context.next) {
|
|
21889
21931
|
case 0:
|
|
@@ -22018,7 +22060,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22018
22060
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22019
22061
|
timeFormat = _this$props4.timeFormat,
|
|
22020
22062
|
transparentProps = _this$props4.transparentProps;
|
|
22021
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (/*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22063
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? ( /*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22022
22064
|
getDictionarySource: getDictionarySource,
|
|
22023
22065
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22024
22066
|
timeFormat: timeFormat
|
|
@@ -22042,12 +22084,12 @@ var index$5 = (function (props) {
|
|
|
22042
22084
|
});
|
|
22043
22085
|
|
|
22044
22086
|
// @ts-nocheck
|
|
22045
|
-
var
|
|
22087
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22046
22088
|
var result = [];
|
|
22047
22089
|
columns.forEach(function (column) {
|
|
22048
22090
|
if (column.children) {
|
|
22049
22091
|
result.push(column);
|
|
22050
|
-
result.push.apply(result,
|
|
22092
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22051
22093
|
} else {
|
|
22052
22094
|
result.push(column);
|
|
22053
22095
|
}
|
|
@@ -22056,7 +22098,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22056
22098
|
};
|
|
22057
22099
|
var convertToRows = function convertToRows(originColumns) {
|
|
22058
22100
|
var maxLevel = 1;
|
|
22059
|
-
var
|
|
22101
|
+
var traverse = function traverse(column, parent) {
|
|
22060
22102
|
if (parent) {
|
|
22061
22103
|
column.level = parent.level + 1;
|
|
22062
22104
|
if (maxLevel < column.level) {
|
|
@@ -22066,7 +22108,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22066
22108
|
if (column.children) {
|
|
22067
22109
|
var colSpan = 0;
|
|
22068
22110
|
column.children.forEach(function (subColumn) {
|
|
22069
|
-
|
|
22111
|
+
traverse(subColumn, column);
|
|
22070
22112
|
colSpan += subColumn.colSpan;
|
|
22071
22113
|
});
|
|
22072
22114
|
column.colSpan = colSpan;
|
|
@@ -22076,13 +22118,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22076
22118
|
};
|
|
22077
22119
|
originColumns.forEach(function (column) {
|
|
22078
22120
|
column.level = 1;
|
|
22079
|
-
|
|
22121
|
+
traverse(column);
|
|
22080
22122
|
});
|
|
22081
22123
|
var rows = [];
|
|
22082
22124
|
for (var i = 0; i < maxLevel; i++) {
|
|
22083
22125
|
rows.push([]);
|
|
22084
22126
|
}
|
|
22085
|
-
var allColumns =
|
|
22127
|
+
var allColumns = getAllColumns(originColumns);
|
|
22086
22128
|
allColumns.forEach(function (column) {
|
|
22087
22129
|
if (!column.children) {
|
|
22088
22130
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22122,7 +22164,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22122
22164
|
};
|
|
22123
22165
|
var headersToRows = function headersToRows(originColumns) {
|
|
22124
22166
|
var maxLevel = 1;
|
|
22125
|
-
var
|
|
22167
|
+
var traverse = function traverse(column, parent) {
|
|
22126
22168
|
if (parent) {
|
|
22127
22169
|
//计算当前元素属于第几个层级
|
|
22128
22170
|
column.level = parent.level + 1;
|
|
@@ -22135,7 +22177,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22135
22177
|
var colSpan = 0;
|
|
22136
22178
|
column.children.forEach(function (subColumn) {
|
|
22137
22179
|
//进行递归
|
|
22138
|
-
|
|
22180
|
+
traverse(subColumn, column);
|
|
22139
22181
|
colSpan += subColumn.colSpan;
|
|
22140
22182
|
});
|
|
22141
22183
|
column.colSpan = colSpan;
|
|
@@ -22145,14 +22187,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22145
22187
|
};
|
|
22146
22188
|
originColumns.forEach(function (column) {
|
|
22147
22189
|
column.level = 1;
|
|
22148
|
-
|
|
22190
|
+
traverse(column);
|
|
22149
22191
|
});
|
|
22150
22192
|
var rows = [];
|
|
22151
22193
|
var lastData = [];
|
|
22152
22194
|
for (var i = 0; i < maxLevel; i++) {
|
|
22153
22195
|
rows.push([]);
|
|
22154
22196
|
}
|
|
22155
|
-
var allColumns =
|
|
22197
|
+
var allColumns = getAllColumns(originColumns);
|
|
22156
22198
|
allColumns.forEach(function (column) {
|
|
22157
22199
|
if (!column.children) {
|
|
22158
22200
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28169,7 +28211,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28169
28211
|
}
|
|
28170
28212
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28171
28213
|
};
|
|
28172
|
-
var
|
|
28214
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28173
28215
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28174
28216
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28175
28217
|
var children = hightLightData.children,
|
|
@@ -28180,7 +28222,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28180
28222
|
lineEnd = _loc2[2];
|
|
28181
28223
|
if (children) {
|
|
28182
28224
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28183
|
-
return
|
|
28225
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28184
28226
|
});
|
|
28185
28227
|
}
|
|
28186
28228
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28192,7 +28234,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28192
28234
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28193
28235
|
data.forEach(function (node) {
|
|
28194
28236
|
if (!node) return;
|
|
28195
|
-
node.toggled =
|
|
28237
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28196
28238
|
node.active = isHightLight(node, highLightLine);
|
|
28197
28239
|
if (node.children) {
|
|
28198
28240
|
if (node.active) {
|
|
@@ -29623,7 +29665,7 @@ var valueType = {
|
|
|
29623
29665
|
};
|
|
29624
29666
|
|
|
29625
29667
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29626
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29668
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29627
29669
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29628
29670
|
while (1) switch (_context.prev = _context.next) {
|
|
29629
29671
|
case 0:
|
|
@@ -29691,7 +29733,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29691
29733
|
value: false
|
|
29692
29734
|
}];
|
|
29693
29735
|
var ref = React$1.useRef();
|
|
29694
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29736
|
+
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29695
29737
|
var _ref$current, source;
|
|
29696
29738
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29697
29739
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29805,7 +29847,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29805
29847
|
source: {
|
|
29806
29848
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29807
29849
|
type: function () {
|
|
29808
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29850
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29809
29851
|
var form, values, name, relates, source;
|
|
29810
29852
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29811
29853
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30285,7 +30327,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30285
30327
|
source: {
|
|
30286
30328
|
relates: ['choiceType', 'inputType'],
|
|
30287
30329
|
type: function () {
|
|
30288
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30330
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30289
30331
|
var values, name, form, source;
|
|
30290
30332
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30291
30333
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30507,7 +30549,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30507
30549
|
width: 900,
|
|
30508
30550
|
maskClosable: false,
|
|
30509
30551
|
onOk: function () {
|
|
30510
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30552
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30511
30553
|
var _ref$current4, _res$editableStatus;
|
|
30512
30554
|
var res, _res$defaultValue;
|
|
30513
30555
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30579,7 +30621,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30579
30621
|
}()
|
|
30580
30622
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30581
30623
|
ref: ref
|
|
30582
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30624
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30583
30625
|
};
|
|
30584
30626
|
|
|
30585
30627
|
// @ts-nocheck
|
|
@@ -31193,7 +31235,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31193
31235
|
return setVisible(false);
|
|
31194
31236
|
},
|
|
31195
31237
|
className: 'customFieldsDrawer'
|
|
31196
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31238
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31197
31239
|
style: {
|
|
31198
31240
|
display: 'flex'
|
|
31199
31241
|
}
|
|
@@ -31202,13 +31244,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31202
31244
|
flex: 1,
|
|
31203
31245
|
width: 500
|
|
31204
31246
|
}
|
|
31205
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31247
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31206
31248
|
style: {
|
|
31207
31249
|
padding: "10px 0",
|
|
31208
31250
|
fontSize: "16px",
|
|
31209
31251
|
fontWeight: "bolder"
|
|
31210
31252
|
}
|
|
31211
|
-
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31253
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31212
31254
|
style: {
|
|
31213
31255
|
flex: 1
|
|
31214
31256
|
}
|
|
@@ -31217,7 +31259,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31217
31259
|
onRun: onClickRun,
|
|
31218
31260
|
value: jsonEditorVal,
|
|
31219
31261
|
shallowHeight: height
|
|
31220
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31262
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31221
31263
|
defaultActiveKey: activeKey,
|
|
31222
31264
|
onChange: function onChange(v) {
|
|
31223
31265
|
return setActiveKey(v);
|
|
@@ -31234,13 +31276,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31234
31276
|
flex: 1,
|
|
31235
31277
|
width: 500
|
|
31236
31278
|
}
|
|
31237
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31279
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31238
31280
|
style: {
|
|
31239
31281
|
padding: "10px 0",
|
|
31240
31282
|
fontSize: "16px",
|
|
31241
31283
|
fontWeight: "bolder"
|
|
31242
31284
|
}
|
|
31243
|
-
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31285
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31244
31286
|
style: {
|
|
31245
31287
|
flex: 1
|
|
31246
31288
|
}
|
|
@@ -31262,13 +31304,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31262
31304
|
flex: 1,
|
|
31263
31305
|
width: 500
|
|
31264
31306
|
}
|
|
31265
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31307
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31266
31308
|
style: {
|
|
31267
31309
|
padding: "10px 0",
|
|
31268
31310
|
fontSize: "16px",
|
|
31269
31311
|
fontWeight: "bolder"
|
|
31270
31312
|
}
|
|
31271
|
-
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31313
|
+
}, "\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__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31272
31314
|
style: {
|
|
31273
31315
|
flex: 1
|
|
31274
31316
|
}
|
|
@@ -31414,7 +31456,7 @@ function getMetaData(_x) {
|
|
|
31414
31456
|
|
|
31415
31457
|
// 获取数据
|
|
31416
31458
|
function _getMetaData() {
|
|
31417
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31459
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31418
31460
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31419
31461
|
while (1) switch (_context.prev = _context.next) {
|
|
31420
31462
|
case 0:
|
|
@@ -31636,7 +31678,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31636
31678
|
tableState = _useState4[0],
|
|
31637
31679
|
setTableState = _useState4[1];
|
|
31638
31680
|
var handleOpen = /*#__PURE__*/function () {
|
|
31639
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31681
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31640
31682
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31641
31683
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31642
31684
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31955,7 +31997,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31955
31997
|
destroyOnClose: true
|
|
31956
31998
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
31957
31999
|
ref: queryTableRef
|
|
31958
|
-
}, 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__default['default'].createElement(antd.Row, {
|
|
32000
|
+
}, 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__default['default'].createElement(antd.Row, {
|
|
31959
32001
|
justify: "center",
|
|
31960
32002
|
style: {
|
|
31961
32003
|
marginBottom: 30,
|
|
@@ -32071,7 +32113,7 @@ var CustomSelector = (function (props) {
|
|
|
32071
32113
|
var _props$ctx7;
|
|
32072
32114
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32073
32115
|
}
|
|
32074
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32116
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32075
32117
|
type: "primary",
|
|
32076
32118
|
style: {
|
|
32077
32119
|
width: '30px',
|
|
@@ -32157,7 +32199,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32157
32199
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32158
32200
|
handSource = _useState2[0],
|
|
32159
32201
|
setHandSource = _useState2[1];
|
|
32160
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32202
|
+
React$1.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32161
32203
|
var resData, data;
|
|
32162
32204
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32163
32205
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32309,7 +32351,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32309
32351
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32310
32352
|
}
|
|
32311
32353
|
function _getRegularThresholdRange() {
|
|
32312
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32354
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32313
32355
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32314
32356
|
while (1) switch (_context.prev = _context.next) {
|
|
32315
32357
|
case 0:
|
|
@@ -32463,7 +32505,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32463
32505
|
};
|
|
32464
32506
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32465
32507
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32466
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32508
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32467
32509
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32468
32510
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32469
32511
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33420,7 +33462,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33420
33462
|
isAll: true,
|
|
33421
33463
|
needNameAndCode: true,
|
|
33422
33464
|
notChangeOnSelect: true,
|
|
33423
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33465
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33424
33466
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33425
33467
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33426
33468
|
case 0:
|
|
@@ -33469,7 +33511,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33469
33511
|
isAll: true,
|
|
33470
33512
|
needNameAndCode: true,
|
|
33471
33513
|
notChangeOnSelect: true,
|
|
33472
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33514
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33473
33515
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33474
33516
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33475
33517
|
case 0:
|
|
@@ -33520,7 +33562,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33520
33562
|
isAll: true,
|
|
33521
33563
|
needNameAndCode: true,
|
|
33522
33564
|
notChangeOnSelect: true,
|
|
33523
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33565
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33524
33566
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33525
33567
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33526
33568
|
case 0:
|
|
@@ -35498,7 +35540,7 @@ var App$1 = function App(_ref) {
|
|
|
35498
35540
|
borderRadius: '5px',
|
|
35499
35541
|
cursor: 'pointer'
|
|
35500
35542
|
}
|
|
35501
|
-
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35543
|
+
}, isStaticNumber ? ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35502
35544
|
autoFocus: true,
|
|
35503
35545
|
onClick: function onClick(e) {
|
|
35504
35546
|
return e.stopPropagation();
|
|
@@ -35785,7 +35827,7 @@ function RenderCompItem(props) {
|
|
|
35785
35827
|
dictData = _useState2[0],
|
|
35786
35828
|
setDictData = _useState2[1];
|
|
35787
35829
|
var getDictData = /*#__PURE__*/function () {
|
|
35788
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35830
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35789
35831
|
var _data$map;
|
|
35790
35832
|
var data;
|
|
35791
35833
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35827,7 +35869,7 @@ function RenderCompItem(props) {
|
|
|
35827
35869
|
var style2 = {
|
|
35828
35870
|
width: '100px'
|
|
35829
35871
|
};
|
|
35830
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35872
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35831
35873
|
disabled: disabled,
|
|
35832
35874
|
allowClear: true,
|
|
35833
35875
|
onClear: function onClear() {
|
|
@@ -35838,7 +35880,7 @@ function RenderCompItem(props) {
|
|
|
35838
35880
|
onBlur: function onBlur(e) {
|
|
35839
35881
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35840
35882
|
}
|
|
35841
|
-
})) || 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__default['default'].createElement(antd.InputNumber, {
|
|
35883
|
+
})) || 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__default['default'].createElement(antd.InputNumber, {
|
|
35842
35884
|
disabled: disabled,
|
|
35843
35885
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35844
35886
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35851,7 +35893,7 @@ function RenderCompItem(props) {
|
|
|
35851
35893
|
onChange: function onChange(value) {
|
|
35852
35894
|
handleEdit(ites.code, value);
|
|
35853
35895
|
}
|
|
35854
|
-
})) || 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__default['default'].createElement(antd.DatePicker, {
|
|
35896
|
+
})) || 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__default['default'].createElement(antd.DatePicker, {
|
|
35855
35897
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35856
35898
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35857
35899
|
disabled: disabled,
|
|
@@ -35861,7 +35903,7 @@ function RenderCompItem(props) {
|
|
|
35861
35903
|
onChange: function onChange(value, dateString) {
|
|
35862
35904
|
handleEdit(ites.code, dateString);
|
|
35863
35905
|
}
|
|
35864
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
35906
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
35865
35907
|
showTime: true,
|
|
35866
35908
|
disabled: disabled,
|
|
35867
35909
|
defaultValue: ites.defaultValue,
|
|
@@ -35870,7 +35912,7 @@ function RenderCompItem(props) {
|
|
|
35870
35912
|
onChange: function onChange(value, timeString) {
|
|
35871
35913
|
handleEdit(ites.code, timeString);
|
|
35872
35914
|
}
|
|
35873
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
35915
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
35874
35916
|
disabled: disabled,
|
|
35875
35917
|
defaultChecked: !!ites.defaultValue,
|
|
35876
35918
|
style: style2,
|
|
@@ -35878,7 +35920,7 @@ function RenderCompItem(props) {
|
|
|
35878
35920
|
onChange: function onChange(value) {
|
|
35879
35921
|
handleEdit(ites.code, value);
|
|
35880
35922
|
}
|
|
35881
|
-
})) || 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__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
35923
|
+
})) || 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__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
35882
35924
|
disabled: disabled,
|
|
35883
35925
|
allowClear: true,
|
|
35884
35926
|
showArrow: true
|
|
@@ -35896,7 +35938,7 @@ function RenderCompItem(props) {
|
|
|
35896
35938
|
key: it,
|
|
35897
35939
|
value: it
|
|
35898
35940
|
}, ites.enumeration[it]);
|
|
35899
|
-
}))) || 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__default['default'].createElement(InnerSelect, {
|
|
35941
|
+
}))) || 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__default['default'].createElement(InnerSelect, {
|
|
35900
35942
|
disabled: disabled,
|
|
35901
35943
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35902
35944
|
defaultValue: ites.defaultValue,
|
|
@@ -35906,7 +35948,7 @@ function RenderCompItem(props) {
|
|
|
35906
35948
|
handleEdit(ites.code, value);
|
|
35907
35949
|
},
|
|
35908
35950
|
dictionaryCode: ites.dictionaryCode
|
|
35909
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35951
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35910
35952
|
selectBusinessType: "physicalWarehouse",
|
|
35911
35953
|
selectProps: _objectSpread2({
|
|
35912
35954
|
style: styleCommon,
|
|
@@ -35928,7 +35970,7 @@ function RenderCompItem(props) {
|
|
|
35928
35970
|
getPopupContainer: function getPopupContainer() {
|
|
35929
35971
|
return document.body;
|
|
35930
35972
|
}
|
|
35931
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35973
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35932
35974
|
selectBusinessType: "realWarehouse",
|
|
35933
35975
|
selectProps: _objectSpread2({
|
|
35934
35976
|
style: styleCommon,
|
|
@@ -35950,7 +35992,7 @@ function RenderCompItem(props) {
|
|
|
35950
35992
|
getPopupContainer: function getPopupContainer() {
|
|
35951
35993
|
return document.body;
|
|
35952
35994
|
}
|
|
35953
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35995
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35954
35996
|
selectBusinessType: "virtualWarehouse",
|
|
35955
35997
|
selectProps: _objectSpread2({
|
|
35956
35998
|
style: styleCommon,
|
|
@@ -35972,7 +36014,7 @@ function RenderCompItem(props) {
|
|
|
35972
36014
|
getPopupContainer: function getPopupContainer() {
|
|
35973
36015
|
return document.body;
|
|
35974
36016
|
}
|
|
35975
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36017
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35976
36018
|
selectBusinessType: "channelWarehouse",
|
|
35977
36019
|
selectProps: _objectSpread2({
|
|
35978
36020
|
style: styleCommon,
|
|
@@ -35994,7 +36036,7 @@ function RenderCompItem(props) {
|
|
|
35994
36036
|
getPopupContainer: function getPopupContainer() {
|
|
35995
36037
|
return document.body;
|
|
35996
36038
|
}
|
|
35997
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36039
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35998
36040
|
selectBusinessType: "spuCommodity",
|
|
35999
36041
|
selectProps: _objectSpread2({
|
|
36000
36042
|
style: styleCommon,
|
|
@@ -36015,7 +36057,7 @@ function RenderCompItem(props) {
|
|
|
36015
36057
|
getPopupContainer: function getPopupContainer() {
|
|
36016
36058
|
return document.body;
|
|
36017
36059
|
}
|
|
36018
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36060
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36019
36061
|
selectBusinessType: "skuCommodity",
|
|
36020
36062
|
selectProps: _objectSpread2({
|
|
36021
36063
|
style: styleCommon,
|
|
@@ -36036,13 +36078,13 @@ function RenderCompItem(props) {
|
|
|
36036
36078
|
getPopupContainer: function getPopupContainer() {
|
|
36037
36079
|
return document.body;
|
|
36038
36080
|
}
|
|
36039
|
-
})) || 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__default['default'].createElement(BsCascader, {
|
|
36081
|
+
})) || 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__default['default'].createElement(BsCascader, {
|
|
36040
36082
|
disabled: disabled,
|
|
36041
36083
|
isAll: true,
|
|
36042
36084
|
needNameAndCode: true,
|
|
36043
36085
|
notChangeOnSelect: true,
|
|
36044
36086
|
initRequestSource: function () {
|
|
36045
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36087
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36046
36088
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36047
36089
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36048
36090
|
case 0:
|
|
@@ -36084,7 +36126,7 @@ function RenderCompItem(props) {
|
|
|
36084
36126
|
getPopupContainer: function getPopupContainer() {
|
|
36085
36127
|
return document.body;
|
|
36086
36128
|
}
|
|
36087
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36129
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36088
36130
|
disabled: disabled,
|
|
36089
36131
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36090
36132
|
businessType: "department",
|
|
@@ -36097,7 +36139,7 @@ function RenderCompItem(props) {
|
|
|
36097
36139
|
getPopupContainer: function getPopupContainer() {
|
|
36098
36140
|
return document.body;
|
|
36099
36141
|
}
|
|
36100
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36142
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36101
36143
|
disabled: disabled,
|
|
36102
36144
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36103
36145
|
businessType: "purchase-organization",
|
|
@@ -36110,7 +36152,7 @@ function RenderCompItem(props) {
|
|
|
36110
36152
|
getPopupContainer: function getPopupContainer() {
|
|
36111
36153
|
return document.body;
|
|
36112
36154
|
}
|
|
36113
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36155
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36114
36156
|
disabled: disabled,
|
|
36115
36157
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36116
36158
|
businessType: "sales-organization",
|
|
@@ -36123,7 +36165,7 @@ function RenderCompItem(props) {
|
|
|
36123
36165
|
getPopupContainer: function getPopupContainer() {
|
|
36124
36166
|
return document.body;
|
|
36125
36167
|
}
|
|
36126
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36168
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36127
36169
|
selectBusinessType: "supplier2",
|
|
36128
36170
|
selectProps: _objectSpread2({
|
|
36129
36171
|
style: styleCommon,
|
|
@@ -36144,7 +36186,7 @@ function RenderCompItem(props) {
|
|
|
36144
36186
|
getPopupContainer: function getPopupContainer() {
|
|
36145
36187
|
return document.body;
|
|
36146
36188
|
}
|
|
36147
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36189
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36148
36190
|
selectBusinessType: "customer2",
|
|
36149
36191
|
selectProps: _objectSpread2({
|
|
36150
36192
|
style: styleCommon,
|
|
@@ -36165,7 +36207,7 @@ function RenderCompItem(props) {
|
|
|
36165
36207
|
getPopupContainer: function getPopupContainer() {
|
|
36166
36208
|
return document.body;
|
|
36167
36209
|
}
|
|
36168
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36210
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36169
36211
|
selectBusinessType: "shopFile2",
|
|
36170
36212
|
selectProps: _objectSpread2({
|
|
36171
36213
|
style: styleCommon,
|
|
@@ -36186,7 +36228,7 @@ function RenderCompItem(props) {
|
|
|
36186
36228
|
getPopupContainer: function getPopupContainer() {
|
|
36187
36229
|
return document.body;
|
|
36188
36230
|
}
|
|
36189
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36231
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36190
36232
|
selectBusinessType: "employee2",
|
|
36191
36233
|
selectProps: _objectSpread2({
|
|
36192
36234
|
style: styleCommon,
|
|
@@ -36207,7 +36249,7 @@ function RenderCompItem(props) {
|
|
|
36207
36249
|
getPopupContainer: function getPopupContainer() {
|
|
36208
36250
|
return document.body;
|
|
36209
36251
|
}
|
|
36210
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36252
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36211
36253
|
disabled: disabled,
|
|
36212
36254
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36213
36255
|
businessType: "stock-organization",
|
|
@@ -36220,7 +36262,7 @@ function RenderCompItem(props) {
|
|
|
36220
36262
|
getPopupContainer: function getPopupContainer() {
|
|
36221
36263
|
return document.body;
|
|
36222
36264
|
}
|
|
36223
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36265
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36224
36266
|
disabled: disabled,
|
|
36225
36267
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36226
36268
|
businessType: "settle-organization",
|
|
@@ -36233,7 +36275,7 @@ function RenderCompItem(props) {
|
|
|
36233
36275
|
getPopupContainer: function getPopupContainer() {
|
|
36234
36276
|
return document.body;
|
|
36235
36277
|
}
|
|
36236
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36278
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36237
36279
|
selectBusinessType: "deliveryMode",
|
|
36238
36280
|
selectProps: _objectSpread2({
|
|
36239
36281
|
style: styleCommon,
|
|
@@ -36254,7 +36296,7 @@ function RenderCompItem(props) {
|
|
|
36254
36296
|
getPopupContainer: function getPopupContainer() {
|
|
36255
36297
|
return document.body;
|
|
36256
36298
|
}
|
|
36257
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36299
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36258
36300
|
selectBusinessType: "role",
|
|
36259
36301
|
selectProps: _objectSpread2({
|
|
36260
36302
|
style: styleCommon,
|
|
@@ -36275,7 +36317,7 @@ function RenderCompItem(props) {
|
|
|
36275
36317
|
getPopupContainer: function getPopupContainer() {
|
|
36276
36318
|
return document.body;
|
|
36277
36319
|
}
|
|
36278
|
-
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36320
|
+
})) || 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__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36279
36321
|
selectBusinessType: "brand",
|
|
36280
36322
|
selectProps: _objectSpread2({
|
|
36281
36323
|
style: styleCommon,
|
|
@@ -36296,7 +36338,7 @@ function RenderCompItem(props) {
|
|
|
36296
36338
|
getPopupContainer: function getPopupContainer() {
|
|
36297
36339
|
return document.body;
|
|
36298
36340
|
}
|
|
36299
|
-
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36341
|
+
})) || 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__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36300
36342
|
disabled: disabled,
|
|
36301
36343
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36302
36344
|
businessType: "background-category",
|
|
@@ -36309,7 +36351,7 @@ function RenderCompItem(props) {
|
|
|
36309
36351
|
getPopupContainer: function getPopupContainer() {
|
|
36310
36352
|
return document.body;
|
|
36311
36353
|
}
|
|
36312
|
-
})) || 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__default['default'].createElement(CustomSelector, {
|
|
36354
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(CustomSelector, {
|
|
36313
36355
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36314
36356
|
style: styleCommon,
|
|
36315
36357
|
placeholder: '请选择'
|
|
@@ -36332,7 +36374,7 @@ function RenderCompItem(props) {
|
|
|
36332
36374
|
onChange: function onChange(value) {
|
|
36333
36375
|
handleEdit(ites.code, value);
|
|
36334
36376
|
}
|
|
36335
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
36377
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36336
36378
|
style: {
|
|
36337
36379
|
display: 'flex'
|
|
36338
36380
|
}
|
|
@@ -36844,7 +36886,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36844
36886
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36845
36887
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36846
36888
|
}
|
|
36847
|
-
var parallelTreeData =
|
|
36889
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36848
36890
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36849
36891
|
var _i$key;
|
|
36850
36892
|
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);
|
|
@@ -37771,13 +37813,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37771
37813
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37772
37814
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37773
37815
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37774
|
-
var list =
|
|
37816
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37775
37817
|
var requiredList = list.filter(function (c) {
|
|
37776
37818
|
return c.required == 1;
|
|
37777
37819
|
}) || []; // 获取对象属性为true的集合
|
|
37778
37820
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37779
37821
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37780
|
-
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) ?
|
|
37822
|
+
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];
|
|
37781
37823
|
(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) {
|
|
37782
37824
|
if (requiredList.some(function (r) {
|
|
37783
37825
|
return r.id === e.elementId;
|
|
@@ -38366,7 +38408,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38366
38408
|
style: {
|
|
38367
38409
|
float: 'right'
|
|
38368
38410
|
}
|
|
38369
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (/*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38411
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? ( /*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38370
38412
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38371
38413
|
ruleGroupInfo: {
|
|
38372
38414
|
ruleGroupList: ruleGroupList,
|
|
@@ -38384,7 +38426,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38384
38426
|
callBack: function callBack(newData) {
|
|
38385
38427
|
upDateData(newData);
|
|
38386
38428
|
}
|
|
38387
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
38429
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38388
38430
|
style: {
|
|
38389
38431
|
padding: 20
|
|
38390
38432
|
}
|
|
@@ -38801,11 +38843,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
38801
38843
|
exports.authFunc = authFunc;
|
|
38802
38844
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
38803
38845
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
38804
|
-
exports.coverToParallel =
|
|
38846
|
+
exports.coverToParallel = coverToParallel;
|
|
38805
38847
|
exports.createUniqID = createUniqID;
|
|
38806
38848
|
exports.downloadExcel = downloadExcel;
|
|
38807
38849
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
38808
|
-
exports.formatter =
|
|
38850
|
+
exports.formatter = formatter;
|
|
38809
38851
|
exports.getAccountID = getAccountID;
|
|
38810
38852
|
exports.getAccountId = getAccountId;
|
|
38811
38853
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|