@bit-sun/business-component 4.0.12-alpha.23 → 4.0.12-alpha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +455 -413
- package/dist/index.js +456 -414
- package/package.json +1 -1
- package/src/components/Business/PropertyModal/index.tsx +12 -10
package/dist/index.js
CHANGED
|
@@ -54,88 +54,9 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
54
54
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
55
55
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
56
56
|
|
|
57
|
-
function _arrayLikeToArray(r, a) {
|
|
58
|
-
(null == a || a > r.length) && (a = r.length);
|
|
59
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
60
|
-
return n;
|
|
61
|
-
}
|
|
62
|
-
function _arrayWithHoles(r) {
|
|
63
|
-
if (Array.isArray(r)) return r;
|
|
64
|
-
}
|
|
65
|
-
function _arrayWithoutHoles(r) {
|
|
66
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
67
|
-
}
|
|
68
|
-
function _assertThisInitialized(e) {
|
|
69
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
70
|
-
return e;
|
|
71
|
-
}
|
|
72
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
73
|
-
try {
|
|
74
|
-
var i = n[a](c),
|
|
75
|
-
u = i.value;
|
|
76
|
-
} catch (n) {
|
|
77
|
-
return void e(n);
|
|
78
|
-
}
|
|
79
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
80
|
-
}
|
|
81
|
-
function _asyncToGenerator(n) {
|
|
82
|
-
return function () {
|
|
83
|
-
var t = this,
|
|
84
|
-
e = arguments;
|
|
85
|
-
return new Promise(function (r, o) {
|
|
86
|
-
var a = n.apply(t, e);
|
|
87
|
-
function _next(n) {
|
|
88
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
89
|
-
}
|
|
90
|
-
function _throw(n) {
|
|
91
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
92
|
-
}
|
|
93
|
-
_next(void 0);
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
57
|
function _callSuper(t, o, e) {
|
|
98
58
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
99
59
|
}
|
|
100
|
-
function _classCallCheck(a, n) {
|
|
101
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
102
|
-
}
|
|
103
|
-
function _defineProperties(e, r) {
|
|
104
|
-
for (var t = 0; t < r.length; t++) {
|
|
105
|
-
var o = r[t];
|
|
106
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function _createClass(e, r, t) {
|
|
110
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
111
|
-
writable: !1
|
|
112
|
-
}), e;
|
|
113
|
-
}
|
|
114
|
-
function _defineProperty(e, r, t) {
|
|
115
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
116
|
-
value: t,
|
|
117
|
-
enumerable: !0,
|
|
118
|
-
configurable: !0,
|
|
119
|
-
writable: !0
|
|
120
|
-
}) : e[r] = t, e;
|
|
121
|
-
}
|
|
122
|
-
function _getPrototypeOf(t) {
|
|
123
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
124
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
125
|
-
}, _getPrototypeOf(t);
|
|
126
|
-
}
|
|
127
|
-
function _inherits(t, e) {
|
|
128
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
129
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
130
|
-
constructor: {
|
|
131
|
-
value: t,
|
|
132
|
-
writable: !0,
|
|
133
|
-
configurable: !0
|
|
134
|
-
}
|
|
135
|
-
}), Object.defineProperty(t, "prototype", {
|
|
136
|
-
writable: !1
|
|
137
|
-
}), e && _setPrototypeOf(t, e);
|
|
138
|
-
}
|
|
139
60
|
function _isNativeReflectConstruct() {
|
|
140
61
|
try {
|
|
141
62
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -144,9 +65,6 @@ function _isNativeReflectConstruct() {
|
|
|
144
65
|
return !!t;
|
|
145
66
|
})();
|
|
146
67
|
}
|
|
147
|
-
function _iterableToArray(r) {
|
|
148
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
149
|
-
}
|
|
150
68
|
function _iterableToArrayLimit(r, l) {
|
|
151
69
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
152
70
|
if (null != t) {
|
|
@@ -174,15 +92,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
174
92
|
return a;
|
|
175
93
|
}
|
|
176
94
|
}
|
|
177
|
-
function _nonIterableRest() {
|
|
178
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
179
|
-
}
|
|
180
|
-
function _nonIterableSpread() {
|
|
181
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
182
|
-
}
|
|
183
|
-
function _objectDestructuringEmpty(t) {
|
|
184
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
185
|
-
}
|
|
186
95
|
function ownKeys(e, r) {
|
|
187
96
|
var t = Object.keys(e);
|
|
188
97
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -204,31 +113,6 @@ function _objectSpread2(e) {
|
|
|
204
113
|
}
|
|
205
114
|
return e;
|
|
206
115
|
}
|
|
207
|
-
function _objectWithoutProperties(e, t) {
|
|
208
|
-
if (null == e) return {};
|
|
209
|
-
var o,
|
|
210
|
-
r,
|
|
211
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
212
|
-
if (Object.getOwnPropertySymbols) {
|
|
213
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
214
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
215
|
-
}
|
|
216
|
-
return i;
|
|
217
|
-
}
|
|
218
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
219
|
-
if (null == r) return {};
|
|
220
|
-
var t = {};
|
|
221
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
222
|
-
if (e.includes(n)) continue;
|
|
223
|
-
t[n] = r[n];
|
|
224
|
-
}
|
|
225
|
-
return t;
|
|
226
|
-
}
|
|
227
|
-
function _possibleConstructorReturn(t, e) {
|
|
228
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
229
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
230
|
-
return _assertThisInitialized(t);
|
|
231
|
-
}
|
|
232
116
|
function _regeneratorRuntime() {
|
|
233
117
|
_regeneratorRuntime = function () {
|
|
234
118
|
return e;
|
|
@@ -530,20 +414,6 @@ function _regeneratorRuntime() {
|
|
|
530
414
|
}
|
|
531
415
|
}, e;
|
|
532
416
|
}
|
|
533
|
-
function _setPrototypeOf(t, e) {
|
|
534
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
535
|
-
return t.__proto__ = e, t;
|
|
536
|
-
}, _setPrototypeOf(t, e);
|
|
537
|
-
}
|
|
538
|
-
function _slicedToArray(r, e) {
|
|
539
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
540
|
-
}
|
|
541
|
-
function _toArray(r) {
|
|
542
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
543
|
-
}
|
|
544
|
-
function _toConsumableArray(r) {
|
|
545
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
546
|
-
}
|
|
547
417
|
function _toPrimitive(t, r) {
|
|
548
418
|
if ("object" != typeof t || !t) return t;
|
|
549
419
|
var e = t[Symbol.toPrimitive];
|
|
@@ -567,13 +437,181 @@ function _typeof(o) {
|
|
|
567
437
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
568
438
|
}, _typeof(o);
|
|
569
439
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
var
|
|
574
|
-
|
|
440
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
441
|
+
try {
|
|
442
|
+
var info = gen[key](arg);
|
|
443
|
+
var value = info.value;
|
|
444
|
+
} catch (error) {
|
|
445
|
+
reject(error);
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
if (info.done) {
|
|
449
|
+
resolve(value);
|
|
450
|
+
} else {
|
|
451
|
+
Promise.resolve(value).then(_next, _throw);
|
|
575
452
|
}
|
|
576
453
|
}
|
|
454
|
+
function _asyncToGenerator(fn) {
|
|
455
|
+
return function () {
|
|
456
|
+
var self = this,
|
|
457
|
+
args = arguments;
|
|
458
|
+
return new Promise(function (resolve, reject) {
|
|
459
|
+
var gen = fn.apply(self, args);
|
|
460
|
+
function _next(value) {
|
|
461
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
462
|
+
}
|
|
463
|
+
function _throw(err) {
|
|
464
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
465
|
+
}
|
|
466
|
+
_next(undefined);
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function _classCallCheck(instance, Constructor) {
|
|
471
|
+
if (!(instance instanceof Constructor)) {
|
|
472
|
+
throw new TypeError("Cannot call a class as a function");
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
function _defineProperties(target, props) {
|
|
476
|
+
for (var i = 0; i < props.length; i++) {
|
|
477
|
+
var descriptor = props[i];
|
|
478
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
479
|
+
descriptor.configurable = true;
|
|
480
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
481
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
485
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
486
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
487
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
488
|
+
writable: false
|
|
489
|
+
});
|
|
490
|
+
return Constructor;
|
|
491
|
+
}
|
|
492
|
+
function _defineProperty(obj, key, value) {
|
|
493
|
+
key = _toPropertyKey(key);
|
|
494
|
+
if (key in obj) {
|
|
495
|
+
Object.defineProperty(obj, key, {
|
|
496
|
+
value: value,
|
|
497
|
+
enumerable: true,
|
|
498
|
+
configurable: true,
|
|
499
|
+
writable: true
|
|
500
|
+
});
|
|
501
|
+
} else {
|
|
502
|
+
obj[key] = value;
|
|
503
|
+
}
|
|
504
|
+
return obj;
|
|
505
|
+
}
|
|
506
|
+
function _inherits(subClass, superClass) {
|
|
507
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
508
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
509
|
+
}
|
|
510
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
511
|
+
constructor: {
|
|
512
|
+
value: subClass,
|
|
513
|
+
writable: true,
|
|
514
|
+
configurable: true
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
Object.defineProperty(subClass, "prototype", {
|
|
518
|
+
writable: false
|
|
519
|
+
});
|
|
520
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
521
|
+
}
|
|
522
|
+
function _getPrototypeOf(o) {
|
|
523
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
524
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
525
|
+
};
|
|
526
|
+
return _getPrototypeOf(o);
|
|
527
|
+
}
|
|
528
|
+
function _setPrototypeOf(o, p) {
|
|
529
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
530
|
+
o.__proto__ = p;
|
|
531
|
+
return o;
|
|
532
|
+
};
|
|
533
|
+
return _setPrototypeOf(o, p);
|
|
534
|
+
}
|
|
535
|
+
function _objectDestructuringEmpty(obj) {
|
|
536
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
537
|
+
}
|
|
538
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
539
|
+
if (source == null) return {};
|
|
540
|
+
var target = {};
|
|
541
|
+
for (var key in source) {
|
|
542
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
543
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
544
|
+
target[key] = source[key];
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return target;
|
|
548
|
+
}
|
|
549
|
+
function _objectWithoutProperties(source, excluded) {
|
|
550
|
+
if (source == null) return {};
|
|
551
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
552
|
+
var key, i;
|
|
553
|
+
if (Object.getOwnPropertySymbols) {
|
|
554
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
555
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
556
|
+
key = sourceSymbolKeys[i];
|
|
557
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
558
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
559
|
+
target[key] = source[key];
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return target;
|
|
563
|
+
}
|
|
564
|
+
function _assertThisInitialized(self) {
|
|
565
|
+
if (self === void 0) {
|
|
566
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
567
|
+
}
|
|
568
|
+
return self;
|
|
569
|
+
}
|
|
570
|
+
function _possibleConstructorReturn(self, call) {
|
|
571
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
572
|
+
return call;
|
|
573
|
+
} else if (call !== void 0) {
|
|
574
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
575
|
+
}
|
|
576
|
+
return _assertThisInitialized(self);
|
|
577
|
+
}
|
|
578
|
+
function _slicedToArray(arr, i) {
|
|
579
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
580
|
+
}
|
|
581
|
+
function _toArray(arr) {
|
|
582
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
583
|
+
}
|
|
584
|
+
function _toConsumableArray(arr) {
|
|
585
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
586
|
+
}
|
|
587
|
+
function _arrayWithoutHoles(arr) {
|
|
588
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
589
|
+
}
|
|
590
|
+
function _arrayWithHoles(arr) {
|
|
591
|
+
if (Array.isArray(arr)) return arr;
|
|
592
|
+
}
|
|
593
|
+
function _iterableToArray(iter) {
|
|
594
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
595
|
+
}
|
|
596
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
597
|
+
if (!o) return;
|
|
598
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
599
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
600
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
601
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
602
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
603
|
+
}
|
|
604
|
+
function _arrayLikeToArray(arr, len) {
|
|
605
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
606
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
607
|
+
return arr2;
|
|
608
|
+
}
|
|
609
|
+
function _nonIterableSpread() {
|
|
610
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
611
|
+
}
|
|
612
|
+
function _nonIterableRest() {
|
|
613
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
614
|
+
}
|
|
577
615
|
|
|
578
616
|
var ENUM = {
|
|
579
617
|
// 浏览器缓存信息
|
|
@@ -1082,13 +1120,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1082
1120
|
imgHtml.innerHTML = str;
|
|
1083
1121
|
}
|
|
1084
1122
|
// 测试使用 测试类型缩小 end
|
|
1085
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1123
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1086
1124
|
className: "clomnsImg"
|
|
1087
1125
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1088
1126
|
src: url,
|
|
1089
1127
|
width: "16px",
|
|
1090
1128
|
height: "16px"
|
|
1091
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1129
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1092
1130
|
className: "clomnsImg2"
|
|
1093
1131
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1094
1132
|
src: noImg
|
|
@@ -1227,7 +1265,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1227
1265
|
}
|
|
1228
1266
|
save_link.click();
|
|
1229
1267
|
}
|
|
1230
|
-
var
|
|
1268
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1231
1269
|
return data.map(function (item) {
|
|
1232
1270
|
if (!item.name || !item.path) {
|
|
1233
1271
|
return null;
|
|
@@ -1247,7 +1285,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1247
1285
|
authority: item.authority || parentAuthority
|
|
1248
1286
|
});
|
|
1249
1287
|
if (item.routes) {
|
|
1250
|
-
var children =
|
|
1288
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1251
1289
|
// Reduce memory usage
|
|
1252
1290
|
result.children = children;
|
|
1253
1291
|
}
|
|
@@ -1257,7 +1295,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1257
1295
|
return item;
|
|
1258
1296
|
});
|
|
1259
1297
|
};
|
|
1260
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1298
|
+
var memoizeOneFormatter = memoizeOne__default['default'](formatter, isEqual__default['default']);
|
|
1261
1299
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1262
1300
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1263
1301
|
if (backHistoryPath) {
|
|
@@ -1566,7 +1604,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1566
1604
|
// sheepMap是表头字段中英文映射
|
|
1567
1605
|
// sheetCount:表的数量,默认一张
|
|
1568
1606
|
var resolveFile = /*#__PURE__*/function () {
|
|
1569
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1607
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1570
1608
|
var config,
|
|
1571
1609
|
data,
|
|
1572
1610
|
_args = arguments;
|
|
@@ -1605,7 +1643,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1605
1643
|
}();
|
|
1606
1644
|
//读取文件
|
|
1607
1645
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1608
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1646
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1609
1647
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1610
1648
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1611
1649
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1698,14 +1736,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1698
1736
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1699
1737
|
|
|
1700
1738
|
// 获取树平行结构
|
|
1701
|
-
var
|
|
1739
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1702
1740
|
var childrenKey = chilKey || 'children';
|
|
1703
1741
|
treeData.forEach(function (el) {
|
|
1704
1742
|
var _el$childrenKey;
|
|
1705
1743
|
result.push(el);
|
|
1706
1744
|
if ((el === null || el === void 0 ? void 0 : el[childrenKey]) && (el === null || el === void 0 ? void 0 : (_el$childrenKey = el[childrenKey]) === null || _el$childrenKey === void 0 ? void 0 : _el$childrenKey.length) > 0) {
|
|
1707
1745
|
// 子级递归
|
|
1708
|
-
|
|
1746
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1709
1747
|
}
|
|
1710
1748
|
});
|
|
1711
1749
|
return result;
|
|
@@ -1982,13 +2020,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1982
2020
|
imgHtml.innerHTML = str;
|
|
1983
2021
|
}
|
|
1984
2022
|
// 测试使用 测试类型缩小 end
|
|
1985
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
2023
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
1986
2024
|
className: "clomnsImg"
|
|
1987
2025
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1988
2026
|
src: url,
|
|
1989
2027
|
width: "16px",
|
|
1990
2028
|
height: "16px"
|
|
1991
|
-
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2029
|
+
}, paramsObj)))) : ( /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1992
2030
|
src: noImg
|
|
1993
2031
|
}))));
|
|
1994
2032
|
};
|
|
@@ -2050,7 +2088,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2050
2088
|
}
|
|
2051
2089
|
});
|
|
2052
2090
|
};
|
|
2053
|
-
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (/*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2091
|
+
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2054
2092
|
disabled: disabled,
|
|
2055
2093
|
onChange: function onChange(e) {
|
|
2056
2094
|
var v = e.target.value;
|
|
@@ -2060,7 +2098,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2060
2098
|
width: 170
|
|
2061
2099
|
},
|
|
2062
2100
|
value: inputValue
|
|
2063
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2101
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2064
2102
|
disabled: disabled,
|
|
2065
2103
|
onBlur: function onBlur(e) {
|
|
2066
2104
|
var v = parseFloat(e.target.value);
|
|
@@ -2439,16 +2477,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2439
2477
|
var handleExportBarCode = handleExport;
|
|
2440
2478
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2441
2479
|
var routerMap = {};
|
|
2442
|
-
var
|
|
2480
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2443
2481
|
data.forEach(function (menuItem) {
|
|
2444
2482
|
if (menuItem.children) {
|
|
2445
|
-
|
|
2483
|
+
flattenMenuData(menuItem.children);
|
|
2446
2484
|
}
|
|
2447
2485
|
// Reduce memory usage
|
|
2448
2486
|
routerMap[menuItem.path] = menuItem;
|
|
2449
2487
|
});
|
|
2450
2488
|
};
|
|
2451
|
-
|
|
2489
|
+
flattenMenuData(menuData);
|
|
2452
2490
|
return routerMap;
|
|
2453
2491
|
};
|
|
2454
2492
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2591,7 +2629,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2591
2629
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2592
2630
|
};
|
|
2593
2631
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2594
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2632
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2595
2633
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2596
2634
|
while (1) switch (_context.prev = _context.next) {
|
|
2597
2635
|
case 0:
|
|
@@ -3265,7 +3303,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3265
3303
|
placement: "bottomLeft"
|
|
3266
3304
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3267
3305
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3268
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3306
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3269
3307
|
trigger: ['click'],
|
|
3270
3308
|
overlay: this.menuList,
|
|
3271
3309
|
placement: "bottomRight"
|
|
@@ -3940,7 +3978,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3940
3978
|
placement: "bottomLeft"
|
|
3941
3979
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3942
3980
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3943
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3981
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && ( /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3944
3982
|
trigger: ['click'],
|
|
3945
3983
|
overlay: this.menuList,
|
|
3946
3984
|
placement: "bottomRight"
|
|
@@ -4339,7 +4377,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4339
4377
|
title: item.name,
|
|
4340
4378
|
className: "propertyGroup_checkbox_container"
|
|
4341
4379
|
}, item.name));
|
|
4342
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4380
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4343
4381
|
style: {
|
|
4344
4382
|
width: '50px',
|
|
4345
4383
|
cursor: 'pointer',
|
|
@@ -4352,7 +4390,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4352
4390
|
setShowNotCommon(!showNotCommon);
|
|
4353
4391
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4354
4392
|
}
|
|
4355
|
-
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4393
|
+
}, showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4356
4394
|
};
|
|
4357
4395
|
var PropertyGroup$1 = /*#__PURE__*/React__default['default'].memo(PropertyGroup, function (props, nextProps) {
|
|
4358
4396
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -4432,12 +4470,13 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4432
4470
|
return;
|
|
4433
4471
|
}
|
|
4434
4472
|
var newArr = ((data === null || data === void 0 ? void 0 : data.data) || []).map(function (item) {
|
|
4473
|
+
var _item$property, _item$property2, _item$property3, _item$property4;
|
|
4435
4474
|
return {
|
|
4436
|
-
propertyCode: item.property.propertyCode,
|
|
4437
|
-
propertyName: item.property.name,
|
|
4438
|
-
propertyId: item.property.id,
|
|
4439
|
-
isCommonUse: item.property.isCommonUse === 'commonUse',
|
|
4440
|
-
detailList: item.propertyValueList.map(function (detail) {
|
|
4475
|
+
propertyCode: (_item$property = item.property) === null || _item$property === void 0 ? void 0 : _item$property.propertyCode,
|
|
4476
|
+
propertyName: (_item$property2 = item.property) === null || _item$property2 === void 0 ? void 0 : _item$property2.name,
|
|
4477
|
+
propertyId: (_item$property3 = item.property) === null || _item$property3 === void 0 ? void 0 : _item$property3.id,
|
|
4478
|
+
isCommonUse: ((_item$property4 = item.property) === null || _item$property4 === void 0 ? void 0 : _item$property4.isCommonUse) === 'commonUse',
|
|
4479
|
+
detailList: (item.propertyValueList || []).map(function (detail) {
|
|
4441
4480
|
return {
|
|
4442
4481
|
name: detail.value,
|
|
4443
4482
|
value: detail.value,
|
|
@@ -4456,8 +4495,11 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4456
4495
|
});
|
|
4457
4496
|
}, [choosedClassify]);
|
|
4458
4497
|
React$1.useEffect(function () {
|
|
4459
|
-
|
|
4460
|
-
|
|
4498
|
+
if (visible) {
|
|
4499
|
+
var _classifyOptionList$;
|
|
4500
|
+
// 获取选中品类信息
|
|
4501
|
+
setChoosedClassify((value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$ = classifyOptionList[0]) === null || _classifyOptionList$ === void 0 ? void 0 : _classifyOptionList$.value));
|
|
4502
|
+
}
|
|
4461
4503
|
// 获取选中属性值展示
|
|
4462
4504
|
var choosedPropertyList = ((value === null || value === void 0 ? void 0 : value.propertyList) || []).map(function (item) {
|
|
4463
4505
|
return (item.detailList || []).map(function (detail) {
|
|
@@ -4469,9 +4511,9 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4469
4511
|
})) {
|
|
4470
4512
|
setShowNotCommon(true);
|
|
4471
4513
|
}
|
|
4472
|
-
setChoosedValues(choosedPropertyList);
|
|
4473
4514
|
settingValue.current = _objectSpread2({}, value);
|
|
4474
|
-
|
|
4515
|
+
setChoosedValues(choosedPropertyList);
|
|
4516
|
+
}, [value, visible]);
|
|
4475
4517
|
// 关闭弹窗回传组件值
|
|
4476
4518
|
var handleConfirm = function handleConfirm() {
|
|
4477
4519
|
setVisible(false);
|
|
@@ -4575,7 +4617,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4575
4617
|
propertyData: item,
|
|
4576
4618
|
handleProperyItemChange: handleProperyItemChange
|
|
4577
4619
|
});
|
|
4578
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4620
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4579
4621
|
style: {
|
|
4580
4622
|
width: '50px',
|
|
4581
4623
|
cursor: 'pointer',
|
|
@@ -4585,7 +4627,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4585
4627
|
onClick: function onClick() {
|
|
4586
4628
|
return setShowNotCommon(!showNotCommon);
|
|
4587
4629
|
}
|
|
4588
|
-
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
4630
|
+
}, showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
4589
4631
|
};
|
|
4590
4632
|
|
|
4591
4633
|
var Option$1 = antd.Select.Option;
|
|
@@ -5865,7 +5907,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5865
5907
|
destroyTooltipOnHide: true,
|
|
5866
5908
|
placement: "topRight",
|
|
5867
5909
|
autoAdjustOverflow: false,
|
|
5868
|
-
title: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5910
|
+
title: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5869
5911
|
style: {
|
|
5870
5912
|
margin: '6px 8px 0px'
|
|
5871
5913
|
},
|
|
@@ -5937,13 +5979,13 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5937
5979
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5938
5980
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5939
5981
|
className: 'search_select'
|
|
5940
|
-
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5982
|
+
}, fieldComponent ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5941
5983
|
onClick: function onClick() {
|
|
5942
5984
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5943
5985
|
(_fieldComponent$props = fieldComponent.props) === null || _fieldComponent$props === void 0 ? void 0 : (_fieldComponent$props2 = _fieldComponent$props.onClick) === null || _fieldComponent$props2 === void 0 ? void 0 : _fieldComponent$props2.call(_fieldComponent$props);
|
|
5944
5986
|
showModal();
|
|
5945
5987
|
}
|
|
5946
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
5988
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5947
5989
|
title: getShowStr(),
|
|
5948
5990
|
style: {
|
|
5949
5991
|
overflow: 'hidden',
|
|
@@ -5970,10 +6012,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5970
6012
|
dropdownRender: function dropdownRender(menu) {
|
|
5971
6013
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5972
6014
|
},
|
|
5973
|
-
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6015
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
5974
6016
|
size: "small",
|
|
5975
6017
|
className: 'searchSelectSpin'
|
|
5976
|
-
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6018
|
+
})) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5977
6019
|
style: {
|
|
5978
6020
|
textAlign: 'center'
|
|
5979
6021
|
}
|
|
@@ -6004,7 +6046,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6004
6046
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6005
6047
|
filterTxt: searchValue
|
|
6006
6048
|
}));
|
|
6007
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6049
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6008
6050
|
maskClosable: false,
|
|
6009
6051
|
destroyOnClose: true,
|
|
6010
6052
|
width: "80%",
|
|
@@ -6601,7 +6643,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6601
6643
|
style: {
|
|
6602
6644
|
width: 525
|
|
6603
6645
|
}
|
|
6604
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6646
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6605
6647
|
checked: !dataSource.some(function (item) {
|
|
6606
6648
|
if (item.hidden) return true;
|
|
6607
6649
|
return false;
|
|
@@ -6639,13 +6681,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6639
6681
|
_this2.onChange(e, item.title);
|
|
6640
6682
|
}
|
|
6641
6683
|
}, item.title);
|
|
6642
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
6684
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6643
6685
|
style: {
|
|
6644
6686
|
width: '144px'
|
|
6645
6687
|
}
|
|
6646
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6688
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6647
6689
|
className: 'sort_table_column_all_empty'
|
|
6648
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6690
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6649
6691
|
className: 'sort_table_column_special'
|
|
6650
6692
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6651
6693
|
className: 'sort_table_column_all'
|
|
@@ -6834,7 +6876,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6834
6876
|
});
|
|
6835
6877
|
};
|
|
6836
6878
|
// 格式化树选择器数据源
|
|
6837
|
-
var
|
|
6879
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6838
6880
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6839
6881
|
return {
|
|
6840
6882
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6844,7 +6886,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6844
6886
|
isLeaf: !haveChildren,
|
|
6845
6887
|
disabled: haveChildren,
|
|
6846
6888
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6847
|
-
return
|
|
6889
|
+
return mapSearchTree(i, resKeyValue);
|
|
6848
6890
|
}) : []
|
|
6849
6891
|
};
|
|
6850
6892
|
};
|
|
@@ -6853,7 +6895,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6853
6895
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6854
6896
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6855
6897
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6856
|
-
return
|
|
6898
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6857
6899
|
}) || [];
|
|
6858
6900
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6859
6901
|
};
|
|
@@ -7024,7 +7066,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7024
7066
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7025
7067
|
// FIXME: 特殊业务逻辑
|
|
7026
7068
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7027
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7069
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7028
7070
|
var result;
|
|
7029
7071
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7030
7072
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7277,7 +7319,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7277
7319
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7278
7320
|
value: text || null,
|
|
7279
7321
|
onChange: function () {
|
|
7280
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7322
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7281
7323
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7282
7324
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7283
7325
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7885,10 +7927,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7885
7927
|
var newColumns = arr.map(function (col) {
|
|
7886
7928
|
return _objectSpread2({}, col);
|
|
7887
7929
|
});
|
|
7888
|
-
var
|
|
7930
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7889
7931
|
var i = indexArr.shift();
|
|
7890
7932
|
if (indexArr.length > 0) {
|
|
7891
|
-
|
|
7933
|
+
handleIndex(arr[i].children, indexArr);
|
|
7892
7934
|
} else {
|
|
7893
7935
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7894
7936
|
width: size.width
|
|
@@ -7896,7 +7938,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7896
7938
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7897
7939
|
}
|
|
7898
7940
|
};
|
|
7899
|
-
|
|
7941
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7900
7942
|
callback(newColumns);
|
|
7901
7943
|
};
|
|
7902
7944
|
};
|
|
@@ -7906,13 +7948,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7906
7948
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7907
7949
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7908
7950
|
};
|
|
7909
|
-
var
|
|
7951
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7910
7952
|
arr.forEach(function (item, index) {
|
|
7911
7953
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7912
7954
|
return i || i === 0;
|
|
7913
7955
|
});
|
|
7914
7956
|
if (noEmptyArray$1(item.children)) {
|
|
7915
|
-
|
|
7957
|
+
handleColumns(item.children, indexArrInside);
|
|
7916
7958
|
} else {
|
|
7917
7959
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7918
7960
|
item.onHeaderCell = function (column) {
|
|
@@ -7928,14 +7970,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7928
7970
|
handleAntdColumnsSpecialParams(item);
|
|
7929
7971
|
return _objectSpread2({}, item);
|
|
7930
7972
|
});
|
|
7931
|
-
|
|
7973
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7932
7974
|
return setShowToChooseColumnsCallback(res);
|
|
7933
7975
|
});
|
|
7934
7976
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7935
7977
|
handleAntdColumnsSpecialParams(item);
|
|
7936
7978
|
return _objectSpread2({}, item);
|
|
7937
7979
|
});
|
|
7938
|
-
|
|
7980
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7939
7981
|
return setShowColumnsCallback(res);
|
|
7940
7982
|
});
|
|
7941
7983
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7946,7 +7988,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7946
7988
|
id: "add_select_div_".concat(uniqueValue)
|
|
7947
7989
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
7948
7990
|
onClick: handleShowModal
|
|
7949
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7991
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
7950
7992
|
width: '1200px',
|
|
7951
7993
|
style: {
|
|
7952
7994
|
top: 20
|
|
@@ -8860,7 +8902,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8860
8902
|
});
|
|
8861
8903
|
};
|
|
8862
8904
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8863
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8905
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8864
8906
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8865
8907
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8866
8908
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8943,10 +8985,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8943
8985
|
var newColumns = arr.map(function (col) {
|
|
8944
8986
|
return _objectSpread2({}, col);
|
|
8945
8987
|
});
|
|
8946
|
-
var
|
|
8988
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8947
8989
|
var i = indexArr.shift();
|
|
8948
8990
|
if (indexArr.length > 0) {
|
|
8949
|
-
|
|
8991
|
+
handleIndex(arr[i].children, indexArr);
|
|
8950
8992
|
} else {
|
|
8951
8993
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8952
8994
|
width: size.width
|
|
@@ -8954,17 +8996,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8954
8996
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8955
8997
|
}
|
|
8956
8998
|
};
|
|
8957
|
-
|
|
8999
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8958
9000
|
callback(newColumns);
|
|
8959
9001
|
};
|
|
8960
9002
|
};
|
|
8961
|
-
var
|
|
9003
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8962
9004
|
arr.forEach(function (item, index) {
|
|
8963
9005
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8964
9006
|
return i || i === 0;
|
|
8965
9007
|
});
|
|
8966
9008
|
if (noEmptyArray$1(item.children)) {
|
|
8967
|
-
|
|
9009
|
+
handleColumns(item.children, indexArrInside);
|
|
8968
9010
|
} else {
|
|
8969
9011
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8970
9012
|
item.onHeaderCell = function (column) {
|
|
@@ -8980,7 +9022,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8980
9022
|
handleAntdColumnsSpecialParams(item);
|
|
8981
9023
|
return _objectSpread2({}, item);
|
|
8982
9024
|
});
|
|
8983
|
-
|
|
9025
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8984
9026
|
return setShowColumnsCallback(res);
|
|
8985
9027
|
});
|
|
8986
9028
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -9295,7 +9337,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9295
9337
|
});
|
|
9296
9338
|
};
|
|
9297
9339
|
// 格式化树选择器数据源
|
|
9298
|
-
var
|
|
9340
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9299
9341
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9300
9342
|
return {
|
|
9301
9343
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9305,7 +9347,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9305
9347
|
isLeaf: !haveChildren,
|
|
9306
9348
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9307
9349
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9308
|
-
return
|
|
9350
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9309
9351
|
}) : []
|
|
9310
9352
|
};
|
|
9311
9353
|
};
|
|
@@ -9319,7 +9361,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9319
9361
|
disabledJudge = false;
|
|
9320
9362
|
}
|
|
9321
9363
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9322
|
-
return
|
|
9364
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9323
9365
|
}) || [];
|
|
9324
9366
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9325
9367
|
};
|
|
@@ -13389,7 +13431,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13389
13431
|
};
|
|
13390
13432
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
13391
13433
|
onClick: handleShowModal
|
|
13392
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13434
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13393
13435
|
onOk: handleOk,
|
|
13394
13436
|
onCancel: handleCancel,
|
|
13395
13437
|
destroyOnClose: true,
|
|
@@ -13508,7 +13550,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13508
13550
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13509
13551
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13510
13552
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13511
|
-
var
|
|
13553
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13512
13554
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13513
13555
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13514
13556
|
return {
|
|
@@ -13520,7 +13562,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13520
13562
|
isLeaf: !haveChildren,
|
|
13521
13563
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13522
13564
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13523
|
-
return
|
|
13565
|
+
return mapSearchTree(i);
|
|
13524
13566
|
}) : []
|
|
13525
13567
|
};
|
|
13526
13568
|
};
|
|
@@ -13538,8 +13580,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13538
13580
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13539
13581
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
13540
13582
|
headers: headers
|
|
13541
|
-
}).then(/*#__PURE__*/function () {
|
|
13542
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13583
|
+
}).then( /*#__PURE__*/function () {
|
|
13584
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13543
13585
|
var _ctx$form;
|
|
13544
13586
|
var resData, coverData, data, dataList;
|
|
13545
13587
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13566,7 +13608,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13566
13608
|
case 9:
|
|
13567
13609
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13568
13610
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13569
|
-
return
|
|
13611
|
+
return mapSearchTree(ites);
|
|
13570
13612
|
}) || [];
|
|
13571
13613
|
case 11:
|
|
13572
13614
|
_context.next = 14;
|
|
@@ -13604,11 +13646,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13604
13646
|
return _formatResult;
|
|
13605
13647
|
}
|
|
13606
13648
|
};
|
|
13607
|
-
var
|
|
13649
|
+
var parallelData = function parallelData(data, result) {
|
|
13608
13650
|
data.forEach(function (i) {
|
|
13609
13651
|
result.push(i);
|
|
13610
13652
|
if (i[treeChildrenRoom]) {
|
|
13611
|
-
|
|
13653
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13612
13654
|
}
|
|
13613
13655
|
});
|
|
13614
13656
|
return result;
|
|
@@ -13648,7 +13690,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13648
13690
|
var _ctx$form2;
|
|
13649
13691
|
var handleData = formatData(data);
|
|
13650
13692
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13651
|
-
var parallelTreeData =
|
|
13693
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13652
13694
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13653
13695
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13654
13696
|
onChangeName && onChangeName(dataName);
|
|
@@ -13691,7 +13733,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13691
13733
|
var getShowStr = function getShowStr() {
|
|
13692
13734
|
var isMultiple = multiple || treeCheckable;
|
|
13693
13735
|
var kongValue = '无';
|
|
13694
|
-
var parallelTreeData =
|
|
13736
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13695
13737
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13696
13738
|
if (isMultiple) {
|
|
13697
13739
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13703,7 +13745,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13703
13745
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13704
13746
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13705
13747
|
className: 'tree_search_select'
|
|
13706
|
-
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13748
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13707
13749
|
title: getShowStr(),
|
|
13708
13750
|
style: {
|
|
13709
13751
|
overflow: 'hidden',
|
|
@@ -13711,7 +13753,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13711
13753
|
whiteSpace: 'nowrap'
|
|
13712
13754
|
},
|
|
13713
13755
|
className: 'search_select_show'
|
|
13714
|
-
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13756
|
+
}, getShowStr())) : ( /*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13715
13757
|
treeCheckable: treeCheckable,
|
|
13716
13758
|
maxTagCount: maxTagCount,
|
|
13717
13759
|
showSearch: showSearch,
|
|
@@ -13908,7 +13950,7 @@ var index$2 = (function (props) {
|
|
|
13908
13950
|
} : {}
|
|
13909
13951
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13910
13952
|
className: 'status-label-operate'
|
|
13911
|
-
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
13953
|
+
}, item.isDone ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13912
13954
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13913
13955
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
13914
13956
|
style: {
|
|
@@ -14689,7 +14731,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14689
14731
|
style: {
|
|
14690
14732
|
width: 525
|
|
14691
14733
|
}
|
|
14692
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14734
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
14693
14735
|
checked: !dataSource.some(function (item) {
|
|
14694
14736
|
if (item.hidden) return true;
|
|
14695
14737
|
return false;
|
|
@@ -14727,13 +14769,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14727
14769
|
_this2.onChange(e, item.title);
|
|
14728
14770
|
}
|
|
14729
14771
|
}, item.title);
|
|
14730
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
14772
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
14731
14773
|
style: {
|
|
14732
14774
|
width: '144px'
|
|
14733
14775
|
}
|
|
14734
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14776
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14735
14777
|
className: 'sort_table_column_all_empty'
|
|
14736
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14778
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14737
14779
|
className: 'sort_table_column_special'
|
|
14738
14780
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14739
14781
|
className: 'sort_table_column_all'
|
|
@@ -14912,10 +14954,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14912
14954
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14913
14955
|
return _objectSpread2({}, col);
|
|
14914
14956
|
});
|
|
14915
|
-
var
|
|
14957
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14916
14958
|
var i = indexArr.shift();
|
|
14917
14959
|
if (indexArr.length > 0) {
|
|
14918
|
-
|
|
14960
|
+
handleIndex(arr[i].children, indexArr);
|
|
14919
14961
|
} else {
|
|
14920
14962
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14921
14963
|
width: size.width
|
|
@@ -14923,7 +14965,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14923
14965
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14924
14966
|
}
|
|
14925
14967
|
};
|
|
14926
|
-
|
|
14968
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14927
14969
|
_this.setState({
|
|
14928
14970
|
showColumns: _toConsumableArray(newColumns)
|
|
14929
14971
|
});
|
|
@@ -14964,7 +15006,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14964
15006
|
};
|
|
14965
15007
|
setIsResizing(true);
|
|
14966
15008
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14967
|
-
document.addEventListener('mouseup',
|
|
15009
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
14968
15010
|
};
|
|
14969
15011
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14970
15012
|
e.stopPropagation();
|
|
@@ -14980,9 +15022,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14980
15022
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14981
15023
|
}
|
|
14982
15024
|
};
|
|
14983
|
-
var
|
|
15025
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
14984
15026
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
14985
|
-
document.removeEventListener('mouseup',
|
|
15027
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
14986
15028
|
setIsResizing(false);
|
|
14987
15029
|
};
|
|
14988
15030
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15103,13 +15145,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15103
15145
|
showSummary = summary;
|
|
15104
15146
|
}
|
|
15105
15147
|
}
|
|
15106
|
-
var
|
|
15148
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15107
15149
|
arr.forEach(function (item, index) {
|
|
15108
15150
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15109
15151
|
return i || i === 0;
|
|
15110
15152
|
});
|
|
15111
15153
|
if (noEmptyArray$1(item.children)) {
|
|
15112
|
-
|
|
15154
|
+
handleColumns(item.children, indexArrInside);
|
|
15113
15155
|
} else {
|
|
15114
15156
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15115
15157
|
item.onHeaderCell = function (column) {
|
|
@@ -15125,7 +15167,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15125
15167
|
handleBssulaColumnsSpecialParams(item);
|
|
15126
15168
|
return _objectSpread2({}, item);
|
|
15127
15169
|
});
|
|
15128
|
-
|
|
15170
|
+
handleColumns(showCol, []);
|
|
15129
15171
|
if (dynamicColumns.length) {
|
|
15130
15172
|
showCol = this.handledynamicColumns(showCol);
|
|
15131
15173
|
}
|
|
@@ -15166,7 +15208,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15166
15208
|
cell: this.ResizeableTitle
|
|
15167
15209
|
}
|
|
15168
15210
|
}
|
|
15169
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15211
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15170
15212
|
summary: summary
|
|
15171
15213
|
})));
|
|
15172
15214
|
}
|
|
@@ -15263,10 +15305,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15263
15305
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15264
15306
|
return _objectSpread2({}, col);
|
|
15265
15307
|
});
|
|
15266
|
-
var
|
|
15308
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15267
15309
|
var i = indexArr.shift();
|
|
15268
15310
|
if (indexArr.length > 0) {
|
|
15269
|
-
|
|
15311
|
+
handleIndex(arr[i].children, indexArr);
|
|
15270
15312
|
} else {
|
|
15271
15313
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15272
15314
|
width: size.width
|
|
@@ -15274,7 +15316,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15274
15316
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15275
15317
|
}
|
|
15276
15318
|
};
|
|
15277
|
-
|
|
15319
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15278
15320
|
_this.setState({
|
|
15279
15321
|
showColumns: _toConsumableArray(newColumns)
|
|
15280
15322
|
});
|
|
@@ -15350,13 +15392,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15350
15392
|
showSummary = summary;
|
|
15351
15393
|
}
|
|
15352
15394
|
}
|
|
15353
|
-
var
|
|
15395
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15354
15396
|
arr.forEach(function (item, index) {
|
|
15355
15397
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15356
15398
|
return i || i === 0;
|
|
15357
15399
|
});
|
|
15358
15400
|
if (noEmptyArray$1(item.children)) {
|
|
15359
|
-
|
|
15401
|
+
handleColumns(item.children, indexArrInside);
|
|
15360
15402
|
} else {
|
|
15361
15403
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15362
15404
|
item.onHeaderCell = function (column) {
|
|
@@ -15372,7 +15414,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15372
15414
|
handleAntdColumnsSpecialParams(item);
|
|
15373
15415
|
return _objectSpread2({}, item);
|
|
15374
15416
|
});
|
|
15375
|
-
|
|
15417
|
+
handleColumns(showCol, []);
|
|
15376
15418
|
if (dynamicColumns.length) {
|
|
15377
15419
|
showCol = this.handledynamicColumns(showCol);
|
|
15378
15420
|
}
|
|
@@ -15412,7 +15454,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15412
15454
|
cell: this.ResizeableTitle
|
|
15413
15455
|
}
|
|
15414
15456
|
}
|
|
15415
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15457
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15416
15458
|
summary: summary
|
|
15417
15459
|
})));
|
|
15418
15460
|
}
|
|
@@ -15472,20 +15514,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15472
15514
|
};
|
|
15473
15515
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15474
15516
|
var routerMap = {};
|
|
15475
|
-
var
|
|
15517
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15476
15518
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15477
15519
|
data.forEach(function (menuItem) {
|
|
15478
15520
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15479
15521
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15480
15522
|
});
|
|
15481
15523
|
if (newMenuItem.children) {
|
|
15482
|
-
|
|
15524
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15483
15525
|
}
|
|
15484
15526
|
// Reduce memory usage
|
|
15485
15527
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15486
15528
|
});
|
|
15487
15529
|
};
|
|
15488
|
-
|
|
15530
|
+
flattenMenuData(menuData, {});
|
|
15489
15531
|
return routerMap;
|
|
15490
15532
|
};
|
|
15491
15533
|
// mode类型判断
|
|
@@ -15811,7 +15853,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15811
15853
|
display: 'flex',
|
|
15812
15854
|
gap: '8px'
|
|
15813
15855
|
}
|
|
15814
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15856
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15815
15857
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15816
15858
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15817
15859
|
onClick: function onClick() {
|
|
@@ -15819,7 +15861,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15819
15861
|
},
|
|
15820
15862
|
width: 24,
|
|
15821
15863
|
src: scanning
|
|
15822
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15864
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
15823
15865
|
title: "\u5168\u5C4F"
|
|
15824
15866
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15825
15867
|
onClick: function onClick() {
|
|
@@ -15827,7 +15869,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15827
15869
|
},
|
|
15828
15870
|
width: 24,
|
|
15829
15871
|
src: quanping
|
|
15830
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15872
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15831
15873
|
}, function (prevProps, nextProps) {
|
|
15832
15874
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15833
15875
|
return false;
|
|
@@ -15912,7 +15954,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
15912
15954
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
15913
15955
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15914
15956
|
}, item));
|
|
15915
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15957
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15916
15958
|
}, function (prevProps, nextProps) {
|
|
15917
15959
|
if (prevProps.title !== nextProps.title) {
|
|
15918
15960
|
return false;
|
|
@@ -16552,7 +16594,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16552
16594
|
});
|
|
16553
16595
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16554
16596
|
className: 'sort_table_wrapper'
|
|
16555
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16597
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
16556
16598
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16557
16599
|
wrapClassName: 'sort_table_wrapper',
|
|
16558
16600
|
width: 810,
|
|
@@ -16603,7 +16645,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16603
16645
|
width: 525,
|
|
16604
16646
|
height: 24
|
|
16605
16647
|
}
|
|
16606
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16648
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16607
16649
|
checked: !dataSource.some(function (item) {
|
|
16608
16650
|
if (item.hidden) return true;
|
|
16609
16651
|
return false;
|
|
@@ -16657,13 +16699,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16657
16699
|
_this2.onChange(e, item.title);
|
|
16658
16700
|
}
|
|
16659
16701
|
}, item.title);
|
|
16660
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
16702
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16661
16703
|
style: {
|
|
16662
16704
|
width: '144px'
|
|
16663
16705
|
}
|
|
16664
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
16706
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16665
16707
|
className: 'sort_table_column_all_empty'
|
|
16666
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16708
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16667
16709
|
className: 'sort_table_column_special'
|
|
16668
16710
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16669
16711
|
className: 'sort_table_column_all'
|
|
@@ -17137,7 +17179,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17137
17179
|
});
|
|
17138
17180
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17139
17181
|
className: 'sort_table_wrapper'
|
|
17140
|
-
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17182
|
+
}, visible && ( /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17141
17183
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17142
17184
|
wrapClassName: 'sort_table_wrapper',
|
|
17143
17185
|
width: 820,
|
|
@@ -17182,7 +17224,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17182
17224
|
style: {
|
|
17183
17225
|
width: 525
|
|
17184
17226
|
}
|
|
17185
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17227
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && ( /*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17186
17228
|
checked: !dataSource.some(function (item) {
|
|
17187
17229
|
if (item.hidden) return true;
|
|
17188
17230
|
return false;
|
|
@@ -17218,11 +17260,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17218
17260
|
_this2.onChange(e, item.name);
|
|
17219
17261
|
}
|
|
17220
17262
|
}, item.label);
|
|
17221
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17263
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17222
17264
|
style: {
|
|
17223
17265
|
width: '144px'
|
|
17224
17266
|
}
|
|
17225
|
-
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17267
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17226
17268
|
className: 'sort_table_column_all_empty'
|
|
17227
17269
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17228
17270
|
className: 'sort_table_content_wrapper'
|
|
@@ -17321,7 +17363,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17321
17363
|
};
|
|
17322
17364
|
setIsResizing(true);
|
|
17323
17365
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17324
|
-
document.addEventListener('mouseup',
|
|
17366
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17325
17367
|
};
|
|
17326
17368
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17327
17369
|
e.stopPropagation();
|
|
@@ -17337,9 +17379,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17337
17379
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17338
17380
|
}
|
|
17339
17381
|
};
|
|
17340
|
-
var
|
|
17382
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17341
17383
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17342
|
-
document.removeEventListener('mouseup',
|
|
17384
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17343
17385
|
setIsResizing(false);
|
|
17344
17386
|
};
|
|
17345
17387
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17750,7 +17792,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17750
17792
|
actionsRender = actionsRender.concat([{
|
|
17751
17793
|
type: 'text',
|
|
17752
17794
|
props: {
|
|
17753
|
-
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
17795
|
+
children: ( /*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
17754
17796
|
request: {
|
|
17755
17797
|
url: (value === null || value === void 0 ? void 0 : (_value$exportConfig2 = value.exportConfig) === null || _value$exportConfig2 === void 0 ? void 0 : _value$exportConfig2.url) || "/oms-ops/excel/exportAsync/".concat(value === null || value === void 0 ? void 0 : (_value$exportConfig3 = value.exportConfig) === null || _value$exportConfig3 === void 0 ? void 0 : _value$exportConfig3.type),
|
|
17756
17798
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17996,7 +18038,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17996
18038
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17997
18039
|
bsTableCode: bsTableCode,
|
|
17998
18040
|
onlyModal: true
|
|
17999
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
18041
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
18000
18042
|
ref: exportTableRef,
|
|
18001
18043
|
setShowColumns: setShowExportColumns,
|
|
18002
18044
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18089,11 +18131,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18089
18131
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18090
18132
|
var resultList = [];
|
|
18091
18133
|
var newRouter = cloneDeep__default['default'](router);
|
|
18092
|
-
var
|
|
18134
|
+
var deep = function deep(router) {
|
|
18093
18135
|
if (router && Array.isArray(router)) {
|
|
18094
18136
|
router.forEach(function (item) {
|
|
18095
18137
|
if (item.children && Array.isArray(item.children)) {
|
|
18096
|
-
|
|
18138
|
+
deep(item.children);
|
|
18097
18139
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18098
18140
|
return d === item.code;
|
|
18099
18141
|
})) {
|
|
@@ -18107,10 +18149,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18107
18149
|
resultList.push(_objectSpread2({}, router));
|
|
18108
18150
|
}
|
|
18109
18151
|
};
|
|
18110
|
-
|
|
18152
|
+
deep(newRouter);
|
|
18111
18153
|
callBack([].concat(resultList));
|
|
18112
18154
|
};
|
|
18113
|
-
var
|
|
18155
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18114
18156
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18115
18157
|
var _loop = function _loop(i) {
|
|
18116
18158
|
if (routesData[i].hideInMenu) {
|
|
@@ -18124,7 +18166,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18124
18166
|
return 0; // continue
|
|
18125
18167
|
}
|
|
18126
18168
|
if (routesData[i].children) {
|
|
18127
|
-
|
|
18169
|
+
setMenuTreeData(routesData[i].children);
|
|
18128
18170
|
}
|
|
18129
18171
|
},
|
|
18130
18172
|
_ret;
|
|
@@ -18145,16 +18187,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18145
18187
|
};
|
|
18146
18188
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18147
18189
|
var routerMap = {};
|
|
18148
|
-
var
|
|
18190
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18149
18191
|
data.forEach(function (menuItem) {
|
|
18150
18192
|
if (menuItem.children) {
|
|
18151
|
-
|
|
18193
|
+
flattenMenuData(menuItem.children);
|
|
18152
18194
|
}
|
|
18153
18195
|
// Reduce memory usage
|
|
18154
18196
|
routerMap[menuItem.path] = menuItem;
|
|
18155
18197
|
});
|
|
18156
18198
|
};
|
|
18157
|
-
|
|
18199
|
+
flattenMenuData(menuData);
|
|
18158
18200
|
return routerMap;
|
|
18159
18201
|
};
|
|
18160
18202
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18300,7 +18342,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18300
18342
|
sethomepageData(homepageDataList);
|
|
18301
18343
|
setroutesData(routesDataList);
|
|
18302
18344
|
}, []);
|
|
18303
|
-
var
|
|
18345
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18304
18346
|
if (!child.hideInMenu && child.children) {
|
|
18305
18347
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
18306
18348
|
style: {
|
|
@@ -18310,7 +18352,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18310
18352
|
}, umi.formatMessage({
|
|
18311
18353
|
id: "".concat(child.locale)
|
|
18312
18354
|
})), child.children.map(function (menuItem) {
|
|
18313
|
-
return
|
|
18355
|
+
return renderChildItem(menuItem);
|
|
18314
18356
|
}));
|
|
18315
18357
|
} else if (!child.hideInMenu && child.path) {
|
|
18316
18358
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -18345,7 +18387,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18345
18387
|
className: 'drawerWarp'
|
|
18346
18388
|
}, homepageData && homepageData.filter(function (d) {
|
|
18347
18389
|
return !d.hideInMenu;
|
|
18348
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18390
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18349
18391
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
18350
18392
|
dataSource: homepageData,
|
|
18351
18393
|
renderItem: function renderItem(child) {
|
|
@@ -18380,7 +18422,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18380
18422
|
bordered: true,
|
|
18381
18423
|
dataSource: item.children,
|
|
18382
18424
|
renderItem: function renderItem(child) {
|
|
18383
|
-
return
|
|
18425
|
+
return renderChildItem(child);
|
|
18384
18426
|
}
|
|
18385
18427
|
});
|
|
18386
18428
|
})));
|
|
@@ -18440,7 +18482,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18440
18482
|
src: allfunc
|
|
18441
18483
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18442
18484
|
className: 'btnSpan2'
|
|
18443
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18485
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18444
18486
|
style: {
|
|
18445
18487
|
left: isDrawer ? 140 : 0,
|
|
18446
18488
|
top: 50
|
|
@@ -18486,7 +18528,7 @@ function outLogin(_x) {
|
|
|
18486
18528
|
return _outLogin.apply(this, arguments);
|
|
18487
18529
|
}
|
|
18488
18530
|
function _outLogin() {
|
|
18489
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18531
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18490
18532
|
var res;
|
|
18491
18533
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18492
18534
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18628,7 +18670,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18628
18670
|
});
|
|
18629
18671
|
};
|
|
18630
18672
|
var loginOut = /*#__PURE__*/function () {
|
|
18631
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18673
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18632
18674
|
var sessionId;
|
|
18633
18675
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18634
18676
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18732,7 +18774,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18732
18774
|
marginRight: '0px'
|
|
18733
18775
|
},
|
|
18734
18776
|
src: './xialajiantou-new.svg'
|
|
18735
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18777
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18736
18778
|
};
|
|
18737
18779
|
|
|
18738
18780
|
// -- 查询店铺 --
|
|
@@ -18740,7 +18782,7 @@ function getStoreByName(_x) {
|
|
|
18740
18782
|
return _getStoreByName.apply(this, arguments);
|
|
18741
18783
|
}
|
|
18742
18784
|
function _getStoreByName() {
|
|
18743
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18785
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18744
18786
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18745
18787
|
while (1) switch (_context.prev = _context.next) {
|
|
18746
18788
|
case 0:
|
|
@@ -18808,7 +18850,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18808
18850
|
return _fetchUserList.apply(this, arguments);
|
|
18809
18851
|
}
|
|
18810
18852
|
function _fetchUserList() {
|
|
18811
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18853
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18812
18854
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18813
18855
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18814
18856
|
case 0:
|
|
@@ -18856,7 +18898,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18856
18898
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
18857
18899
|
}, [debounceTimeout, key]);
|
|
18858
18900
|
var changeInput = /*#__PURE__*/function () {
|
|
18859
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18901
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18860
18902
|
var res;
|
|
18861
18903
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18862
18904
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18878,7 +18920,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18878
18920
|
};
|
|
18879
18921
|
}();
|
|
18880
18922
|
React$1.useEffect(function () {
|
|
18881
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18923
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18882
18924
|
var res;
|
|
18883
18925
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18884
18926
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19043,7 +19085,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19043
19085
|
var resultList = [];
|
|
19044
19086
|
var newRouter = _.cloneDeep(router);
|
|
19045
19087
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19046
|
-
var
|
|
19088
|
+
var deep = function deep(router) {
|
|
19047
19089
|
if (router && Array.isArray(router)) {
|
|
19048
19090
|
router.forEach(function (item) {
|
|
19049
19091
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19053,7 +19095,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19053
19095
|
d.nameEdit = true;
|
|
19054
19096
|
}
|
|
19055
19097
|
});
|
|
19056
|
-
|
|
19098
|
+
deep(item.routes);
|
|
19057
19099
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
19058
19100
|
id: "menu.".concat(item.name)
|
|
19059
19101
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19072,7 +19114,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19072
19114
|
}));
|
|
19073
19115
|
}
|
|
19074
19116
|
};
|
|
19075
|
-
|
|
19117
|
+
deep(newRouter);
|
|
19076
19118
|
setroutesData([].concat(resultList));
|
|
19077
19119
|
};
|
|
19078
19120
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19154,7 +19196,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19154
19196
|
},
|
|
19155
19197
|
title: item.fullPathName
|
|
19156
19198
|
}, renderLineStyl(item.fullPathName));
|
|
19157
|
-
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19199
|
+
}))))), showSelectStore && ( /*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19158
19200
|
employeeCode: employeeCode
|
|
19159
19201
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
19160
19202
|
};
|
|
@@ -19169,7 +19211,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19169
19211
|
var TreeNode = antd.Tree.TreeNode;
|
|
19170
19212
|
var Search$2 = antd.Input.Search;
|
|
19171
19213
|
var dataList = [];
|
|
19172
|
-
var
|
|
19214
|
+
var generateList = function generateList(data) {
|
|
19173
19215
|
for (var i = 0; i < data.length; i++) {
|
|
19174
19216
|
var node = data[i];
|
|
19175
19217
|
var path = node.path,
|
|
@@ -19179,11 +19221,11 @@ var _generateList = function generateList(data) {
|
|
|
19179
19221
|
name: name
|
|
19180
19222
|
});
|
|
19181
19223
|
if (node.children) {
|
|
19182
|
-
|
|
19224
|
+
generateList(node.children);
|
|
19183
19225
|
}
|
|
19184
19226
|
}
|
|
19185
19227
|
};
|
|
19186
|
-
var
|
|
19228
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19187
19229
|
var parentKey;
|
|
19188
19230
|
for (var i = 0; i < tree.length; i++) {
|
|
19189
19231
|
var node = tree[i];
|
|
@@ -19192,8 +19234,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19192
19234
|
return item.path === path;
|
|
19193
19235
|
})) {
|
|
19194
19236
|
parentKey = node.path;
|
|
19195
|
-
} else if (
|
|
19196
|
-
parentKey =
|
|
19237
|
+
} else if (getParentKey(path, node.children)) {
|
|
19238
|
+
parentKey = getParentKey(path, node.children);
|
|
19197
19239
|
}
|
|
19198
19240
|
}
|
|
19199
19241
|
}
|
|
@@ -19224,7 +19266,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19224
19266
|
var treeData = _this.state.treeData;
|
|
19225
19267
|
var expandedKeys = dataList.map(function (item) {
|
|
19226
19268
|
if (item.name.indexOf(value) > -1) {
|
|
19227
|
-
return
|
|
19269
|
+
return getParentKey(item.path, treeData);
|
|
19228
19270
|
}
|
|
19229
19271
|
return null;
|
|
19230
19272
|
}).filter(function (item, i, self) {
|
|
@@ -19238,22 +19280,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19238
19280
|
};
|
|
19239
19281
|
_this.getPathList = function (originData) {
|
|
19240
19282
|
var pathList = [];
|
|
19241
|
-
var
|
|
19283
|
+
var getList = function getList(data) {
|
|
19242
19284
|
if (Array.isArray(data)) {
|
|
19243
19285
|
data.forEach(function (item) {
|
|
19244
19286
|
pathList.push(item.path);
|
|
19245
19287
|
if (item.children) {
|
|
19246
|
-
|
|
19288
|
+
getList(item.children);
|
|
19247
19289
|
}
|
|
19248
19290
|
});
|
|
19249
19291
|
} else {
|
|
19250
19292
|
pathList.push(data.path);
|
|
19251
19293
|
if (data.children) {
|
|
19252
|
-
|
|
19294
|
+
getList(data.children);
|
|
19253
19295
|
}
|
|
19254
19296
|
}
|
|
19255
19297
|
};
|
|
19256
|
-
|
|
19298
|
+
getList(originData);
|
|
19257
19299
|
return pathList;
|
|
19258
19300
|
};
|
|
19259
19301
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19262,18 +19304,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19262
19304
|
customerMenuData = _this$props.customerMenuData,
|
|
19263
19305
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19264
19306
|
var filterItem;
|
|
19265
|
-
var
|
|
19307
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19266
19308
|
menuData.forEach(function (item) {
|
|
19267
19309
|
if (item.path === path) {
|
|
19268
19310
|
filterItem = _objectSpread2({}, item);
|
|
19269
19311
|
return;
|
|
19270
19312
|
}
|
|
19271
19313
|
if (item.children) {
|
|
19272
|
-
|
|
19314
|
+
filterMenuItem(item.children);
|
|
19273
19315
|
}
|
|
19274
19316
|
});
|
|
19275
19317
|
};
|
|
19276
|
-
|
|
19318
|
+
filterMenuItem(treeData);
|
|
19277
19319
|
var addPathList = _this.getPathList(filterItem);
|
|
19278
19320
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19279
19321
|
var isRepet = false;
|
|
@@ -19303,8 +19345,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19303
19345
|
return item.path === '/';
|
|
19304
19346
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19305
19347
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19306
|
-
|
|
19307
|
-
|
|
19348
|
+
setMenuTreeData(routesData);
|
|
19349
|
+
generateList(routesData);
|
|
19308
19350
|
this.setState({
|
|
19309
19351
|
treeData: routesData
|
|
19310
19352
|
});
|
|
@@ -19318,16 +19360,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19318
19360
|
expandedKeys = _this$state.expandedKeys,
|
|
19319
19361
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19320
19362
|
treeData = _this$state.treeData;
|
|
19321
|
-
var
|
|
19363
|
+
var loop = function loop(data) {
|
|
19322
19364
|
return data.map(function (item) {
|
|
19323
19365
|
var index = item.name.indexOf(searchValue);
|
|
19324
19366
|
var beforeStr = item.name.substr(0, index);
|
|
19325
19367
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19326
|
-
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19368
|
+
var name = index > -1 ? ( /*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19327
19369
|
style: {
|
|
19328
19370
|
color: '#f50'
|
|
19329
19371
|
}
|
|
19330
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19372
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19331
19373
|
if (item.children && item.children.length) {
|
|
19332
19374
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19333
19375
|
path: item.path,
|
|
@@ -19349,7 +19391,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19349
19391
|
width: 18,
|
|
19350
19392
|
src: arrowRight
|
|
19351
19393
|
}))))
|
|
19352
|
-
},
|
|
19394
|
+
}, loop(item.children));
|
|
19353
19395
|
}
|
|
19354
19396
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19355
19397
|
path: item.path,
|
|
@@ -19399,7 +19441,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19399
19441
|
onExpand: this.onExpand,
|
|
19400
19442
|
expandedKeys: expandedKeys,
|
|
19401
19443
|
autoExpandParent: autoExpandParent
|
|
19402
|
-
},
|
|
19444
|
+
}, loop(treeData))));
|
|
19403
19445
|
}
|
|
19404
19446
|
}]);
|
|
19405
19447
|
}(React__default['default'].Component);
|
|
@@ -19432,24 +19474,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19432
19474
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19433
19475
|
var dragObj;
|
|
19434
19476
|
var finalDropItem;
|
|
19435
|
-
var
|
|
19477
|
+
var loop = function loop(data, path, callback) {
|
|
19436
19478
|
for (var i = 0; i < data.length; i++) {
|
|
19437
19479
|
if (data[i].path === path) {
|
|
19438
19480
|
return callback(data[i], i, data);
|
|
19439
19481
|
}
|
|
19440
19482
|
if (data[i].children) {
|
|
19441
|
-
|
|
19483
|
+
loop(data[i].children, path, callback);
|
|
19442
19484
|
}
|
|
19443
19485
|
}
|
|
19444
19486
|
};
|
|
19445
19487
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19446
|
-
|
|
19488
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19447
19489
|
arr.splice(index, 1);
|
|
19448
19490
|
dragObj = item;
|
|
19449
19491
|
});
|
|
19450
19492
|
if (!info.dropToGap) {
|
|
19451
19493
|
// Drop on the content
|
|
19452
|
-
|
|
19494
|
+
loop(data, dropKey, function (item) {
|
|
19453
19495
|
item.children = item.children || [];
|
|
19454
19496
|
item.children.unshift(dragObj);
|
|
19455
19497
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19460,7 +19502,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19460
19502
|
// Is expanded
|
|
19461
19503
|
dropPosition === 1 // On the bottom gap
|
|
19462
19504
|
) {
|
|
19463
|
-
|
|
19505
|
+
loop(data, dropKey, function (item) {
|
|
19464
19506
|
item.children = item.children || [];
|
|
19465
19507
|
item.children.unshift(dragObj);
|
|
19466
19508
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19468,7 +19510,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19468
19510
|
} else {
|
|
19469
19511
|
var ar;
|
|
19470
19512
|
var i;
|
|
19471
|
-
|
|
19513
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19472
19514
|
ar = arr;
|
|
19473
19515
|
i = index;
|
|
19474
19516
|
});
|
|
@@ -19507,17 +19549,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19507
19549
|
title: '编辑名称',
|
|
19508
19550
|
callBack: function callBack(newName) {
|
|
19509
19551
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19510
|
-
var
|
|
19552
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19511
19553
|
oldTreeData.forEach(function (treeItem) {
|
|
19512
19554
|
if (treeItem.path === item.path) {
|
|
19513
19555
|
treeItem.name = newName;
|
|
19514
19556
|
}
|
|
19515
19557
|
if (treeItem.children) {
|
|
19516
|
-
|
|
19558
|
+
editTreeDataName(treeItem.children);
|
|
19517
19559
|
}
|
|
19518
19560
|
});
|
|
19519
19561
|
};
|
|
19520
|
-
|
|
19562
|
+
editTreeDataName(oldTreeData);
|
|
19521
19563
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19522
19564
|
_this.setState({
|
|
19523
19565
|
modalInfo: {
|
|
@@ -19562,7 +19604,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19562
19604
|
title: '新增子目录',
|
|
19563
19605
|
callBack: function callBack(newName) {
|
|
19564
19606
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19565
|
-
var
|
|
19607
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19566
19608
|
oldTreeData.forEach(function (treeItem) {
|
|
19567
19609
|
if (treeItem.path === item.path) {
|
|
19568
19610
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19574,11 +19616,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19574
19616
|
}];
|
|
19575
19617
|
}
|
|
19576
19618
|
if (treeItem.children) {
|
|
19577
|
-
|
|
19619
|
+
addChildFolder(treeItem.children);
|
|
19578
19620
|
}
|
|
19579
19621
|
});
|
|
19580
19622
|
};
|
|
19581
|
-
|
|
19623
|
+
addChildFolder(oldTreeData);
|
|
19582
19624
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19583
19625
|
_this.setState({
|
|
19584
19626
|
modalInfo: {
|
|
@@ -19637,7 +19679,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19637
19679
|
var _this$state = this.state,
|
|
19638
19680
|
modalInfo = _this$state.modalInfo,
|
|
19639
19681
|
checkedKeys = _this$state.checkedKeys;
|
|
19640
|
-
var
|
|
19682
|
+
var loop = function loop(data) {
|
|
19641
19683
|
return data.map(function (item) {
|
|
19642
19684
|
if (item.children && item.children.length) {
|
|
19643
19685
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -19654,7 +19696,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19654
19696
|
e.stopPropagation();
|
|
19655
19697
|
}
|
|
19656
19698
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
19657
|
-
},
|
|
19699
|
+
}, loop(item.children));
|
|
19658
19700
|
}
|
|
19659
19701
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
19660
19702
|
path: item.path,
|
|
@@ -19733,7 +19775,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19733
19775
|
children: 'children'
|
|
19734
19776
|
},
|
|
19735
19777
|
onDrop: this.onDrop
|
|
19736
|
-
},
|
|
19778
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
19737
19779
|
width: 600,
|
|
19738
19780
|
bodyStyle: {
|
|
19739
19781
|
paddingTop: '32px',
|
|
@@ -19846,7 +19888,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19846
19888
|
pathname: item.path
|
|
19847
19889
|
});
|
|
19848
19890
|
};
|
|
19849
|
-
var
|
|
19891
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
19850
19892
|
return menuData.map(function (item) {
|
|
19851
19893
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19852
19894
|
style: {
|
|
@@ -19861,7 +19903,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19861
19903
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19862
19904
|
paddingLeft: '4px'
|
|
19863
19905
|
}
|
|
19864
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19906
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
19865
19907
|
});
|
|
19866
19908
|
};
|
|
19867
19909
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -19887,7 +19929,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19887
19929
|
style: {
|
|
19888
19930
|
paddingLeft: '5px'
|
|
19889
19931
|
}
|
|
19890
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19932
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
19891
19933
|
style: {
|
|
19892
19934
|
left: isDrawer ? 140 : 0
|
|
19893
19935
|
},
|
|
@@ -19908,7 +19950,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
19908
19950
|
visible: isDrawer
|
|
19909
19951
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
19910
19952
|
className: 'menu_title_line'
|
|
19911
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19953
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
19912
19954
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19913
19955
|
style: {
|
|
19914
19956
|
fontWeight: '600',
|
|
@@ -19982,7 +20024,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19982
20024
|
return item.path === '/';
|
|
19983
20025
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19984
20026
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19985
|
-
|
|
20027
|
+
setMenuTreeData(routesData);
|
|
19986
20028
|
routesData.forEach(function (item) {
|
|
19987
20029
|
if (item.children) {
|
|
19988
20030
|
routesDataList.push(item);
|
|
@@ -20012,7 +20054,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20012
20054
|
setHeight(clientHeight - 190);
|
|
20013
20055
|
setDrawHeight(clientHeight - 70);
|
|
20014
20056
|
};
|
|
20015
|
-
var
|
|
20057
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20016
20058
|
if (!child.hideInMenu && child.children) {
|
|
20017
20059
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
20018
20060
|
style: {
|
|
@@ -20022,7 +20064,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20022
20064
|
}, umi.formatMessage({
|
|
20023
20065
|
id: "".concat(child.locale)
|
|
20024
20066
|
})), child.children.map(function (menuItem) {
|
|
20025
|
-
return
|
|
20067
|
+
return renderChildItem(menuItem);
|
|
20026
20068
|
}));
|
|
20027
20069
|
} else if (!child.hideInMenu && child.path) {
|
|
20028
20070
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -20164,7 +20206,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20164
20206
|
onMenuClick(e, item);
|
|
20165
20207
|
}
|
|
20166
20208
|
}, item.name);
|
|
20167
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20209
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20168
20210
|
className: 'search_menu_content'
|
|
20169
20211
|
}, SearhData.map(function (item) {
|
|
20170
20212
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20173,7 +20215,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20173
20215
|
},
|
|
20174
20216
|
key: item.path
|
|
20175
20217
|
}, item.name);
|
|
20176
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20218
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20177
20219
|
style: {
|
|
20178
20220
|
height: "".concat(rightMenuHeight, "px"),
|
|
20179
20221
|
overflowY: 'scroll',
|
|
@@ -20185,7 +20227,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20185
20227
|
className: 'drawerWarp_right'
|
|
20186
20228
|
}, homepageData && homepageData.filter(function (d) {
|
|
20187
20229
|
return !d.hideInMenu;
|
|
20188
|
-
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20230
|
+
}).length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20189
20231
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
20190
20232
|
dataSource: homepageData,
|
|
20191
20233
|
renderItem: function renderItem(child) {
|
|
@@ -20226,7 +20268,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20226
20268
|
bordered: true,
|
|
20227
20269
|
dataSource: item.children,
|
|
20228
20270
|
renderItem: function renderItem(child) {
|
|
20229
|
-
return
|
|
20271
|
+
return renderChildItem(child);
|
|
20230
20272
|
}
|
|
20231
20273
|
});
|
|
20232
20274
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20384,10 +20426,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20384
20426
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20385
20427
|
var menuKeys = [];
|
|
20386
20428
|
var docsId = [];
|
|
20387
|
-
var
|
|
20429
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20388
20430
|
data.forEach(function (item) {
|
|
20389
20431
|
if (item.children && item.children.length > 0) {
|
|
20390
|
-
|
|
20432
|
+
getLimitedMenuKeys(item.children);
|
|
20391
20433
|
} else {
|
|
20392
20434
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20393
20435
|
menuKeys.push(originPath);
|
|
@@ -20398,7 +20440,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20398
20440
|
});
|
|
20399
20441
|
};
|
|
20400
20442
|
try {
|
|
20401
|
-
|
|
20443
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20402
20444
|
} catch (e) {}
|
|
20403
20445
|
return {
|
|
20404
20446
|
menuKeys: menuKeys,
|
|
@@ -20632,10 +20674,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20632
20674
|
return (node.path || '').includes('all-general-documents');
|
|
20633
20675
|
};
|
|
20634
20676
|
// 递归获取树列表
|
|
20635
|
-
var
|
|
20677
|
+
var getTreeList = function getTreeList(data) {
|
|
20636
20678
|
data.forEach(function (node) {
|
|
20637
20679
|
if (node.routes && node.routes.length > 0) {
|
|
20638
|
-
|
|
20680
|
+
getTreeList(node.routes);
|
|
20639
20681
|
return;
|
|
20640
20682
|
}
|
|
20641
20683
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20666,7 +20708,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20666
20708
|
}
|
|
20667
20709
|
});
|
|
20668
20710
|
};
|
|
20669
|
-
|
|
20711
|
+
getTreeList(treeData);
|
|
20670
20712
|
return treeList;
|
|
20671
20713
|
};
|
|
20672
20714
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21295,7 +21337,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21295
21337
|
updateState = _ref8.updateState;
|
|
21296
21338
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21297
21339
|
className: "tab_title_content"
|
|
21298
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21340
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21299
21341
|
info: item,
|
|
21300
21342
|
operateFun: _this3.operateFun,
|
|
21301
21343
|
listenRouterState: listenRouterState
|
|
@@ -21431,7 +21473,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21431
21473
|
};
|
|
21432
21474
|
}
|
|
21433
21475
|
var OperationsSlot = {
|
|
21434
|
-
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21476
|
+
left: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21435
21477
|
className: 'tab_left_operate'
|
|
21436
21478
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21437
21479
|
onClick: function onClick() {
|
|
@@ -21447,7 +21489,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21447
21489
|
_this3.setTabNavTransLate(-100);
|
|
21448
21490
|
}
|
|
21449
21491
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
21450
|
-
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21492
|
+
right: ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21451
21493
|
style: {
|
|
21452
21494
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21453
21495
|
},
|
|
@@ -21545,7 +21587,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21545
21587
|
onMouseLeave: function onMouseLeave() {
|
|
21546
21588
|
_this3.setShowMenu(false);
|
|
21547
21589
|
}
|
|
21548
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21590
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21549
21591
|
style: {
|
|
21550
21592
|
position: 'absolute',
|
|
21551
21593
|
top: '14px',
|
|
@@ -21564,7 +21606,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21564
21606
|
postMenuData: function postMenuData(menus) {
|
|
21565
21607
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21566
21608
|
},
|
|
21567
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21609
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21568
21610
|
ref: this.allFunc,
|
|
21569
21611
|
itemPath: itemPath,
|
|
21570
21612
|
handleClose: this.handleClose,
|
|
@@ -21582,7 +21624,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21582
21624
|
},
|
|
21583
21625
|
menu: {
|
|
21584
21626
|
request: function () {
|
|
21585
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21627
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21586
21628
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21587
21629
|
while (1) switch (_context.prev = _context.next) {
|
|
21588
21630
|
case 0:
|
|
@@ -21717,7 +21759,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21717
21759
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21718
21760
|
timeFormat = _this$props4.timeFormat,
|
|
21719
21761
|
transparentProps = _this$props4.transparentProps;
|
|
21720
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (/*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
21762
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? ( /*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
21721
21763
|
getDictionarySource: getDictionarySource,
|
|
21722
21764
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21723
21765
|
timeFormat: timeFormat
|
|
@@ -21741,12 +21783,12 @@ var index$5 = (function (props) {
|
|
|
21741
21783
|
});
|
|
21742
21784
|
|
|
21743
21785
|
// @ts-nocheck
|
|
21744
|
-
var
|
|
21786
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
21745
21787
|
var result = [];
|
|
21746
21788
|
columns.forEach(function (column) {
|
|
21747
21789
|
if (column.children) {
|
|
21748
21790
|
result.push(column);
|
|
21749
|
-
result.push.apply(result,
|
|
21791
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
21750
21792
|
} else {
|
|
21751
21793
|
result.push(column);
|
|
21752
21794
|
}
|
|
@@ -21755,7 +21797,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
21755
21797
|
};
|
|
21756
21798
|
var convertToRows = function convertToRows(originColumns) {
|
|
21757
21799
|
var maxLevel = 1;
|
|
21758
|
-
var
|
|
21800
|
+
var traverse = function traverse(column, parent) {
|
|
21759
21801
|
if (parent) {
|
|
21760
21802
|
column.level = parent.level + 1;
|
|
21761
21803
|
if (maxLevel < column.level) {
|
|
@@ -21765,7 +21807,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21765
21807
|
if (column.children) {
|
|
21766
21808
|
var colSpan = 0;
|
|
21767
21809
|
column.children.forEach(function (subColumn) {
|
|
21768
|
-
|
|
21810
|
+
traverse(subColumn, column);
|
|
21769
21811
|
colSpan += subColumn.colSpan;
|
|
21770
21812
|
});
|
|
21771
21813
|
column.colSpan = colSpan;
|
|
@@ -21775,13 +21817,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21775
21817
|
};
|
|
21776
21818
|
originColumns.forEach(function (column) {
|
|
21777
21819
|
column.level = 1;
|
|
21778
|
-
|
|
21820
|
+
traverse(column);
|
|
21779
21821
|
});
|
|
21780
21822
|
var rows = [];
|
|
21781
21823
|
for (var i = 0; i < maxLevel; i++) {
|
|
21782
21824
|
rows.push([]);
|
|
21783
21825
|
}
|
|
21784
|
-
var allColumns =
|
|
21826
|
+
var allColumns = getAllColumns(originColumns);
|
|
21785
21827
|
allColumns.forEach(function (column) {
|
|
21786
21828
|
if (!column.children) {
|
|
21787
21829
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21821,7 +21863,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21821
21863
|
};
|
|
21822
21864
|
var headersToRows = function headersToRows(originColumns) {
|
|
21823
21865
|
var maxLevel = 1;
|
|
21824
|
-
var
|
|
21866
|
+
var traverse = function traverse(column, parent) {
|
|
21825
21867
|
if (parent) {
|
|
21826
21868
|
//计算当前元素属于第几个层级
|
|
21827
21869
|
column.level = parent.level + 1;
|
|
@@ -21834,7 +21876,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21834
21876
|
var colSpan = 0;
|
|
21835
21877
|
column.children.forEach(function (subColumn) {
|
|
21836
21878
|
//进行递归
|
|
21837
|
-
|
|
21879
|
+
traverse(subColumn, column);
|
|
21838
21880
|
colSpan += subColumn.colSpan;
|
|
21839
21881
|
});
|
|
21840
21882
|
column.colSpan = colSpan;
|
|
@@ -21844,14 +21886,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21844
21886
|
};
|
|
21845
21887
|
originColumns.forEach(function (column) {
|
|
21846
21888
|
column.level = 1;
|
|
21847
|
-
|
|
21889
|
+
traverse(column);
|
|
21848
21890
|
});
|
|
21849
21891
|
var rows = [];
|
|
21850
21892
|
var lastData = [];
|
|
21851
21893
|
for (var i = 0; i < maxLevel; i++) {
|
|
21852
21894
|
rows.push([]);
|
|
21853
21895
|
}
|
|
21854
|
-
var allColumns =
|
|
21896
|
+
var allColumns = getAllColumns(originColumns);
|
|
21855
21897
|
allColumns.forEach(function (column) {
|
|
21856
21898
|
if (!column.children) {
|
|
21857
21899
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27868,7 +27910,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27868
27910
|
}
|
|
27869
27911
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27870
27912
|
};
|
|
27871
|
-
var
|
|
27913
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
27872
27914
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27873
27915
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27874
27916
|
var children = hightLightData.children,
|
|
@@ -27879,7 +27921,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27879
27921
|
lineEnd = _loc2[2];
|
|
27880
27922
|
if (children) {
|
|
27881
27923
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27882
|
-
return
|
|
27924
|
+
return hasHighLightChildren(v, highLightLine);
|
|
27883
27925
|
});
|
|
27884
27926
|
}
|
|
27885
27927
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27891,7 +27933,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27891
27933
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27892
27934
|
data.forEach(function (node) {
|
|
27893
27935
|
if (!node) return;
|
|
27894
|
-
node.toggled =
|
|
27936
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
27895
27937
|
node.active = isHightLight(node, highLightLine);
|
|
27896
27938
|
if (node.children) {
|
|
27897
27939
|
if (node.active) {
|
|
@@ -29322,7 +29364,7 @@ var valueType = {
|
|
|
29322
29364
|
};
|
|
29323
29365
|
|
|
29324
29366
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29325
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29367
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29326
29368
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29327
29369
|
while (1) switch (_context.prev = _context.next) {
|
|
29328
29370
|
case 0:
|
|
@@ -29390,7 +29432,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29390
29432
|
value: false
|
|
29391
29433
|
}];
|
|
29392
29434
|
var ref = React$1.useRef();
|
|
29393
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29435
|
+
ahooks.useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29394
29436
|
var _ref$current, source;
|
|
29395
29437
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29396
29438
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29504,7 +29546,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29504
29546
|
source: {
|
|
29505
29547
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29506
29548
|
type: function () {
|
|
29507
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29549
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29508
29550
|
var form, values, name, relates, source;
|
|
29509
29551
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29510
29552
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29984,7 +30026,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29984
30026
|
source: {
|
|
29985
30027
|
relates: ['choiceType', 'inputType'],
|
|
29986
30028
|
type: function () {
|
|
29987
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30029
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29988
30030
|
var values, name, form, source;
|
|
29989
30031
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29990
30032
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30206,7 +30248,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30206
30248
|
width: 900,
|
|
30207
30249
|
maskClosable: false,
|
|
30208
30250
|
onOk: function () {
|
|
30209
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30251
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30210
30252
|
var _ref$current4, _res$editableStatus;
|
|
30211
30253
|
var res, _res$defaultValue;
|
|
30212
30254
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30278,7 +30320,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30278
30320
|
}()
|
|
30279
30321
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30280
30322
|
ref: ref
|
|
30281
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30323
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30282
30324
|
};
|
|
30283
30325
|
|
|
30284
30326
|
// @ts-nocheck
|
|
@@ -30892,7 +30934,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30892
30934
|
return setVisible(false);
|
|
30893
30935
|
},
|
|
30894
30936
|
className: 'customFieldsDrawer'
|
|
30895
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30937
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30896
30938
|
style: {
|
|
30897
30939
|
display: 'flex'
|
|
30898
30940
|
}
|
|
@@ -30901,13 +30943,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30901
30943
|
flex: 1,
|
|
30902
30944
|
width: 500
|
|
30903
30945
|
}
|
|
30904
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30946
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30905
30947
|
style: {
|
|
30906
30948
|
padding: "10px 0",
|
|
30907
30949
|
fontSize: "16px",
|
|
30908
30950
|
fontWeight: "bolder"
|
|
30909
30951
|
}
|
|
30910
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30952
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30911
30953
|
style: {
|
|
30912
30954
|
flex: 1
|
|
30913
30955
|
}
|
|
@@ -30916,7 +30958,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30916
30958
|
onRun: onClickRun,
|
|
30917
30959
|
value: jsonEditorVal,
|
|
30918
30960
|
shallowHeight: height
|
|
30919
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
30961
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
30920
30962
|
defaultActiveKey: activeKey,
|
|
30921
30963
|
onChange: function onChange(v) {
|
|
30922
30964
|
return setActiveKey(v);
|
|
@@ -30933,13 +30975,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30933
30975
|
flex: 1,
|
|
30934
30976
|
width: 500
|
|
30935
30977
|
}
|
|
30936
|
-
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
30978
|
+
}, _.isEmpty(moduleParams) ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30937
30979
|
style: {
|
|
30938
30980
|
padding: "10px 0",
|
|
30939
30981
|
fontSize: "16px",
|
|
30940
30982
|
fontWeight: "bolder"
|
|
30941
30983
|
}
|
|
30942
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30984
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30943
30985
|
style: {
|
|
30944
30986
|
flex: 1
|
|
30945
30987
|
}
|
|
@@ -30961,13 +31003,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
30961
31003
|
flex: 1,
|
|
30962
31004
|
width: 500
|
|
30963
31005
|
}
|
|
30964
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31006
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30965
31007
|
style: {
|
|
30966
31008
|
padding: "10px 0",
|
|
30967
31009
|
fontSize: "16px",
|
|
30968
31010
|
fontWeight: "bolder"
|
|
30969
31011
|
}
|
|
30970
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31012
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
30971
31013
|
style: {
|
|
30972
31014
|
flex: 1
|
|
30973
31015
|
}
|
|
@@ -31113,7 +31155,7 @@ function getMetaData(_x) {
|
|
|
31113
31155
|
|
|
31114
31156
|
// 获取数据
|
|
31115
31157
|
function _getMetaData() {
|
|
31116
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31158
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31117
31159
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31118
31160
|
while (1) switch (_context.prev = _context.next) {
|
|
31119
31161
|
case 0:
|
|
@@ -31335,7 +31377,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31335
31377
|
tableState = _useState4[0],
|
|
31336
31378
|
setTableState = _useState4[1];
|
|
31337
31379
|
var handleOpen = /*#__PURE__*/function () {
|
|
31338
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31380
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31339
31381
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31340
31382
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31341
31383
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31654,7 +31696,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31654
31696
|
destroyOnClose: true
|
|
31655
31697
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
31656
31698
|
ref: queryTableRef
|
|
31657
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
31699
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && ( /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
31658
31700
|
justify: "center",
|
|
31659
31701
|
style: {
|
|
31660
31702
|
marginBottom: 30,
|
|
@@ -31770,7 +31812,7 @@ var CustomSelector = (function (props) {
|
|
|
31770
31812
|
var _props$ctx7;
|
|
31771
31813
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31772
31814
|
}
|
|
31773
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31815
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
31774
31816
|
type: "primary",
|
|
31775
31817
|
style: {
|
|
31776
31818
|
width: '30px',
|
|
@@ -31856,7 +31898,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31856
31898
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31857
31899
|
handSource = _useState2[0],
|
|
31858
31900
|
setHandSource = _useState2[1];
|
|
31859
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31901
|
+
React$1.useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31860
31902
|
var resData, data;
|
|
31861
31903
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31862
31904
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32008,7 +32050,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32008
32050
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32009
32051
|
}
|
|
32010
32052
|
function _getRegularThresholdRange() {
|
|
32011
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32053
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32012
32054
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32013
32055
|
while (1) switch (_context.prev = _context.next) {
|
|
32014
32056
|
case 0:
|
|
@@ -32162,7 +32204,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32162
32204
|
};
|
|
32163
32205
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32164
32206
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32165
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32207
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32166
32208
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32167
32209
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32168
32210
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33107,7 +33149,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33107
33149
|
isAll: true,
|
|
33108
33150
|
needNameAndCode: true,
|
|
33109
33151
|
notChangeOnSelect: true,
|
|
33110
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33152
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33111
33153
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33112
33154
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33113
33155
|
case 0:
|
|
@@ -33156,7 +33198,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33156
33198
|
isAll: true,
|
|
33157
33199
|
needNameAndCode: true,
|
|
33158
33200
|
notChangeOnSelect: true,
|
|
33159
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33201
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33160
33202
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33161
33203
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33162
33204
|
case 0:
|
|
@@ -33207,7 +33249,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33207
33249
|
isAll: true,
|
|
33208
33250
|
needNameAndCode: true,
|
|
33209
33251
|
notChangeOnSelect: true,
|
|
33210
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33252
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33211
33253
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33212
33254
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33213
33255
|
case 0:
|
|
@@ -35171,7 +35213,7 @@ var App$1 = function App(_ref) {
|
|
|
35171
35213
|
borderRadius: '5px',
|
|
35172
35214
|
cursor: 'pointer'
|
|
35173
35215
|
}
|
|
35174
|
-
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35216
|
+
}, isStaticNumber ? ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35175
35217
|
autoFocus: true,
|
|
35176
35218
|
onClick: function onClick(e) {
|
|
35177
35219
|
return e.stopPropagation();
|
|
@@ -35458,7 +35500,7 @@ function RenderCompItem(props) {
|
|
|
35458
35500
|
dictData = _useState2[0],
|
|
35459
35501
|
setDictData = _useState2[1];
|
|
35460
35502
|
var getDictData = /*#__PURE__*/function () {
|
|
35461
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35503
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35462
35504
|
var _data$map;
|
|
35463
35505
|
var data;
|
|
35464
35506
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35500,7 +35542,7 @@ function RenderCompItem(props) {
|
|
|
35500
35542
|
var style2 = {
|
|
35501
35543
|
width: '100px'
|
|
35502
35544
|
};
|
|
35503
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35545
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35504
35546
|
disabled: disabled,
|
|
35505
35547
|
allowClear: true,
|
|
35506
35548
|
onClear: function onClear() {
|
|
@@ -35511,7 +35553,7 @@ function RenderCompItem(props) {
|
|
|
35511
35553
|
onBlur: function onBlur(e) {
|
|
35512
35554
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35513
35555
|
}
|
|
35514
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
35556
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
35515
35557
|
disabled: disabled,
|
|
35516
35558
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35517
35559
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35524,7 +35566,7 @@ function RenderCompItem(props) {
|
|
|
35524
35566
|
onChange: function onChange(value) {
|
|
35525
35567
|
handleEdit(ites.code, value);
|
|
35526
35568
|
}
|
|
35527
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
|
|
35569
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && ( /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
|
|
35528
35570
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35529
35571
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35530
35572
|
disabled: disabled,
|
|
@@ -35534,7 +35576,7 @@ function RenderCompItem(props) {
|
|
|
35534
35576
|
onChange: function onChange(value, dateString) {
|
|
35535
35577
|
handleEdit(ites.code, dateString);
|
|
35536
35578
|
}
|
|
35537
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
35579
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
35538
35580
|
showTime: true,
|
|
35539
35581
|
disabled: disabled,
|
|
35540
35582
|
defaultValue: ites.defaultValue,
|
|
@@ -35543,7 +35585,7 @@ function RenderCompItem(props) {
|
|
|
35543
35585
|
onChange: function onChange(value, timeString) {
|
|
35544
35586
|
handleEdit(ites.code, timeString);
|
|
35545
35587
|
}
|
|
35546
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
35588
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
35547
35589
|
disabled: disabled,
|
|
35548
35590
|
defaultChecked: !!ites.defaultValue,
|
|
35549
35591
|
style: style2,
|
|
@@ -35551,7 +35593,7 @@ function RenderCompItem(props) {
|
|
|
35551
35593
|
onChange: function onChange(value) {
|
|
35552
35594
|
handleEdit(ites.code, value);
|
|
35553
35595
|
}
|
|
35554
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
35596
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && ( /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
35555
35597
|
disabled: disabled,
|
|
35556
35598
|
allowClear: true,
|
|
35557
35599
|
showArrow: true
|
|
@@ -35569,7 +35611,7 @@ function RenderCompItem(props) {
|
|
|
35569
35611
|
key: it,
|
|
35570
35612
|
value: it
|
|
35571
35613
|
}, ites.enumeration[it]);
|
|
35572
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React__default['default'].createElement(InnerSelect, {
|
|
35614
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React__default['default'].createElement(InnerSelect, {
|
|
35573
35615
|
disabled: disabled,
|
|
35574
35616
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35575
35617
|
defaultValue: ites.defaultValue,
|
|
@@ -35579,7 +35621,7 @@ function RenderCompItem(props) {
|
|
|
35579
35621
|
handleEdit(ites.code, value);
|
|
35580
35622
|
},
|
|
35581
35623
|
dictionaryCode: ites.dictionaryCode
|
|
35582
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35624
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35583
35625
|
selectBusinessType: "physicalWarehouse",
|
|
35584
35626
|
selectProps: _objectSpread2({
|
|
35585
35627
|
style: styleCommon,
|
|
@@ -35601,7 +35643,7 @@ function RenderCompItem(props) {
|
|
|
35601
35643
|
getPopupContainer: function getPopupContainer() {
|
|
35602
35644
|
return document.body;
|
|
35603
35645
|
}
|
|
35604
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35646
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35605
35647
|
selectBusinessType: "realWarehouse",
|
|
35606
35648
|
selectProps: _objectSpread2({
|
|
35607
35649
|
style: styleCommon,
|
|
@@ -35623,7 +35665,7 @@ function RenderCompItem(props) {
|
|
|
35623
35665
|
getPopupContainer: function getPopupContainer() {
|
|
35624
35666
|
return document.body;
|
|
35625
35667
|
}
|
|
35626
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35668
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35627
35669
|
selectBusinessType: "virtualWarehouse",
|
|
35628
35670
|
selectProps: _objectSpread2({
|
|
35629
35671
|
style: styleCommon,
|
|
@@ -35645,7 +35687,7 @@ function RenderCompItem(props) {
|
|
|
35645
35687
|
getPopupContainer: function getPopupContainer() {
|
|
35646
35688
|
return document.body;
|
|
35647
35689
|
}
|
|
35648
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35690
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35649
35691
|
selectBusinessType: "channelWarehouse",
|
|
35650
35692
|
selectProps: _objectSpread2({
|
|
35651
35693
|
style: styleCommon,
|
|
@@ -35667,7 +35709,7 @@ function RenderCompItem(props) {
|
|
|
35667
35709
|
getPopupContainer: function getPopupContainer() {
|
|
35668
35710
|
return document.body;
|
|
35669
35711
|
}
|
|
35670
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35712
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35671
35713
|
selectBusinessType: "spuCommodity",
|
|
35672
35714
|
selectProps: _objectSpread2({
|
|
35673
35715
|
style: styleCommon,
|
|
@@ -35688,7 +35730,7 @@ function RenderCompItem(props) {
|
|
|
35688
35730
|
getPopupContainer: function getPopupContainer() {
|
|
35689
35731
|
return document.body;
|
|
35690
35732
|
}
|
|
35691
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35733
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35692
35734
|
selectBusinessType: "skuCommodity",
|
|
35693
35735
|
selectProps: _objectSpread2({
|
|
35694
35736
|
style: styleCommon,
|
|
@@ -35709,13 +35751,13 @@ function RenderCompItem(props) {
|
|
|
35709
35751
|
getPopupContainer: function getPopupContainer() {
|
|
35710
35752
|
return document.body;
|
|
35711
35753
|
}
|
|
35712
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React__default['default'].createElement(BsCascader, {
|
|
35754
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React__default['default'].createElement(BsCascader, {
|
|
35713
35755
|
disabled: disabled,
|
|
35714
35756
|
isAll: true,
|
|
35715
35757
|
needNameAndCode: true,
|
|
35716
35758
|
notChangeOnSelect: true,
|
|
35717
35759
|
initRequestSource: function () {
|
|
35718
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35760
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35719
35761
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35720
35762
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35721
35763
|
case 0:
|
|
@@ -35757,7 +35799,7 @@ function RenderCompItem(props) {
|
|
|
35757
35799
|
getPopupContainer: function getPopupContainer() {
|
|
35758
35800
|
return document.body;
|
|
35759
35801
|
}
|
|
35760
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35802
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35761
35803
|
disabled: disabled,
|
|
35762
35804
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35763
35805
|
businessType: "department",
|
|
@@ -35770,7 +35812,7 @@ function RenderCompItem(props) {
|
|
|
35770
35812
|
getPopupContainer: function getPopupContainer() {
|
|
35771
35813
|
return document.body;
|
|
35772
35814
|
}
|
|
35773
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35815
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35774
35816
|
disabled: disabled,
|
|
35775
35817
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35776
35818
|
businessType: "purchase-organization",
|
|
@@ -35783,7 +35825,7 @@ function RenderCompItem(props) {
|
|
|
35783
35825
|
getPopupContainer: function getPopupContainer() {
|
|
35784
35826
|
return document.body;
|
|
35785
35827
|
}
|
|
35786
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35828
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35787
35829
|
disabled: disabled,
|
|
35788
35830
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35789
35831
|
businessType: "sales-organization",
|
|
@@ -35796,7 +35838,7 @@ function RenderCompItem(props) {
|
|
|
35796
35838
|
getPopupContainer: function getPopupContainer() {
|
|
35797
35839
|
return document.body;
|
|
35798
35840
|
}
|
|
35799
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35841
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35800
35842
|
selectBusinessType: "supplier2",
|
|
35801
35843
|
selectProps: _objectSpread2({
|
|
35802
35844
|
style: styleCommon,
|
|
@@ -35817,7 +35859,7 @@ function RenderCompItem(props) {
|
|
|
35817
35859
|
getPopupContainer: function getPopupContainer() {
|
|
35818
35860
|
return document.body;
|
|
35819
35861
|
}
|
|
35820
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35862
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35821
35863
|
selectBusinessType: "customer2",
|
|
35822
35864
|
selectProps: _objectSpread2({
|
|
35823
35865
|
style: styleCommon,
|
|
@@ -35838,7 +35880,7 @@ function RenderCompItem(props) {
|
|
|
35838
35880
|
getPopupContainer: function getPopupContainer() {
|
|
35839
35881
|
return document.body;
|
|
35840
35882
|
}
|
|
35841
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35883
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35842
35884
|
selectBusinessType: "shopFile2",
|
|
35843
35885
|
selectProps: _objectSpread2({
|
|
35844
35886
|
style: styleCommon,
|
|
@@ -35859,7 +35901,7 @@ function RenderCompItem(props) {
|
|
|
35859
35901
|
getPopupContainer: function getPopupContainer() {
|
|
35860
35902
|
return document.body;
|
|
35861
35903
|
}
|
|
35862
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35904
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35863
35905
|
selectBusinessType: "employee2",
|
|
35864
35906
|
selectProps: _objectSpread2({
|
|
35865
35907
|
style: styleCommon,
|
|
@@ -35880,7 +35922,7 @@ function RenderCompItem(props) {
|
|
|
35880
35922
|
getPopupContainer: function getPopupContainer() {
|
|
35881
35923
|
return document.body;
|
|
35882
35924
|
}
|
|
35883
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35925
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35884
35926
|
disabled: disabled,
|
|
35885
35927
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35886
35928
|
businessType: "stock-organization",
|
|
@@ -35893,7 +35935,7 @@ function RenderCompItem(props) {
|
|
|
35893
35935
|
getPopupContainer: function getPopupContainer() {
|
|
35894
35936
|
return document.body;
|
|
35895
35937
|
}
|
|
35896
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35938
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35897
35939
|
disabled: disabled,
|
|
35898
35940
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35899
35941
|
businessType: "settle-organization",
|
|
@@ -35906,7 +35948,7 @@ function RenderCompItem(props) {
|
|
|
35906
35948
|
getPopupContainer: function getPopupContainer() {
|
|
35907
35949
|
return document.body;
|
|
35908
35950
|
}
|
|
35909
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35951
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35910
35952
|
selectBusinessType: "deliveryMode",
|
|
35911
35953
|
selectProps: _objectSpread2({
|
|
35912
35954
|
style: styleCommon,
|
|
@@ -35927,7 +35969,7 @@ function RenderCompItem(props) {
|
|
|
35927
35969
|
getPopupContainer: function getPopupContainer() {
|
|
35928
35970
|
return document.body;
|
|
35929
35971
|
}
|
|
35930
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35972
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35931
35973
|
selectBusinessType: "role",
|
|
35932
35974
|
selectProps: _objectSpread2({
|
|
35933
35975
|
style: styleCommon,
|
|
@@ -35948,7 +35990,7 @@ function RenderCompItem(props) {
|
|
|
35948
35990
|
getPopupContainer: function getPopupContainer() {
|
|
35949
35991
|
return document.body;
|
|
35950
35992
|
}
|
|
35951
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35993
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && ( /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35952
35994
|
selectBusinessType: "brand",
|
|
35953
35995
|
selectProps: _objectSpread2({
|
|
35954
35996
|
style: styleCommon,
|
|
@@ -35969,7 +36011,7 @@ function RenderCompItem(props) {
|
|
|
35969
36011
|
getPopupContainer: function getPopupContainer() {
|
|
35970
36012
|
return document.body;
|
|
35971
36013
|
}
|
|
35972
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36014
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && ( /*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
35973
36015
|
disabled: disabled,
|
|
35974
36016
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35975
36017
|
businessType: "background-category",
|
|
@@ -35982,7 +36024,7 @@ function RenderCompItem(props) {
|
|
|
35982
36024
|
getPopupContainer: function getPopupContainer() {
|
|
35983
36025
|
return document.body;
|
|
35984
36026
|
}
|
|
35985
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React__default['default'].createElement(CustomSelector, {
|
|
36027
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && ( /*#__PURE__*/React__default['default'].createElement(CustomSelector, {
|
|
35986
36028
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35987
36029
|
style: styleCommon,
|
|
35988
36030
|
placeholder: '请选择'
|
|
@@ -36005,7 +36047,7 @@ function RenderCompItem(props) {
|
|
|
36005
36047
|
onChange: function onChange(value) {
|
|
36006
36048
|
handleEdit(ites.code, value);
|
|
36007
36049
|
}
|
|
36008
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
36050
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
36009
36051
|
style: {
|
|
36010
36052
|
display: 'flex'
|
|
36011
36053
|
}
|
|
@@ -36517,7 +36559,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36517
36559
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36518
36560
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36519
36561
|
}
|
|
36520
|
-
var parallelTreeData =
|
|
36562
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36521
36563
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36522
36564
|
var _i$key;
|
|
36523
36565
|
return ((i === null || i === void 0 ? void 0 : (_i$key = i.key) === null || _i$key === void 0 ? void 0 : _i$key.indexOf('.')) > -1 ? i.id : i.key) === (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId);
|
|
@@ -37444,13 +37486,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37444
37486
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37445
37487
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37446
37488
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37447
|
-
var list =
|
|
37489
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37448
37490
|
var requiredList = list.filter(function (c) {
|
|
37449
37491
|
return c.required == 1;
|
|
37450
37492
|
}) || []; // 获取对象属性为true的集合
|
|
37451
37493
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37452
37494
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37453
|
-
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ?
|
|
37495
|
+
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ? coverToParallel(s === null || s === void 0 ? void 0 : (_s$expression2 = s.expression) === null || _s$expression2 === void 0 ? void 0 : _s$expression2.subExpression, [], 'subExpression') : (s === null || s === void 0 ? void 0 : s.expression) && [s === null || s === void 0 ? void 0 : s.expression];
|
|
37454
37496
|
(coverExpressionTree === null || coverExpressionTree === void 0 ? void 0 : coverExpressionTree.length) && (coverExpressionTree === null || coverExpressionTree === void 0 ? void 0 : (_coverExpressionTree$ = coverExpressionTree.forEach) === null || _coverExpressionTree$ === void 0 ? void 0 : _coverExpressionTree$.call(coverExpressionTree, function (e) {
|
|
37455
37497
|
if (requiredList.some(function (r) {
|
|
37456
37498
|
return r.id === e.elementId;
|
|
@@ -38039,7 +38081,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38039
38081
|
style: {
|
|
38040
38082
|
float: 'right'
|
|
38041
38083
|
}
|
|
38042
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (/*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38084
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? ( /*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38043
38085
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38044
38086
|
ruleGroupInfo: {
|
|
38045
38087
|
ruleGroupList: ruleGroupList,
|
|
@@ -38057,7 +38099,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38057
38099
|
callBack: function callBack(newData) {
|
|
38058
38100
|
upDateData(newData);
|
|
38059
38101
|
}
|
|
38060
|
-
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
38102
|
+
}))) : ( /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38061
38103
|
style: {
|
|
38062
38104
|
padding: 20
|
|
38063
38105
|
}
|
|
@@ -38473,11 +38515,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
38473
38515
|
exports.authFunc = authFunc;
|
|
38474
38516
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
38475
38517
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
38476
|
-
exports.coverToParallel =
|
|
38518
|
+
exports.coverToParallel = coverToParallel;
|
|
38477
38519
|
exports.createUniqID = createUniqID;
|
|
38478
38520
|
exports.downloadExcel = downloadExcel;
|
|
38479
38521
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
38480
|
-
exports.formatter =
|
|
38522
|
+
exports.formatter = formatter;
|
|
38481
38523
|
exports.getAccountID = getAccountID;
|
|
38482
38524
|
exports.getAccountId = getAccountId;
|
|
38483
38525
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|