@bit-sun/business-component 4.0.12-alpha.23 → 4.0.12-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +458 -413
- package/dist/index.js +459 -414
- package/package.json +1 -1
- package/src/components/Business/PropertyModal/index.tsx +15 -10
package/dist/index.js
CHANGED
|
@@ -54,88 +54,9 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
54
54
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
55
55
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
56
56
|
|
|
57
|
-
function _arrayLikeToArray(r, a) {
|
|
58
|
-
(null == a || a > r.length) && (a = r.length);
|
|
59
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
60
|
-
return n;
|
|
61
|
-
}
|
|
62
|
-
function _arrayWithHoles(r) {
|
|
63
|
-
if (Array.isArray(r)) return r;
|
|
64
|
-
}
|
|
65
|
-
function _arrayWithoutHoles(r) {
|
|
66
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
67
|
-
}
|
|
68
|
-
function _assertThisInitialized(e) {
|
|
69
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
70
|
-
return e;
|
|
71
|
-
}
|
|
72
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
73
|
-
try {
|
|
74
|
-
var i = n[a](c),
|
|
75
|
-
u = i.value;
|
|
76
|
-
} catch (n) {
|
|
77
|
-
return void e(n);
|
|
78
|
-
}
|
|
79
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
80
|
-
}
|
|
81
|
-
function _asyncToGenerator(n) {
|
|
82
|
-
return function () {
|
|
83
|
-
var t = this,
|
|
84
|
-
e = arguments;
|
|
85
|
-
return new Promise(function (r, o) {
|
|
86
|
-
var a = n.apply(t, e);
|
|
87
|
-
function _next(n) {
|
|
88
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
89
|
-
}
|
|
90
|
-
function _throw(n) {
|
|
91
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
92
|
-
}
|
|
93
|
-
_next(void 0);
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
57
|
function _callSuper(t, o, e) {
|
|
98
58
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
99
59
|
}
|
|
100
|
-
function _classCallCheck(a, n) {
|
|
101
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
102
|
-
}
|
|
103
|
-
function _defineProperties(e, r) {
|
|
104
|
-
for (var t = 0; t < r.length; t++) {
|
|
105
|
-
var o = r[t];
|
|
106
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function _createClass(e, r, t) {
|
|
110
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
111
|
-
writable: !1
|
|
112
|
-
}), e;
|
|
113
|
-
}
|
|
114
|
-
function _defineProperty(e, r, t) {
|
|
115
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
116
|
-
value: t,
|
|
117
|
-
enumerable: !0,
|
|
118
|
-
configurable: !0,
|
|
119
|
-
writable: !0
|
|
120
|
-
}) : e[r] = t, e;
|
|
121
|
-
}
|
|
122
|
-
function _getPrototypeOf(t) {
|
|
123
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
124
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
125
|
-
}, _getPrototypeOf(t);
|
|
126
|
-
}
|
|
127
|
-
function _inherits(t, e) {
|
|
128
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
129
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
130
|
-
constructor: {
|
|
131
|
-
value: t,
|
|
132
|
-
writable: !0,
|
|
133
|
-
configurable: !0
|
|
134
|
-
}
|
|
135
|
-
}), Object.defineProperty(t, "prototype", {
|
|
136
|
-
writable: !1
|
|
137
|
-
}), e && _setPrototypeOf(t, e);
|
|
138
|
-
}
|
|
139
60
|
function _isNativeReflectConstruct() {
|
|
140
61
|
try {
|
|
141
62
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -144,9 +65,6 @@ function _isNativeReflectConstruct() {
|
|
|
144
65
|
return !!t;
|
|
145
66
|
})();
|
|
146
67
|
}
|
|
147
|
-
function _iterableToArray(r) {
|
|
148
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
149
|
-
}
|
|
150
68
|
function _iterableToArrayLimit(r, l) {
|
|
151
69
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
152
70
|
if (null != t) {
|
|
@@ -174,15 +92,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
174
92
|
return a;
|
|
175
93
|
}
|
|
176
94
|
}
|
|
177
|
-
function _nonIterableRest() {
|
|
178
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
179
|
-
}
|
|
180
|
-
function _nonIterableSpread() {
|
|
181
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
182
|
-
}
|
|
183
|
-
function _objectDestructuringEmpty(t) {
|
|
184
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
185
|
-
}
|
|
186
95
|
function ownKeys(e, r) {
|
|
187
96
|
var t = Object.keys(e);
|
|
188
97
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -204,31 +113,6 @@ function _objectSpread2(e) {
|
|
|
204
113
|
}
|
|
205
114
|
return e;
|
|
206
115
|
}
|
|
207
|
-
function _objectWithoutProperties(e, t) {
|
|
208
|
-
if (null == e) return {};
|
|
209
|
-
var o,
|
|
210
|
-
r,
|
|
211
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
212
|
-
if (Object.getOwnPropertySymbols) {
|
|
213
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
214
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
215
|
-
}
|
|
216
|
-
return i;
|
|
217
|
-
}
|
|
218
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
219
|
-
if (null == r) return {};
|
|
220
|
-
var t = {};
|
|
221
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
222
|
-
if (e.includes(n)) continue;
|
|
223
|
-
t[n] = r[n];
|
|
224
|
-
}
|
|
225
|
-
return t;
|
|
226
|
-
}
|
|
227
|
-
function _possibleConstructorReturn(t, e) {
|
|
228
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
229
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
230
|
-
return _assertThisInitialized(t);
|
|
231
|
-
}
|
|
232
116
|
function _regeneratorRuntime() {
|
|
233
117
|
_regeneratorRuntime = function () {
|
|
234
118
|
return e;
|
|
@@ -530,20 +414,6 @@ function _regeneratorRuntime() {
|
|
|
530
414
|
}
|
|
531
415
|
}, e;
|
|
532
416
|
}
|
|
533
|
-
function _setPrototypeOf(t, e) {
|
|
534
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
535
|
-
return t.__proto__ = e, t;
|
|
536
|
-
}, _setPrototypeOf(t, e);
|
|
537
|
-
}
|
|
538
|
-
function _slicedToArray(r, e) {
|
|
539
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
540
|
-
}
|
|
541
|
-
function _toArray(r) {
|
|
542
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
543
|
-
}
|
|
544
|
-
function _toConsumableArray(r) {
|
|
545
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
546
|
-
}
|
|
547
417
|
function _toPrimitive(t, r) {
|
|
548
418
|
if ("object" != typeof t || !t) return t;
|
|
549
419
|
var e = t[Symbol.toPrimitive];
|
|
@@ -567,12 +437,180 @@ function _typeof(o) {
|
|
|
567
437
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
568
438
|
}, _typeof(o);
|
|
569
439
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
var
|
|
574
|
-
|
|
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);
|
|
482
|
+
}
|
|
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
|
+
}
|
|
575
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.");
|
|
576
614
|
}
|
|
577
615
|
|
|
578
616
|
var ENUM = {
|
|
@@ -1082,13 +1120,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1082
1120
|
imgHtml.innerHTML = str;
|
|
1083
1121
|
}
|
|
1084
1122
|
// 测试使用 测试类型缩小 end
|
|
1085
|
-
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", {
|
|
1086
1124
|
className: "clomnsImg"
|
|
1087
1125
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1088
1126
|
src: url,
|
|
1089
1127
|
width: "16px",
|
|
1090
1128
|
height: "16px"
|
|
1091
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1129
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1092
1130
|
className: "clomnsImg2"
|
|
1093
1131
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1094
1132
|
src: noImg
|
|
@@ -1227,7 +1265,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1227
1265
|
}
|
|
1228
1266
|
save_link.click();
|
|
1229
1267
|
}
|
|
1230
|
-
var
|
|
1268
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1231
1269
|
return data.map(function (item) {
|
|
1232
1270
|
if (!item.name || !item.path) {
|
|
1233
1271
|
return null;
|
|
@@ -1247,7 +1285,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1247
1285
|
authority: item.authority || parentAuthority
|
|
1248
1286
|
});
|
|
1249
1287
|
if (item.routes) {
|
|
1250
|
-
var children =
|
|
1288
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1251
1289
|
// Reduce memory usage
|
|
1252
1290
|
result.children = children;
|
|
1253
1291
|
}
|
|
@@ -1257,7 +1295,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1257
1295
|
return item;
|
|
1258
1296
|
});
|
|
1259
1297
|
};
|
|
1260
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1298
|
+
var memoizeOneFormatter = memoizeOne__default['default'](formatter, isEqual__default['default']);
|
|
1261
1299
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1262
1300
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1263
1301
|
if (backHistoryPath) {
|
|
@@ -1566,7 +1604,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1566
1604
|
// sheepMap是表头字段中英文映射
|
|
1567
1605
|
// sheetCount:表的数量,默认一张
|
|
1568
1606
|
var resolveFile = /*#__PURE__*/function () {
|
|
1569
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1607
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1570
1608
|
var config,
|
|
1571
1609
|
data,
|
|
1572
1610
|
_args = arguments;
|
|
@@ -1605,7 +1643,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1605
1643
|
}();
|
|
1606
1644
|
//读取文件
|
|
1607
1645
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1608
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1646
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1609
1647
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1610
1648
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1611
1649
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1698,14 +1736,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1698
1736
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1699
1737
|
|
|
1700
1738
|
// 获取树平行结构
|
|
1701
|
-
var
|
|
1739
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1702
1740
|
var childrenKey = chilKey || 'children';
|
|
1703
1741
|
treeData.forEach(function (el) {
|
|
1704
1742
|
var _el$childrenKey;
|
|
1705
1743
|
result.push(el);
|
|
1706
1744
|
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) {
|
|
1707
1745
|
// 子级递归
|
|
1708
|
-
|
|
1746
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1709
1747
|
}
|
|
1710
1748
|
});
|
|
1711
1749
|
return result;
|
|
@@ -1982,13 +2020,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1982
2020
|
imgHtml.innerHTML = str;
|
|
1983
2021
|
}
|
|
1984
2022
|
// 测试使用 测试类型缩小 end
|
|
1985
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
2023
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1986
2024
|
className: "clomnsImg"
|
|
1987
2025
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1988
2026
|
src: url,
|
|
1989
2027
|
width: "16px",
|
|
1990
2028
|
height: "16px"
|
|
1991
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2029
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1992
2030
|
src: noImg
|
|
1993
2031
|
}))));
|
|
1994
2032
|
};
|
|
@@ -2050,7 +2088,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2050
2088
|
}
|
|
2051
2089
|
});
|
|
2052
2090
|
};
|
|
2053
|
-
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({
|
|
2091
|
+
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({
|
|
2054
2092
|
disabled: disabled,
|
|
2055
2093
|
onChange: function onChange(e) {
|
|
2056
2094
|
var v = e.target.value;
|
|
@@ -2060,7 +2098,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2060
2098
|
width: 170
|
|
2061
2099
|
},
|
|
2062
2100
|
value: inputValue
|
|
2063
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2101
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2064
2102
|
disabled: disabled,
|
|
2065
2103
|
onBlur: function onBlur(e) {
|
|
2066
2104
|
var v = parseFloat(e.target.value);
|
|
@@ -2439,16 +2477,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2439
2477
|
var handleExportBarCode = handleExport;
|
|
2440
2478
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2441
2479
|
var routerMap = {};
|
|
2442
|
-
var
|
|
2480
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2443
2481
|
data.forEach(function (menuItem) {
|
|
2444
2482
|
if (menuItem.children) {
|
|
2445
|
-
|
|
2483
|
+
flattenMenuData(menuItem.children);
|
|
2446
2484
|
}
|
|
2447
2485
|
// Reduce memory usage
|
|
2448
2486
|
routerMap[menuItem.path] = menuItem;
|
|
2449
2487
|
});
|
|
2450
2488
|
};
|
|
2451
|
-
|
|
2489
|
+
flattenMenuData(menuData);
|
|
2452
2490
|
return routerMap;
|
|
2453
2491
|
};
|
|
2454
2492
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2591,7 +2629,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2591
2629
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2592
2630
|
};
|
|
2593
2631
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2594
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2632
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2595
2633
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2596
2634
|
while (1) switch (_context.prev = _context.next) {
|
|
2597
2635
|
case 0:
|
|
@@ -3265,7 +3303,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3265
3303
|
placement: "bottomLeft"
|
|
3266
3304
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3267
3305
|
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"))
|
|
3268
|
-
}, /*#__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, {
|
|
3306
|
+
}, /*#__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, {
|
|
3269
3307
|
trigger: ['click'],
|
|
3270
3308
|
overlay: this.menuList,
|
|
3271
3309
|
placement: "bottomRight"
|
|
@@ -3940,7 +3978,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3940
3978
|
placement: "bottomLeft"
|
|
3941
3979
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3942
3980
|
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"))
|
|
3943
|
-
}, /*#__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, {
|
|
3981
|
+
}, /*#__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, {
|
|
3944
3982
|
trigger: ['click'],
|
|
3945
3983
|
overlay: this.menuList,
|
|
3946
3984
|
placement: "bottomRight"
|
|
@@ -4339,7 +4377,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4339
4377
|
title: item.name,
|
|
4340
4378
|
className: "propertyGroup_checkbox_container"
|
|
4341
4379
|
}, item.name));
|
|
4342
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4380
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4343
4381
|
style: {
|
|
4344
4382
|
width: '50px',
|
|
4345
4383
|
cursor: 'pointer',
|
|
@@ -4352,7 +4390,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4352
4390
|
setShowNotCommon(!showNotCommon);
|
|
4353
4391
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4354
4392
|
}
|
|
4355
|
-
}, 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"))))));
|
|
4393
|
+
}, 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"))))));
|
|
4356
4394
|
};
|
|
4357
4395
|
var PropertyGroup$1 = /*#__PURE__*/React__default['default'].memo(PropertyGroup, function (props, nextProps) {
|
|
4358
4396
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -4432,12 +4470,13 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4432
4470
|
return;
|
|
4433
4471
|
}
|
|
4434
4472
|
var newArr = ((data === null || data === void 0 ? void 0 : data.data) || []).map(function (item) {
|
|
4473
|
+
var _item$property, _item$property2, _item$property3, _item$property4;
|
|
4435
4474
|
return {
|
|
4436
|
-
propertyCode: item.property.propertyCode,
|
|
4437
|
-
propertyName: item.property.name,
|
|
4438
|
-
propertyId: item.property.id,
|
|
4439
|
-
isCommonUse: item.property.isCommonUse === 'commonUse',
|
|
4440
|
-
detailList: item.propertyValueList.map(function (detail) {
|
|
4475
|
+
propertyCode: (_item$property = item.property) === null || _item$property === void 0 ? void 0 : _item$property.propertyCode,
|
|
4476
|
+
propertyName: (_item$property2 = item.property) === null || _item$property2 === void 0 ? void 0 : _item$property2.name,
|
|
4477
|
+
propertyId: (_item$property3 = item.property) === null || _item$property3 === void 0 ? void 0 : _item$property3.id,
|
|
4478
|
+
isCommonUse: ((_item$property4 = item.property) === null || _item$property4 === void 0 ? void 0 : _item$property4.isCommonUse) === 'commonUse',
|
|
4479
|
+
detailList: (item.propertyValueList || []).map(function (detail) {
|
|
4441
4480
|
return {
|
|
4442
4481
|
name: detail.value,
|
|
4443
4482
|
value: detail.value,
|
|
@@ -4456,8 +4495,12 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4456
4495
|
});
|
|
4457
4496
|
}, [choosedClassify]);
|
|
4458
4497
|
React$1.useEffect(function () {
|
|
4459
|
-
|
|
4460
|
-
|
|
4498
|
+
var _classifyOptionList$2;
|
|
4499
|
+
if (visible) {
|
|
4500
|
+
var _classifyOptionList$;
|
|
4501
|
+
// 获取选中品类信息
|
|
4502
|
+
setChoosedClassify((value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$ = classifyOptionList[0]) === null || _classifyOptionList$ === void 0 ? void 0 : _classifyOptionList$.value));
|
|
4503
|
+
}
|
|
4461
4504
|
// 获取选中属性值展示
|
|
4462
4505
|
var choosedPropertyList = ((value === null || value === void 0 ? void 0 : value.propertyList) || []).map(function (item) {
|
|
4463
4506
|
return (item.detailList || []).map(function (detail) {
|
|
@@ -4469,9 +4512,11 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4469
4512
|
})) {
|
|
4470
4513
|
setShowNotCommon(true);
|
|
4471
4514
|
}
|
|
4515
|
+
settingValue.current = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
4516
|
+
classifyCode: (value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$2 = classifyOptionList[0]) === null || _classifyOptionList$2 === void 0 ? void 0 : _classifyOptionList$2.value)
|
|
4517
|
+
});
|
|
4472
4518
|
setChoosedValues(choosedPropertyList);
|
|
4473
|
-
|
|
4474
|
-
}, [value]);
|
|
4519
|
+
}, [value, visible]);
|
|
4475
4520
|
// 关闭弹窗回传组件值
|
|
4476
4521
|
var handleConfirm = function handleConfirm() {
|
|
4477
4522
|
setVisible(false);
|
|
@@ -4575,7 +4620,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4575
4620
|
propertyData: item,
|
|
4576
4621
|
handleProperyItemChange: handleProperyItemChange
|
|
4577
4622
|
});
|
|
4578
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4623
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4579
4624
|
style: {
|
|
4580
4625
|
width: '50px',
|
|
4581
4626
|
cursor: 'pointer',
|
|
@@ -4585,7 +4630,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4585
4630
|
onClick: function onClick() {
|
|
4586
4631
|
return setShowNotCommon(!showNotCommon);
|
|
4587
4632
|
}
|
|
4588
|
-
}, 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"))))))));
|
|
4633
|
+
}, 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"))))))));
|
|
4589
4634
|
};
|
|
4590
4635
|
|
|
4591
4636
|
var Option$1 = antd.Select.Option;
|
|
@@ -5865,7 +5910,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5865
5910
|
destroyTooltipOnHide: true,
|
|
5866
5911
|
placement: "topRight",
|
|
5867
5912
|
autoAdjustOverflow: false,
|
|
5868
|
-
title: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5913
|
+
title: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5869
5914
|
style: {
|
|
5870
5915
|
margin: '6px 8px 0px'
|
|
5871
5916
|
},
|
|
@@ -5937,13 +5982,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5937
5982
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5938
5983
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5939
5984
|
className: 'search_select'
|
|
5940
|
-
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5985
|
+
}, fieldComponent ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5941
5986
|
onClick: function onClick() {
|
|
5942
5987
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5943
5988
|
(_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);
|
|
5944
5989
|
showModal();
|
|
5945
5990
|
}
|
|
5946
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5991
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5947
5992
|
title: getShowStr(),
|
|
5948
5993
|
style: {
|
|
5949
5994
|
overflow: 'hidden',
|
|
@@ -5970,10 +6015,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5970
6015
|
dropdownRender: function dropdownRender(menu) {
|
|
5971
6016
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5972
6017
|
},
|
|
5973
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6018
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
5974
6019
|
size: "small",
|
|
5975
6020
|
className: 'searchSelectSpin'
|
|
5976
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6021
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5977
6022
|
style: {
|
|
5978
6023
|
textAlign: 'center'
|
|
5979
6024
|
}
|
|
@@ -6004,7 +6049,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6004
6049
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6005
6050
|
filterTxt: searchValue
|
|
6006
6051
|
}));
|
|
6007
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6052
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6008
6053
|
maskClosable: false,
|
|
6009
6054
|
destroyOnClose: true,
|
|
6010
6055
|
width: "80%",
|
|
@@ -6601,7 +6646,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6601
6646
|
style: {
|
|
6602
6647
|
width: 525
|
|
6603
6648
|
}
|
|
6604
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6649
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6605
6650
|
checked: !dataSource.some(function (item) {
|
|
6606
6651
|
if (item.hidden) return true;
|
|
6607
6652
|
return false;
|
|
@@ -6639,13 +6684,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6639
6684
|
_this2.onChange(e, item.title);
|
|
6640
6685
|
}
|
|
6641
6686
|
}, item.title);
|
|
6642
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
6687
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6643
6688
|
style: {
|
|
6644
6689
|
width: '144px'
|
|
6645
6690
|
}
|
|
6646
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6691
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6647
6692
|
className: 'sort_table_column_all_empty'
|
|
6648
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6693
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6649
6694
|
className: 'sort_table_column_special'
|
|
6650
6695
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6651
6696
|
className: 'sort_table_column_all'
|
|
@@ -6834,7 +6879,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6834
6879
|
});
|
|
6835
6880
|
};
|
|
6836
6881
|
// 格式化树选择器数据源
|
|
6837
|
-
var
|
|
6882
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6838
6883
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6839
6884
|
return {
|
|
6840
6885
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6844,7 +6889,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6844
6889
|
isLeaf: !haveChildren,
|
|
6845
6890
|
disabled: haveChildren,
|
|
6846
6891
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6847
|
-
return
|
|
6892
|
+
return mapSearchTree(i, resKeyValue);
|
|
6848
6893
|
}) : []
|
|
6849
6894
|
};
|
|
6850
6895
|
};
|
|
@@ -6853,7 +6898,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6853
6898
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6854
6899
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6855
6900
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6856
|
-
return
|
|
6901
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6857
6902
|
}) || [];
|
|
6858
6903
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6859
6904
|
};
|
|
@@ -7024,7 +7069,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7024
7069
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7025
7070
|
// FIXME: 特殊业务逻辑
|
|
7026
7071
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7027
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7072
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7028
7073
|
var result;
|
|
7029
7074
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7030
7075
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7277,7 +7322,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7277
7322
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7278
7323
|
value: text || null,
|
|
7279
7324
|
onChange: function () {
|
|
7280
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7325
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7281
7326
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7282
7327
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7283
7328
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7885,10 +7930,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7885
7930
|
var newColumns = arr.map(function (col) {
|
|
7886
7931
|
return _objectSpread2({}, col);
|
|
7887
7932
|
});
|
|
7888
|
-
var
|
|
7933
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7889
7934
|
var i = indexArr.shift();
|
|
7890
7935
|
if (indexArr.length > 0) {
|
|
7891
|
-
|
|
7936
|
+
handleIndex(arr[i].children, indexArr);
|
|
7892
7937
|
} else {
|
|
7893
7938
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7894
7939
|
width: size.width
|
|
@@ -7896,7 +7941,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7896
7941
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7897
7942
|
}
|
|
7898
7943
|
};
|
|
7899
|
-
|
|
7944
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7900
7945
|
callback(newColumns);
|
|
7901
7946
|
};
|
|
7902
7947
|
};
|
|
@@ -7906,13 +7951,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7906
7951
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7907
7952
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7908
7953
|
};
|
|
7909
|
-
var
|
|
7954
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7910
7955
|
arr.forEach(function (item, index) {
|
|
7911
7956
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7912
7957
|
return i || i === 0;
|
|
7913
7958
|
});
|
|
7914
7959
|
if (noEmptyArray$1(item.children)) {
|
|
7915
|
-
|
|
7960
|
+
handleColumns(item.children, indexArrInside);
|
|
7916
7961
|
} else {
|
|
7917
7962
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7918
7963
|
item.onHeaderCell = function (column) {
|
|
@@ -7928,14 +7973,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7928
7973
|
handleAntdColumnsSpecialParams(item);
|
|
7929
7974
|
return _objectSpread2({}, item);
|
|
7930
7975
|
});
|
|
7931
|
-
|
|
7976
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7932
7977
|
return setShowToChooseColumnsCallback(res);
|
|
7933
7978
|
});
|
|
7934
7979
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7935
7980
|
handleAntdColumnsSpecialParams(item);
|
|
7936
7981
|
return _objectSpread2({}, item);
|
|
7937
7982
|
});
|
|
7938
|
-
|
|
7983
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7939
7984
|
return setShowColumnsCallback(res);
|
|
7940
7985
|
});
|
|
7941
7986
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7946,7 +7991,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7946
7991
|
id: "add_select_div_".concat(uniqueValue)
|
|
7947
7992
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
7948
7993
|
onClick: handleShowModal
|
|
7949
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7994
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7950
7995
|
width: '1200px',
|
|
7951
7996
|
style: {
|
|
7952
7997
|
top: 20
|
|
@@ -8860,7 +8905,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8860
8905
|
});
|
|
8861
8906
|
};
|
|
8862
8907
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8863
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8908
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8864
8909
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8865
8910
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8866
8911
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8943,10 +8988,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8943
8988
|
var newColumns = arr.map(function (col) {
|
|
8944
8989
|
return _objectSpread2({}, col);
|
|
8945
8990
|
});
|
|
8946
|
-
var
|
|
8991
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8947
8992
|
var i = indexArr.shift();
|
|
8948
8993
|
if (indexArr.length > 0) {
|
|
8949
|
-
|
|
8994
|
+
handleIndex(arr[i].children, indexArr);
|
|
8950
8995
|
} else {
|
|
8951
8996
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8952
8997
|
width: size.width
|
|
@@ -8954,17 +8999,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8954
8999
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8955
9000
|
}
|
|
8956
9001
|
};
|
|
8957
|
-
|
|
9002
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8958
9003
|
callback(newColumns);
|
|
8959
9004
|
};
|
|
8960
9005
|
};
|
|
8961
|
-
var
|
|
9006
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8962
9007
|
arr.forEach(function (item, index) {
|
|
8963
9008
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8964
9009
|
return i || i === 0;
|
|
8965
9010
|
});
|
|
8966
9011
|
if (noEmptyArray$1(item.children)) {
|
|
8967
|
-
|
|
9012
|
+
handleColumns(item.children, indexArrInside);
|
|
8968
9013
|
} else {
|
|
8969
9014
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8970
9015
|
item.onHeaderCell = function (column) {
|
|
@@ -8980,7 +9025,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8980
9025
|
handleAntdColumnsSpecialParams(item);
|
|
8981
9026
|
return _objectSpread2({}, item);
|
|
8982
9027
|
});
|
|
8983
|
-
|
|
9028
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8984
9029
|
return setShowColumnsCallback(res);
|
|
8985
9030
|
});
|
|
8986
9031
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -9295,7 +9340,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9295
9340
|
});
|
|
9296
9341
|
};
|
|
9297
9342
|
// 格式化树选择器数据源
|
|
9298
|
-
var
|
|
9343
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9299
9344
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9300
9345
|
return {
|
|
9301
9346
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9305,7 +9350,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9305
9350
|
isLeaf: !haveChildren,
|
|
9306
9351
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9307
9352
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9308
|
-
return
|
|
9353
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9309
9354
|
}) : []
|
|
9310
9355
|
};
|
|
9311
9356
|
};
|
|
@@ -9319,7 +9364,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9319
9364
|
disabledJudge = false;
|
|
9320
9365
|
}
|
|
9321
9366
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9322
|
-
return
|
|
9367
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9323
9368
|
}) || [];
|
|
9324
9369
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9325
9370
|
};
|
|
@@ -13389,7 +13434,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13389
13434
|
};
|
|
13390
13435
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
13391
13436
|
onClick: handleShowModal
|
|
13392
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13437
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13393
13438
|
onOk: handleOk,
|
|
13394
13439
|
onCancel: handleCancel,
|
|
13395
13440
|
destroyOnClose: true,
|
|
@@ -13508,7 +13553,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13508
13553
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13509
13554
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13510
13555
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13511
|
-
var
|
|
13556
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13512
13557
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13513
13558
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13514
13559
|
return {
|
|
@@ -13520,7 +13565,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13520
13565
|
isLeaf: !haveChildren,
|
|
13521
13566
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13522
13567
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13523
|
-
return
|
|
13568
|
+
return mapSearchTree(i);
|
|
13524
13569
|
}) : []
|
|
13525
13570
|
};
|
|
13526
13571
|
};
|
|
@@ -13538,8 +13583,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13538
13583
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13539
13584
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
13540
13585
|
headers: headers
|
|
13541
|
-
}).then(/*#__PURE__*/function () {
|
|
13542
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13586
|
+
}).then( /*#__PURE__*/function () {
|
|
13587
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13543
13588
|
var _ctx$form;
|
|
13544
13589
|
var resData, coverData, data, dataList;
|
|
13545
13590
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13566,7 +13611,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13566
13611
|
case 9:
|
|
13567
13612
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13568
13613
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13569
|
-
return
|
|
13614
|
+
return mapSearchTree(ites);
|
|
13570
13615
|
}) || [];
|
|
13571
13616
|
case 11:
|
|
13572
13617
|
_context.next = 14;
|
|
@@ -13604,11 +13649,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13604
13649
|
return _formatResult;
|
|
13605
13650
|
}
|
|
13606
13651
|
};
|
|
13607
|
-
var
|
|
13652
|
+
var parallelData = function parallelData(data, result) {
|
|
13608
13653
|
data.forEach(function (i) {
|
|
13609
13654
|
result.push(i);
|
|
13610
13655
|
if (i[treeChildrenRoom]) {
|
|
13611
|
-
|
|
13656
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13612
13657
|
}
|
|
13613
13658
|
});
|
|
13614
13659
|
return result;
|
|
@@ -13648,7 +13693,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13648
13693
|
var _ctx$form2;
|
|
13649
13694
|
var handleData = formatData(data);
|
|
13650
13695
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13651
|
-
var parallelTreeData =
|
|
13696
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13652
13697
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13653
13698
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13654
13699
|
onChangeName && onChangeName(dataName);
|
|
@@ -13691,7 +13736,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13691
13736
|
var getShowStr = function getShowStr() {
|
|
13692
13737
|
var isMultiple = multiple || treeCheckable;
|
|
13693
13738
|
var kongValue = '无';
|
|
13694
|
-
var parallelTreeData =
|
|
13739
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13695
13740
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13696
13741
|
if (isMultiple) {
|
|
13697
13742
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13703,7 +13748,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13703
13748
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13704
13749
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13705
13750
|
className: 'tree_search_select'
|
|
13706
|
-
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13751
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13707
13752
|
title: getShowStr(),
|
|
13708
13753
|
style: {
|
|
13709
13754
|
overflow: 'hidden',
|
|
@@ -13711,7 +13756,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13711
13756
|
whiteSpace: 'nowrap'
|
|
13712
13757
|
},
|
|
13713
13758
|
className: 'search_select_show'
|
|
13714
|
-
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13759
|
+
}, getShowStr())) : ( /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13715
13760
|
treeCheckable: treeCheckable,
|
|
13716
13761
|
maxTagCount: maxTagCount,
|
|
13717
13762
|
showSearch: showSearch,
|
|
@@ -13908,7 +13953,7 @@ var index$2 = (function (props) {
|
|
|
13908
13953
|
} : {}
|
|
13909
13954
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13910
13955
|
className: 'status-label-operate'
|
|
13911
|
-
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13956
|
+
}, item.isDone ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13912
13957
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13913
13958
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13914
13959
|
style: {
|
|
@@ -14689,7 +14734,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14689
14734
|
style: {
|
|
14690
14735
|
width: 525
|
|
14691
14736
|
}
|
|
14692
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14737
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14693
14738
|
checked: !dataSource.some(function (item) {
|
|
14694
14739
|
if (item.hidden) return true;
|
|
14695
14740
|
return false;
|
|
@@ -14727,13 +14772,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14727
14772
|
_this2.onChange(e, item.title);
|
|
14728
14773
|
}
|
|
14729
14774
|
}, item.title);
|
|
14730
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
14775
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14731
14776
|
style: {
|
|
14732
14777
|
width: '144px'
|
|
14733
14778
|
}
|
|
14734
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14779
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14735
14780
|
className: 'sort_table_column_all_empty'
|
|
14736
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14781
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14737
14782
|
className: 'sort_table_column_special'
|
|
14738
14783
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14739
14784
|
className: 'sort_table_column_all'
|
|
@@ -14912,10 +14957,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14912
14957
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14913
14958
|
return _objectSpread2({}, col);
|
|
14914
14959
|
});
|
|
14915
|
-
var
|
|
14960
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14916
14961
|
var i = indexArr.shift();
|
|
14917
14962
|
if (indexArr.length > 0) {
|
|
14918
|
-
|
|
14963
|
+
handleIndex(arr[i].children, indexArr);
|
|
14919
14964
|
} else {
|
|
14920
14965
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14921
14966
|
width: size.width
|
|
@@ -14923,7 +14968,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14923
14968
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14924
14969
|
}
|
|
14925
14970
|
};
|
|
14926
|
-
|
|
14971
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14927
14972
|
_this.setState({
|
|
14928
14973
|
showColumns: _toConsumableArray(newColumns)
|
|
14929
14974
|
});
|
|
@@ -14964,7 +15009,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14964
15009
|
};
|
|
14965
15010
|
setIsResizing(true);
|
|
14966
15011
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14967
|
-
document.addEventListener('mouseup',
|
|
15012
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
14968
15013
|
};
|
|
14969
15014
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14970
15015
|
e.stopPropagation();
|
|
@@ -14980,9 +15025,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14980
15025
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14981
15026
|
}
|
|
14982
15027
|
};
|
|
14983
|
-
var
|
|
15028
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
14984
15029
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
14985
|
-
document.removeEventListener('mouseup',
|
|
15030
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
14986
15031
|
setIsResizing(false);
|
|
14987
15032
|
};
|
|
14988
15033
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15103,13 +15148,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15103
15148
|
showSummary = summary;
|
|
15104
15149
|
}
|
|
15105
15150
|
}
|
|
15106
|
-
var
|
|
15151
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15107
15152
|
arr.forEach(function (item, index) {
|
|
15108
15153
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15109
15154
|
return i || i === 0;
|
|
15110
15155
|
});
|
|
15111
15156
|
if (noEmptyArray$1(item.children)) {
|
|
15112
|
-
|
|
15157
|
+
handleColumns(item.children, indexArrInside);
|
|
15113
15158
|
} else {
|
|
15114
15159
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15115
15160
|
item.onHeaderCell = function (column) {
|
|
@@ -15125,7 +15170,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15125
15170
|
handleBssulaColumnsSpecialParams(item);
|
|
15126
15171
|
return _objectSpread2({}, item);
|
|
15127
15172
|
});
|
|
15128
|
-
|
|
15173
|
+
handleColumns(showCol, []);
|
|
15129
15174
|
if (dynamicColumns.length) {
|
|
15130
15175
|
showCol = this.handledynamicColumns(showCol);
|
|
15131
15176
|
}
|
|
@@ -15166,7 +15211,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15166
15211
|
cell: this.ResizeableTitle
|
|
15167
15212
|
}
|
|
15168
15213
|
}
|
|
15169
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15214
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15170
15215
|
summary: summary
|
|
15171
15216
|
})));
|
|
15172
15217
|
}
|
|
@@ -15263,10 +15308,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15263
15308
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15264
15309
|
return _objectSpread2({}, col);
|
|
15265
15310
|
});
|
|
15266
|
-
var
|
|
15311
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15267
15312
|
var i = indexArr.shift();
|
|
15268
15313
|
if (indexArr.length > 0) {
|
|
15269
|
-
|
|
15314
|
+
handleIndex(arr[i].children, indexArr);
|
|
15270
15315
|
} else {
|
|
15271
15316
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15272
15317
|
width: size.width
|
|
@@ -15274,7 +15319,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15274
15319
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15275
15320
|
}
|
|
15276
15321
|
};
|
|
15277
|
-
|
|
15322
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15278
15323
|
_this.setState({
|
|
15279
15324
|
showColumns: _toConsumableArray(newColumns)
|
|
15280
15325
|
});
|
|
@@ -15350,13 +15395,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15350
15395
|
showSummary = summary;
|
|
15351
15396
|
}
|
|
15352
15397
|
}
|
|
15353
|
-
var
|
|
15398
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15354
15399
|
arr.forEach(function (item, index) {
|
|
15355
15400
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15356
15401
|
return i || i === 0;
|
|
15357
15402
|
});
|
|
15358
15403
|
if (noEmptyArray$1(item.children)) {
|
|
15359
|
-
|
|
15404
|
+
handleColumns(item.children, indexArrInside);
|
|
15360
15405
|
} else {
|
|
15361
15406
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15362
15407
|
item.onHeaderCell = function (column) {
|
|
@@ -15372,7 +15417,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15372
15417
|
handleAntdColumnsSpecialParams(item);
|
|
15373
15418
|
return _objectSpread2({}, item);
|
|
15374
15419
|
});
|
|
15375
|
-
|
|
15420
|
+
handleColumns(showCol, []);
|
|
15376
15421
|
if (dynamicColumns.length) {
|
|
15377
15422
|
showCol = this.handledynamicColumns(showCol);
|
|
15378
15423
|
}
|
|
@@ -15412,7 +15457,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15412
15457
|
cell: this.ResizeableTitle
|
|
15413
15458
|
}
|
|
15414
15459
|
}
|
|
15415
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15460
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15416
15461
|
summary: summary
|
|
15417
15462
|
})));
|
|
15418
15463
|
}
|
|
@@ -15472,20 +15517,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15472
15517
|
};
|
|
15473
15518
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15474
15519
|
var routerMap = {};
|
|
15475
|
-
var
|
|
15520
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15476
15521
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15477
15522
|
data.forEach(function (menuItem) {
|
|
15478
15523
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15479
15524
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15480
15525
|
});
|
|
15481
15526
|
if (newMenuItem.children) {
|
|
15482
|
-
|
|
15527
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15483
15528
|
}
|
|
15484
15529
|
// Reduce memory usage
|
|
15485
15530
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15486
15531
|
});
|
|
15487
15532
|
};
|
|
15488
|
-
|
|
15533
|
+
flattenMenuData(menuData, {});
|
|
15489
15534
|
return routerMap;
|
|
15490
15535
|
};
|
|
15491
15536
|
// mode类型判断
|
|
@@ -15811,7 +15856,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15811
15856
|
display: 'flex',
|
|
15812
15857
|
gap: '8px'
|
|
15813
15858
|
}
|
|
15814
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15859
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15815
15860
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15816
15861
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15817
15862
|
onClick: function onClick() {
|
|
@@ -15819,7 +15864,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15819
15864
|
},
|
|
15820
15865
|
width: 24,
|
|
15821
15866
|
src: scanning
|
|
15822
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15867
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15823
15868
|
title: "\u5168\u5C4F"
|
|
15824
15869
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15825
15870
|
onClick: function onClick() {
|
|
@@ -15827,7 +15872,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15827
15872
|
},
|
|
15828
15873
|
width: 24,
|
|
15829
15874
|
src: quanping
|
|
15830
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15875
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15831
15876
|
}, function (prevProps, nextProps) {
|
|
15832
15877
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15833
15878
|
return false;
|
|
@@ -15912,7 +15957,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15912
15957
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15913
15958
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15914
15959
|
}, item));
|
|
15915
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15960
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15916
15961
|
}, function (prevProps, nextProps) {
|
|
15917
15962
|
if (prevProps.title !== nextProps.title) {
|
|
15918
15963
|
return false;
|
|
@@ -16552,7 +16597,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16552
16597
|
});
|
|
16553
16598
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16554
16599
|
className: 'sort_table_wrapper'
|
|
16555
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16600
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16556
16601
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16557
16602
|
wrapClassName: 'sort_table_wrapper',
|
|
16558
16603
|
width: 810,
|
|
@@ -16603,7 +16648,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16603
16648
|
width: 525,
|
|
16604
16649
|
height: 24
|
|
16605
16650
|
}
|
|
16606
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16651
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16607
16652
|
checked: !dataSource.some(function (item) {
|
|
16608
16653
|
if (item.hidden) return true;
|
|
16609
16654
|
return false;
|
|
@@ -16657,13 +16702,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16657
16702
|
_this2.onChange(e, item.title);
|
|
16658
16703
|
}
|
|
16659
16704
|
}, item.title);
|
|
16660
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
16705
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16661
16706
|
style: {
|
|
16662
16707
|
width: '144px'
|
|
16663
16708
|
}
|
|
16664
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
16709
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16665
16710
|
className: 'sort_table_column_all_empty'
|
|
16666
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16711
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16667
16712
|
className: 'sort_table_column_special'
|
|
16668
16713
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16669
16714
|
className: 'sort_table_column_all'
|
|
@@ -17137,7 +17182,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17137
17182
|
});
|
|
17138
17183
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17139
17184
|
className: 'sort_table_wrapper'
|
|
17140
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17185
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17141
17186
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17142
17187
|
wrapClassName: 'sort_table_wrapper',
|
|
17143
17188
|
width: 820,
|
|
@@ -17182,7 +17227,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17182
17227
|
style: {
|
|
17183
17228
|
width: 525
|
|
17184
17229
|
}
|
|
17185
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17230
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17186
17231
|
checked: !dataSource.some(function (item) {
|
|
17187
17232
|
if (item.hidden) return true;
|
|
17188
17233
|
return false;
|
|
@@ -17218,11 +17263,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17218
17263
|
_this2.onChange(e, item.name);
|
|
17219
17264
|
}
|
|
17220
17265
|
}, item.label);
|
|
17221
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17266
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17222
17267
|
style: {
|
|
17223
17268
|
width: '144px'
|
|
17224
17269
|
}
|
|
17225
|
-
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17270
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17226
17271
|
className: 'sort_table_column_all_empty'
|
|
17227
17272
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17228
17273
|
className: 'sort_table_content_wrapper'
|
|
@@ -17321,7 +17366,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17321
17366
|
};
|
|
17322
17367
|
setIsResizing(true);
|
|
17323
17368
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17324
|
-
document.addEventListener('mouseup',
|
|
17369
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17325
17370
|
};
|
|
17326
17371
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17327
17372
|
e.stopPropagation();
|
|
@@ -17337,9 +17382,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17337
17382
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17338
17383
|
}
|
|
17339
17384
|
};
|
|
17340
|
-
var
|
|
17385
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17341
17386
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17342
|
-
document.removeEventListener('mouseup',
|
|
17387
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17343
17388
|
setIsResizing(false);
|
|
17344
17389
|
};
|
|
17345
17390
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17750,7 +17795,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17750
17795
|
actionsRender = actionsRender.concat([{
|
|
17751
17796
|
type: 'text',
|
|
17752
17797
|
props: {
|
|
17753
|
-
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
17798
|
+
children: ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
17754
17799
|
request: {
|
|
17755
17800
|
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),
|
|
17756
17801
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17996,7 +18041,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17996
18041
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17997
18042
|
bsTableCode: bsTableCode,
|
|
17998
18043
|
onlyModal: true
|
|
17999
|
-
}), (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, {
|
|
18044
|
+
}), (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, {
|
|
18000
18045
|
ref: exportTableRef,
|
|
18001
18046
|
setShowColumns: setShowExportColumns,
|
|
18002
18047
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18089,11 +18134,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18089
18134
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18090
18135
|
var resultList = [];
|
|
18091
18136
|
var newRouter = cloneDeep__default['default'](router);
|
|
18092
|
-
var
|
|
18137
|
+
var deep = function deep(router) {
|
|
18093
18138
|
if (router && Array.isArray(router)) {
|
|
18094
18139
|
router.forEach(function (item) {
|
|
18095
18140
|
if (item.children && Array.isArray(item.children)) {
|
|
18096
|
-
|
|
18141
|
+
deep(item.children);
|
|
18097
18142
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18098
18143
|
return d === item.code;
|
|
18099
18144
|
})) {
|
|
@@ -18107,10 +18152,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18107
18152
|
resultList.push(_objectSpread2({}, router));
|
|
18108
18153
|
}
|
|
18109
18154
|
};
|
|
18110
|
-
|
|
18155
|
+
deep(newRouter);
|
|
18111
18156
|
callBack([].concat(resultList));
|
|
18112
18157
|
};
|
|
18113
|
-
var
|
|
18158
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18114
18159
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18115
18160
|
var _loop = function _loop(i) {
|
|
18116
18161
|
if (routesData[i].hideInMenu) {
|
|
@@ -18124,7 +18169,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18124
18169
|
return 0; // continue
|
|
18125
18170
|
}
|
|
18126
18171
|
if (routesData[i].children) {
|
|
18127
|
-
|
|
18172
|
+
setMenuTreeData(routesData[i].children);
|
|
18128
18173
|
}
|
|
18129
18174
|
},
|
|
18130
18175
|
_ret;
|
|
@@ -18145,16 +18190,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18145
18190
|
};
|
|
18146
18191
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18147
18192
|
var routerMap = {};
|
|
18148
|
-
var
|
|
18193
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18149
18194
|
data.forEach(function (menuItem) {
|
|
18150
18195
|
if (menuItem.children) {
|
|
18151
|
-
|
|
18196
|
+
flattenMenuData(menuItem.children);
|
|
18152
18197
|
}
|
|
18153
18198
|
// Reduce memory usage
|
|
18154
18199
|
routerMap[menuItem.path] = menuItem;
|
|
18155
18200
|
});
|
|
18156
18201
|
};
|
|
18157
|
-
|
|
18202
|
+
flattenMenuData(menuData);
|
|
18158
18203
|
return routerMap;
|
|
18159
18204
|
};
|
|
18160
18205
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18300,7 +18345,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18300
18345
|
sethomepageData(homepageDataList);
|
|
18301
18346
|
setroutesData(routesDataList);
|
|
18302
18347
|
}, []);
|
|
18303
|
-
var
|
|
18348
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18304
18349
|
if (!child.hideInMenu && child.children) {
|
|
18305
18350
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
18306
18351
|
style: {
|
|
@@ -18310,7 +18355,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18310
18355
|
}, umi.formatMessage({
|
|
18311
18356
|
id: "".concat(child.locale)
|
|
18312
18357
|
})), child.children.map(function (menuItem) {
|
|
18313
|
-
return
|
|
18358
|
+
return renderChildItem(menuItem);
|
|
18314
18359
|
}));
|
|
18315
18360
|
} else if (!child.hideInMenu && child.path) {
|
|
18316
18361
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -18345,7 +18390,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18345
18390
|
className: 'drawerWarp'
|
|
18346
18391
|
}, homepageData && homepageData.filter(function (d) {
|
|
18347
18392
|
return !d.hideInMenu;
|
|
18348
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18393
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18349
18394
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
18350
18395
|
dataSource: homepageData,
|
|
18351
18396
|
renderItem: function renderItem(child) {
|
|
@@ -18380,7 +18425,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18380
18425
|
bordered: true,
|
|
18381
18426
|
dataSource: item.children,
|
|
18382
18427
|
renderItem: function renderItem(child) {
|
|
18383
|
-
return
|
|
18428
|
+
return renderChildItem(child);
|
|
18384
18429
|
}
|
|
18385
18430
|
});
|
|
18386
18431
|
})));
|
|
@@ -18440,7 +18485,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18440
18485
|
src: allfunc
|
|
18441
18486
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18442
18487
|
className: 'btnSpan2'
|
|
18443
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18488
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18444
18489
|
style: {
|
|
18445
18490
|
left: isDrawer ? 140 : 0,
|
|
18446
18491
|
top: 50
|
|
@@ -18486,7 +18531,7 @@ function outLogin(_x) {
|
|
|
18486
18531
|
return _outLogin.apply(this, arguments);
|
|
18487
18532
|
}
|
|
18488
18533
|
function _outLogin() {
|
|
18489
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18534
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18490
18535
|
var res;
|
|
18491
18536
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18492
18537
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18628,7 +18673,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18628
18673
|
});
|
|
18629
18674
|
};
|
|
18630
18675
|
var loginOut = /*#__PURE__*/function () {
|
|
18631
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18676
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18632
18677
|
var sessionId;
|
|
18633
18678
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18634
18679
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18732,7 +18777,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18732
18777
|
marginRight: '0px'
|
|
18733
18778
|
},
|
|
18734
18779
|
src: './xialajiantou-new.svg'
|
|
18735
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18780
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18736
18781
|
};
|
|
18737
18782
|
|
|
18738
18783
|
// -- 查询店铺 --
|
|
@@ -18740,7 +18785,7 @@ function getStoreByName(_x) {
|
|
|
18740
18785
|
return _getStoreByName.apply(this, arguments);
|
|
18741
18786
|
}
|
|
18742
18787
|
function _getStoreByName() {
|
|
18743
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18788
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18744
18789
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18745
18790
|
while (1) switch (_context.prev = _context.next) {
|
|
18746
18791
|
case 0:
|
|
@@ -18808,7 +18853,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18808
18853
|
return _fetchUserList.apply(this, arguments);
|
|
18809
18854
|
}
|
|
18810
18855
|
function _fetchUserList() {
|
|
18811
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18856
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18812
18857
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18813
18858
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18814
18859
|
case 0:
|
|
@@ -18856,7 +18901,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18856
18901
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
18857
18902
|
}, [debounceTimeout, key]);
|
|
18858
18903
|
var changeInput = /*#__PURE__*/function () {
|
|
18859
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18904
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18860
18905
|
var res;
|
|
18861
18906
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18862
18907
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18878,7 +18923,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18878
18923
|
};
|
|
18879
18924
|
}();
|
|
18880
18925
|
React$1.useEffect(function () {
|
|
18881
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18926
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18882
18927
|
var res;
|
|
18883
18928
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18884
18929
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19043,7 +19088,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19043
19088
|
var resultList = [];
|
|
19044
19089
|
var newRouter = _.cloneDeep(router);
|
|
19045
19090
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19046
|
-
var
|
|
19091
|
+
var deep = function deep(router) {
|
|
19047
19092
|
if (router && Array.isArray(router)) {
|
|
19048
19093
|
router.forEach(function (item) {
|
|
19049
19094
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19053,7 +19098,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19053
19098
|
d.nameEdit = true;
|
|
19054
19099
|
}
|
|
19055
19100
|
});
|
|
19056
|
-
|
|
19101
|
+
deep(item.routes);
|
|
19057
19102
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
19058
19103
|
id: "menu.".concat(item.name)
|
|
19059
19104
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19072,7 +19117,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19072
19117
|
}));
|
|
19073
19118
|
}
|
|
19074
19119
|
};
|
|
19075
|
-
|
|
19120
|
+
deep(newRouter);
|
|
19076
19121
|
setroutesData([].concat(resultList));
|
|
19077
19122
|
};
|
|
19078
19123
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19154,7 +19199,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19154
19199
|
},
|
|
19155
19200
|
title: item.fullPathName
|
|
19156
19201
|
}, renderLineStyl(item.fullPathName));
|
|
19157
|
-
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19202
|
+
}))))), showSelectStore && ( /*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19158
19203
|
employeeCode: employeeCode
|
|
19159
19204
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
19160
19205
|
};
|
|
@@ -19169,7 +19214,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19169
19214
|
var TreeNode = antd.Tree.TreeNode;
|
|
19170
19215
|
var Search$2 = antd.Input.Search;
|
|
19171
19216
|
var dataList = [];
|
|
19172
|
-
var
|
|
19217
|
+
var generateList = function generateList(data) {
|
|
19173
19218
|
for (var i = 0; i < data.length; i++) {
|
|
19174
19219
|
var node = data[i];
|
|
19175
19220
|
var path = node.path,
|
|
@@ -19179,11 +19224,11 @@ var _generateList = function generateList(data) {
|
|
|
19179
19224
|
name: name
|
|
19180
19225
|
});
|
|
19181
19226
|
if (node.children) {
|
|
19182
|
-
|
|
19227
|
+
generateList(node.children);
|
|
19183
19228
|
}
|
|
19184
19229
|
}
|
|
19185
19230
|
};
|
|
19186
|
-
var
|
|
19231
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19187
19232
|
var parentKey;
|
|
19188
19233
|
for (var i = 0; i < tree.length; i++) {
|
|
19189
19234
|
var node = tree[i];
|
|
@@ -19192,8 +19237,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19192
19237
|
return item.path === path;
|
|
19193
19238
|
})) {
|
|
19194
19239
|
parentKey = node.path;
|
|
19195
|
-
} else if (
|
|
19196
|
-
parentKey =
|
|
19240
|
+
} else if (getParentKey(path, node.children)) {
|
|
19241
|
+
parentKey = getParentKey(path, node.children);
|
|
19197
19242
|
}
|
|
19198
19243
|
}
|
|
19199
19244
|
}
|
|
@@ -19224,7 +19269,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19224
19269
|
var treeData = _this.state.treeData;
|
|
19225
19270
|
var expandedKeys = dataList.map(function (item) {
|
|
19226
19271
|
if (item.name.indexOf(value) > -1) {
|
|
19227
|
-
return
|
|
19272
|
+
return getParentKey(item.path, treeData);
|
|
19228
19273
|
}
|
|
19229
19274
|
return null;
|
|
19230
19275
|
}).filter(function (item, i, self) {
|
|
@@ -19238,22 +19283,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19238
19283
|
};
|
|
19239
19284
|
_this.getPathList = function (originData) {
|
|
19240
19285
|
var pathList = [];
|
|
19241
|
-
var
|
|
19286
|
+
var getList = function getList(data) {
|
|
19242
19287
|
if (Array.isArray(data)) {
|
|
19243
19288
|
data.forEach(function (item) {
|
|
19244
19289
|
pathList.push(item.path);
|
|
19245
19290
|
if (item.children) {
|
|
19246
|
-
|
|
19291
|
+
getList(item.children);
|
|
19247
19292
|
}
|
|
19248
19293
|
});
|
|
19249
19294
|
} else {
|
|
19250
19295
|
pathList.push(data.path);
|
|
19251
19296
|
if (data.children) {
|
|
19252
|
-
|
|
19297
|
+
getList(data.children);
|
|
19253
19298
|
}
|
|
19254
19299
|
}
|
|
19255
19300
|
};
|
|
19256
|
-
|
|
19301
|
+
getList(originData);
|
|
19257
19302
|
return pathList;
|
|
19258
19303
|
};
|
|
19259
19304
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19262,18 +19307,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19262
19307
|
customerMenuData = _this$props.customerMenuData,
|
|
19263
19308
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19264
19309
|
var filterItem;
|
|
19265
|
-
var
|
|
19310
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19266
19311
|
menuData.forEach(function (item) {
|
|
19267
19312
|
if (item.path === path) {
|
|
19268
19313
|
filterItem = _objectSpread2({}, item);
|
|
19269
19314
|
return;
|
|
19270
19315
|
}
|
|
19271
19316
|
if (item.children) {
|
|
19272
|
-
|
|
19317
|
+
filterMenuItem(item.children);
|
|
19273
19318
|
}
|
|
19274
19319
|
});
|
|
19275
19320
|
};
|
|
19276
|
-
|
|
19321
|
+
filterMenuItem(treeData);
|
|
19277
19322
|
var addPathList = _this.getPathList(filterItem);
|
|
19278
19323
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19279
19324
|
var isRepet = false;
|
|
@@ -19303,8 +19348,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19303
19348
|
return item.path === '/';
|
|
19304
19349
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19305
19350
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19306
|
-
|
|
19307
|
-
|
|
19351
|
+
setMenuTreeData(routesData);
|
|
19352
|
+
generateList(routesData);
|
|
19308
19353
|
this.setState({
|
|
19309
19354
|
treeData: routesData
|
|
19310
19355
|
});
|
|
@@ -19318,16 +19363,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19318
19363
|
expandedKeys = _this$state.expandedKeys,
|
|
19319
19364
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19320
19365
|
treeData = _this$state.treeData;
|
|
19321
|
-
var
|
|
19366
|
+
var loop = function loop(data) {
|
|
19322
19367
|
return data.map(function (item) {
|
|
19323
19368
|
var index = item.name.indexOf(searchValue);
|
|
19324
19369
|
var beforeStr = item.name.substr(0, index);
|
|
19325
19370
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19326
|
-
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19371
|
+
var name = index > -1 ? ( /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19327
19372
|
style: {
|
|
19328
19373
|
color: '#f50'
|
|
19329
19374
|
}
|
|
19330
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19375
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19331
19376
|
if (item.children && item.children.length) {
|
|
19332
19377
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19333
19378
|
path: item.path,
|
|
@@ -19349,7 +19394,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19349
19394
|
width: 18,
|
|
19350
19395
|
src: arrowRight
|
|
19351
19396
|
}))))
|
|
19352
|
-
},
|
|
19397
|
+
}, loop(item.children));
|
|
19353
19398
|
}
|
|
19354
19399
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19355
19400
|
path: item.path,
|
|
@@ -19399,7 +19444,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19399
19444
|
onExpand: this.onExpand,
|
|
19400
19445
|
expandedKeys: expandedKeys,
|
|
19401
19446
|
autoExpandParent: autoExpandParent
|
|
19402
|
-
},
|
|
19447
|
+
}, loop(treeData))));
|
|
19403
19448
|
}
|
|
19404
19449
|
}]);
|
|
19405
19450
|
}(React__default['default'].Component);
|
|
@@ -19432,24 +19477,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19432
19477
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19433
19478
|
var dragObj;
|
|
19434
19479
|
var finalDropItem;
|
|
19435
|
-
var
|
|
19480
|
+
var loop = function loop(data, path, callback) {
|
|
19436
19481
|
for (var i = 0; i < data.length; i++) {
|
|
19437
19482
|
if (data[i].path === path) {
|
|
19438
19483
|
return callback(data[i], i, data);
|
|
19439
19484
|
}
|
|
19440
19485
|
if (data[i].children) {
|
|
19441
|
-
|
|
19486
|
+
loop(data[i].children, path, callback);
|
|
19442
19487
|
}
|
|
19443
19488
|
}
|
|
19444
19489
|
};
|
|
19445
19490
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19446
|
-
|
|
19491
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19447
19492
|
arr.splice(index, 1);
|
|
19448
19493
|
dragObj = item;
|
|
19449
19494
|
});
|
|
19450
19495
|
if (!info.dropToGap) {
|
|
19451
19496
|
// Drop on the content
|
|
19452
|
-
|
|
19497
|
+
loop(data, dropKey, function (item) {
|
|
19453
19498
|
item.children = item.children || [];
|
|
19454
19499
|
item.children.unshift(dragObj);
|
|
19455
19500
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19460,7 +19505,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19460
19505
|
// Is expanded
|
|
19461
19506
|
dropPosition === 1 // On the bottom gap
|
|
19462
19507
|
) {
|
|
19463
|
-
|
|
19508
|
+
loop(data, dropKey, function (item) {
|
|
19464
19509
|
item.children = item.children || [];
|
|
19465
19510
|
item.children.unshift(dragObj);
|
|
19466
19511
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19468,7 +19513,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19468
19513
|
} else {
|
|
19469
19514
|
var ar;
|
|
19470
19515
|
var i;
|
|
19471
|
-
|
|
19516
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19472
19517
|
ar = arr;
|
|
19473
19518
|
i = index;
|
|
19474
19519
|
});
|
|
@@ -19507,17 +19552,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19507
19552
|
title: '编辑名称',
|
|
19508
19553
|
callBack: function callBack(newName) {
|
|
19509
19554
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19510
|
-
var
|
|
19555
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19511
19556
|
oldTreeData.forEach(function (treeItem) {
|
|
19512
19557
|
if (treeItem.path === item.path) {
|
|
19513
19558
|
treeItem.name = newName;
|
|
19514
19559
|
}
|
|
19515
19560
|
if (treeItem.children) {
|
|
19516
|
-
|
|
19561
|
+
editTreeDataName(treeItem.children);
|
|
19517
19562
|
}
|
|
19518
19563
|
});
|
|
19519
19564
|
};
|
|
19520
|
-
|
|
19565
|
+
editTreeDataName(oldTreeData);
|
|
19521
19566
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19522
19567
|
_this.setState({
|
|
19523
19568
|
modalInfo: {
|
|
@@ -19562,7 +19607,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19562
19607
|
title: '新增子目录',
|
|
19563
19608
|
callBack: function callBack(newName) {
|
|
19564
19609
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19565
|
-
var
|
|
19610
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19566
19611
|
oldTreeData.forEach(function (treeItem) {
|
|
19567
19612
|
if (treeItem.path === item.path) {
|
|
19568
19613
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19574,11 +19619,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19574
19619
|
}];
|
|
19575
19620
|
}
|
|
19576
19621
|
if (treeItem.children) {
|
|
19577
|
-
|
|
19622
|
+
addChildFolder(treeItem.children);
|
|
19578
19623
|
}
|
|
19579
19624
|
});
|
|
19580
19625
|
};
|
|
19581
|
-
|
|
19626
|
+
addChildFolder(oldTreeData);
|
|
19582
19627
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19583
19628
|
_this.setState({
|
|
19584
19629
|
modalInfo: {
|
|
@@ -19637,7 +19682,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19637
19682
|
var _this$state = this.state,
|
|
19638
19683
|
modalInfo = _this$state.modalInfo,
|
|
19639
19684
|
checkedKeys = _this$state.checkedKeys;
|
|
19640
|
-
var
|
|
19685
|
+
var loop = function loop(data) {
|
|
19641
19686
|
return data.map(function (item) {
|
|
19642
19687
|
if (item.children && item.children.length) {
|
|
19643
19688
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -19654,7 +19699,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19654
19699
|
e.stopPropagation();
|
|
19655
19700
|
}
|
|
19656
19701
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
19657
|
-
},
|
|
19702
|
+
}, loop(item.children));
|
|
19658
19703
|
}
|
|
19659
19704
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
19660
19705
|
path: item.path,
|
|
@@ -19733,7 +19778,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19733
19778
|
children: 'children'
|
|
19734
19779
|
},
|
|
19735
19780
|
onDrop: this.onDrop
|
|
19736
|
-
},
|
|
19781
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
19737
19782
|
width: 600,
|
|
19738
19783
|
bodyStyle: {
|
|
19739
19784
|
paddingTop: '32px',
|
|
@@ -19846,7 +19891,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19846
19891
|
pathname: item.path
|
|
19847
19892
|
});
|
|
19848
19893
|
};
|
|
19849
|
-
var
|
|
19894
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
19850
19895
|
return menuData.map(function (item) {
|
|
19851
19896
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19852
19897
|
style: {
|
|
@@ -19861,7 +19906,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19861
19906
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19862
19907
|
paddingLeft: '4px'
|
|
19863
19908
|
}
|
|
19864
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19909
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
19865
19910
|
});
|
|
19866
19911
|
};
|
|
19867
19912
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19887,7 +19932,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19887
19932
|
style: {
|
|
19888
19933
|
paddingLeft: '5px'
|
|
19889
19934
|
}
|
|
19890
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19935
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19891
19936
|
style: {
|
|
19892
19937
|
left: isDrawer ? 140 : 0
|
|
19893
19938
|
},
|
|
@@ -19908,7 +19953,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19908
19953
|
visible: isDrawer
|
|
19909
19954
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
19910
19955
|
className: 'menu_title_line'
|
|
19911
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19956
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
19912
19957
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19913
19958
|
style: {
|
|
19914
19959
|
fontWeight: '600',
|
|
@@ -19982,7 +20027,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19982
20027
|
return item.path === '/';
|
|
19983
20028
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19984
20029
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19985
|
-
|
|
20030
|
+
setMenuTreeData(routesData);
|
|
19986
20031
|
routesData.forEach(function (item) {
|
|
19987
20032
|
if (item.children) {
|
|
19988
20033
|
routesDataList.push(item);
|
|
@@ -20012,7 +20057,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20012
20057
|
setHeight(clientHeight - 190);
|
|
20013
20058
|
setDrawHeight(clientHeight - 70);
|
|
20014
20059
|
};
|
|
20015
|
-
var
|
|
20060
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20016
20061
|
if (!child.hideInMenu && child.children) {
|
|
20017
20062
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
20018
20063
|
style: {
|
|
@@ -20022,7 +20067,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20022
20067
|
}, umi.formatMessage({
|
|
20023
20068
|
id: "".concat(child.locale)
|
|
20024
20069
|
})), child.children.map(function (menuItem) {
|
|
20025
|
-
return
|
|
20070
|
+
return renderChildItem(menuItem);
|
|
20026
20071
|
}));
|
|
20027
20072
|
} else if (!child.hideInMenu && child.path) {
|
|
20028
20073
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -20164,7 +20209,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20164
20209
|
onMenuClick(e, item);
|
|
20165
20210
|
}
|
|
20166
20211
|
}, item.name);
|
|
20167
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20212
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20168
20213
|
className: 'search_menu_content'
|
|
20169
20214
|
}, SearhData.map(function (item) {
|
|
20170
20215
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20173,7 +20218,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20173
20218
|
},
|
|
20174
20219
|
key: item.path
|
|
20175
20220
|
}, item.name);
|
|
20176
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20221
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20177
20222
|
style: {
|
|
20178
20223
|
height: "".concat(rightMenuHeight, "px"),
|
|
20179
20224
|
overflowY: 'scroll',
|
|
@@ -20185,7 +20230,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20185
20230
|
className: 'drawerWarp_right'
|
|
20186
20231
|
}, homepageData && homepageData.filter(function (d) {
|
|
20187
20232
|
return !d.hideInMenu;
|
|
20188
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20233
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20189
20234
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
20190
20235
|
dataSource: homepageData,
|
|
20191
20236
|
renderItem: function renderItem(child) {
|
|
@@ -20226,7 +20271,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20226
20271
|
bordered: true,
|
|
20227
20272
|
dataSource: item.children,
|
|
20228
20273
|
renderItem: function renderItem(child) {
|
|
20229
|
-
return
|
|
20274
|
+
return renderChildItem(child);
|
|
20230
20275
|
}
|
|
20231
20276
|
});
|
|
20232
20277
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20384,10 +20429,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20384
20429
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20385
20430
|
var menuKeys = [];
|
|
20386
20431
|
var docsId = [];
|
|
20387
|
-
var
|
|
20432
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20388
20433
|
data.forEach(function (item) {
|
|
20389
20434
|
if (item.children && item.children.length > 0) {
|
|
20390
|
-
|
|
20435
|
+
getLimitedMenuKeys(item.children);
|
|
20391
20436
|
} else {
|
|
20392
20437
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20393
20438
|
menuKeys.push(originPath);
|
|
@@ -20398,7 +20443,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20398
20443
|
});
|
|
20399
20444
|
};
|
|
20400
20445
|
try {
|
|
20401
|
-
|
|
20446
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20402
20447
|
} catch (e) {}
|
|
20403
20448
|
return {
|
|
20404
20449
|
menuKeys: menuKeys,
|
|
@@ -20632,10 +20677,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20632
20677
|
return (node.path || '').includes('all-general-documents');
|
|
20633
20678
|
};
|
|
20634
20679
|
// 递归获取树列表
|
|
20635
|
-
var
|
|
20680
|
+
var getTreeList = function getTreeList(data) {
|
|
20636
20681
|
data.forEach(function (node) {
|
|
20637
20682
|
if (node.routes && node.routes.length > 0) {
|
|
20638
|
-
|
|
20683
|
+
getTreeList(node.routes);
|
|
20639
20684
|
return;
|
|
20640
20685
|
}
|
|
20641
20686
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20666,7 +20711,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20666
20711
|
}
|
|
20667
20712
|
});
|
|
20668
20713
|
};
|
|
20669
|
-
|
|
20714
|
+
getTreeList(treeData);
|
|
20670
20715
|
return treeList;
|
|
20671
20716
|
};
|
|
20672
20717
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21295,7 +21340,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21295
21340
|
updateState = _ref8.updateState;
|
|
21296
21341
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21297
21342
|
className: "tab_title_content"
|
|
21298
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21343
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21299
21344
|
info: item,
|
|
21300
21345
|
operateFun: _this3.operateFun,
|
|
21301
21346
|
listenRouterState: listenRouterState
|
|
@@ -21431,7 +21476,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21431
21476
|
};
|
|
21432
21477
|
}
|
|
21433
21478
|
var OperationsSlot = {
|
|
21434
|
-
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21479
|
+
left: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21435
21480
|
className: 'tab_left_operate'
|
|
21436
21481
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21437
21482
|
onClick: function onClick() {
|
|
@@ -21447,7 +21492,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21447
21492
|
_this3.setTabNavTransLate(-100);
|
|
21448
21493
|
}
|
|
21449
21494
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
21450
|
-
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21495
|
+
right: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21451
21496
|
style: {
|
|
21452
21497
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21453
21498
|
},
|
|
@@ -21545,7 +21590,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21545
21590
|
onMouseLeave: function onMouseLeave() {
|
|
21546
21591
|
_this3.setShowMenu(false);
|
|
21547
21592
|
}
|
|
21548
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21593
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21549
21594
|
style: {
|
|
21550
21595
|
position: 'absolute',
|
|
21551
21596
|
top: '14px',
|
|
@@ -21564,7 +21609,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21564
21609
|
postMenuData: function postMenuData(menus) {
|
|
21565
21610
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21566
21611
|
},
|
|
21567
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21612
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21568
21613
|
ref: this.allFunc,
|
|
21569
21614
|
itemPath: itemPath,
|
|
21570
21615
|
handleClose: this.handleClose,
|
|
@@ -21582,7 +21627,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21582
21627
|
},
|
|
21583
21628
|
menu: {
|
|
21584
21629
|
request: function () {
|
|
21585
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21630
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21586
21631
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21587
21632
|
while (1) switch (_context.prev = _context.next) {
|
|
21588
21633
|
case 0:
|
|
@@ -21717,7 +21762,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21717
21762
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21718
21763
|
timeFormat = _this$props4.timeFormat,
|
|
21719
21764
|
transparentProps = _this$props4.transparentProps;
|
|
21720
|
-
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({
|
|
21765
|
+
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({
|
|
21721
21766
|
getDictionarySource: getDictionarySource,
|
|
21722
21767
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21723
21768
|
timeFormat: timeFormat
|
|
@@ -21741,12 +21786,12 @@ var index$5 = (function (props) {
|
|
|
21741
21786
|
});
|
|
21742
21787
|
|
|
21743
21788
|
// @ts-nocheck
|
|
21744
|
-
var
|
|
21789
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
21745
21790
|
var result = [];
|
|
21746
21791
|
columns.forEach(function (column) {
|
|
21747
21792
|
if (column.children) {
|
|
21748
21793
|
result.push(column);
|
|
21749
|
-
result.push.apply(result,
|
|
21794
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
21750
21795
|
} else {
|
|
21751
21796
|
result.push(column);
|
|
21752
21797
|
}
|
|
@@ -21755,7 +21800,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
21755
21800
|
};
|
|
21756
21801
|
var convertToRows = function convertToRows(originColumns) {
|
|
21757
21802
|
var maxLevel = 1;
|
|
21758
|
-
var
|
|
21803
|
+
var traverse = function traverse(column, parent) {
|
|
21759
21804
|
if (parent) {
|
|
21760
21805
|
column.level = parent.level + 1;
|
|
21761
21806
|
if (maxLevel < column.level) {
|
|
@@ -21765,7 +21810,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21765
21810
|
if (column.children) {
|
|
21766
21811
|
var colSpan = 0;
|
|
21767
21812
|
column.children.forEach(function (subColumn) {
|
|
21768
|
-
|
|
21813
|
+
traverse(subColumn, column);
|
|
21769
21814
|
colSpan += subColumn.colSpan;
|
|
21770
21815
|
});
|
|
21771
21816
|
column.colSpan = colSpan;
|
|
@@ -21775,13 +21820,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21775
21820
|
};
|
|
21776
21821
|
originColumns.forEach(function (column) {
|
|
21777
21822
|
column.level = 1;
|
|
21778
|
-
|
|
21823
|
+
traverse(column);
|
|
21779
21824
|
});
|
|
21780
21825
|
var rows = [];
|
|
21781
21826
|
for (var i = 0; i < maxLevel; i++) {
|
|
21782
21827
|
rows.push([]);
|
|
21783
21828
|
}
|
|
21784
|
-
var allColumns =
|
|
21829
|
+
var allColumns = getAllColumns(originColumns);
|
|
21785
21830
|
allColumns.forEach(function (column) {
|
|
21786
21831
|
if (!column.children) {
|
|
21787
21832
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21821,7 +21866,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21821
21866
|
};
|
|
21822
21867
|
var headersToRows = function headersToRows(originColumns) {
|
|
21823
21868
|
var maxLevel = 1;
|
|
21824
|
-
var
|
|
21869
|
+
var traverse = function traverse(column, parent) {
|
|
21825
21870
|
if (parent) {
|
|
21826
21871
|
//计算当前元素属于第几个层级
|
|
21827
21872
|
column.level = parent.level + 1;
|
|
@@ -21834,7 +21879,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21834
21879
|
var colSpan = 0;
|
|
21835
21880
|
column.children.forEach(function (subColumn) {
|
|
21836
21881
|
//进行递归
|
|
21837
|
-
|
|
21882
|
+
traverse(subColumn, column);
|
|
21838
21883
|
colSpan += subColumn.colSpan;
|
|
21839
21884
|
});
|
|
21840
21885
|
column.colSpan = colSpan;
|
|
@@ -21844,14 +21889,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21844
21889
|
};
|
|
21845
21890
|
originColumns.forEach(function (column) {
|
|
21846
21891
|
column.level = 1;
|
|
21847
|
-
|
|
21892
|
+
traverse(column);
|
|
21848
21893
|
});
|
|
21849
21894
|
var rows = [];
|
|
21850
21895
|
var lastData = [];
|
|
21851
21896
|
for (var i = 0; i < maxLevel; i++) {
|
|
21852
21897
|
rows.push([]);
|
|
21853
21898
|
}
|
|
21854
|
-
var allColumns =
|
|
21899
|
+
var allColumns = getAllColumns(originColumns);
|
|
21855
21900
|
allColumns.forEach(function (column) {
|
|
21856
21901
|
if (!column.children) {
|
|
21857
21902
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27868,7 +27913,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27868
27913
|
}
|
|
27869
27914
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27870
27915
|
};
|
|
27871
|
-
var
|
|
27916
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
27872
27917
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27873
27918
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27874
27919
|
var children = hightLightData.children,
|
|
@@ -27879,7 +27924,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27879
27924
|
lineEnd = _loc2[2];
|
|
27880
27925
|
if (children) {
|
|
27881
27926
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27882
|
-
return
|
|
27927
|
+
return hasHighLightChildren(v, highLightLine);
|
|
27883
27928
|
});
|
|
27884
27929
|
}
|
|
27885
27930
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27891,7 +27936,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27891
27936
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27892
27937
|
data.forEach(function (node) {
|
|
27893
27938
|
if (!node) return;
|
|
27894
|
-
node.toggled =
|
|
27939
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
27895
27940
|
node.active = isHightLight(node, highLightLine);
|
|
27896
27941
|
if (node.children) {
|
|
27897
27942
|
if (node.active) {
|
|
@@ -29322,7 +29367,7 @@ var valueType = {
|
|
|
29322
29367
|
};
|
|
29323
29368
|
|
|
29324
29369
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29325
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29370
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29326
29371
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29327
29372
|
while (1) switch (_context.prev = _context.next) {
|
|
29328
29373
|
case 0:
|
|
@@ -29390,7 +29435,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29390
29435
|
value: false
|
|
29391
29436
|
}];
|
|
29392
29437
|
var ref = React$1.useRef();
|
|
29393
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29438
|
+
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29394
29439
|
var _ref$current, source;
|
|
29395
29440
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29396
29441
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29504,7 +29549,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29504
29549
|
source: {
|
|
29505
29550
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29506
29551
|
type: function () {
|
|
29507
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29552
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29508
29553
|
var form, values, name, relates, source;
|
|
29509
29554
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29510
29555
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29984,7 +30029,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29984
30029
|
source: {
|
|
29985
30030
|
relates: ['choiceType', 'inputType'],
|
|
29986
30031
|
type: function () {
|
|
29987
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30032
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29988
30033
|
var values, name, form, source;
|
|
29989
30034
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29990
30035
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30206,7 +30251,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30206
30251
|
width: 900,
|
|
30207
30252
|
maskClosable: false,
|
|
30208
30253
|
onOk: function () {
|
|
30209
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30254
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30210
30255
|
var _ref$current4, _res$editableStatus;
|
|
30211
30256
|
var res, _res$defaultValue;
|
|
30212
30257
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30278,7 +30323,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30278
30323
|
}()
|
|
30279
30324
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30280
30325
|
ref: ref
|
|
30281
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30326
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30282
30327
|
};
|
|
30283
30328
|
|
|
30284
30329
|
// @ts-nocheck
|
|
@@ -30892,7 +30937,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30892
30937
|
return setVisible(false);
|
|
30893
30938
|
},
|
|
30894
30939
|
className: 'customFieldsDrawer'
|
|
30895
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30940
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30896
30941
|
style: {
|
|
30897
30942
|
display: 'flex'
|
|
30898
30943
|
}
|
|
@@ -30901,13 +30946,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30901
30946
|
flex: 1,
|
|
30902
30947
|
width: 500
|
|
30903
30948
|
}
|
|
30904
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30949
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30905
30950
|
style: {
|
|
30906
30951
|
padding: "10px 0",
|
|
30907
30952
|
fontSize: "16px",
|
|
30908
30953
|
fontWeight: "bolder"
|
|
30909
30954
|
}
|
|
30910
|
-
}, "\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", {
|
|
30955
|
+
}, "\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", {
|
|
30911
30956
|
style: {
|
|
30912
30957
|
flex: 1
|
|
30913
30958
|
}
|
|
@@ -30916,7 +30961,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30916
30961
|
onRun: onClickRun,
|
|
30917
30962
|
value: jsonEditorVal,
|
|
30918
30963
|
shallowHeight: height
|
|
30919
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
30964
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
30920
30965
|
defaultActiveKey: activeKey,
|
|
30921
30966
|
onChange: function onChange(v) {
|
|
30922
30967
|
return setActiveKey(v);
|
|
@@ -30933,13 +30978,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30933
30978
|
flex: 1,
|
|
30934
30979
|
width: 500
|
|
30935
30980
|
}
|
|
30936
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30981
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30937
30982
|
style: {
|
|
30938
30983
|
padding: "10px 0",
|
|
30939
30984
|
fontSize: "16px",
|
|
30940
30985
|
fontWeight: "bolder"
|
|
30941
30986
|
}
|
|
30942
|
-
}, "\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", {
|
|
30987
|
+
}, "\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", {
|
|
30943
30988
|
style: {
|
|
30944
30989
|
flex: 1
|
|
30945
30990
|
}
|
|
@@ -30961,13 +31006,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30961
31006
|
flex: 1,
|
|
30962
31007
|
width: 500
|
|
30963
31008
|
}
|
|
30964
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31009
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30965
31010
|
style: {
|
|
30966
31011
|
padding: "10px 0",
|
|
30967
31012
|
fontSize: "16px",
|
|
30968
31013
|
fontWeight: "bolder"
|
|
30969
31014
|
}
|
|
30970
|
-
}, "\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", {
|
|
31015
|
+
}, "\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", {
|
|
30971
31016
|
style: {
|
|
30972
31017
|
flex: 1
|
|
30973
31018
|
}
|
|
@@ -31113,7 +31158,7 @@ function getMetaData(_x) {
|
|
|
31113
31158
|
|
|
31114
31159
|
// 获取数据
|
|
31115
31160
|
function _getMetaData() {
|
|
31116
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31161
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31117
31162
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31118
31163
|
while (1) switch (_context.prev = _context.next) {
|
|
31119
31164
|
case 0:
|
|
@@ -31335,7 +31380,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31335
31380
|
tableState = _useState4[0],
|
|
31336
31381
|
setTableState = _useState4[1];
|
|
31337
31382
|
var handleOpen = /*#__PURE__*/function () {
|
|
31338
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31383
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31339
31384
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31340
31385
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31341
31386
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31654,7 +31699,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31654
31699
|
destroyOnClose: true
|
|
31655
31700
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
31656
31701
|
ref: queryTableRef
|
|
31657
|
-
}, 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, {
|
|
31702
|
+
}, 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, {
|
|
31658
31703
|
justify: "center",
|
|
31659
31704
|
style: {
|
|
31660
31705
|
marginBottom: 30,
|
|
@@ -31770,7 +31815,7 @@ var CustomSelector = (function (props) {
|
|
|
31770
31815
|
var _props$ctx7;
|
|
31771
31816
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31772
31817
|
}
|
|
31773
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31818
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31774
31819
|
type: "primary",
|
|
31775
31820
|
style: {
|
|
31776
31821
|
width: '30px',
|
|
@@ -31856,7 +31901,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31856
31901
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31857
31902
|
handSource = _useState2[0],
|
|
31858
31903
|
setHandSource = _useState2[1];
|
|
31859
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31904
|
+
React$1.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31860
31905
|
var resData, data;
|
|
31861
31906
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31862
31907
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32008,7 +32053,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32008
32053
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32009
32054
|
}
|
|
32010
32055
|
function _getRegularThresholdRange() {
|
|
32011
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32056
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32012
32057
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32013
32058
|
while (1) switch (_context.prev = _context.next) {
|
|
32014
32059
|
case 0:
|
|
@@ -32162,7 +32207,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32162
32207
|
};
|
|
32163
32208
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32164
32209
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32165
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32210
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32166
32211
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32167
32212
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32168
32213
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33107,7 +33152,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33107
33152
|
isAll: true,
|
|
33108
33153
|
needNameAndCode: true,
|
|
33109
33154
|
notChangeOnSelect: true,
|
|
33110
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33155
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33111
33156
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33112
33157
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33113
33158
|
case 0:
|
|
@@ -33156,7 +33201,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33156
33201
|
isAll: true,
|
|
33157
33202
|
needNameAndCode: true,
|
|
33158
33203
|
notChangeOnSelect: true,
|
|
33159
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33204
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33160
33205
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33161
33206
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33162
33207
|
case 0:
|
|
@@ -33207,7 +33252,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33207
33252
|
isAll: true,
|
|
33208
33253
|
needNameAndCode: true,
|
|
33209
33254
|
notChangeOnSelect: true,
|
|
33210
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33255
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33211
33256
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33212
33257
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33213
33258
|
case 0:
|
|
@@ -35171,7 +35216,7 @@ var App$1 = function App(_ref) {
|
|
|
35171
35216
|
borderRadius: '5px',
|
|
35172
35217
|
cursor: 'pointer'
|
|
35173
35218
|
}
|
|
35174
|
-
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35219
|
+
}, isStaticNumber ? ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35175
35220
|
autoFocus: true,
|
|
35176
35221
|
onClick: function onClick(e) {
|
|
35177
35222
|
return e.stopPropagation();
|
|
@@ -35458,7 +35503,7 @@ function RenderCompItem(props) {
|
|
|
35458
35503
|
dictData = _useState2[0],
|
|
35459
35504
|
setDictData = _useState2[1];
|
|
35460
35505
|
var getDictData = /*#__PURE__*/function () {
|
|
35461
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35506
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35462
35507
|
var _data$map;
|
|
35463
35508
|
var data;
|
|
35464
35509
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35500,7 +35545,7 @@ function RenderCompItem(props) {
|
|
|
35500
35545
|
var style2 = {
|
|
35501
35546
|
width: '100px'
|
|
35502
35547
|
};
|
|
35503
|
-
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, {
|
|
35548
|
+
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, {
|
|
35504
35549
|
disabled: disabled,
|
|
35505
35550
|
allowClear: true,
|
|
35506
35551
|
onClear: function onClear() {
|
|
@@ -35511,7 +35556,7 @@ function RenderCompItem(props) {
|
|
|
35511
35556
|
onBlur: function onBlur(e) {
|
|
35512
35557
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35513
35558
|
}
|
|
35514
|
-
})) || 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, {
|
|
35559
|
+
})) || 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, {
|
|
35515
35560
|
disabled: disabled,
|
|
35516
35561
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35517
35562
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35524,7 +35569,7 @@ function RenderCompItem(props) {
|
|
|
35524
35569
|
onChange: function onChange(value) {
|
|
35525
35570
|
handleEdit(ites.code, value);
|
|
35526
35571
|
}
|
|
35527
|
-
})) || 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, {
|
|
35572
|
+
})) || 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, {
|
|
35528
35573
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35529
35574
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35530
35575
|
disabled: disabled,
|
|
@@ -35534,7 +35579,7 @@ function RenderCompItem(props) {
|
|
|
35534
35579
|
onChange: function onChange(value, dateString) {
|
|
35535
35580
|
handleEdit(ites.code, dateString);
|
|
35536
35581
|
}
|
|
35537
|
-
})) || 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, {
|
|
35582
|
+
})) || 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, {
|
|
35538
35583
|
showTime: true,
|
|
35539
35584
|
disabled: disabled,
|
|
35540
35585
|
defaultValue: ites.defaultValue,
|
|
@@ -35543,7 +35588,7 @@ function RenderCompItem(props) {
|
|
|
35543
35588
|
onChange: function onChange(value, timeString) {
|
|
35544
35589
|
handleEdit(ites.code, timeString);
|
|
35545
35590
|
}
|
|
35546
|
-
})) || 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, {
|
|
35591
|
+
})) || 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, {
|
|
35547
35592
|
disabled: disabled,
|
|
35548
35593
|
defaultChecked: !!ites.defaultValue,
|
|
35549
35594
|
style: style2,
|
|
@@ -35551,7 +35596,7 @@ function RenderCompItem(props) {
|
|
|
35551
35596
|
onChange: function onChange(value) {
|
|
35552
35597
|
handleEdit(ites.code, value);
|
|
35553
35598
|
}
|
|
35554
|
-
})) || 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({
|
|
35599
|
+
})) || 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({
|
|
35555
35600
|
disabled: disabled,
|
|
35556
35601
|
allowClear: true,
|
|
35557
35602
|
showArrow: true
|
|
@@ -35569,7 +35614,7 @@ function RenderCompItem(props) {
|
|
|
35569
35614
|
key: it,
|
|
35570
35615
|
value: it
|
|
35571
35616
|
}, ites.enumeration[it]);
|
|
35572
|
-
}))) || 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, {
|
|
35617
|
+
}))) || 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, {
|
|
35573
35618
|
disabled: disabled,
|
|
35574
35619
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35575
35620
|
defaultValue: ites.defaultValue,
|
|
@@ -35579,7 +35624,7 @@ function RenderCompItem(props) {
|
|
|
35579
35624
|
handleEdit(ites.code, value);
|
|
35580
35625
|
},
|
|
35581
35626
|
dictionaryCode: ites.dictionaryCode
|
|
35582
|
-
})) || 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, {
|
|
35627
|
+
})) || 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, {
|
|
35583
35628
|
selectBusinessType: "physicalWarehouse",
|
|
35584
35629
|
selectProps: _objectSpread2({
|
|
35585
35630
|
style: styleCommon,
|
|
@@ -35601,7 +35646,7 @@ function RenderCompItem(props) {
|
|
|
35601
35646
|
getPopupContainer: function getPopupContainer() {
|
|
35602
35647
|
return document.body;
|
|
35603
35648
|
}
|
|
35604
|
-
})) || 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, {
|
|
35649
|
+
})) || 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, {
|
|
35605
35650
|
selectBusinessType: "realWarehouse",
|
|
35606
35651
|
selectProps: _objectSpread2({
|
|
35607
35652
|
style: styleCommon,
|
|
@@ -35623,7 +35668,7 @@ function RenderCompItem(props) {
|
|
|
35623
35668
|
getPopupContainer: function getPopupContainer() {
|
|
35624
35669
|
return document.body;
|
|
35625
35670
|
}
|
|
35626
|
-
})) || 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, {
|
|
35671
|
+
})) || 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, {
|
|
35627
35672
|
selectBusinessType: "virtualWarehouse",
|
|
35628
35673
|
selectProps: _objectSpread2({
|
|
35629
35674
|
style: styleCommon,
|
|
@@ -35645,7 +35690,7 @@ function RenderCompItem(props) {
|
|
|
35645
35690
|
getPopupContainer: function getPopupContainer() {
|
|
35646
35691
|
return document.body;
|
|
35647
35692
|
}
|
|
35648
|
-
})) || 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, {
|
|
35693
|
+
})) || 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, {
|
|
35649
35694
|
selectBusinessType: "channelWarehouse",
|
|
35650
35695
|
selectProps: _objectSpread2({
|
|
35651
35696
|
style: styleCommon,
|
|
@@ -35667,7 +35712,7 @@ function RenderCompItem(props) {
|
|
|
35667
35712
|
getPopupContainer: function getPopupContainer() {
|
|
35668
35713
|
return document.body;
|
|
35669
35714
|
}
|
|
35670
|
-
})) || 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, {
|
|
35715
|
+
})) || 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, {
|
|
35671
35716
|
selectBusinessType: "spuCommodity",
|
|
35672
35717
|
selectProps: _objectSpread2({
|
|
35673
35718
|
style: styleCommon,
|
|
@@ -35688,7 +35733,7 @@ function RenderCompItem(props) {
|
|
|
35688
35733
|
getPopupContainer: function getPopupContainer() {
|
|
35689
35734
|
return document.body;
|
|
35690
35735
|
}
|
|
35691
|
-
})) || 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, {
|
|
35736
|
+
})) || 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, {
|
|
35692
35737
|
selectBusinessType: "skuCommodity",
|
|
35693
35738
|
selectProps: _objectSpread2({
|
|
35694
35739
|
style: styleCommon,
|
|
@@ -35709,13 +35754,13 @@ function RenderCompItem(props) {
|
|
|
35709
35754
|
getPopupContainer: function getPopupContainer() {
|
|
35710
35755
|
return document.body;
|
|
35711
35756
|
}
|
|
35712
|
-
})) || 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, {
|
|
35757
|
+
})) || 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, {
|
|
35713
35758
|
disabled: disabled,
|
|
35714
35759
|
isAll: true,
|
|
35715
35760
|
needNameAndCode: true,
|
|
35716
35761
|
notChangeOnSelect: true,
|
|
35717
35762
|
initRequestSource: function () {
|
|
35718
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35763
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35719
35764
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35720
35765
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35721
35766
|
case 0:
|
|
@@ -35757,7 +35802,7 @@ function RenderCompItem(props) {
|
|
|
35757
35802
|
getPopupContainer: function getPopupContainer() {
|
|
35758
35803
|
return document.body;
|
|
35759
35804
|
}
|
|
35760
|
-
})) || 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, {
|
|
35805
|
+
})) || 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, {
|
|
35761
35806
|
disabled: disabled,
|
|
35762
35807
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35763
35808
|
businessType: "department",
|
|
@@ -35770,7 +35815,7 @@ function RenderCompItem(props) {
|
|
|
35770
35815
|
getPopupContainer: function getPopupContainer() {
|
|
35771
35816
|
return document.body;
|
|
35772
35817
|
}
|
|
35773
|
-
})) || 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, {
|
|
35818
|
+
})) || 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, {
|
|
35774
35819
|
disabled: disabled,
|
|
35775
35820
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35776
35821
|
businessType: "purchase-organization",
|
|
@@ -35783,7 +35828,7 @@ function RenderCompItem(props) {
|
|
|
35783
35828
|
getPopupContainer: function getPopupContainer() {
|
|
35784
35829
|
return document.body;
|
|
35785
35830
|
}
|
|
35786
|
-
})) || 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, {
|
|
35831
|
+
})) || 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, {
|
|
35787
35832
|
disabled: disabled,
|
|
35788
35833
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35789
35834
|
businessType: "sales-organization",
|
|
@@ -35796,7 +35841,7 @@ function RenderCompItem(props) {
|
|
|
35796
35841
|
getPopupContainer: function getPopupContainer() {
|
|
35797
35842
|
return document.body;
|
|
35798
35843
|
}
|
|
35799
|
-
})) || 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, {
|
|
35844
|
+
})) || 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, {
|
|
35800
35845
|
selectBusinessType: "supplier2",
|
|
35801
35846
|
selectProps: _objectSpread2({
|
|
35802
35847
|
style: styleCommon,
|
|
@@ -35817,7 +35862,7 @@ function RenderCompItem(props) {
|
|
|
35817
35862
|
getPopupContainer: function getPopupContainer() {
|
|
35818
35863
|
return document.body;
|
|
35819
35864
|
}
|
|
35820
|
-
})) || 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, {
|
|
35865
|
+
})) || 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, {
|
|
35821
35866
|
selectBusinessType: "customer2",
|
|
35822
35867
|
selectProps: _objectSpread2({
|
|
35823
35868
|
style: styleCommon,
|
|
@@ -35838,7 +35883,7 @@ function RenderCompItem(props) {
|
|
|
35838
35883
|
getPopupContainer: function getPopupContainer() {
|
|
35839
35884
|
return document.body;
|
|
35840
35885
|
}
|
|
35841
|
-
})) || 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, {
|
|
35886
|
+
})) || 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, {
|
|
35842
35887
|
selectBusinessType: "shopFile2",
|
|
35843
35888
|
selectProps: _objectSpread2({
|
|
35844
35889
|
style: styleCommon,
|
|
@@ -35859,7 +35904,7 @@ function RenderCompItem(props) {
|
|
|
35859
35904
|
getPopupContainer: function getPopupContainer() {
|
|
35860
35905
|
return document.body;
|
|
35861
35906
|
}
|
|
35862
|
-
})) || 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, {
|
|
35907
|
+
})) || 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, {
|
|
35863
35908
|
selectBusinessType: "employee2",
|
|
35864
35909
|
selectProps: _objectSpread2({
|
|
35865
35910
|
style: styleCommon,
|
|
@@ -35880,7 +35925,7 @@ function RenderCompItem(props) {
|
|
|
35880
35925
|
getPopupContainer: function getPopupContainer() {
|
|
35881
35926
|
return document.body;
|
|
35882
35927
|
}
|
|
35883
|
-
})) || 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, {
|
|
35928
|
+
})) || 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, {
|
|
35884
35929
|
disabled: disabled,
|
|
35885
35930
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35886
35931
|
businessType: "stock-organization",
|
|
@@ -35893,7 +35938,7 @@ function RenderCompItem(props) {
|
|
|
35893
35938
|
getPopupContainer: function getPopupContainer() {
|
|
35894
35939
|
return document.body;
|
|
35895
35940
|
}
|
|
35896
|
-
})) || 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, {
|
|
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) === 290 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35897
35942
|
disabled: disabled,
|
|
35898
35943
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35899
35944
|
businessType: "settle-organization",
|
|
@@ -35906,7 +35951,7 @@ function RenderCompItem(props) {
|
|
|
35906
35951
|
getPopupContainer: function getPopupContainer() {
|
|
35907
35952
|
return document.body;
|
|
35908
35953
|
}
|
|
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) === 310 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35954
|
+
})) || 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, {
|
|
35910
35955
|
selectBusinessType: "deliveryMode",
|
|
35911
35956
|
selectProps: _objectSpread2({
|
|
35912
35957
|
style: styleCommon,
|
|
@@ -35927,7 +35972,7 @@ function RenderCompItem(props) {
|
|
|
35927
35972
|
getPopupContainer: function getPopupContainer() {
|
|
35928
35973
|
return document.body;
|
|
35929
35974
|
}
|
|
35930
|
-
})) || 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, {
|
|
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) === 360 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35931
35976
|
selectBusinessType: "role",
|
|
35932
35977
|
selectProps: _objectSpread2({
|
|
35933
35978
|
style: styleCommon,
|
|
@@ -35948,7 +35993,7 @@ function RenderCompItem(props) {
|
|
|
35948
35993
|
getPopupContainer: function getPopupContainer() {
|
|
35949
35994
|
return document.body;
|
|
35950
35995
|
}
|
|
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) === 410 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35996
|
+
})) || 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, {
|
|
35952
35997
|
selectBusinessType: "brand",
|
|
35953
35998
|
selectProps: _objectSpread2({
|
|
35954
35999
|
style: styleCommon,
|
|
@@ -35969,7 +36014,7 @@ function RenderCompItem(props) {
|
|
|
35969
36014
|
getPopupContainer: function getPopupContainer() {
|
|
35970
36015
|
return document.body;
|
|
35971
36016
|
}
|
|
35972
|
-
})) || 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, {
|
|
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) === 420 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35973
36018
|
disabled: disabled,
|
|
35974
36019
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35975
36020
|
businessType: "background-category",
|
|
@@ -35982,7 +36027,7 @@ function RenderCompItem(props) {
|
|
|
35982
36027
|
getPopupContainer: function getPopupContainer() {
|
|
35983
36028
|
return document.body;
|
|
35984
36029
|
}
|
|
35985
|
-
})) || 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, {
|
|
36030
|
+
})) || 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, {
|
|
35986
36031
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35987
36032
|
style: styleCommon,
|
|
35988
36033
|
placeholder: '请选择'
|
|
@@ -36005,7 +36050,7 @@ function RenderCompItem(props) {
|
|
|
36005
36050
|
onChange: function onChange(value) {
|
|
36006
36051
|
handleEdit(ites.code, value);
|
|
36007
36052
|
}
|
|
36008
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
36053
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36009
36054
|
style: {
|
|
36010
36055
|
display: 'flex'
|
|
36011
36056
|
}
|
|
@@ -36517,7 +36562,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36517
36562
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36518
36563
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36519
36564
|
}
|
|
36520
|
-
var parallelTreeData =
|
|
36565
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36521
36566
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36522
36567
|
var _i$key;
|
|
36523
36568
|
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);
|
|
@@ -37444,13 +37489,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37444
37489
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37445
37490
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37446
37491
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37447
|
-
var list =
|
|
37492
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37448
37493
|
var requiredList = list.filter(function (c) {
|
|
37449
37494
|
return c.required == 1;
|
|
37450
37495
|
}) || []; // 获取对象属性为true的集合
|
|
37451
37496
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37452
37497
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37453
|
-
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) ?
|
|
37498
|
+
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];
|
|
37454
37499
|
(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) {
|
|
37455
37500
|
if (requiredList.some(function (r) {
|
|
37456
37501
|
return r.id === e.elementId;
|
|
@@ -38039,7 +38084,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38039
38084
|
style: {
|
|
38040
38085
|
float: 'right'
|
|
38041
38086
|
}
|
|
38042
|
-
})), /*#__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), {}, {
|
|
38087
|
+
})), /*#__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), {}, {
|
|
38043
38088
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38044
38089
|
ruleGroupInfo: {
|
|
38045
38090
|
ruleGroupList: ruleGroupList,
|
|
@@ -38057,7 +38102,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38057
38102
|
callBack: function callBack(newData) {
|
|
38058
38103
|
upDateData(newData);
|
|
38059
38104
|
}
|
|
38060
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
38105
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38061
38106
|
style: {
|
|
38062
38107
|
padding: 20
|
|
38063
38108
|
}
|
|
@@ -38473,11 +38518,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
38473
38518
|
exports.authFunc = authFunc;
|
|
38474
38519
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
38475
38520
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
38476
|
-
exports.coverToParallel =
|
|
38521
|
+
exports.coverToParallel = coverToParallel;
|
|
38477
38522
|
exports.createUniqID = createUniqID;
|
|
38478
38523
|
exports.downloadExcel = downloadExcel;
|
|
38479
38524
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
38480
|
-
exports.formatter =
|
|
38525
|
+
exports.formatter = formatter;
|
|
38481
38526
|
exports.getAccountID = getAccountID;
|
|
38482
38527
|
exports.getAccountId = getAccountId;
|
|
38483
38528
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|