@bit-sun/business-component 4.0.13-alpha.34 → 4.0.13-alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Functional/DataValidation/index.d.ts +11 -1
- package/dist/index.esm.js +581 -432
- package/dist/index.js +582 -433
- package/package.json +1 -1
- package/src/components/Functional/DataValidation/index.tsx +127 -19
package/dist/index.js
CHANGED
|
@@ -55,88 +55,9 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
55
55
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
56
56
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
57
57
|
|
|
58
|
-
function _arrayLikeToArray(r, a) {
|
|
59
|
-
(null == a || a > r.length) && (a = r.length);
|
|
60
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
61
|
-
return n;
|
|
62
|
-
}
|
|
63
|
-
function _arrayWithHoles(r) {
|
|
64
|
-
if (Array.isArray(r)) return r;
|
|
65
|
-
}
|
|
66
|
-
function _arrayWithoutHoles(r) {
|
|
67
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
68
|
-
}
|
|
69
|
-
function _assertThisInitialized(e) {
|
|
70
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
71
|
-
return e;
|
|
72
|
-
}
|
|
73
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
74
|
-
try {
|
|
75
|
-
var i = n[a](c),
|
|
76
|
-
u = i.value;
|
|
77
|
-
} catch (n) {
|
|
78
|
-
return void e(n);
|
|
79
|
-
}
|
|
80
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
81
|
-
}
|
|
82
|
-
function _asyncToGenerator(n) {
|
|
83
|
-
return function () {
|
|
84
|
-
var t = this,
|
|
85
|
-
e = arguments;
|
|
86
|
-
return new Promise(function (r, o) {
|
|
87
|
-
var a = n.apply(t, e);
|
|
88
|
-
function _next(n) {
|
|
89
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
90
|
-
}
|
|
91
|
-
function _throw(n) {
|
|
92
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
93
|
-
}
|
|
94
|
-
_next(void 0);
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
58
|
function _callSuper(t, o, e) {
|
|
99
59
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
100
60
|
}
|
|
101
|
-
function _classCallCheck(a, n) {
|
|
102
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
103
|
-
}
|
|
104
|
-
function _defineProperties(e, r) {
|
|
105
|
-
for (var t = 0; t < r.length; t++) {
|
|
106
|
-
var o = r[t];
|
|
107
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
function _createClass(e, r, t) {
|
|
111
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
112
|
-
writable: !1
|
|
113
|
-
}), e;
|
|
114
|
-
}
|
|
115
|
-
function _defineProperty(e, r, t) {
|
|
116
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
117
|
-
value: t,
|
|
118
|
-
enumerable: !0,
|
|
119
|
-
configurable: !0,
|
|
120
|
-
writable: !0
|
|
121
|
-
}) : e[r] = t, e;
|
|
122
|
-
}
|
|
123
|
-
function _getPrototypeOf(t) {
|
|
124
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
125
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
126
|
-
}, _getPrototypeOf(t);
|
|
127
|
-
}
|
|
128
|
-
function _inherits(t, e) {
|
|
129
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
130
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
131
|
-
constructor: {
|
|
132
|
-
value: t,
|
|
133
|
-
writable: !0,
|
|
134
|
-
configurable: !0
|
|
135
|
-
}
|
|
136
|
-
}), Object.defineProperty(t, "prototype", {
|
|
137
|
-
writable: !1
|
|
138
|
-
}), e && _setPrototypeOf(t, e);
|
|
139
|
-
}
|
|
140
61
|
function _isNativeReflectConstruct() {
|
|
141
62
|
try {
|
|
142
63
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -145,9 +66,6 @@ function _isNativeReflectConstruct() {
|
|
|
145
66
|
return !!t;
|
|
146
67
|
})();
|
|
147
68
|
}
|
|
148
|
-
function _iterableToArray(r) {
|
|
149
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
150
|
-
}
|
|
151
69
|
function _iterableToArrayLimit(r, l) {
|
|
152
70
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
153
71
|
if (null != t) {
|
|
@@ -175,15 +93,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
175
93
|
return a;
|
|
176
94
|
}
|
|
177
95
|
}
|
|
178
|
-
function _nonIterableRest() {
|
|
179
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
180
|
-
}
|
|
181
|
-
function _nonIterableSpread() {
|
|
182
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
183
|
-
}
|
|
184
|
-
function _objectDestructuringEmpty(t) {
|
|
185
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
186
|
-
}
|
|
187
96
|
function ownKeys(e, r) {
|
|
188
97
|
var t = Object.keys(e);
|
|
189
98
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -205,31 +114,6 @@ function _objectSpread2(e) {
|
|
|
205
114
|
}
|
|
206
115
|
return e;
|
|
207
116
|
}
|
|
208
|
-
function _objectWithoutProperties(e, t) {
|
|
209
|
-
if (null == e) return {};
|
|
210
|
-
var o,
|
|
211
|
-
r,
|
|
212
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
|
-
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
215
|
-
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
|
-
}
|
|
217
|
-
return i;
|
|
218
|
-
}
|
|
219
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
220
|
-
if (null == r) return {};
|
|
221
|
-
var t = {};
|
|
222
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
224
|
-
t[n] = r[n];
|
|
225
|
-
}
|
|
226
|
-
return t;
|
|
227
|
-
}
|
|
228
|
-
function _possibleConstructorReturn(t, e) {
|
|
229
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
230
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
|
-
return _assertThisInitialized(t);
|
|
232
|
-
}
|
|
233
117
|
function _regeneratorRuntime() {
|
|
234
118
|
_regeneratorRuntime = function () {
|
|
235
119
|
return e;
|
|
@@ -531,20 +415,6 @@ function _regeneratorRuntime() {
|
|
|
531
415
|
}
|
|
532
416
|
}, e;
|
|
533
417
|
}
|
|
534
|
-
function _setPrototypeOf(t, e) {
|
|
535
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
536
|
-
return t.__proto__ = e, t;
|
|
537
|
-
}, _setPrototypeOf(t, e);
|
|
538
|
-
}
|
|
539
|
-
function _slicedToArray(r, e) {
|
|
540
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
541
|
-
}
|
|
542
|
-
function _toArray(r) {
|
|
543
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
544
|
-
}
|
|
545
|
-
function _toConsumableArray(r) {
|
|
546
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
547
|
-
}
|
|
548
418
|
function _toPrimitive(t, r) {
|
|
549
419
|
if ("object" != typeof t || !t) return t;
|
|
550
420
|
var e = t[Symbol.toPrimitive];
|
|
@@ -568,12 +438,180 @@ function _typeof(o) {
|
|
|
568
438
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
569
439
|
}, _typeof(o);
|
|
570
440
|
}
|
|
571
|
-
function
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
var
|
|
575
|
-
|
|
441
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
442
|
+
try {
|
|
443
|
+
var info = gen[key](arg);
|
|
444
|
+
var value = info.value;
|
|
445
|
+
} catch (error) {
|
|
446
|
+
reject(error);
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
if (info.done) {
|
|
450
|
+
resolve(value);
|
|
451
|
+
} else {
|
|
452
|
+
Promise.resolve(value).then(_next, _throw);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
function _asyncToGenerator(fn) {
|
|
456
|
+
return function () {
|
|
457
|
+
var self = this,
|
|
458
|
+
args = arguments;
|
|
459
|
+
return new Promise(function (resolve, reject) {
|
|
460
|
+
var gen = fn.apply(self, args);
|
|
461
|
+
function _next(value) {
|
|
462
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
463
|
+
}
|
|
464
|
+
function _throw(err) {
|
|
465
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
466
|
+
}
|
|
467
|
+
_next(undefined);
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
function _classCallCheck(instance, Constructor) {
|
|
472
|
+
if (!(instance instanceof Constructor)) {
|
|
473
|
+
throw new TypeError("Cannot call a class as a function");
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
function _defineProperties(target, props) {
|
|
477
|
+
for (var i = 0; i < props.length; i++) {
|
|
478
|
+
var descriptor = props[i];
|
|
479
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
480
|
+
descriptor.configurable = true;
|
|
481
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
482
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
486
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
487
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
488
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
489
|
+
writable: false
|
|
490
|
+
});
|
|
491
|
+
return Constructor;
|
|
492
|
+
}
|
|
493
|
+
function _defineProperty(obj, key, value) {
|
|
494
|
+
key = _toPropertyKey(key);
|
|
495
|
+
if (key in obj) {
|
|
496
|
+
Object.defineProperty(obj, key, {
|
|
497
|
+
value: value,
|
|
498
|
+
enumerable: true,
|
|
499
|
+
configurable: true,
|
|
500
|
+
writable: true
|
|
501
|
+
});
|
|
502
|
+
} else {
|
|
503
|
+
obj[key] = value;
|
|
504
|
+
}
|
|
505
|
+
return obj;
|
|
506
|
+
}
|
|
507
|
+
function _inherits(subClass, superClass) {
|
|
508
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
509
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
510
|
+
}
|
|
511
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
512
|
+
constructor: {
|
|
513
|
+
value: subClass,
|
|
514
|
+
writable: true,
|
|
515
|
+
configurable: true
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
Object.defineProperty(subClass, "prototype", {
|
|
519
|
+
writable: false
|
|
520
|
+
});
|
|
521
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
522
|
+
}
|
|
523
|
+
function _getPrototypeOf(o) {
|
|
524
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
525
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
526
|
+
};
|
|
527
|
+
return _getPrototypeOf(o);
|
|
528
|
+
}
|
|
529
|
+
function _setPrototypeOf(o, p) {
|
|
530
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
531
|
+
o.__proto__ = p;
|
|
532
|
+
return o;
|
|
533
|
+
};
|
|
534
|
+
return _setPrototypeOf(o, p);
|
|
535
|
+
}
|
|
536
|
+
function _objectDestructuringEmpty(obj) {
|
|
537
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
538
|
+
}
|
|
539
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
540
|
+
if (source == null) return {};
|
|
541
|
+
var target = {};
|
|
542
|
+
for (var key in source) {
|
|
543
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
544
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
545
|
+
target[key] = source[key];
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
return target;
|
|
549
|
+
}
|
|
550
|
+
function _objectWithoutProperties(source, excluded) {
|
|
551
|
+
if (source == null) return {};
|
|
552
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
553
|
+
var key, i;
|
|
554
|
+
if (Object.getOwnPropertySymbols) {
|
|
555
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
556
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
557
|
+
key = sourceSymbolKeys[i];
|
|
558
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
559
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
560
|
+
target[key] = source[key];
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
return target;
|
|
564
|
+
}
|
|
565
|
+
function _assertThisInitialized(self) {
|
|
566
|
+
if (self === void 0) {
|
|
567
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
576
568
|
}
|
|
569
|
+
return self;
|
|
570
|
+
}
|
|
571
|
+
function _possibleConstructorReturn(self, call) {
|
|
572
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
573
|
+
return call;
|
|
574
|
+
} else if (call !== void 0) {
|
|
575
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
576
|
+
}
|
|
577
|
+
return _assertThisInitialized(self);
|
|
578
|
+
}
|
|
579
|
+
function _slicedToArray(arr, i) {
|
|
580
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
581
|
+
}
|
|
582
|
+
function _toArray(arr) {
|
|
583
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
584
|
+
}
|
|
585
|
+
function _toConsumableArray(arr) {
|
|
586
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
587
|
+
}
|
|
588
|
+
function _arrayWithoutHoles(arr) {
|
|
589
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
590
|
+
}
|
|
591
|
+
function _arrayWithHoles(arr) {
|
|
592
|
+
if (Array.isArray(arr)) return arr;
|
|
593
|
+
}
|
|
594
|
+
function _iterableToArray(iter) {
|
|
595
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
596
|
+
}
|
|
597
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
598
|
+
if (!o) return;
|
|
599
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
600
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
601
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
602
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
603
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
604
|
+
}
|
|
605
|
+
function _arrayLikeToArray(arr, len) {
|
|
606
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
607
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
608
|
+
return arr2;
|
|
609
|
+
}
|
|
610
|
+
function _nonIterableSpread() {
|
|
611
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
612
|
+
}
|
|
613
|
+
function _nonIterableRest() {
|
|
614
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
577
615
|
}
|
|
578
616
|
|
|
579
617
|
var ENUM = {
|
|
@@ -1083,13 +1121,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1083
1121
|
imgHtml.innerHTML = str;
|
|
1084
1122
|
}
|
|
1085
1123
|
// 测试使用 测试类型缩小 end
|
|
1086
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1124
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1087
1125
|
className: "clomnsImg"
|
|
1088
1126
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1089
1127
|
src: url,
|
|
1090
1128
|
width: "16px",
|
|
1091
1129
|
height: "16px"
|
|
1092
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1130
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1093
1131
|
className: "clomnsImg2"
|
|
1094
1132
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1095
1133
|
src: noImg
|
|
@@ -1226,7 +1264,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1226
1264
|
}
|
|
1227
1265
|
save_link.click();
|
|
1228
1266
|
}
|
|
1229
|
-
var
|
|
1267
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1230
1268
|
return data.map(function (item) {
|
|
1231
1269
|
if (!item.name || !item.path) {
|
|
1232
1270
|
return null;
|
|
@@ -1246,7 +1284,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1246
1284
|
authority: item.authority || parentAuthority
|
|
1247
1285
|
});
|
|
1248
1286
|
if (item.routes) {
|
|
1249
|
-
var children =
|
|
1287
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1250
1288
|
// Reduce memory usage
|
|
1251
1289
|
result.children = children;
|
|
1252
1290
|
}
|
|
@@ -1256,7 +1294,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1256
1294
|
return item;
|
|
1257
1295
|
});
|
|
1258
1296
|
};
|
|
1259
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1297
|
+
var memoizeOneFormatter = memoizeOne__default['default'](formatter, isEqual__default['default']);
|
|
1260
1298
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1261
1299
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1262
1300
|
if (backHistoryPath) {
|
|
@@ -1565,7 +1603,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1565
1603
|
// sheepMap是表头字段中英文映射
|
|
1566
1604
|
// sheetCount:表的数量,默认一张
|
|
1567
1605
|
var resolveFile = /*#__PURE__*/function () {
|
|
1568
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1606
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1569
1607
|
var config,
|
|
1570
1608
|
data,
|
|
1571
1609
|
_args = arguments;
|
|
@@ -1604,7 +1642,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1604
1642
|
}();
|
|
1605
1643
|
//读取文件
|
|
1606
1644
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1607
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1645
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1608
1646
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1609
1647
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1610
1648
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1697,14 +1735,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1697
1735
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1698
1736
|
|
|
1699
1737
|
// 获取树平行结构
|
|
1700
|
-
var
|
|
1738
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1701
1739
|
var childrenKey = chilKey || 'children';
|
|
1702
1740
|
treeData.forEach(function (el) {
|
|
1703
1741
|
var _el$childrenKey;
|
|
1704
1742
|
result.push(el);
|
|
1705
1743
|
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) {
|
|
1706
1744
|
// 子级递归
|
|
1707
|
-
|
|
1745
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1708
1746
|
}
|
|
1709
1747
|
});
|
|
1710
1748
|
return result;
|
|
@@ -1981,13 +2019,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1981
2019
|
imgHtml.innerHTML = str;
|
|
1982
2020
|
}
|
|
1983
2021
|
// 测试使用 测试类型缩小 end
|
|
1984
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
2022
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1985
2023
|
className: "clomnsImg"
|
|
1986
2024
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1987
2025
|
src: url,
|
|
1988
2026
|
width: "16px",
|
|
1989
2027
|
height: "16px"
|
|
1990
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2028
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1991
2029
|
src: noImg
|
|
1992
2030
|
}))));
|
|
1993
2031
|
};
|
|
@@ -2049,7 +2087,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2049
2087
|
}
|
|
2050
2088
|
});
|
|
2051
2089
|
};
|
|
2052
|
-
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({
|
|
2090
|
+
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({
|
|
2053
2091
|
disabled: disabled,
|
|
2054
2092
|
onChange: function onChange(e) {
|
|
2055
2093
|
var v = e.target.value;
|
|
@@ -2059,7 +2097,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2059
2097
|
width: 170
|
|
2060
2098
|
},
|
|
2061
2099
|
value: inputValue
|
|
2062
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2100
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2063
2101
|
disabled: disabled,
|
|
2064
2102
|
onBlur: function onBlur(e) {
|
|
2065
2103
|
var v = parseFloat(e.target.value);
|
|
@@ -2438,16 +2476,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2438
2476
|
var handleExportBarCode = handleExport;
|
|
2439
2477
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2440
2478
|
var routerMap = {};
|
|
2441
|
-
var
|
|
2479
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2442
2480
|
data.forEach(function (menuItem) {
|
|
2443
2481
|
if (menuItem.children) {
|
|
2444
|
-
|
|
2482
|
+
flattenMenuData(menuItem.children);
|
|
2445
2483
|
}
|
|
2446
2484
|
// Reduce memory usage
|
|
2447
2485
|
routerMap[menuItem.path] = menuItem;
|
|
2448
2486
|
});
|
|
2449
2487
|
};
|
|
2450
|
-
|
|
2488
|
+
flattenMenuData(menuData);
|
|
2451
2489
|
return routerMap;
|
|
2452
2490
|
};
|
|
2453
2491
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2590,7 +2628,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2590
2628
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2591
2629
|
};
|
|
2592
2630
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2593
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2631
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2594
2632
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2595
2633
|
while (1) switch (_context.prev = _context.next) {
|
|
2596
2634
|
case 0:
|
|
@@ -2681,11 +2719,34 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2681
2719
|
_this = _callSuper(this, DataValidation, [props]);
|
|
2682
2720
|
// this.props.onRef(this);
|
|
2683
2721
|
_this.getCount = function () {
|
|
2684
|
-
var
|
|
2722
|
+
var _this$state$resultDat = _this.state.resultData,
|
|
2723
|
+
resultData = _this$state$resultDat === void 0 ? [] : _this$state$resultDat;
|
|
2724
|
+
var totalQuantity = resultData.reduce(function (total, item) {
|
|
2725
|
+
total += Number(item.quantity || 0);
|
|
2726
|
+
return total;
|
|
2727
|
+
}, 0);
|
|
2728
|
+
var totalSuccessQuantity = resultData.filter(function (item) {
|
|
2729
|
+
return item.flag;
|
|
2730
|
+
}).reduce(function (total, item) {
|
|
2731
|
+
total += Number(item.quantity || 0);
|
|
2732
|
+
return total;
|
|
2733
|
+
}, 0);
|
|
2734
|
+
var totalErrorQuantity = resultData.filter(function (item) {
|
|
2735
|
+
return !item.flag;
|
|
2736
|
+
}).reduce(function (total, item) {
|
|
2737
|
+
total += Number(item.quantity || 0);
|
|
2738
|
+
return total;
|
|
2739
|
+
}, 0);
|
|
2685
2740
|
return {
|
|
2686
2741
|
total: resultData.length,
|
|
2742
|
+
totalQuantity: totalQuantity,
|
|
2743
|
+
totalSuccessQuantity: totalSuccessQuantity,
|
|
2744
|
+
totalErrorQuantity: totalErrorQuantity,
|
|
2687
2745
|
error: resultData.filter(function (item) {
|
|
2688
2746
|
return !item.flag;
|
|
2747
|
+
}).length,
|
|
2748
|
+
success: resultData.filter(function (item) {
|
|
2749
|
+
return item.flag;
|
|
2689
2750
|
}).length
|
|
2690
2751
|
};
|
|
2691
2752
|
};
|
|
@@ -2694,7 +2755,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2694
2755
|
var notValid = _this.props.notValid;
|
|
2695
2756
|
return {
|
|
2696
2757
|
container: 'luckysheet',
|
|
2697
|
-
showtoolbar: false,
|
|
2758
|
+
// showtoolbar: false,
|
|
2698
2759
|
hook: {
|
|
2699
2760
|
columnTitleCellRenderBefore: function columnTitleCellRenderBefore(columnAbc, postion, ctx) {
|
|
2700
2761
|
if (columnAbc.name) {
|
|
@@ -2731,17 +2792,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2731
2792
|
// console.info(data,sheetFile,ctx)
|
|
2732
2793
|
}
|
|
2733
2794
|
},
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
// currencyFormat: false, //货币格式
|
|
2738
|
-
// percentageFormat: false, //百分比格式
|
|
2739
|
-
// numberDecrease: false, // '减少小数位数'
|
|
2740
|
-
// numberIncrease: false, // '增加小数位数
|
|
2741
|
-
// moreFormats: false, // '更多格式'
|
|
2742
|
-
// font: true, // '字体'
|
|
2743
|
-
// fontSize: true, // '字号大小'
|
|
2744
|
-
// },
|
|
2795
|
+
showtoolbarConfig: {
|
|
2796
|
+
sortAndFilter: true
|
|
2797
|
+
},
|
|
2745
2798
|
data: [_defineProperty(_defineProperty({
|
|
2746
2799
|
name: 'Cell',
|
|
2747
2800
|
color: '',
|
|
@@ -2865,7 +2918,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2865
2918
|
showsheetbar: false,
|
|
2866
2919
|
optionstate: false,
|
|
2867
2920
|
showstatisticBarConfig: {
|
|
2868
|
-
count:
|
|
2921
|
+
count: true,
|
|
2869
2922
|
view: false,
|
|
2870
2923
|
zoom: false // 缩放
|
|
2871
2924
|
},
|
|
@@ -2920,6 +2973,44 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
2920
2973
|
return ___default['default'].compact(Object.values(d)).length;
|
|
2921
2974
|
});
|
|
2922
2975
|
};
|
|
2976
|
+
_this.naturalCompare = function (a, b) {
|
|
2977
|
+
var checkNumber = function checkNumber(value) {
|
|
2978
|
+
return /^[-+]?(\d+\.?\d*|\.\d+)([eE][-+]?\d+)?$/.test(value.trim());
|
|
2979
|
+
};
|
|
2980
|
+
if (checkNumber(a) && checkNumber(b)) {
|
|
2981
|
+
return Number(a) - Number(b);
|
|
2982
|
+
}
|
|
2983
|
+
// 优先处理 "通过" 的情况
|
|
2984
|
+
if (a === "通过" && b !== "通过") return -1;
|
|
2985
|
+
if (b === "通过" && a !== "通过") return 1;
|
|
2986
|
+
return a.localeCompare(b);
|
|
2987
|
+
};
|
|
2988
|
+
_this.customSort = function (a, b) {
|
|
2989
|
+
// 处理空值
|
|
2990
|
+
var aEmpty = !a;
|
|
2991
|
+
var bEmpty = !b;
|
|
2992
|
+
if (aEmpty && bEmpty) return 0;
|
|
2993
|
+
if (aEmpty) return 1; // a空,排后面
|
|
2994
|
+
if (bEmpty) return -1; // b空,a排前面
|
|
2995
|
+
return _this.naturalCompare(a, b);
|
|
2996
|
+
};
|
|
2997
|
+
_this.sortData = function (sorterKey) {
|
|
2998
|
+
var sheetData = luckysheet.getSheetData();
|
|
2999
|
+
var newData = JSON.parse(JSON.stringify(sheetData)).sort(function (cur, prev) {
|
|
3000
|
+
var _cur$cellIndex, _prev$cellIndex;
|
|
3001
|
+
var cellIndex = itemsTemp.findIndex(function (item) {
|
|
3002
|
+
return item.code === sorterKey;
|
|
3003
|
+
});
|
|
3004
|
+
if (sorterKey === 'checkresult') {
|
|
3005
|
+
cellIndex = itemsTemp.length;
|
|
3006
|
+
}
|
|
3007
|
+
return _this.customSort((_cur$cellIndex = cur[cellIndex]) === null || _cur$cellIndex === void 0 ? void 0 : _cur$cellIndex.v, (_prev$cellIndex = prev[cellIndex]) === null || _prev$cellIndex === void 0 ? void 0 : _prev$cellIndex.v);
|
|
3008
|
+
});
|
|
3009
|
+
luckysheet.create(_this.setConfig(luckysheet.transToCellData(newData)));
|
|
3010
|
+
_this.setState({
|
|
3011
|
+
data: luckysheet.transToCellData(newData)
|
|
3012
|
+
});
|
|
3013
|
+
};
|
|
2923
3014
|
_this.resetData = function () {
|
|
2924
3015
|
var _customerColumnsMappi;
|
|
2925
3016
|
var _this$props = _this.props,
|
|
@@ -3102,10 +3193,43 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3102
3193
|
});
|
|
3103
3194
|
}), provided.placeholder);
|
|
3104
3195
|
}))));
|
|
3196
|
+
_this.getSortList = function () {
|
|
3197
|
+
var _this$props2, _this$props2$customer;
|
|
3198
|
+
var sortList = [];
|
|
3199
|
+
if ((_this$props2 = _this.props) === null || _this$props2 === void 0 ? void 0 : (_this$props2$customer = _this$props2.customerColumnsMapping) === null || _this$props2$customer === void 0 ? void 0 : _this$props2$customer.length) {
|
|
3200
|
+
var _this$props3, _this$props3$customer;
|
|
3201
|
+
sortList = ((_this$props3 = _this.props) === null || _this$props3 === void 0 ? void 0 : (_this$props3$customer = _this$props3.customerColumnsMapping) === null || _this$props3$customer === void 0 ? void 0 : _this$props3$customer.map(function (item, index) {
|
|
3202
|
+
return createItem('item-0', index, item.title, item.name, _this.format);
|
|
3203
|
+
})) || [];
|
|
3204
|
+
} else {
|
|
3205
|
+
var _this$props4, _this$props4$columns;
|
|
3206
|
+
sortList = ((_this$props4 = _this.props) === null || _this$props4 === void 0 ? void 0 : (_this$props4$columns = _this$props4.columns) === null || _this$props4$columns === void 0 ? void 0 : _this$props4$columns.map(function (item, index) {
|
|
3207
|
+
if (!mapping.get(item)) throw Error("".concat(item, " is not in DataValidation component, please fix this error"));
|
|
3208
|
+
return createItem('item-0', index, mapping.get(item), item, _this.format);
|
|
3209
|
+
})) || [];
|
|
3210
|
+
}
|
|
3211
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, (sortList || []).map(function (item, index) {
|
|
3212
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, {
|
|
3213
|
+
key: index,
|
|
3214
|
+
className: "sheet_table-menu_item_text"
|
|
3215
|
+
}, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
3216
|
+
onClick: function onClick() {
|
|
3217
|
+
return _this.sortData(item.code);
|
|
3218
|
+
}
|
|
3219
|
+
}, item.content)), /*#__PURE__*/React__default['default'].createElement(antd.Menu.Divider, null));
|
|
3220
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, {
|
|
3221
|
+
key: "checkresult",
|
|
3222
|
+
className: "sheet_table-menu_item_text"
|
|
3223
|
+
}, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
3224
|
+
onClick: function onClick() {
|
|
3225
|
+
return _this.sortData('checkresult');
|
|
3226
|
+
}
|
|
3227
|
+
}, "\u6821\u9A8C\u7ED3\u679C")));
|
|
3228
|
+
};
|
|
3105
3229
|
_this.getSheetMap = function () {
|
|
3106
|
-
var _this$
|
|
3107
|
-
customerColumnsMapping = _this$
|
|
3108
|
-
columns = _this$
|
|
3230
|
+
var _this$props5 = _this.props,
|
|
3231
|
+
customerColumnsMapping = _this$props5.customerColumnsMapping,
|
|
3232
|
+
columns = _this$props5.columns;
|
|
3109
3233
|
var sheetData = customerColumnsMapping || columns.map(function (s) {
|
|
3110
3234
|
return {
|
|
3111
3235
|
title: mapping.get(s),
|
|
@@ -3196,12 +3320,12 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3196
3320
|
key: "render",
|
|
3197
3321
|
value: function render() {
|
|
3198
3322
|
var errorListCheck = this.state.errorListCheck;
|
|
3199
|
-
var _this$
|
|
3200
|
-
title = _this$
|
|
3201
|
-
notValid = _this$
|
|
3202
|
-
notExcelImport = _this$
|
|
3203
|
-
excelImportConfig = _this$
|
|
3204
|
-
getTemplate = _this$
|
|
3323
|
+
var _this$props6 = this.props,
|
|
3324
|
+
title = _this$props6.title,
|
|
3325
|
+
notValid = _this$props6.notValid,
|
|
3326
|
+
notExcelImport = _this$props6.notExcelImport,
|
|
3327
|
+
excelImportConfig = _this$props6.excelImportConfig,
|
|
3328
|
+
getTemplate = _this$props6.getTemplate;
|
|
3205
3329
|
var _ref5 = excelImportConfig || {},
|
|
3206
3330
|
size = _ref5.size,
|
|
3207
3331
|
accept = _ref5.accept,
|
|
@@ -3257,6 +3381,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3257
3381
|
left: '0px',
|
|
3258
3382
|
top: '0px'
|
|
3259
3383
|
};
|
|
3384
|
+
console.log('itemsTemp', itemsTemp);
|
|
3260
3385
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3261
3386
|
className: "sheet_table_top"
|
|
3262
3387
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u6392\u5E8F\u5217"), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
@@ -3269,13 +3394,17 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3269
3394
|
style: {
|
|
3270
3395
|
color: 'red'
|
|
3271
3396
|
}
|
|
3272
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, getTemplate && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
3397
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, getTemplate && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
3273
3398
|
onClick: getTemplate
|
|
3274
3399
|
}, "\u4E0B\u8F7D\u6A21\u677F")), /*#__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, {
|
|
3275
3400
|
trigger: ['click'],
|
|
3276
3401
|
overlay: this.menuList,
|
|
3277
3402
|
placement: "bottomRight"
|
|
3278
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u6E05\u7A7A", /*#__PURE__*/React__default['default'].createElement(icons.DownOutlined, null))),
|
|
3403
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u6E05\u7A7A", /*#__PURE__*/React__default['default'].createElement(icons.DownOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3404
|
+
trigger: ['click'],
|
|
3405
|
+
overlay: this.getSortList(),
|
|
3406
|
+
placement: "bottomRight"
|
|
3407
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u6392\u5E8F", /*#__PURE__*/React__default['default'].createElement(icons.DownOutlined, null))), !notValid && /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
3279
3408
|
type: "primary",
|
|
3280
3409
|
onClick: this.resetData
|
|
3281
3410
|
}, "\u8BC6\u522B"))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -3286,11 +3415,31 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3286
3415
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3287
3416
|
id: "luckysheet",
|
|
3288
3417
|
style: luckyCss
|
|
3289
|
-
})), !this.props.notValid && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3418
|
+
})), !this.props.notValid && !!totalSummary.total && /*#__PURE__*/React__default['default'].createElement("div", {
|
|
3290
3419
|
className: "sheet_table_footer"
|
|
3291
3420
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
3292
3421
|
className: "sheet_table_footer_l"
|
|
3293
|
-
}, "\u5171 ", totalSummary.total, " \u6761\u6570\u636E
|
|
3422
|
+
}, "\u5171 ", totalSummary.total, " \u6761\u6570\u636E\uFF1A", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
3423
|
+
style: {
|
|
3424
|
+
color: 'green',
|
|
3425
|
+
marginLeft: '5px'
|
|
3426
|
+
}
|
|
3427
|
+
}, " \u6210\u529F\u6761\u6570\uFF1A"), totalSummary.success, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
3428
|
+
style: {
|
|
3429
|
+
color: 'green',
|
|
3430
|
+
marginLeft: '5px'
|
|
3431
|
+
}
|
|
3432
|
+
}, " \u6210\u529F\u6570\u91CF\uFF1A"), totalSummary.totalSuccessQuantity || 0, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
3433
|
+
style: {
|
|
3434
|
+
color: 'red',
|
|
3435
|
+
marginLeft: '5px'
|
|
3436
|
+
}
|
|
3437
|
+
}, " \u5931\u8D25\u6761\u6570\uFF1A"), totalSummary.error || 0, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
3438
|
+
style: {
|
|
3439
|
+
color: 'red',
|
|
3440
|
+
marginLeft: '5px'
|
|
3441
|
+
}
|
|
3442
|
+
}, " \u5931\u8D25\u6570\u91CF\uFF1A"), totalSummary.totalErrorQuantity || 0), !notValid && /*#__PURE__*/React__default['default'].createElement(antd.Space, {
|
|
3294
3443
|
className: "sheet_table_footer_r"
|
|
3295
3444
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
3296
3445
|
checked: errorListCheck,
|
|
@@ -3946,7 +4095,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3946
4095
|
placement: "bottomLeft"
|
|
3947
4096
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3948
4097
|
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"))
|
|
3949
|
-
}, /*#__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, {
|
|
4098
|
+
}, /*#__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, {
|
|
3950
4099
|
trigger: ['click'],
|
|
3951
4100
|
overlay: this.menuList,
|
|
3952
4101
|
placement: "bottomRight"
|
|
@@ -4470,7 +4619,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref4) {
|
|
|
4470
4619
|
destroyTooltipOnHide: true,
|
|
4471
4620
|
placement: "topRight",
|
|
4472
4621
|
autoAdjustOverflow: false,
|
|
4473
|
-
title: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4622
|
+
title: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4474
4623
|
style: {
|
|
4475
4624
|
margin: '6px 8px 0px'
|
|
4476
4625
|
},
|
|
@@ -4772,10 +4921,10 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4772
4921
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4773
4922
|
});
|
|
4774
4923
|
},
|
|
4775
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4924
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4776
4925
|
size: "small",
|
|
4777
4926
|
className: 'searchSelectSpin'
|
|
4778
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4927
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4779
4928
|
style: {
|
|
4780
4929
|
textAlign: 'center'
|
|
4781
4930
|
}
|
|
@@ -5007,7 +5156,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5007
5156
|
title: item.name,
|
|
5008
5157
|
className: "propertyGroup_checkbox_container"
|
|
5009
5158
|
}, item.name));
|
|
5010
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5159
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5011
5160
|
style: {
|
|
5012
5161
|
width: '50px',
|
|
5013
5162
|
cursor: 'pointer',
|
|
@@ -5020,7 +5169,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
5020
5169
|
setShowNotCommon(!showNotCommon);
|
|
5021
5170
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
5022
5171
|
}
|
|
5023
|
-
}, 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"))))));
|
|
5172
|
+
}, 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"))))));
|
|
5024
5173
|
};
|
|
5025
5174
|
var PropertyGroup$1 = /*#__PURE__*/React__default['default'].memo(PropertyGroup, function (props, nextProps) {
|
|
5026
5175
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5250,7 +5399,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5250
5399
|
propertyData: item,
|
|
5251
5400
|
handleProperyItemChange: handleProperyItemChange
|
|
5252
5401
|
});
|
|
5253
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5402
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5254
5403
|
style: {
|
|
5255
5404
|
width: '50px',
|
|
5256
5405
|
cursor: 'pointer',
|
|
@@ -5260,7 +5409,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5260
5409
|
onClick: function onClick() {
|
|
5261
5410
|
return setShowNotCommon(!showNotCommon);
|
|
5262
5411
|
}
|
|
5263
|
-
}, 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"))))))));
|
|
5412
|
+
}, 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"))))))));
|
|
5264
5413
|
};
|
|
5265
5414
|
|
|
5266
5415
|
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
@@ -6378,13 +6527,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6378
6527
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6379
6528
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6380
6529
|
className: 'search_select'
|
|
6381
|
-
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6530
|
+
}, fieldComponent ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6382
6531
|
onClick: function onClick() {
|
|
6383
6532
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6384
6533
|
(_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);
|
|
6385
6534
|
showModal();
|
|
6386
6535
|
}
|
|
6387
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6536
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6388
6537
|
title: getShowStr({
|
|
6389
6538
|
viewShowValueStr: viewShowValueStr,
|
|
6390
6539
|
labelInValue: labelInValue,
|
|
@@ -6423,10 +6572,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6423
6572
|
dropdownRender: function dropdownRender(menu) {
|
|
6424
6573
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6425
6574
|
},
|
|
6426
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6575
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6427
6576
|
size: "small",
|
|
6428
6577
|
className: 'searchSelectSpin'
|
|
6429
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6578
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6430
6579
|
style: {
|
|
6431
6580
|
textAlign: 'center'
|
|
6432
6581
|
}
|
|
@@ -6466,7 +6615,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6466
6615
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6467
6616
|
filterTxt: searchValue
|
|
6468
6617
|
}));
|
|
6469
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6618
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6470
6619
|
maskClosable: false,
|
|
6471
6620
|
destroyOnClose: true,
|
|
6472
6621
|
width: "calc(100% - 320px)",
|
|
@@ -7065,7 +7214,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7065
7214
|
style: {
|
|
7066
7215
|
width: 525
|
|
7067
7216
|
}
|
|
7068
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
7217
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
7069
7218
|
checked: !dataSource.some(function (item) {
|
|
7070
7219
|
if (item.hidden) return true;
|
|
7071
7220
|
return false;
|
|
@@ -7103,13 +7252,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
7103
7252
|
_this2.onChange(e, item.title);
|
|
7104
7253
|
}
|
|
7105
7254
|
}, item.title);
|
|
7106
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
7255
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7107
7256
|
style: {
|
|
7108
7257
|
width: '144px'
|
|
7109
7258
|
}
|
|
7110
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
7259
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7111
7260
|
className: 'sort_table_column_all_empty'
|
|
7112
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7261
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7113
7262
|
className: 'sort_table_column_special'
|
|
7114
7263
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7115
7264
|
className: 'sort_table_column_all'
|
|
@@ -7298,7 +7447,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7298
7447
|
});
|
|
7299
7448
|
};
|
|
7300
7449
|
// 格式化树选择器数据源
|
|
7301
|
-
var
|
|
7450
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7302
7451
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7303
7452
|
return {
|
|
7304
7453
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7308,7 +7457,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7308
7457
|
isLeaf: !haveChildren,
|
|
7309
7458
|
disabled: haveChildren,
|
|
7310
7459
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7311
|
-
return
|
|
7460
|
+
return mapSearchTree(i, resKeyValue);
|
|
7312
7461
|
}) : []
|
|
7313
7462
|
};
|
|
7314
7463
|
};
|
|
@@ -7317,7 +7466,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7317
7466
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7318
7467
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7319
7468
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7320
|
-
return
|
|
7469
|
+
return mapSearchTree(ites, resKeyValue);
|
|
7321
7470
|
}) || [];
|
|
7322
7471
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7323
7472
|
};
|
|
@@ -7489,7 +7638,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7489
7638
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7490
7639
|
// FIXME: 特殊业务逻辑
|
|
7491
7640
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7492
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7641
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7493
7642
|
var result;
|
|
7494
7643
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7495
7644
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7742,7 +7891,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7742
7891
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7743
7892
|
value: text || null,
|
|
7744
7893
|
onChange: function () {
|
|
7745
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7894
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7746
7895
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7747
7896
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7748
7897
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8350,10 +8499,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8350
8499
|
var newColumns = arr.map(function (col) {
|
|
8351
8500
|
return _objectSpread2({}, col);
|
|
8352
8501
|
});
|
|
8353
|
-
var
|
|
8502
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8354
8503
|
var i = indexArr.shift();
|
|
8355
8504
|
if (indexArr.length > 0) {
|
|
8356
|
-
|
|
8505
|
+
handleIndex(arr[i].children, indexArr);
|
|
8357
8506
|
} else {
|
|
8358
8507
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8359
8508
|
width: size.width
|
|
@@ -8361,7 +8510,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8361
8510
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8362
8511
|
}
|
|
8363
8512
|
};
|
|
8364
|
-
|
|
8513
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8365
8514
|
callback(newColumns);
|
|
8366
8515
|
};
|
|
8367
8516
|
};
|
|
@@ -8371,13 +8520,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8371
8520
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8372
8521
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8373
8522
|
};
|
|
8374
|
-
var
|
|
8523
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8375
8524
|
arr.forEach(function (item, index) {
|
|
8376
8525
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8377
8526
|
return i || i === 0;
|
|
8378
8527
|
});
|
|
8379
8528
|
if (noEmptyArray$1(item.children)) {
|
|
8380
|
-
|
|
8529
|
+
handleColumns(item.children, indexArrInside);
|
|
8381
8530
|
} else {
|
|
8382
8531
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8383
8532
|
item.onHeaderCell = function (column) {
|
|
@@ -8393,14 +8542,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8393
8542
|
handleAntdColumnsSpecialParams(item);
|
|
8394
8543
|
return _objectSpread2({}, item);
|
|
8395
8544
|
});
|
|
8396
|
-
|
|
8545
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
8397
8546
|
return setShowToChooseColumnsCallback(res);
|
|
8398
8547
|
});
|
|
8399
8548
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8400
8549
|
handleAntdColumnsSpecialParams(item);
|
|
8401
8550
|
return _objectSpread2({}, item);
|
|
8402
8551
|
});
|
|
8403
|
-
|
|
8552
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8404
8553
|
return setShowColumnsCallback(res);
|
|
8405
8554
|
});
|
|
8406
8555
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8411,7 +8560,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8411
8560
|
id: "add_select_div_".concat(uniqueValue)
|
|
8412
8561
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
8413
8562
|
onClick: handleShowModal
|
|
8414
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8563
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8415
8564
|
width: "calc(100% - 320px)",
|
|
8416
8565
|
style: {
|
|
8417
8566
|
top: 20
|
|
@@ -9325,7 +9474,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9325
9474
|
});
|
|
9326
9475
|
};
|
|
9327
9476
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9328
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9477
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9329
9478
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9330
9479
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9331
9480
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9408,10 +9557,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9408
9557
|
var newColumns = arr.map(function (col) {
|
|
9409
9558
|
return _objectSpread2({}, col);
|
|
9410
9559
|
});
|
|
9411
|
-
var
|
|
9560
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
9412
9561
|
var i = indexArr.shift();
|
|
9413
9562
|
if (indexArr.length > 0) {
|
|
9414
|
-
|
|
9563
|
+
handleIndex(arr[i].children, indexArr);
|
|
9415
9564
|
} else {
|
|
9416
9565
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9417
9566
|
width: size.width
|
|
@@ -9419,17 +9568,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9419
9568
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9420
9569
|
}
|
|
9421
9570
|
};
|
|
9422
|
-
|
|
9571
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
9423
9572
|
callback(newColumns);
|
|
9424
9573
|
};
|
|
9425
9574
|
};
|
|
9426
|
-
var
|
|
9575
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9427
9576
|
arr.forEach(function (item, index) {
|
|
9428
9577
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9429
9578
|
return i || i === 0;
|
|
9430
9579
|
});
|
|
9431
9580
|
if (noEmptyArray$1(item.children)) {
|
|
9432
|
-
|
|
9581
|
+
handleColumns(item.children, indexArrInside);
|
|
9433
9582
|
} else {
|
|
9434
9583
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9435
9584
|
item.onHeaderCell = function (column) {
|
|
@@ -9445,7 +9594,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9445
9594
|
handleAntdColumnsSpecialParams(item);
|
|
9446
9595
|
return _objectSpread2({}, item);
|
|
9447
9596
|
});
|
|
9448
|
-
|
|
9597
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9449
9598
|
return setShowColumnsCallback(res);
|
|
9450
9599
|
});
|
|
9451
9600
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -9761,7 +9910,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9761
9910
|
});
|
|
9762
9911
|
};
|
|
9763
9912
|
// 格式化树选择器数据源
|
|
9764
|
-
var
|
|
9913
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9765
9914
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9766
9915
|
return {
|
|
9767
9916
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9771,7 +9920,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9771
9920
|
isLeaf: !haveChildren,
|
|
9772
9921
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9773
9922
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9774
|
-
return
|
|
9923
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9775
9924
|
}) : []
|
|
9776
9925
|
};
|
|
9777
9926
|
};
|
|
@@ -9785,7 +9934,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9785
9934
|
disabledJudge = false;
|
|
9786
9935
|
}
|
|
9787
9936
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9788
|
-
return
|
|
9937
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9789
9938
|
}) || [];
|
|
9790
9939
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9791
9940
|
};
|
|
@@ -14106,7 +14255,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
14106
14255
|
};
|
|
14107
14256
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
14108
14257
|
onClick: handleShowModal
|
|
14109
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14258
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
14110
14259
|
onOk: handleOk,
|
|
14111
14260
|
onCancel: handleCancel,
|
|
14112
14261
|
destroyOnClose: true,
|
|
@@ -14225,7 +14374,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14225
14374
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
14226
14375
|
_remoteSource$special = remoteSource.specialBracket,
|
|
14227
14376
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
14228
|
-
var
|
|
14377
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
14229
14378
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
14230
14379
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
14231
14380
|
return {
|
|
@@ -14237,7 +14386,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14237
14386
|
isLeaf: !haveChildren,
|
|
14238
14387
|
disabled: isDisabled(haveChildren, isRoot),
|
|
14239
14388
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
14240
|
-
return
|
|
14389
|
+
return mapSearchTree(i);
|
|
14241
14390
|
}) : []
|
|
14242
14391
|
};
|
|
14243
14392
|
};
|
|
@@ -14255,8 +14404,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14255
14404
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
14256
14405
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
14257
14406
|
headers: headers
|
|
14258
|
-
}).then(/*#__PURE__*/function () {
|
|
14259
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14407
|
+
}).then( /*#__PURE__*/function () {
|
|
14408
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
14260
14409
|
var _ctx$form;
|
|
14261
14410
|
var resData, coverData, data, dataList;
|
|
14262
14411
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -14283,7 +14432,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14283
14432
|
case 9:
|
|
14284
14433
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
14285
14434
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
14286
|
-
return
|
|
14435
|
+
return mapSearchTree(ites);
|
|
14287
14436
|
}) || [];
|
|
14288
14437
|
case 11:
|
|
14289
14438
|
_context.next = 14;
|
|
@@ -14321,11 +14470,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14321
14470
|
return _formatResult;
|
|
14322
14471
|
}
|
|
14323
14472
|
};
|
|
14324
|
-
var
|
|
14473
|
+
var parallelData = function parallelData(data, result) {
|
|
14325
14474
|
data.forEach(function (i) {
|
|
14326
14475
|
result.push(i);
|
|
14327
14476
|
if (i[treeChildrenRoom]) {
|
|
14328
|
-
|
|
14477
|
+
parallelData(i[treeChildrenRoom], result);
|
|
14329
14478
|
}
|
|
14330
14479
|
});
|
|
14331
14480
|
return result;
|
|
@@ -14365,7 +14514,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14365
14514
|
var _ctx$form2;
|
|
14366
14515
|
var handleData = formatData(data);
|
|
14367
14516
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
14368
|
-
var parallelTreeData =
|
|
14517
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14369
14518
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
14370
14519
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
14371
14520
|
onChangeName && onChangeName(dataName);
|
|
@@ -14408,7 +14557,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14408
14557
|
var getShowStr = function getShowStr() {
|
|
14409
14558
|
var isMultiple = multiple || treeCheckable;
|
|
14410
14559
|
var kongValue = '无';
|
|
14411
|
-
var parallelTreeData =
|
|
14560
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
14412
14561
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14413
14562
|
if (isMultiple) {
|
|
14414
14563
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14420,7 +14569,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14420
14569
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14421
14570
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14422
14571
|
className: 'tree_search_select'
|
|
14423
|
-
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14572
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14424
14573
|
title: getShowStr(),
|
|
14425
14574
|
style: {
|
|
14426
14575
|
overflow: 'hidden',
|
|
@@ -14428,7 +14577,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14428
14577
|
whiteSpace: 'nowrap'
|
|
14429
14578
|
},
|
|
14430
14579
|
className: 'search_select_show'
|
|
14431
|
-
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14580
|
+
}, getShowStr())) : ( /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14432
14581
|
treeCheckable: treeCheckable,
|
|
14433
14582
|
maxTagCount: maxTagCount,
|
|
14434
14583
|
showSearch: showSearch,
|
|
@@ -14625,7 +14774,7 @@ var index$2 = (function (props) {
|
|
|
14625
14774
|
} : {}
|
|
14626
14775
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14627
14776
|
className: 'status-label-operate'
|
|
14628
|
-
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14777
|
+
}, item.isDone ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14629
14778
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14630
14779
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14631
14780
|
style: {
|
|
@@ -15406,7 +15555,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15406
15555
|
style: {
|
|
15407
15556
|
width: 525
|
|
15408
15557
|
}
|
|
15409
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15558
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15410
15559
|
checked: !dataSource.some(function (item) {
|
|
15411
15560
|
if (item.hidden) return true;
|
|
15412
15561
|
return false;
|
|
@@ -15444,13 +15593,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15444
15593
|
_this2.onChange(e, item.title);
|
|
15445
15594
|
}
|
|
15446
15595
|
}, item.title);
|
|
15447
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
15596
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15448
15597
|
style: {
|
|
15449
15598
|
width: '144px'
|
|
15450
15599
|
}
|
|
15451
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
15600
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15452
15601
|
className: 'sort_table_column_all_empty'
|
|
15453
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15602
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15454
15603
|
className: 'sort_table_column_special'
|
|
15455
15604
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15456
15605
|
className: 'sort_table_column_all'
|
|
@@ -15629,10 +15778,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15629
15778
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15630
15779
|
return _objectSpread2({}, col);
|
|
15631
15780
|
});
|
|
15632
|
-
var
|
|
15781
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15633
15782
|
var i = indexArr.shift();
|
|
15634
15783
|
if (indexArr.length > 0) {
|
|
15635
|
-
|
|
15784
|
+
handleIndex(arr[i].children, indexArr);
|
|
15636
15785
|
} else {
|
|
15637
15786
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15638
15787
|
width: size.width
|
|
@@ -15640,7 +15789,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15640
15789
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15641
15790
|
}
|
|
15642
15791
|
};
|
|
15643
|
-
|
|
15792
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15644
15793
|
_this.setState({
|
|
15645
15794
|
showColumns: _toConsumableArray(newColumns)
|
|
15646
15795
|
});
|
|
@@ -15681,7 +15830,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15681
15830
|
};
|
|
15682
15831
|
setIsResizing(true);
|
|
15683
15832
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15684
|
-
document.addEventListener('mouseup',
|
|
15833
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
15685
15834
|
};
|
|
15686
15835
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15687
15836
|
e.stopPropagation();
|
|
@@ -15697,9 +15846,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15697
15846
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15698
15847
|
}
|
|
15699
15848
|
};
|
|
15700
|
-
var
|
|
15849
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15701
15850
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15702
|
-
document.removeEventListener('mouseup',
|
|
15851
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15703
15852
|
setIsResizing(false);
|
|
15704
15853
|
};
|
|
15705
15854
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15820,13 +15969,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15820
15969
|
showSummary = summary;
|
|
15821
15970
|
}
|
|
15822
15971
|
}
|
|
15823
|
-
var
|
|
15972
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15824
15973
|
arr.forEach(function (item, index) {
|
|
15825
15974
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15826
15975
|
return i || i === 0;
|
|
15827
15976
|
});
|
|
15828
15977
|
if (noEmptyArray$1(item.children)) {
|
|
15829
|
-
|
|
15978
|
+
handleColumns(item.children, indexArrInside);
|
|
15830
15979
|
} else {
|
|
15831
15980
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15832
15981
|
item.onHeaderCell = function (column) {
|
|
@@ -15842,7 +15991,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15842
15991
|
handleBssulaColumnsSpecialParams(item);
|
|
15843
15992
|
return _objectSpread2({}, item);
|
|
15844
15993
|
});
|
|
15845
|
-
|
|
15994
|
+
handleColumns(showCol, []);
|
|
15846
15995
|
if (dynamicColumns.length) {
|
|
15847
15996
|
showCol = this.handledynamicColumns(showCol);
|
|
15848
15997
|
}
|
|
@@ -15883,7 +16032,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15883
16032
|
cell: this.ResizeableTitle
|
|
15884
16033
|
}
|
|
15885
16034
|
}
|
|
15886
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
16035
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15887
16036
|
summary: summary
|
|
15888
16037
|
})));
|
|
15889
16038
|
}
|
|
@@ -15980,10 +16129,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15980
16129
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15981
16130
|
return _objectSpread2({}, col);
|
|
15982
16131
|
});
|
|
15983
|
-
var
|
|
16132
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15984
16133
|
var i = indexArr.shift();
|
|
15985
16134
|
if (indexArr.length > 0) {
|
|
15986
|
-
|
|
16135
|
+
handleIndex(arr[i].children, indexArr);
|
|
15987
16136
|
} else {
|
|
15988
16137
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15989
16138
|
width: size.width
|
|
@@ -15991,7 +16140,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15991
16140
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15992
16141
|
}
|
|
15993
16142
|
};
|
|
15994
|
-
|
|
16143
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15995
16144
|
_this.setState({
|
|
15996
16145
|
showColumns: _toConsumableArray(newColumns)
|
|
15997
16146
|
});
|
|
@@ -16067,13 +16216,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16067
16216
|
showSummary = summary;
|
|
16068
16217
|
}
|
|
16069
16218
|
}
|
|
16070
|
-
var
|
|
16219
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
16071
16220
|
arr.forEach(function (item, index) {
|
|
16072
16221
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
16073
16222
|
return i || i === 0;
|
|
16074
16223
|
});
|
|
16075
16224
|
if (noEmptyArray$1(item.children)) {
|
|
16076
|
-
|
|
16225
|
+
handleColumns(item.children, indexArrInside);
|
|
16077
16226
|
} else {
|
|
16078
16227
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
16079
16228
|
item.onHeaderCell = function (column) {
|
|
@@ -16089,7 +16238,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16089
16238
|
handleAntdColumnsSpecialParams(item);
|
|
16090
16239
|
return _objectSpread2({}, item);
|
|
16091
16240
|
});
|
|
16092
|
-
|
|
16241
|
+
handleColumns(showCol, []);
|
|
16093
16242
|
if (dynamicColumns.length) {
|
|
16094
16243
|
showCol = this.handledynamicColumns(showCol);
|
|
16095
16244
|
}
|
|
@@ -16129,7 +16278,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16129
16278
|
cell: this.ResizeableTitle
|
|
16130
16279
|
}
|
|
16131
16280
|
}
|
|
16132
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
16281
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
16133
16282
|
summary: summary
|
|
16134
16283
|
})));
|
|
16135
16284
|
}
|
|
@@ -16189,7 +16338,7 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
16189
16338
|
};
|
|
16190
16339
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
16191
16340
|
var routerMap = {};
|
|
16192
|
-
var
|
|
16341
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
16193
16342
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
16194
16343
|
data.forEach(function (menuItem) {
|
|
16195
16344
|
// 面包屑路径,增加显示一级导航路径显示
|
|
@@ -16204,13 +16353,13 @@ var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
|
16204
16353
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
16205
16354
|
});
|
|
16206
16355
|
if (newMenuItem.children) {
|
|
16207
|
-
|
|
16356
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
16208
16357
|
}
|
|
16209
16358
|
// Reduce memory usage
|
|
16210
16359
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
16211
16360
|
});
|
|
16212
16361
|
};
|
|
16213
|
-
|
|
16362
|
+
flattenMenuData(menuData, {
|
|
16214
16363
|
isMenuRoot: true
|
|
16215
16364
|
});
|
|
16216
16365
|
return routerMap;
|
|
@@ -16575,7 +16724,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16575
16724
|
display: 'flex',
|
|
16576
16725
|
gap: '8px'
|
|
16577
16726
|
}
|
|
16578
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16727
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16579
16728
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16580
16729
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16581
16730
|
onClick: function onClick() {
|
|
@@ -16583,7 +16732,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16583
16732
|
},
|
|
16584
16733
|
width: 24,
|
|
16585
16734
|
src: scanning
|
|
16586
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16735
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16587
16736
|
title: "\u5168\u5C4F"
|
|
16588
16737
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16589
16738
|
onClick: function onClick() {
|
|
@@ -16591,7 +16740,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16591
16740
|
},
|
|
16592
16741
|
width: 24,
|
|
16593
16742
|
src: quanping
|
|
16594
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16743
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16595
16744
|
}, function (prevProps, nextProps) {
|
|
16596
16745
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16597
16746
|
return false;
|
|
@@ -16676,7 +16825,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16676
16825
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16677
16826
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16678
16827
|
}, item));
|
|
16679
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16828
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16680
16829
|
}, function (prevProps, nextProps) {
|
|
16681
16830
|
if (prevProps.title !== nextProps.title) {
|
|
16682
16831
|
return false;
|
|
@@ -17316,7 +17465,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17316
17465
|
});
|
|
17317
17466
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17318
17467
|
className: 'sort_table_wrapper'
|
|
17319
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17468
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17320
17469
|
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
17321
17470
|
wrapClassName: 'sort_table_wrapper',
|
|
17322
17471
|
width: 810,
|
|
@@ -17367,7 +17516,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17367
17516
|
width: 525,
|
|
17368
17517
|
height: 24
|
|
17369
17518
|
}
|
|
17370
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17519
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17371
17520
|
checked: !dataSource.some(function (item) {
|
|
17372
17521
|
if (item.hidden) return true;
|
|
17373
17522
|
return false;
|
|
@@ -17421,13 +17570,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17421
17570
|
_this2.onChange(e, item.title);
|
|
17422
17571
|
}
|
|
17423
17572
|
}, item.title);
|
|
17424
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17573
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17425
17574
|
style: {
|
|
17426
17575
|
width: '144px'
|
|
17427
17576
|
}
|
|
17428
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17577
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17429
17578
|
className: 'sort_table_column_all_empty'
|
|
17430
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17579
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17431
17580
|
className: 'sort_table_column_special'
|
|
17432
17581
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17433
17582
|
className: 'sort_table_column_all'
|
|
@@ -17901,7 +18050,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17901
18050
|
});
|
|
17902
18051
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17903
18052
|
className: 'sort_table_wrapper'
|
|
17904
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
18053
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17905
18054
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17906
18055
|
wrapClassName: 'sort_table_wrapper',
|
|
17907
18056
|
width: 820,
|
|
@@ -17946,7 +18095,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17946
18095
|
style: {
|
|
17947
18096
|
width: 525
|
|
17948
18097
|
}
|
|
17949
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
18098
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17950
18099
|
checked: !dataSource.some(function (item) {
|
|
17951
18100
|
if (item.hidden) return true;
|
|
17952
18101
|
return false;
|
|
@@ -17982,11 +18131,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17982
18131
|
_this2.onChange(e, item.name);
|
|
17983
18132
|
}
|
|
17984
18133
|
}, item.label);
|
|
17985
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
18134
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17986
18135
|
style: {
|
|
17987
18136
|
width: '144px'
|
|
17988
18137
|
}
|
|
17989
|
-
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
18138
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17990
18139
|
className: 'sort_table_column_all_empty'
|
|
17991
18140
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17992
18141
|
className: 'sort_table_content_wrapper'
|
|
@@ -18085,7 +18234,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18085
18234
|
};
|
|
18086
18235
|
setIsResizing(true);
|
|
18087
18236
|
document.addEventListener('mousemove', handleMouseMove);
|
|
18088
|
-
document.addEventListener('mouseup',
|
|
18237
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
18089
18238
|
};
|
|
18090
18239
|
var handleMouseMove = function handleMouseMove(e) {
|
|
18091
18240
|
e.stopPropagation();
|
|
@@ -18101,9 +18250,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
18101
18250
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
18102
18251
|
}
|
|
18103
18252
|
};
|
|
18104
|
-
var
|
|
18253
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
18105
18254
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
18106
|
-
document.removeEventListener('mouseup',
|
|
18255
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
18107
18256
|
setIsResizing(false);
|
|
18108
18257
|
};
|
|
18109
18258
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18514,7 +18663,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18514
18663
|
actionsRender = actionsRender.concat([{
|
|
18515
18664
|
type: 'text',
|
|
18516
18665
|
props: {
|
|
18517
|
-
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18666
|
+
children: ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18518
18667
|
request: {
|
|
18519
18668
|
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),
|
|
18520
18669
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18760,7 +18909,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18760
18909
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18761
18910
|
bsTableCode: bsTableCode,
|
|
18762
18911
|
onlyModal: true
|
|
18763
|
-
}), (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, {
|
|
18912
|
+
}), (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, {
|
|
18764
18913
|
ref: exportTableRef,
|
|
18765
18914
|
setShowColumns: setShowExportColumns,
|
|
18766
18915
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18853,11 +19002,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18853
19002
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18854
19003
|
var resultList = [];
|
|
18855
19004
|
var newRouter = cloneDeep__default['default'](router);
|
|
18856
|
-
var
|
|
19005
|
+
var deep = function deep(router) {
|
|
18857
19006
|
if (router && Array.isArray(router)) {
|
|
18858
19007
|
router.forEach(function (item) {
|
|
18859
19008
|
if (item.children && Array.isArray(item.children)) {
|
|
18860
|
-
|
|
19009
|
+
deep(item.children);
|
|
18861
19010
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18862
19011
|
return d === item.code;
|
|
18863
19012
|
})) {
|
|
@@ -18871,10 +19020,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18871
19020
|
resultList.push(_objectSpread2({}, router));
|
|
18872
19021
|
}
|
|
18873
19022
|
};
|
|
18874
|
-
|
|
19023
|
+
deep(newRouter);
|
|
18875
19024
|
callBack([].concat(resultList));
|
|
18876
19025
|
};
|
|
18877
|
-
var
|
|
19026
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18878
19027
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18879
19028
|
var _loop = function _loop(i) {
|
|
18880
19029
|
if (routesData[i].hideInMenu) {
|
|
@@ -18888,7 +19037,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18888
19037
|
return 0; // continue
|
|
18889
19038
|
}
|
|
18890
19039
|
if (routesData[i].children) {
|
|
18891
|
-
|
|
19040
|
+
setMenuTreeData(routesData[i].children);
|
|
18892
19041
|
}
|
|
18893
19042
|
},
|
|
18894
19043
|
_ret;
|
|
@@ -18909,16 +19058,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18909
19058
|
};
|
|
18910
19059
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18911
19060
|
var routerMap = {};
|
|
18912
|
-
var
|
|
19061
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18913
19062
|
data.forEach(function (menuItem) {
|
|
18914
19063
|
if (menuItem.children) {
|
|
18915
|
-
|
|
19064
|
+
flattenMenuData(menuItem.children);
|
|
18916
19065
|
}
|
|
18917
19066
|
// Reduce memory usage
|
|
18918
19067
|
routerMap[menuItem.path] = menuItem;
|
|
18919
19068
|
});
|
|
18920
19069
|
};
|
|
18921
|
-
|
|
19070
|
+
flattenMenuData(menuData);
|
|
18922
19071
|
return routerMap;
|
|
18923
19072
|
};
|
|
18924
19073
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -19064,7 +19213,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19064
19213
|
sethomepageData(homepageDataList);
|
|
19065
19214
|
setroutesData(routesDataList);
|
|
19066
19215
|
}, []);
|
|
19067
|
-
var
|
|
19216
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19068
19217
|
if (!child.hideInMenu && child.children) {
|
|
19069
19218
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
19070
19219
|
style: {
|
|
@@ -19074,7 +19223,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19074
19223
|
}, umi.formatMessage({
|
|
19075
19224
|
id: "".concat(child.locale)
|
|
19076
19225
|
})), child.children.map(function (menuItem) {
|
|
19077
|
-
return
|
|
19226
|
+
return renderChildItem(menuItem);
|
|
19078
19227
|
}));
|
|
19079
19228
|
} else if (!child.hideInMenu && child.path) {
|
|
19080
19229
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -19109,7 +19258,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19109
19258
|
className: 'drawerWarp'
|
|
19110
19259
|
}, homepageData && homepageData.filter(function (d) {
|
|
19111
19260
|
return !d.hideInMenu;
|
|
19112
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
19261
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
19113
19262
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
19114
19263
|
dataSource: homepageData,
|
|
19115
19264
|
renderItem: function renderItem(child) {
|
|
@@ -19144,7 +19293,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
19144
19293
|
bordered: true,
|
|
19145
19294
|
dataSource: item.children,
|
|
19146
19295
|
renderItem: function renderItem(child) {
|
|
19147
|
-
return
|
|
19296
|
+
return renderChildItem(child);
|
|
19148
19297
|
}
|
|
19149
19298
|
});
|
|
19150
19299
|
})));
|
|
@@ -19204,7 +19353,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19204
19353
|
src: allfunc
|
|
19205
19354
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19206
19355
|
className: 'btnSpan2'
|
|
19207
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19356
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19208
19357
|
style: {
|
|
19209
19358
|
left: isDrawer ? 140 : 0,
|
|
19210
19359
|
top: 50
|
|
@@ -19250,7 +19399,7 @@ function outLogin(_x) {
|
|
|
19250
19399
|
return _outLogin.apply(this, arguments);
|
|
19251
19400
|
}
|
|
19252
19401
|
function _outLogin() {
|
|
19253
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19402
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19254
19403
|
var res;
|
|
19255
19404
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19256
19405
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19392,7 +19541,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19392
19541
|
});
|
|
19393
19542
|
};
|
|
19394
19543
|
var loginOut = /*#__PURE__*/function () {
|
|
19395
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19544
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
19396
19545
|
var sessionId;
|
|
19397
19546
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19398
19547
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19496,7 +19645,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19496
19645
|
marginRight: '0px'
|
|
19497
19646
|
},
|
|
19498
19647
|
src: './xialajiantou-new.svg'
|
|
19499
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19648
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19500
19649
|
};
|
|
19501
19650
|
|
|
19502
19651
|
// -- 查询店铺 --
|
|
@@ -19504,7 +19653,7 @@ function getStoreByName(_x) {
|
|
|
19504
19653
|
return _getStoreByName.apply(this, arguments);
|
|
19505
19654
|
}
|
|
19506
19655
|
function _getStoreByName() {
|
|
19507
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19656
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19508
19657
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19509
19658
|
while (1) switch (_context.prev = _context.next) {
|
|
19510
19659
|
case 0:
|
|
@@ -19572,7 +19721,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19572
19721
|
return _fetchUserList.apply(this, arguments);
|
|
19573
19722
|
}
|
|
19574
19723
|
function _fetchUserList() {
|
|
19575
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19724
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19576
19725
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19577
19726
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19578
19727
|
case 0:
|
|
@@ -19620,7 +19769,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19620
19769
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
19621
19770
|
}, [debounceTimeout, key]);
|
|
19622
19771
|
var changeInput = /*#__PURE__*/function () {
|
|
19623
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19772
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19624
19773
|
var res;
|
|
19625
19774
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19626
19775
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19642,7 +19791,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19642
19791
|
};
|
|
19643
19792
|
}();
|
|
19644
19793
|
React$1.useEffect(function () {
|
|
19645
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19794
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19646
19795
|
var res;
|
|
19647
19796
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19648
19797
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19807,7 +19956,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19807
19956
|
var resultList = [];
|
|
19808
19957
|
var newRouter = _.cloneDeep(router);
|
|
19809
19958
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19810
|
-
var
|
|
19959
|
+
var deep = function deep(router) {
|
|
19811
19960
|
if (router && Array.isArray(router)) {
|
|
19812
19961
|
router.forEach(function (item) {
|
|
19813
19962
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19817,7 +19966,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19817
19966
|
d.nameEdit = true;
|
|
19818
19967
|
}
|
|
19819
19968
|
});
|
|
19820
|
-
|
|
19969
|
+
deep(item.routes);
|
|
19821
19970
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
19822
19971
|
id: "menu.".concat(item.name)
|
|
19823
19972
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19836,7 +19985,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19836
19985
|
}));
|
|
19837
19986
|
}
|
|
19838
19987
|
};
|
|
19839
|
-
|
|
19988
|
+
deep(newRouter);
|
|
19840
19989
|
setroutesData([].concat(resultList));
|
|
19841
19990
|
};
|
|
19842
19991
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19918,7 +20067,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19918
20067
|
},
|
|
19919
20068
|
title: item.fullPathName
|
|
19920
20069
|
}, renderLineStyl(item.fullPathName));
|
|
19921
|
-
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
20070
|
+
}))))), showSelectStore && ( /*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19922
20071
|
employeeCode: employeeCode
|
|
19923
20072
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
19924
20073
|
};
|
|
@@ -19933,7 +20082,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19933
20082
|
var TreeNode = antd.Tree.TreeNode;
|
|
19934
20083
|
var Search$2 = antd.Input.Search;
|
|
19935
20084
|
var dataList = [];
|
|
19936
|
-
var
|
|
20085
|
+
var generateList = function generateList(data) {
|
|
19937
20086
|
for (var i = 0; i < data.length; i++) {
|
|
19938
20087
|
var node = data[i];
|
|
19939
20088
|
var path = node.path,
|
|
@@ -19943,11 +20092,11 @@ var _generateList = function generateList(data) {
|
|
|
19943
20092
|
name: name
|
|
19944
20093
|
});
|
|
19945
20094
|
if (node.children) {
|
|
19946
|
-
|
|
20095
|
+
generateList(node.children);
|
|
19947
20096
|
}
|
|
19948
20097
|
}
|
|
19949
20098
|
};
|
|
19950
|
-
var
|
|
20099
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19951
20100
|
var parentKey;
|
|
19952
20101
|
for (var i = 0; i < tree.length; i++) {
|
|
19953
20102
|
var node = tree[i];
|
|
@@ -19956,8 +20105,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19956
20105
|
return item.path === path;
|
|
19957
20106
|
})) {
|
|
19958
20107
|
parentKey = node.path;
|
|
19959
|
-
} else if (
|
|
19960
|
-
parentKey =
|
|
20108
|
+
} else if (getParentKey(path, node.children)) {
|
|
20109
|
+
parentKey = getParentKey(path, node.children);
|
|
19961
20110
|
}
|
|
19962
20111
|
}
|
|
19963
20112
|
}
|
|
@@ -19988,7 +20137,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19988
20137
|
var treeData = _this.state.treeData;
|
|
19989
20138
|
var expandedKeys = dataList.map(function (item) {
|
|
19990
20139
|
if (item.name.indexOf(value) > -1) {
|
|
19991
|
-
return
|
|
20140
|
+
return getParentKey(item.path, treeData);
|
|
19992
20141
|
}
|
|
19993
20142
|
return null;
|
|
19994
20143
|
}).filter(function (item, i, self) {
|
|
@@ -20002,22 +20151,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20002
20151
|
};
|
|
20003
20152
|
_this.getPathList = function (originData) {
|
|
20004
20153
|
var pathList = [];
|
|
20005
|
-
var
|
|
20154
|
+
var getList = function getList(data) {
|
|
20006
20155
|
if (Array.isArray(data)) {
|
|
20007
20156
|
data.forEach(function (item) {
|
|
20008
20157
|
pathList.push(item.path);
|
|
20009
20158
|
if (item.children) {
|
|
20010
|
-
|
|
20159
|
+
getList(item.children);
|
|
20011
20160
|
}
|
|
20012
20161
|
});
|
|
20013
20162
|
} else {
|
|
20014
20163
|
pathList.push(data.path);
|
|
20015
20164
|
if (data.children) {
|
|
20016
|
-
|
|
20165
|
+
getList(data.children);
|
|
20017
20166
|
}
|
|
20018
20167
|
}
|
|
20019
20168
|
};
|
|
20020
|
-
|
|
20169
|
+
getList(originData);
|
|
20021
20170
|
return pathList;
|
|
20022
20171
|
};
|
|
20023
20172
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -20026,18 +20175,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20026
20175
|
customerMenuData = _this$props.customerMenuData,
|
|
20027
20176
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
20028
20177
|
var filterItem;
|
|
20029
|
-
var
|
|
20178
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
20030
20179
|
menuData.forEach(function (item) {
|
|
20031
20180
|
if (item.path === path) {
|
|
20032
20181
|
filterItem = _objectSpread2({}, item);
|
|
20033
20182
|
return;
|
|
20034
20183
|
}
|
|
20035
20184
|
if (item.children) {
|
|
20036
|
-
|
|
20185
|
+
filterMenuItem(item.children);
|
|
20037
20186
|
}
|
|
20038
20187
|
});
|
|
20039
20188
|
};
|
|
20040
|
-
|
|
20189
|
+
filterMenuItem(treeData);
|
|
20041
20190
|
var addPathList = _this.getPathList(filterItem);
|
|
20042
20191
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
20043
20192
|
var isRepet = false;
|
|
@@ -20067,8 +20216,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20067
20216
|
return item.path === '/';
|
|
20068
20217
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20069
20218
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20070
|
-
|
|
20071
|
-
|
|
20219
|
+
setMenuTreeData(routesData);
|
|
20220
|
+
generateList(routesData);
|
|
20072
20221
|
this.setState({
|
|
20073
20222
|
treeData: routesData
|
|
20074
20223
|
});
|
|
@@ -20082,16 +20231,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20082
20231
|
expandedKeys = _this$state.expandedKeys,
|
|
20083
20232
|
autoExpandParent = _this$state.autoExpandParent,
|
|
20084
20233
|
treeData = _this$state.treeData;
|
|
20085
|
-
var
|
|
20234
|
+
var loop = function loop(data) {
|
|
20086
20235
|
return data.map(function (item) {
|
|
20087
20236
|
var index = item.name.indexOf(searchValue);
|
|
20088
20237
|
var beforeStr = item.name.substr(0, index);
|
|
20089
20238
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
20090
|
-
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20239
|
+
var name = index > -1 ? ( /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20091
20240
|
style: {
|
|
20092
20241
|
color: '#f50'
|
|
20093
20242
|
}
|
|
20094
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
20243
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
20095
20244
|
if (item.children && item.children.length) {
|
|
20096
20245
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
20097
20246
|
path: item.path,
|
|
@@ -20113,7 +20262,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20113
20262
|
width: 18,
|
|
20114
20263
|
src: arrowRight
|
|
20115
20264
|
}))))
|
|
20116
|
-
},
|
|
20265
|
+
}, loop(item.children));
|
|
20117
20266
|
}
|
|
20118
20267
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
20119
20268
|
path: item.path,
|
|
@@ -20163,7 +20312,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20163
20312
|
onExpand: this.onExpand,
|
|
20164
20313
|
expandedKeys: expandedKeys,
|
|
20165
20314
|
autoExpandParent: autoExpandParent
|
|
20166
|
-
},
|
|
20315
|
+
}, loop(treeData))));
|
|
20167
20316
|
}
|
|
20168
20317
|
}]);
|
|
20169
20318
|
}(React__default['default'].Component);
|
|
@@ -20196,24 +20345,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20196
20345
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
20197
20346
|
var dragObj;
|
|
20198
20347
|
var finalDropItem;
|
|
20199
|
-
var
|
|
20348
|
+
var loop = function loop(data, path, callback) {
|
|
20200
20349
|
for (var i = 0; i < data.length; i++) {
|
|
20201
20350
|
if (data[i].path === path) {
|
|
20202
20351
|
return callback(data[i], i, data);
|
|
20203
20352
|
}
|
|
20204
20353
|
if (data[i].children) {
|
|
20205
|
-
|
|
20354
|
+
loop(data[i].children, path, callback);
|
|
20206
20355
|
}
|
|
20207
20356
|
}
|
|
20208
20357
|
};
|
|
20209
20358
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
20210
|
-
|
|
20359
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
20211
20360
|
arr.splice(index, 1);
|
|
20212
20361
|
dragObj = item;
|
|
20213
20362
|
});
|
|
20214
20363
|
if (!info.dropToGap) {
|
|
20215
20364
|
// Drop on the content
|
|
20216
|
-
|
|
20365
|
+
loop(data, dropKey, function (item) {
|
|
20217
20366
|
item.children = item.children || [];
|
|
20218
20367
|
item.children.unshift(dragObj);
|
|
20219
20368
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20224,7 +20373,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20224
20373
|
// Is expanded
|
|
20225
20374
|
dropPosition === 1 // On the bottom gap
|
|
20226
20375
|
) {
|
|
20227
|
-
|
|
20376
|
+
loop(data, dropKey, function (item) {
|
|
20228
20377
|
item.children = item.children || [];
|
|
20229
20378
|
item.children.unshift(dragObj);
|
|
20230
20379
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -20232,7 +20381,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20232
20381
|
} else {
|
|
20233
20382
|
var ar;
|
|
20234
20383
|
var i;
|
|
20235
|
-
|
|
20384
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
20236
20385
|
ar = arr;
|
|
20237
20386
|
i = index;
|
|
20238
20387
|
});
|
|
@@ -20271,17 +20420,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20271
20420
|
title: '编辑名称',
|
|
20272
20421
|
callBack: function callBack(newName) {
|
|
20273
20422
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20274
|
-
var
|
|
20423
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
20275
20424
|
oldTreeData.forEach(function (treeItem) {
|
|
20276
20425
|
if (treeItem.path === item.path) {
|
|
20277
20426
|
treeItem.name = newName;
|
|
20278
20427
|
}
|
|
20279
20428
|
if (treeItem.children) {
|
|
20280
|
-
|
|
20429
|
+
editTreeDataName(treeItem.children);
|
|
20281
20430
|
}
|
|
20282
20431
|
});
|
|
20283
20432
|
};
|
|
20284
|
-
|
|
20433
|
+
editTreeDataName(oldTreeData);
|
|
20285
20434
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20286
20435
|
_this.setState({
|
|
20287
20436
|
modalInfo: {
|
|
@@ -20326,7 +20475,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20326
20475
|
title: '新增子目录',
|
|
20327
20476
|
callBack: function callBack(newName) {
|
|
20328
20477
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
20329
|
-
var
|
|
20478
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
20330
20479
|
oldTreeData.forEach(function (treeItem) {
|
|
20331
20480
|
if (treeItem.path === item.path) {
|
|
20332
20481
|
treeItem.children ? treeItem.children.push({
|
|
@@ -20338,11 +20487,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20338
20487
|
}];
|
|
20339
20488
|
}
|
|
20340
20489
|
if (treeItem.children) {
|
|
20341
|
-
|
|
20490
|
+
addChildFolder(treeItem.children);
|
|
20342
20491
|
}
|
|
20343
20492
|
});
|
|
20344
20493
|
};
|
|
20345
|
-
|
|
20494
|
+
addChildFolder(oldTreeData);
|
|
20346
20495
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
20347
20496
|
_this.setState({
|
|
20348
20497
|
modalInfo: {
|
|
@@ -20401,7 +20550,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20401
20550
|
var _this$state = this.state,
|
|
20402
20551
|
modalInfo = _this$state.modalInfo,
|
|
20403
20552
|
checkedKeys = _this$state.checkedKeys;
|
|
20404
|
-
var
|
|
20553
|
+
var loop = function loop(data) {
|
|
20405
20554
|
return data.map(function (item) {
|
|
20406
20555
|
if (item.children && item.children.length) {
|
|
20407
20556
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -20418,7 +20567,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20418
20567
|
e.stopPropagation();
|
|
20419
20568
|
}
|
|
20420
20569
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
20421
|
-
},
|
|
20570
|
+
}, loop(item.children));
|
|
20422
20571
|
}
|
|
20423
20572
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
20424
20573
|
path: item.path,
|
|
@@ -20497,7 +20646,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20497
20646
|
children: 'children'
|
|
20498
20647
|
},
|
|
20499
20648
|
onDrop: this.onDrop
|
|
20500
|
-
},
|
|
20649
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
20501
20650
|
width: 600,
|
|
20502
20651
|
bodyStyle: {
|
|
20503
20652
|
paddingTop: '32px',
|
|
@@ -20610,7 +20759,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20610
20759
|
pathname: item.path
|
|
20611
20760
|
});
|
|
20612
20761
|
};
|
|
20613
|
-
var
|
|
20762
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
20614
20763
|
return menuData.map(function (item) {
|
|
20615
20764
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20616
20765
|
style: {
|
|
@@ -20625,7 +20774,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20625
20774
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20626
20775
|
paddingLeft: '4px'
|
|
20627
20776
|
}
|
|
20628
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20777
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
20629
20778
|
});
|
|
20630
20779
|
};
|
|
20631
20780
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20651,7 +20800,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20651
20800
|
style: {
|
|
20652
20801
|
paddingLeft: '5px'
|
|
20653
20802
|
}
|
|
20654
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20803
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20655
20804
|
style: {
|
|
20656
20805
|
left: isDrawer ? 140 : 0
|
|
20657
20806
|
},
|
|
@@ -20672,7 +20821,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20672
20821
|
visible: isDrawer
|
|
20673
20822
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
20674
20823
|
className: 'menu_title_line'
|
|
20675
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20824
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
20676
20825
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20677
20826
|
style: {
|
|
20678
20827
|
fontWeight: '600',
|
|
@@ -20746,7 +20895,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20746
20895
|
return item.path === '/';
|
|
20747
20896
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20748
20897
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20749
|
-
|
|
20898
|
+
setMenuTreeData(routesData);
|
|
20750
20899
|
routesData.forEach(function (item) {
|
|
20751
20900
|
if (item.children) {
|
|
20752
20901
|
routesDataList.push(item);
|
|
@@ -20776,7 +20925,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20776
20925
|
setHeight(clientHeight - 190);
|
|
20777
20926
|
setDrawHeight(clientHeight - 70);
|
|
20778
20927
|
};
|
|
20779
|
-
var
|
|
20928
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20780
20929
|
if (!child.hideInMenu && child.children) {
|
|
20781
20930
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
20782
20931
|
style: {
|
|
@@ -20786,7 +20935,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20786
20935
|
}, umi.formatMessage({
|
|
20787
20936
|
id: "".concat(child.locale)
|
|
20788
20937
|
})), child.children.map(function (menuItem) {
|
|
20789
|
-
return
|
|
20938
|
+
return renderChildItem(menuItem);
|
|
20790
20939
|
}));
|
|
20791
20940
|
} else if (!child.hideInMenu && child.path) {
|
|
20792
20941
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -20928,7 +21077,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20928
21077
|
onMenuClick(e, item);
|
|
20929
21078
|
}
|
|
20930
21079
|
}, item.name);
|
|
20931
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21080
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20932
21081
|
className: 'search_menu_content'
|
|
20933
21082
|
}, SearhData.map(function (item) {
|
|
20934
21083
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20937,7 +21086,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20937
21086
|
},
|
|
20938
21087
|
key: item.path
|
|
20939
21088
|
}, item.name);
|
|
20940
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21089
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20941
21090
|
style: {
|
|
20942
21091
|
height: "".concat(rightMenuHeight, "px"),
|
|
20943
21092
|
overflowY: 'scroll',
|
|
@@ -20949,7 +21098,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20949
21098
|
className: 'drawerWarp_right'
|
|
20950
21099
|
}, homepageData && homepageData.filter(function (d) {
|
|
20951
21100
|
return !d.hideInMenu;
|
|
20952
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
21101
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20953
21102
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
20954
21103
|
dataSource: homepageData,
|
|
20955
21104
|
renderItem: function renderItem(child) {
|
|
@@ -20990,7 +21139,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20990
21139
|
bordered: true,
|
|
20991
21140
|
dataSource: item.children,
|
|
20992
21141
|
renderItem: function renderItem(child) {
|
|
20993
|
-
return
|
|
21142
|
+
return renderChildItem(child);
|
|
20994
21143
|
}
|
|
20995
21144
|
});
|
|
20996
21145
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -21148,10 +21297,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21148
21297
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
21149
21298
|
var menuKeys = [];
|
|
21150
21299
|
var docsId = [];
|
|
21151
|
-
var
|
|
21300
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
21152
21301
|
data.forEach(function (item) {
|
|
21153
21302
|
if (item.children && item.children.length > 0) {
|
|
21154
|
-
|
|
21303
|
+
getLimitedMenuKeys(item.children);
|
|
21155
21304
|
} else {
|
|
21156
21305
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
21157
21306
|
menuKeys.push(originPath);
|
|
@@ -21162,7 +21311,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
21162
21311
|
});
|
|
21163
21312
|
};
|
|
21164
21313
|
try {
|
|
21165
|
-
|
|
21314
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
21166
21315
|
} catch (e) {}
|
|
21167
21316
|
return {
|
|
21168
21317
|
menuKeys: menuKeys,
|
|
@@ -21396,10 +21545,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21396
21545
|
return (node.path || '').includes('all-general-documents');
|
|
21397
21546
|
};
|
|
21398
21547
|
// 递归获取树列表
|
|
21399
|
-
var
|
|
21548
|
+
var getTreeList = function getTreeList(data) {
|
|
21400
21549
|
data.forEach(function (node) {
|
|
21401
21550
|
if (node.routes && node.routes.length > 0) {
|
|
21402
|
-
|
|
21551
|
+
getTreeList(node.routes);
|
|
21403
21552
|
return;
|
|
21404
21553
|
}
|
|
21405
21554
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21430,7 +21579,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21430
21579
|
}
|
|
21431
21580
|
});
|
|
21432
21581
|
};
|
|
21433
|
-
|
|
21582
|
+
getTreeList(treeData);
|
|
21434
21583
|
return treeList;
|
|
21435
21584
|
};
|
|
21436
21585
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -22059,7 +22208,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22059
22208
|
updateState = _ref8.updateState;
|
|
22060
22209
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
22061
22210
|
className: "tab_title_content"
|
|
22062
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
22211
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
22063
22212
|
info: item,
|
|
22064
22213
|
operateFun: _this3.operateFun,
|
|
22065
22214
|
listenRouterState: listenRouterState
|
|
@@ -22195,7 +22344,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22195
22344
|
};
|
|
22196
22345
|
}
|
|
22197
22346
|
var OperationsSlot = {
|
|
22198
|
-
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
22347
|
+
left: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
22199
22348
|
className: 'tab_left_operate'
|
|
22200
22349
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
22201
22350
|
onClick: function onClick() {
|
|
@@ -22211,7 +22360,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22211
22360
|
_this3.setTabNavTransLate(-100);
|
|
22212
22361
|
}
|
|
22213
22362
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
22214
|
-
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
22363
|
+
right: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
22215
22364
|
style: {
|
|
22216
22365
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
22217
22366
|
},
|
|
@@ -22309,7 +22458,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22309
22458
|
onMouseLeave: function onMouseLeave() {
|
|
22310
22459
|
_this3.setShowMenu(false);
|
|
22311
22460
|
}
|
|
22312
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
22461
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
22313
22462
|
style: {
|
|
22314
22463
|
position: 'absolute',
|
|
22315
22464
|
top: '14px',
|
|
@@ -22328,7 +22477,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22328
22477
|
postMenuData: function postMenuData(menus) {
|
|
22329
22478
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
22330
22479
|
},
|
|
22331
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
22480
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
22332
22481
|
ref: this.allFunc,
|
|
22333
22482
|
itemPath: itemPath,
|
|
22334
22483
|
handleClose: this.handleClose,
|
|
@@ -22346,7 +22495,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
22346
22495
|
},
|
|
22347
22496
|
menu: {
|
|
22348
22497
|
request: function () {
|
|
22349
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22498
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22350
22499
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22351
22500
|
while (1) switch (_context.prev = _context.next) {
|
|
22352
22501
|
case 0:
|
|
@@ -22481,7 +22630,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22481
22630
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22482
22631
|
timeFormat = _this$props4.timeFormat,
|
|
22483
22632
|
transparentProps = _this$props4.transparentProps;
|
|
22484
|
-
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({
|
|
22633
|
+
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({
|
|
22485
22634
|
getDictionarySource: getDictionarySource,
|
|
22486
22635
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22487
22636
|
timeFormat: timeFormat
|
|
@@ -22505,12 +22654,12 @@ var index$5 = (function (props) {
|
|
|
22505
22654
|
});
|
|
22506
22655
|
|
|
22507
22656
|
// @ts-nocheck
|
|
22508
|
-
var
|
|
22657
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
22509
22658
|
var result = [];
|
|
22510
22659
|
columns.forEach(function (column) {
|
|
22511
22660
|
if (column.children) {
|
|
22512
22661
|
result.push(column);
|
|
22513
|
-
result.push.apply(result,
|
|
22662
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
22514
22663
|
} else {
|
|
22515
22664
|
result.push(column);
|
|
22516
22665
|
}
|
|
@@ -22519,7 +22668,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
22519
22668
|
};
|
|
22520
22669
|
var convertToRows = function convertToRows(originColumns) {
|
|
22521
22670
|
var maxLevel = 1;
|
|
22522
|
-
var
|
|
22671
|
+
var traverse = function traverse(column, parent) {
|
|
22523
22672
|
if (parent) {
|
|
22524
22673
|
column.level = parent.level + 1;
|
|
22525
22674
|
if (maxLevel < column.level) {
|
|
@@ -22529,7 +22678,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22529
22678
|
if (column.children) {
|
|
22530
22679
|
var colSpan = 0;
|
|
22531
22680
|
column.children.forEach(function (subColumn) {
|
|
22532
|
-
|
|
22681
|
+
traverse(subColumn, column);
|
|
22533
22682
|
colSpan += subColumn.colSpan;
|
|
22534
22683
|
});
|
|
22535
22684
|
column.colSpan = colSpan;
|
|
@@ -22539,13 +22688,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22539
22688
|
};
|
|
22540
22689
|
originColumns.forEach(function (column) {
|
|
22541
22690
|
column.level = 1;
|
|
22542
|
-
|
|
22691
|
+
traverse(column);
|
|
22543
22692
|
});
|
|
22544
22693
|
var rows = [];
|
|
22545
22694
|
for (var i = 0; i < maxLevel; i++) {
|
|
22546
22695
|
rows.push([]);
|
|
22547
22696
|
}
|
|
22548
|
-
var allColumns =
|
|
22697
|
+
var allColumns = getAllColumns(originColumns);
|
|
22549
22698
|
allColumns.forEach(function (column) {
|
|
22550
22699
|
if (!column.children) {
|
|
22551
22700
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22585,7 +22734,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22585
22734
|
};
|
|
22586
22735
|
var headersToRows = function headersToRows(originColumns) {
|
|
22587
22736
|
var maxLevel = 1;
|
|
22588
|
-
var
|
|
22737
|
+
var traverse = function traverse(column, parent) {
|
|
22589
22738
|
if (parent) {
|
|
22590
22739
|
//计算当前元素属于第几个层级
|
|
22591
22740
|
column.level = parent.level + 1;
|
|
@@ -22598,7 +22747,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22598
22747
|
var colSpan = 0;
|
|
22599
22748
|
column.children.forEach(function (subColumn) {
|
|
22600
22749
|
//进行递归
|
|
22601
|
-
|
|
22750
|
+
traverse(subColumn, column);
|
|
22602
22751
|
colSpan += subColumn.colSpan;
|
|
22603
22752
|
});
|
|
22604
22753
|
column.colSpan = colSpan;
|
|
@@ -22608,14 +22757,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22608
22757
|
};
|
|
22609
22758
|
originColumns.forEach(function (column) {
|
|
22610
22759
|
column.level = 1;
|
|
22611
|
-
|
|
22760
|
+
traverse(column);
|
|
22612
22761
|
});
|
|
22613
22762
|
var rows = [];
|
|
22614
22763
|
var lastData = [];
|
|
22615
22764
|
for (var i = 0; i < maxLevel; i++) {
|
|
22616
22765
|
rows.push([]);
|
|
22617
22766
|
}
|
|
22618
|
-
var allColumns =
|
|
22767
|
+
var allColumns = getAllColumns(originColumns);
|
|
22619
22768
|
allColumns.forEach(function (column) {
|
|
22620
22769
|
if (!column.children) {
|
|
22621
22770
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28632,7 +28781,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28632
28781
|
}
|
|
28633
28782
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28634
28783
|
};
|
|
28635
|
-
var
|
|
28784
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
28636
28785
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28637
28786
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28638
28787
|
var children = hightLightData.children,
|
|
@@ -28643,7 +28792,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28643
28792
|
lineEnd = _loc2[2];
|
|
28644
28793
|
if (children) {
|
|
28645
28794
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28646
|
-
return
|
|
28795
|
+
return hasHighLightChildren(v, highLightLine);
|
|
28647
28796
|
});
|
|
28648
28797
|
}
|
|
28649
28798
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28655,7 +28804,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28655
28804
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28656
28805
|
data.forEach(function (node) {
|
|
28657
28806
|
if (!node) return;
|
|
28658
|
-
node.toggled =
|
|
28807
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
28659
28808
|
node.active = isHightLight(node, highLightLine);
|
|
28660
28809
|
if (node.children) {
|
|
28661
28810
|
if (node.active) {
|
|
@@ -30086,7 +30235,7 @@ var valueType = {
|
|
|
30086
30235
|
};
|
|
30087
30236
|
|
|
30088
30237
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
30089
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30238
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
30090
30239
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30091
30240
|
while (1) switch (_context.prev = _context.next) {
|
|
30092
30241
|
case 0:
|
|
@@ -30154,7 +30303,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30154
30303
|
value: false
|
|
30155
30304
|
}];
|
|
30156
30305
|
var ref = React$1.useRef();
|
|
30157
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30306
|
+
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30158
30307
|
var _ref$current, source;
|
|
30159
30308
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30160
30309
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -30268,7 +30417,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30268
30417
|
source: {
|
|
30269
30418
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
30270
30419
|
type: function () {
|
|
30271
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30420
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
30272
30421
|
var form, values, name, relates, source;
|
|
30273
30422
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
30274
30423
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30748,7 +30897,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30748
30897
|
source: {
|
|
30749
30898
|
relates: ['choiceType', 'inputType'],
|
|
30750
30899
|
type: function () {
|
|
30751
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30900
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30752
30901
|
var values, name, form, source;
|
|
30753
30902
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30754
30903
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30970,7 +31119,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30970
31119
|
width: 900,
|
|
30971
31120
|
maskClosable: false,
|
|
30972
31121
|
onOk: function () {
|
|
30973
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
31122
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30974
31123
|
var _ref$current4, _res$editableStatus;
|
|
30975
31124
|
var res, _res$defaultValue;
|
|
30976
31125
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -31042,7 +31191,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31042
31191
|
}()
|
|
31043
31192
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
31044
31193
|
ref: ref
|
|
31045
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31194
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
31046
31195
|
};
|
|
31047
31196
|
|
|
31048
31197
|
// @ts-nocheck
|
|
@@ -31656,7 +31805,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31656
31805
|
return setVisible(false);
|
|
31657
31806
|
},
|
|
31658
31807
|
className: 'customFieldsDrawer'
|
|
31659
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31808
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31660
31809
|
style: {
|
|
31661
31810
|
display: 'flex'
|
|
31662
31811
|
}
|
|
@@ -31665,13 +31814,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31665
31814
|
flex: 1,
|
|
31666
31815
|
width: 500
|
|
31667
31816
|
}
|
|
31668
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31817
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31669
31818
|
style: {
|
|
31670
31819
|
padding: "10px 0",
|
|
31671
31820
|
fontSize: "16px",
|
|
31672
31821
|
fontWeight: "bolder"
|
|
31673
31822
|
}
|
|
31674
|
-
}, "\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", {
|
|
31823
|
+
}, "\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", {
|
|
31675
31824
|
style: {
|
|
31676
31825
|
flex: 1
|
|
31677
31826
|
}
|
|
@@ -31680,7 +31829,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31680
31829
|
onRun: onClickRun,
|
|
31681
31830
|
value: jsonEditorVal,
|
|
31682
31831
|
shallowHeight: height
|
|
31683
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31832
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31684
31833
|
defaultActiveKey: activeKey,
|
|
31685
31834
|
onChange: function onChange(v) {
|
|
31686
31835
|
return setActiveKey(v);
|
|
@@ -31697,13 +31846,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31697
31846
|
flex: 1,
|
|
31698
31847
|
width: 500
|
|
31699
31848
|
}
|
|
31700
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31849
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31701
31850
|
style: {
|
|
31702
31851
|
padding: "10px 0",
|
|
31703
31852
|
fontSize: "16px",
|
|
31704
31853
|
fontWeight: "bolder"
|
|
31705
31854
|
}
|
|
31706
|
-
}, "\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", {
|
|
31855
|
+
}, "\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", {
|
|
31707
31856
|
style: {
|
|
31708
31857
|
flex: 1
|
|
31709
31858
|
}
|
|
@@ -31725,13 +31874,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31725
31874
|
flex: 1,
|
|
31726
31875
|
width: 500
|
|
31727
31876
|
}
|
|
31728
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31877
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31729
31878
|
style: {
|
|
31730
31879
|
padding: "10px 0",
|
|
31731
31880
|
fontSize: "16px",
|
|
31732
31881
|
fontWeight: "bolder"
|
|
31733
31882
|
}
|
|
31734
|
-
}, "\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", {
|
|
31883
|
+
}, "\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", {
|
|
31735
31884
|
style: {
|
|
31736
31885
|
flex: 1
|
|
31737
31886
|
}
|
|
@@ -31877,7 +32026,7 @@ function getMetaData(_x) {
|
|
|
31877
32026
|
|
|
31878
32027
|
// 获取数据
|
|
31879
32028
|
function _getMetaData() {
|
|
31880
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
32029
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31881
32030
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31882
32031
|
while (1) switch (_context.prev = _context.next) {
|
|
31883
32032
|
case 0:
|
|
@@ -32099,7 +32248,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32099
32248
|
tableState = _useState4[0],
|
|
32100
32249
|
setTableState = _useState4[1];
|
|
32101
32250
|
var handleOpen = /*#__PURE__*/function () {
|
|
32102
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32251
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32103
32252
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
32104
32253
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
32105
32254
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -32418,7 +32567,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
32418
32567
|
destroyOnClose: true
|
|
32419
32568
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
32420
32569
|
ref: queryTableRef
|
|
32421
|
-
}, 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, {
|
|
32570
|
+
}, 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, {
|
|
32422
32571
|
justify: "center",
|
|
32423
32572
|
style: {
|
|
32424
32573
|
marginBottom: 30,
|
|
@@ -32534,7 +32683,7 @@ var CustomSelector = (function (props) {
|
|
|
32534
32683
|
var _props$ctx7;
|
|
32535
32684
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32536
32685
|
}
|
|
32537
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32686
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32538
32687
|
type: "primary",
|
|
32539
32688
|
style: {
|
|
32540
32689
|
width: '30px',
|
|
@@ -32620,7 +32769,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32620
32769
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32621
32770
|
handSource = _useState2[0],
|
|
32622
32771
|
setHandSource = _useState2[1];
|
|
32623
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32772
|
+
React$1.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32624
32773
|
var resData, data;
|
|
32625
32774
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32626
32775
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32772,7 +32921,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32772
32921
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32773
32922
|
}
|
|
32774
32923
|
function _getRegularThresholdRange() {
|
|
32775
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32924
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32776
32925
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32777
32926
|
while (1) switch (_context.prev = _context.next) {
|
|
32778
32927
|
case 0:
|
|
@@ -32926,7 +33075,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32926
33075
|
};
|
|
32927
33076
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32928
33077
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32929
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
33078
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32930
33079
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32931
33080
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32932
33081
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33883,7 +34032,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33883
34032
|
isAll: true,
|
|
33884
34033
|
needNameAndCode: true,
|
|
33885
34034
|
notChangeOnSelect: true,
|
|
33886
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
34035
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33887
34036
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33888
34037
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33889
34038
|
case 0:
|
|
@@ -33932,7 +34081,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33932
34081
|
isAll: true,
|
|
33933
34082
|
needNameAndCode: true,
|
|
33934
34083
|
notChangeOnSelect: true,
|
|
33935
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
34084
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33936
34085
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33937
34086
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33938
34087
|
case 0:
|
|
@@ -33983,7 +34132,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33983
34132
|
isAll: true,
|
|
33984
34133
|
needNameAndCode: true,
|
|
33985
34134
|
notChangeOnSelect: true,
|
|
33986
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
34135
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33987
34136
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33988
34137
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33989
34138
|
case 0:
|
|
@@ -35961,7 +36110,7 @@ var App$1 = function App(_ref) {
|
|
|
35961
36110
|
borderRadius: '5px',
|
|
35962
36111
|
cursor: 'pointer'
|
|
35963
36112
|
}
|
|
35964
|
-
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
36113
|
+
}, isStaticNumber ? ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35965
36114
|
autoFocus: true,
|
|
35966
36115
|
onClick: function onClick(e) {
|
|
35967
36116
|
return e.stopPropagation();
|
|
@@ -36248,7 +36397,7 @@ function RenderCompItem(props) {
|
|
|
36248
36397
|
dictData = _useState2[0],
|
|
36249
36398
|
setDictData = _useState2[1];
|
|
36250
36399
|
var getDictData = /*#__PURE__*/function () {
|
|
36251
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36400
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
36252
36401
|
var _data$map;
|
|
36253
36402
|
var data;
|
|
36254
36403
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -36290,7 +36439,7 @@ function RenderCompItem(props) {
|
|
|
36290
36439
|
var style2 = {
|
|
36291
36440
|
width: '100px'
|
|
36292
36441
|
};
|
|
36293
|
-
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, {
|
|
36442
|
+
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, {
|
|
36294
36443
|
disabled: disabled,
|
|
36295
36444
|
allowClear: true,
|
|
36296
36445
|
onClear: function onClear() {
|
|
@@ -36301,7 +36450,7 @@ function RenderCompItem(props) {
|
|
|
36301
36450
|
onBlur: function onBlur(e) {
|
|
36302
36451
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
36303
36452
|
}
|
|
36304
|
-
})) || 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, {
|
|
36453
|
+
})) || 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, {
|
|
36305
36454
|
disabled: disabled,
|
|
36306
36455
|
// max={Number.MAX_SAFE_INTEGER}
|
|
36307
36456
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -36314,7 +36463,7 @@ function RenderCompItem(props) {
|
|
|
36314
36463
|
onChange: function onChange(value) {
|
|
36315
36464
|
handleEdit(ites.code, value);
|
|
36316
36465
|
}
|
|
36317
|
-
})) || 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, {
|
|
36466
|
+
})) || 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, {
|
|
36318
36467
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
36319
36468
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
36320
36469
|
disabled: disabled,
|
|
@@ -36324,7 +36473,7 @@ function RenderCompItem(props) {
|
|
|
36324
36473
|
onChange: function onChange(value, dateString) {
|
|
36325
36474
|
handleEdit(ites.code, dateString);
|
|
36326
36475
|
}
|
|
36327
|
-
})) || 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, {
|
|
36476
|
+
})) || 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, {
|
|
36328
36477
|
showTime: true,
|
|
36329
36478
|
disabled: disabled,
|
|
36330
36479
|
defaultValue: ites.defaultValue,
|
|
@@ -36333,7 +36482,7 @@ function RenderCompItem(props) {
|
|
|
36333
36482
|
onChange: function onChange(value, timeString) {
|
|
36334
36483
|
handleEdit(ites.code, timeString);
|
|
36335
36484
|
}
|
|
36336
|
-
})) || 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, {
|
|
36485
|
+
})) || 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, {
|
|
36337
36486
|
disabled: disabled,
|
|
36338
36487
|
defaultChecked: !!ites.defaultValue,
|
|
36339
36488
|
style: style2,
|
|
@@ -36341,7 +36490,7 @@ function RenderCompItem(props) {
|
|
|
36341
36490
|
onChange: function onChange(value) {
|
|
36342
36491
|
handleEdit(ites.code, value);
|
|
36343
36492
|
}
|
|
36344
|
-
})) || 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({
|
|
36493
|
+
})) || 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({
|
|
36345
36494
|
disabled: disabled,
|
|
36346
36495
|
allowClear: true,
|
|
36347
36496
|
showArrow: true
|
|
@@ -36359,7 +36508,7 @@ function RenderCompItem(props) {
|
|
|
36359
36508
|
key: it,
|
|
36360
36509
|
value: it
|
|
36361
36510
|
}, ites.enumeration[it]);
|
|
36362
|
-
}))) || 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, {
|
|
36511
|
+
}))) || 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, {
|
|
36363
36512
|
disabled: disabled,
|
|
36364
36513
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
36365
36514
|
defaultValue: ites.defaultValue,
|
|
@@ -36369,7 +36518,7 @@ function RenderCompItem(props) {
|
|
|
36369
36518
|
handleEdit(ites.code, value);
|
|
36370
36519
|
},
|
|
36371
36520
|
dictionaryCode: ites.dictionaryCode
|
|
36372
|
-
})) || 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, {
|
|
36521
|
+
})) || 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, {
|
|
36373
36522
|
selectBusinessType: "physicalWarehouse",
|
|
36374
36523
|
selectProps: _objectSpread2({
|
|
36375
36524
|
style: styleCommon,
|
|
@@ -36391,7 +36540,7 @@ function RenderCompItem(props) {
|
|
|
36391
36540
|
getPopupContainer: function getPopupContainer() {
|
|
36392
36541
|
return document.body;
|
|
36393
36542
|
}
|
|
36394
|
-
})) || 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, {
|
|
36543
|
+
})) || 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, {
|
|
36395
36544
|
selectBusinessType: "realWarehouse",
|
|
36396
36545
|
selectProps: _objectSpread2({
|
|
36397
36546
|
style: styleCommon,
|
|
@@ -36413,7 +36562,7 @@ function RenderCompItem(props) {
|
|
|
36413
36562
|
getPopupContainer: function getPopupContainer() {
|
|
36414
36563
|
return document.body;
|
|
36415
36564
|
}
|
|
36416
|
-
})) || 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, {
|
|
36565
|
+
})) || 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, {
|
|
36417
36566
|
selectBusinessType: "virtualWarehouse",
|
|
36418
36567
|
selectProps: _objectSpread2({
|
|
36419
36568
|
style: styleCommon,
|
|
@@ -36435,7 +36584,7 @@ function RenderCompItem(props) {
|
|
|
36435
36584
|
getPopupContainer: function getPopupContainer() {
|
|
36436
36585
|
return document.body;
|
|
36437
36586
|
}
|
|
36438
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36587
|
+
})) || 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, {
|
|
36439
36588
|
selectBusinessType: "channelWarehouse",
|
|
36440
36589
|
selectProps: _objectSpread2({
|
|
36441
36590
|
style: styleCommon,
|
|
@@ -36457,7 +36606,7 @@ function RenderCompItem(props) {
|
|
|
36457
36606
|
getPopupContainer: function getPopupContainer() {
|
|
36458
36607
|
return document.body;
|
|
36459
36608
|
}
|
|
36460
|
-
})) || 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, {
|
|
36609
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36461
36610
|
selectBusinessType: "spuCommodity",
|
|
36462
36611
|
selectProps: _objectSpread2({
|
|
36463
36612
|
style: styleCommon,
|
|
@@ -36478,7 +36627,7 @@ function RenderCompItem(props) {
|
|
|
36478
36627
|
getPopupContainer: function getPopupContainer() {
|
|
36479
36628
|
return document.body;
|
|
36480
36629
|
}
|
|
36481
|
-
})) || 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, {
|
|
36630
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36482
36631
|
selectBusinessType: "skuCommodity",
|
|
36483
36632
|
selectProps: _objectSpread2({
|
|
36484
36633
|
style: styleCommon,
|
|
@@ -36499,13 +36648,13 @@ function RenderCompItem(props) {
|
|
|
36499
36648
|
getPopupContainer: function getPopupContainer() {
|
|
36500
36649
|
return document.body;
|
|
36501
36650
|
}
|
|
36502
|
-
})) || 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, {
|
|
36651
|
+
})) || 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, {
|
|
36503
36652
|
disabled: disabled,
|
|
36504
36653
|
isAll: true,
|
|
36505
36654
|
needNameAndCode: true,
|
|
36506
36655
|
notChangeOnSelect: true,
|
|
36507
36656
|
initRequestSource: function () {
|
|
36508
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36657
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36509
36658
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36510
36659
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36511
36660
|
case 0:
|
|
@@ -36547,7 +36696,7 @@ function RenderCompItem(props) {
|
|
|
36547
36696
|
getPopupContainer: function getPopupContainer() {
|
|
36548
36697
|
return document.body;
|
|
36549
36698
|
}
|
|
36550
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36699
|
+
})) || 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, {
|
|
36551
36700
|
disabled: disabled,
|
|
36552
36701
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36553
36702
|
businessType: "department",
|
|
@@ -36560,7 +36709,7 @@ function RenderCompItem(props) {
|
|
|
36560
36709
|
getPopupContainer: function getPopupContainer() {
|
|
36561
36710
|
return document.body;
|
|
36562
36711
|
}
|
|
36563
|
-
})) || 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, {
|
|
36712
|
+
})) || 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, {
|
|
36564
36713
|
disabled: disabled,
|
|
36565
36714
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36566
36715
|
businessType: "purchase-organization",
|
|
@@ -36573,7 +36722,7 @@ function RenderCompItem(props) {
|
|
|
36573
36722
|
getPopupContainer: function getPopupContainer() {
|
|
36574
36723
|
return document.body;
|
|
36575
36724
|
}
|
|
36576
|
-
})) || 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, {
|
|
36725
|
+
})) || 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, {
|
|
36577
36726
|
disabled: disabled,
|
|
36578
36727
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36579
36728
|
businessType: "sales-organization",
|
|
@@ -36586,7 +36735,7 @@ function RenderCompItem(props) {
|
|
|
36586
36735
|
getPopupContainer: function getPopupContainer() {
|
|
36587
36736
|
return document.body;
|
|
36588
36737
|
}
|
|
36589
|
-
})) || 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, {
|
|
36738
|
+
})) || 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, {
|
|
36590
36739
|
selectBusinessType: "supplier2",
|
|
36591
36740
|
selectProps: _objectSpread2({
|
|
36592
36741
|
style: styleCommon,
|
|
@@ -36607,7 +36756,7 @@ function RenderCompItem(props) {
|
|
|
36607
36756
|
getPopupContainer: function getPopupContainer() {
|
|
36608
36757
|
return document.body;
|
|
36609
36758
|
}
|
|
36610
|
-
})) || 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, {
|
|
36759
|
+
})) || 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, {
|
|
36611
36760
|
selectBusinessType: "customer2",
|
|
36612
36761
|
selectProps: _objectSpread2({
|
|
36613
36762
|
style: styleCommon,
|
|
@@ -36628,7 +36777,7 @@ function RenderCompItem(props) {
|
|
|
36628
36777
|
getPopupContainer: function getPopupContainer() {
|
|
36629
36778
|
return document.body;
|
|
36630
36779
|
}
|
|
36631
|
-
})) || 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, {
|
|
36780
|
+
})) || 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, {
|
|
36632
36781
|
selectBusinessType: "shopFile2",
|
|
36633
36782
|
selectProps: _objectSpread2({
|
|
36634
36783
|
style: styleCommon,
|
|
@@ -36649,7 +36798,7 @@ function RenderCompItem(props) {
|
|
|
36649
36798
|
getPopupContainer: function getPopupContainer() {
|
|
36650
36799
|
return document.body;
|
|
36651
36800
|
}
|
|
36652
|
-
})) || 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, {
|
|
36801
|
+
})) || 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, {
|
|
36653
36802
|
selectBusinessType: "employee2",
|
|
36654
36803
|
selectProps: _objectSpread2({
|
|
36655
36804
|
style: styleCommon,
|
|
@@ -36670,7 +36819,7 @@ function RenderCompItem(props) {
|
|
|
36670
36819
|
getPopupContainer: function getPopupContainer() {
|
|
36671
36820
|
return document.body;
|
|
36672
36821
|
}
|
|
36673
|
-
})) || 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, {
|
|
36822
|
+
})) || 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, {
|
|
36674
36823
|
disabled: disabled,
|
|
36675
36824
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36676
36825
|
businessType: "stock-organization",
|
|
@@ -36683,7 +36832,7 @@ function RenderCompItem(props) {
|
|
|
36683
36832
|
getPopupContainer: function getPopupContainer() {
|
|
36684
36833
|
return document.body;
|
|
36685
36834
|
}
|
|
36686
|
-
})) || 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, {
|
|
36835
|
+
})) || 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, {
|
|
36687
36836
|
disabled: disabled,
|
|
36688
36837
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36689
36838
|
businessType: "settle-organization",
|
|
@@ -36696,7 +36845,7 @@ function RenderCompItem(props) {
|
|
|
36696
36845
|
getPopupContainer: function getPopupContainer() {
|
|
36697
36846
|
return document.body;
|
|
36698
36847
|
}
|
|
36699
|
-
})) || 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, {
|
|
36848
|
+
})) || 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, {
|
|
36700
36849
|
selectBusinessType: "deliveryMode",
|
|
36701
36850
|
selectProps: _objectSpread2({
|
|
36702
36851
|
style: styleCommon,
|
|
@@ -36717,7 +36866,7 @@ function RenderCompItem(props) {
|
|
|
36717
36866
|
getPopupContainer: function getPopupContainer() {
|
|
36718
36867
|
return document.body;
|
|
36719
36868
|
}
|
|
36720
|
-
})) || 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, {
|
|
36869
|
+
})) || 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, {
|
|
36721
36870
|
selectBusinessType: "role",
|
|
36722
36871
|
selectProps: _objectSpread2({
|
|
36723
36872
|
style: styleCommon,
|
|
@@ -36738,7 +36887,7 @@ function RenderCompItem(props) {
|
|
|
36738
36887
|
getPopupContainer: function getPopupContainer() {
|
|
36739
36888
|
return document.body;
|
|
36740
36889
|
}
|
|
36741
|
-
})) || 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, {
|
|
36890
|
+
})) || 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, {
|
|
36742
36891
|
selectBusinessType: "brand",
|
|
36743
36892
|
selectProps: _objectSpread2({
|
|
36744
36893
|
style: styleCommon,
|
|
@@ -36759,7 +36908,7 @@ function RenderCompItem(props) {
|
|
|
36759
36908
|
getPopupContainer: function getPopupContainer() {
|
|
36760
36909
|
return document.body;
|
|
36761
36910
|
}
|
|
36762
|
-
})) || 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, {
|
|
36911
|
+
})) || 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, {
|
|
36763
36912
|
disabled: disabled,
|
|
36764
36913
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36765
36914
|
businessType: "background-category",
|
|
@@ -36772,7 +36921,7 @@ function RenderCompItem(props) {
|
|
|
36772
36921
|
getPopupContainer: function getPopupContainer() {
|
|
36773
36922
|
return document.body;
|
|
36774
36923
|
}
|
|
36775
|
-
})) || 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, {
|
|
36924
|
+
})) || 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, {
|
|
36776
36925
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36777
36926
|
style: styleCommon,
|
|
36778
36927
|
placeholder: '请选择'
|
|
@@ -36795,7 +36944,7 @@ function RenderCompItem(props) {
|
|
|
36795
36944
|
onChange: function onChange(value) {
|
|
36796
36945
|
handleEdit(ites.code, value);
|
|
36797
36946
|
}
|
|
36798
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
36947
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36799
36948
|
style: {
|
|
36800
36949
|
display: 'flex'
|
|
36801
36950
|
}
|
|
@@ -37308,7 +37457,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37308
37457
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
37309
37458
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
37310
37459
|
}
|
|
37311
|
-
var parallelTreeData =
|
|
37460
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
37312
37461
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
37313
37462
|
var _i$key;
|
|
37314
37463
|
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);
|
|
@@ -38277,13 +38426,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
38277
38426
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
38278
38427
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
38279
38428
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
38280
|
-
var list =
|
|
38429
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
38281
38430
|
var requiredList = list.filter(function (c) {
|
|
38282
38431
|
return c.required == 1;
|
|
38283
38432
|
}) || []; // 获取对象属性为true的集合
|
|
38284
38433
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
38285
38434
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
38286
|
-
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) ?
|
|
38435
|
+
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];
|
|
38287
38436
|
(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) {
|
|
38288
38437
|
if (requiredList.some(function (r) {
|
|
38289
38438
|
return r.id === e.elementId;
|
|
@@ -38872,7 +39021,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38872
39021
|
style: {
|
|
38873
39022
|
float: 'right'
|
|
38874
39023
|
}
|
|
38875
|
-
})), /*#__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), {}, {
|
|
39024
|
+
})), /*#__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), {}, {
|
|
38876
39025
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38877
39026
|
ruleGroupInfo: {
|
|
38878
39027
|
ruleGroupList: ruleGroupList,
|
|
@@ -38890,7 +39039,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38890
39039
|
callBack: function callBack(newData) {
|
|
38891
39040
|
upDateData(newData);
|
|
38892
39041
|
}
|
|
38893
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
39042
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38894
39043
|
style: {
|
|
38895
39044
|
padding: 20
|
|
38896
39045
|
}
|
|
@@ -39307,11 +39456,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
39307
39456
|
exports.authFunc = authFunc;
|
|
39308
39457
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
39309
39458
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
39310
|
-
exports.coverToParallel =
|
|
39459
|
+
exports.coverToParallel = coverToParallel;
|
|
39311
39460
|
exports.createUniqID = createUniqID;
|
|
39312
39461
|
exports.downloadExcel = downloadExcel;
|
|
39313
39462
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
39314
|
-
exports.formatter =
|
|
39463
|
+
exports.formatter = formatter;
|
|
39315
39464
|
exports.getAccountID = getAccountID;
|
|
39316
39465
|
exports.getAccountId = getAccountId;
|
|
39317
39466
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|