@bit-sun/business-component 4.0.13-alpha.3 → 4.0.13-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +1 -0
- package/dist/index.esm.js +517 -490
- package/dist/index.js +518 -491
- package/package.json +2 -1
- package/src/components/Business/BsSulaQueryTable/utils.tsx +2 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +5 -0
- package/src/components/Business/SearchSelect/index.md +1 -1
- package/src/components/Functional/QueryMutipleSelect/index.md +2 -3
- package/src/components/Functional/QueryMutipleSelect/index.tsx +1 -1
- package/src/components/Functional/SearchSelect/index.less +12 -6
- package/src/components/Functional/SearchSelect/index.tsx +8 -35
- package/src/components/Functional/SearchSelect/utils.tsx +33 -1
package/dist/index.esm.js
CHANGED
|
@@ -7,6 +7,7 @@ import memoizeOne from 'memoize-one';
|
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
9
9
|
import React$1, { useState, useEffect, useRef, forwardRef, useImperativeHandle, useMemo, Component, Fragment, useLayoutEffect, createRef } from 'react';
|
|
10
|
+
import { renderToString as renderToString$1 } from 'react-dom/server';
|
|
10
11
|
import moment$1 from 'moment';
|
|
11
12
|
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, DashOutlined, CaretUpOutlined, CaretDownOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, CaretLeftOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
12
13
|
import { request as request$2, Table as Table$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
@@ -31,9 +32,88 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
31
32
|
import { visit } from 'ast-types';
|
|
32
33
|
import isArray$1 from 'lodash/isArray';
|
|
33
34
|
|
|
35
|
+
function _arrayLikeToArray(r, a) {
|
|
36
|
+
(null == a || a > r.length) && (a = r.length);
|
|
37
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
function _arrayWithHoles(r) {
|
|
41
|
+
if (Array.isArray(r)) return r;
|
|
42
|
+
}
|
|
43
|
+
function _arrayWithoutHoles(r) {
|
|
44
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
45
|
+
}
|
|
46
|
+
function _assertThisInitialized(e) {
|
|
47
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
48
|
+
return e;
|
|
49
|
+
}
|
|
50
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
51
|
+
try {
|
|
52
|
+
var i = n[a](c),
|
|
53
|
+
u = i.value;
|
|
54
|
+
} catch (n) {
|
|
55
|
+
return void e(n);
|
|
56
|
+
}
|
|
57
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
58
|
+
}
|
|
59
|
+
function _asyncToGenerator(n) {
|
|
60
|
+
return function () {
|
|
61
|
+
var t = this,
|
|
62
|
+
e = arguments;
|
|
63
|
+
return new Promise(function (r, o) {
|
|
64
|
+
var a = n.apply(t, e);
|
|
65
|
+
function _next(n) {
|
|
66
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
67
|
+
}
|
|
68
|
+
function _throw(n) {
|
|
69
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
70
|
+
}
|
|
71
|
+
_next(void 0);
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
}
|
|
34
75
|
function _callSuper(t, o, e) {
|
|
35
76
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
36
77
|
}
|
|
78
|
+
function _classCallCheck(a, n) {
|
|
79
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
80
|
+
}
|
|
81
|
+
function _defineProperties(e, r) {
|
|
82
|
+
for (var t = 0; t < r.length; t++) {
|
|
83
|
+
var o = r[t];
|
|
84
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function _createClass(e, r, t) {
|
|
88
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
89
|
+
writable: !1
|
|
90
|
+
}), e;
|
|
91
|
+
}
|
|
92
|
+
function _defineProperty(e, r, t) {
|
|
93
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
94
|
+
value: t,
|
|
95
|
+
enumerable: !0,
|
|
96
|
+
configurable: !0,
|
|
97
|
+
writable: !0
|
|
98
|
+
}) : e[r] = t, e;
|
|
99
|
+
}
|
|
100
|
+
function _getPrototypeOf(t) {
|
|
101
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
102
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
103
|
+
}, _getPrototypeOf(t);
|
|
104
|
+
}
|
|
105
|
+
function _inherits(t, e) {
|
|
106
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
107
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
108
|
+
constructor: {
|
|
109
|
+
value: t,
|
|
110
|
+
writable: !0,
|
|
111
|
+
configurable: !0
|
|
112
|
+
}
|
|
113
|
+
}), Object.defineProperty(t, "prototype", {
|
|
114
|
+
writable: !1
|
|
115
|
+
}), e && _setPrototypeOf(t, e);
|
|
116
|
+
}
|
|
37
117
|
function _isNativeReflectConstruct() {
|
|
38
118
|
try {
|
|
39
119
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -42,6 +122,9 @@ function _isNativeReflectConstruct() {
|
|
|
42
122
|
return !!t;
|
|
43
123
|
})();
|
|
44
124
|
}
|
|
125
|
+
function _iterableToArray(r) {
|
|
126
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
127
|
+
}
|
|
45
128
|
function _iterableToArrayLimit(r, l) {
|
|
46
129
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
47
130
|
if (null != t) {
|
|
@@ -69,6 +152,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
69
152
|
return a;
|
|
70
153
|
}
|
|
71
154
|
}
|
|
155
|
+
function _nonIterableRest() {
|
|
156
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
157
|
+
}
|
|
158
|
+
function _nonIterableSpread() {
|
|
159
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
160
|
+
}
|
|
161
|
+
function _objectDestructuringEmpty(t) {
|
|
162
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
163
|
+
}
|
|
72
164
|
function ownKeys(e, r) {
|
|
73
165
|
var t = Object.keys(e);
|
|
74
166
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -90,6 +182,31 @@ function _objectSpread2(e) {
|
|
|
90
182
|
}
|
|
91
183
|
return e;
|
|
92
184
|
}
|
|
185
|
+
function _objectWithoutProperties(e, t) {
|
|
186
|
+
if (null == e) return {};
|
|
187
|
+
var o,
|
|
188
|
+
r,
|
|
189
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
190
|
+
if (Object.getOwnPropertySymbols) {
|
|
191
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
192
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
193
|
+
}
|
|
194
|
+
return i;
|
|
195
|
+
}
|
|
196
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
197
|
+
if (null == r) return {};
|
|
198
|
+
var t = {};
|
|
199
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
200
|
+
if (e.includes(n)) continue;
|
|
201
|
+
t[n] = r[n];
|
|
202
|
+
}
|
|
203
|
+
return t;
|
|
204
|
+
}
|
|
205
|
+
function _possibleConstructorReturn(t, e) {
|
|
206
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
207
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
208
|
+
return _assertThisInitialized(t);
|
|
209
|
+
}
|
|
93
210
|
function _regeneratorRuntime() {
|
|
94
211
|
_regeneratorRuntime = function () {
|
|
95
212
|
return e;
|
|
@@ -391,6 +508,20 @@ function _regeneratorRuntime() {
|
|
|
391
508
|
}
|
|
392
509
|
}, e;
|
|
393
510
|
}
|
|
511
|
+
function _setPrototypeOf(t, e) {
|
|
512
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
513
|
+
return t.__proto__ = e, t;
|
|
514
|
+
}, _setPrototypeOf(t, e);
|
|
515
|
+
}
|
|
516
|
+
function _slicedToArray(r, e) {
|
|
517
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
518
|
+
}
|
|
519
|
+
function _toArray(r) {
|
|
520
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
521
|
+
}
|
|
522
|
+
function _toConsumableArray(r) {
|
|
523
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
524
|
+
}
|
|
394
525
|
function _toPrimitive(t, r) {
|
|
395
526
|
if ("object" != typeof t || !t) return t;
|
|
396
527
|
var e = t[Symbol.toPrimitive];
|
|
@@ -414,180 +545,12 @@ function _typeof(o) {
|
|
|
414
545
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
415
546
|
}, _typeof(o);
|
|
416
547
|
}
|
|
417
|
-
function
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
reject(error);
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
if (info.done) {
|
|
426
|
-
resolve(value);
|
|
427
|
-
} else {
|
|
428
|
-
Promise.resolve(value).then(_next, _throw);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
function _asyncToGenerator(fn) {
|
|
432
|
-
return function () {
|
|
433
|
-
var self = this,
|
|
434
|
-
args = arguments;
|
|
435
|
-
return new Promise(function (resolve, reject) {
|
|
436
|
-
var gen = fn.apply(self, args);
|
|
437
|
-
function _next(value) {
|
|
438
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
439
|
-
}
|
|
440
|
-
function _throw(err) {
|
|
441
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
442
|
-
}
|
|
443
|
-
_next(undefined);
|
|
444
|
-
});
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
function _classCallCheck(instance, Constructor) {
|
|
448
|
-
if (!(instance instanceof Constructor)) {
|
|
449
|
-
throw new TypeError("Cannot call a class as a function");
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
function _defineProperties(target, props) {
|
|
453
|
-
for (var i = 0; i < props.length; i++) {
|
|
454
|
-
var descriptor = props[i];
|
|
455
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
456
|
-
descriptor.configurable = true;
|
|
457
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
458
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
-
writable: false
|
|
466
|
-
});
|
|
467
|
-
return Constructor;
|
|
468
|
-
}
|
|
469
|
-
function _defineProperty(obj, key, value) {
|
|
470
|
-
key = _toPropertyKey(key);
|
|
471
|
-
if (key in obj) {
|
|
472
|
-
Object.defineProperty(obj, key, {
|
|
473
|
-
value: value,
|
|
474
|
-
enumerable: true,
|
|
475
|
-
configurable: true,
|
|
476
|
-
writable: true
|
|
477
|
-
});
|
|
478
|
-
} else {
|
|
479
|
-
obj[key] = value;
|
|
480
|
-
}
|
|
481
|
-
return obj;
|
|
482
|
-
}
|
|
483
|
-
function _inherits(subClass, superClass) {
|
|
484
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
486
|
-
}
|
|
487
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
-
constructor: {
|
|
489
|
-
value: subClass,
|
|
490
|
-
writable: true,
|
|
491
|
-
configurable: true
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
Object.defineProperty(subClass, "prototype", {
|
|
495
|
-
writable: false
|
|
496
|
-
});
|
|
497
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
-
}
|
|
499
|
-
function _getPrototypeOf(o) {
|
|
500
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
-
};
|
|
503
|
-
return _getPrototypeOf(o);
|
|
504
|
-
}
|
|
505
|
-
function _setPrototypeOf(o, p) {
|
|
506
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
-
o.__proto__ = p;
|
|
508
|
-
return o;
|
|
509
|
-
};
|
|
510
|
-
return _setPrototypeOf(o, p);
|
|
511
|
-
}
|
|
512
|
-
function _objectDestructuringEmpty(obj) {
|
|
513
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
-
}
|
|
515
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
-
if (source == null) return {};
|
|
517
|
-
var target = {};
|
|
518
|
-
for (var key in source) {
|
|
519
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
-
target[key] = source[key];
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
return target;
|
|
525
|
-
}
|
|
526
|
-
function _objectWithoutProperties(source, excluded) {
|
|
527
|
-
if (source == null) return {};
|
|
528
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
-
var key, i;
|
|
530
|
-
if (Object.getOwnPropertySymbols) {
|
|
531
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
-
key = sourceSymbolKeys[i];
|
|
534
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
-
target[key] = source[key];
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
return target;
|
|
540
|
-
}
|
|
541
|
-
function _assertThisInitialized(self) {
|
|
542
|
-
if (self === void 0) {
|
|
543
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
548
|
+
function _unsupportedIterableToArray(r, a) {
|
|
549
|
+
if (r) {
|
|
550
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
551
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
552
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
544
553
|
}
|
|
545
|
-
return self;
|
|
546
|
-
}
|
|
547
|
-
function _possibleConstructorReturn(self, call) {
|
|
548
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
549
|
-
return call;
|
|
550
|
-
} else if (call !== void 0) {
|
|
551
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
552
|
-
}
|
|
553
|
-
return _assertThisInitialized(self);
|
|
554
|
-
}
|
|
555
|
-
function _slicedToArray(arr, i) {
|
|
556
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
557
|
-
}
|
|
558
|
-
function _toArray(arr) {
|
|
559
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
560
|
-
}
|
|
561
|
-
function _toConsumableArray(arr) {
|
|
562
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
563
|
-
}
|
|
564
|
-
function _arrayWithoutHoles(arr) {
|
|
565
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
566
|
-
}
|
|
567
|
-
function _arrayWithHoles(arr) {
|
|
568
|
-
if (Array.isArray(arr)) return arr;
|
|
569
|
-
}
|
|
570
|
-
function _iterableToArray(iter) {
|
|
571
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
572
|
-
}
|
|
573
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
574
|
-
if (!o) return;
|
|
575
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
576
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
577
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
578
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
579
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
580
|
-
}
|
|
581
|
-
function _arrayLikeToArray(arr, len) {
|
|
582
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
583
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
584
|
-
return arr2;
|
|
585
|
-
}
|
|
586
|
-
function _nonIterableSpread() {
|
|
587
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
588
|
-
}
|
|
589
|
-
function _nonIterableRest() {
|
|
590
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
591
554
|
}
|
|
592
555
|
|
|
593
556
|
var ENUM = {
|
|
@@ -1097,13 +1060,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1097
1060
|
imgHtml.innerHTML = str;
|
|
1098
1061
|
}
|
|
1099
1062
|
// 测试使用 测试类型缩小 end
|
|
1100
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1063
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1101
1064
|
className: "clomnsImg"
|
|
1102
1065
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1103
1066
|
src: url,
|
|
1104
1067
|
width: "16px",
|
|
1105
1068
|
height: "16px"
|
|
1106
|
-
}, paramsObj)))) : (
|
|
1069
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1107
1070
|
className: "clomnsImg2"
|
|
1108
1071
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1109
1072
|
src: noImg
|
|
@@ -1225,7 +1188,8 @@ var authFn = function authFn(code) {
|
|
|
1225
1188
|
};
|
|
1226
1189
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1227
1190
|
var renderToString = function renderToString(render) {
|
|
1228
|
-
return render;
|
|
1191
|
+
// return render;
|
|
1192
|
+
return typeof render === 'string' ? render : renderToString$1(render);
|
|
1229
1193
|
};
|
|
1230
1194
|
|
|
1231
1195
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -1239,7 +1203,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1239
1203
|
}
|
|
1240
1204
|
save_link.click();
|
|
1241
1205
|
}
|
|
1242
|
-
var
|
|
1206
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1243
1207
|
return data.map(function (item) {
|
|
1244
1208
|
if (!item.name || !item.path) {
|
|
1245
1209
|
return null;
|
|
@@ -1259,7 +1223,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1259
1223
|
authority: item.authority || parentAuthority
|
|
1260
1224
|
});
|
|
1261
1225
|
if (item.routes) {
|
|
1262
|
-
var children =
|
|
1226
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1263
1227
|
// Reduce memory usage
|
|
1264
1228
|
result.children = children;
|
|
1265
1229
|
}
|
|
@@ -1269,7 +1233,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1269
1233
|
return item;
|
|
1270
1234
|
});
|
|
1271
1235
|
};
|
|
1272
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1236
|
+
var memoizeOneFormatter = memoizeOne(_formatter, isEqual);
|
|
1273
1237
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1274
1238
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1275
1239
|
if (backHistoryPath) {
|
|
@@ -1578,7 +1542,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1578
1542
|
// sheepMap是表头字段中英文映射
|
|
1579
1543
|
// sheetCount:表的数量,默认一张
|
|
1580
1544
|
var resolveFile = /*#__PURE__*/function () {
|
|
1581
|
-
var _ref3 = _asyncToGenerator(
|
|
1545
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1582
1546
|
var config,
|
|
1583
1547
|
data,
|
|
1584
1548
|
_args = arguments;
|
|
@@ -1617,7 +1581,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1617
1581
|
}();
|
|
1618
1582
|
//读取文件
|
|
1619
1583
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1620
|
-
var _ref4 = _asyncToGenerator(
|
|
1584
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1621
1585
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1622
1586
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1623
1587
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1710,14 +1674,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1710
1674
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1711
1675
|
|
|
1712
1676
|
// 获取树平行结构
|
|
1713
|
-
var
|
|
1677
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1714
1678
|
var childrenKey = chilKey || 'children';
|
|
1715
1679
|
treeData.forEach(function (el) {
|
|
1716
1680
|
var _el$childrenKey;
|
|
1717
1681
|
result.push(el);
|
|
1718
1682
|
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) {
|
|
1719
1683
|
// 子级递归
|
|
1720
|
-
|
|
1684
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1721
1685
|
}
|
|
1722
1686
|
});
|
|
1723
1687
|
return result;
|
|
@@ -1994,13 +1958,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1994
1958
|
imgHtml.innerHTML = str;
|
|
1995
1959
|
}
|
|
1996
1960
|
// 测试使用 测试类型缩小 end
|
|
1997
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (
|
|
1961
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1998
1962
|
className: "clomnsImg"
|
|
1999
1963
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
2000
1964
|
src: url,
|
|
2001
1965
|
width: "16px",
|
|
2002
1966
|
height: "16px"
|
|
2003
|
-
}, paramsObj)))) : (
|
|
1967
|
+
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2004
1968
|
src: noImg
|
|
2005
1969
|
}))));
|
|
2006
1970
|
};
|
|
@@ -2062,7 +2026,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2062
2026
|
}
|
|
2063
2027
|
});
|
|
2064
2028
|
};
|
|
2065
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (
|
|
2029
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2066
2030
|
disabled: disabled,
|
|
2067
2031
|
onChange: function onChange(e) {
|
|
2068
2032
|
var v = e.target.value;
|
|
@@ -2072,7 +2036,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2072
2036
|
width: 170
|
|
2073
2037
|
},
|
|
2074
2038
|
value: inputValue
|
|
2075
|
-
}, inpProps))), type === 'number' && (
|
|
2039
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2076
2040
|
disabled: disabled,
|
|
2077
2041
|
onBlur: function onBlur(e) {
|
|
2078
2042
|
var v = parseFloat(e.target.value);
|
|
@@ -2451,16 +2415,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2451
2415
|
var handleExportBarCode = handleExport;
|
|
2452
2416
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2453
2417
|
var routerMap = {};
|
|
2454
|
-
var
|
|
2418
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2455
2419
|
data.forEach(function (menuItem) {
|
|
2456
2420
|
if (menuItem.children) {
|
|
2457
|
-
|
|
2421
|
+
_flattenMenuData(menuItem.children);
|
|
2458
2422
|
}
|
|
2459
2423
|
// Reduce memory usage
|
|
2460
2424
|
routerMap[menuItem.path] = menuItem;
|
|
2461
2425
|
});
|
|
2462
2426
|
};
|
|
2463
|
-
|
|
2427
|
+
_flattenMenuData(menuData);
|
|
2464
2428
|
return routerMap;
|
|
2465
2429
|
};
|
|
2466
2430
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2603,7 +2567,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2603
2567
|
return request$1(url, parms).then(handleResponseData);
|
|
2604
2568
|
};
|
|
2605
2569
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2606
|
-
var _ref2 = _asyncToGenerator(
|
|
2570
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2607
2571
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2608
2572
|
while (1) switch (_context.prev = _context.next) {
|
|
2609
2573
|
case 0:
|
|
@@ -3281,7 +3245,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3281
3245
|
style: {
|
|
3282
3246
|
color: 'red'
|
|
3283
3247
|
}
|
|
3284
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3248
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3285
3249
|
trigger: ['click'],
|
|
3286
3250
|
overlay: this.menuList,
|
|
3287
3251
|
placement: "bottomRight"
|
|
@@ -3956,7 +3920,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3956
3920
|
placement: "bottomLeft"
|
|
3957
3921
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3958
3922
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3959
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (
|
|
3923
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3960
3924
|
trigger: ['click'],
|
|
3961
3925
|
overlay: this.menuList,
|
|
3962
3926
|
placement: "bottomRight"
|
|
@@ -4475,7 +4439,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4475
4439
|
destroyTooltipOnHide: true,
|
|
4476
4440
|
placement: "topRight",
|
|
4477
4441
|
autoAdjustOverflow: false,
|
|
4478
|
-
title: (
|
|
4442
|
+
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
4479
4443
|
style: {
|
|
4480
4444
|
margin: '6px 8px 0px'
|
|
4481
4445
|
},
|
|
@@ -4502,6 +4466,66 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4502
4466
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4503
4467
|
};
|
|
4504
4468
|
// ------------------------------------------ 数据源展示 相关处理--结束----------------------------------------
|
|
4469
|
+
// ------------------------------------------ 选中数据展示 相关处理--开始----------------------------------------
|
|
4470
|
+
var getShowLabelTextStr = function getShowLabelTextStr(_ref4) {
|
|
4471
|
+
var kongValue = _ref4.kongValue,
|
|
4472
|
+
selectMode = _ref4.selectMode,
|
|
4473
|
+
value = _ref4.value,
|
|
4474
|
+
items = _ref4.items;
|
|
4475
|
+
if (selectMode) {
|
|
4476
|
+
var _value$map;
|
|
4477
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4478
|
+
return item.label || item.text || '';
|
|
4479
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
4480
|
+
}
|
|
4481
|
+
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
4482
|
+
};
|
|
4483
|
+
var getSelectValueText = function getSelectValueText(v, items) {
|
|
4484
|
+
var _filter, _filter$;
|
|
4485
|
+
return ((_filter = (items || []).filter(function (item) {
|
|
4486
|
+
return item.value === v;
|
|
4487
|
+
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
4488
|
+
};
|
|
4489
|
+
var getShowValueStr = function getShowValueStr(_ref5) {
|
|
4490
|
+
var kongValue = _ref5.kongValue,
|
|
4491
|
+
selectMode = _ref5.selectMode,
|
|
4492
|
+
value = _ref5.value,
|
|
4493
|
+
items = _ref5.items;
|
|
4494
|
+
if (selectMode) {
|
|
4495
|
+
var _value$map2;
|
|
4496
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4497
|
+
return getSelectValueText(item, items);
|
|
4498
|
+
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
4499
|
+
}
|
|
4500
|
+
return getSelectValueText(value, items) || kongValue;
|
|
4501
|
+
};
|
|
4502
|
+
var getShowStr = function getShowStr(_ref6) {
|
|
4503
|
+
var viewShowValueStr = _ref6.viewShowValueStr,
|
|
4504
|
+
labelInValue = _ref6.labelInValue,
|
|
4505
|
+
selectMode = _ref6.selectMode,
|
|
4506
|
+
value = _ref6.value,
|
|
4507
|
+
items = _ref6.items;
|
|
4508
|
+
// 优先使用业务使用传入的展示
|
|
4509
|
+
if (viewShowValueStr) return viewShowValueStr;
|
|
4510
|
+
var kongValue = '无';
|
|
4511
|
+
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
4512
|
+
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
4513
|
+
if (labelInValue) {
|
|
4514
|
+
return getShowLabelTextStr({
|
|
4515
|
+
kongValue: kongValue,
|
|
4516
|
+
selectMode: selectMode,
|
|
4517
|
+
value: value,
|
|
4518
|
+
items: items
|
|
4519
|
+
});
|
|
4520
|
+
}
|
|
4521
|
+
return getShowValueStr({
|
|
4522
|
+
kongValue: kongValue,
|
|
4523
|
+
selectMode: selectMode,
|
|
4524
|
+
value: value,
|
|
4525
|
+
items: items
|
|
4526
|
+
});
|
|
4527
|
+
};
|
|
4528
|
+
// ------------------------------------------ 选中数据展示 相关处理--结束---------------------------------------
|
|
4505
4529
|
|
|
4506
4530
|
var getValue = function getValue(value, selectMode) {
|
|
4507
4531
|
var _value$split;
|
|
@@ -4706,14 +4730,14 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4706
4730
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4707
4731
|
});
|
|
4708
4732
|
},
|
|
4709
|
-
notFoundContent: fetching ? (
|
|
4733
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
4710
4734
|
size: "small",
|
|
4711
4735
|
className: 'searchSelectSpin'
|
|
4712
|
-
})) : (
|
|
4736
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
4713
4737
|
style: {
|
|
4714
4738
|
textAlign: 'center'
|
|
4715
4739
|
}
|
|
4716
|
-
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165\
|
|
4740
|
+
}, /*#__PURE__*/React$1.createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : (selectProps === null || selectProps === void 0 ? void 0 : selectProps.notFoundText) || "\u8BF7\u5F55\u5165\u7F16\u7801/\u540D\u79F0\u6A21\u7CCA\u67E5\u8BE2"))),
|
|
4717
4741
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
4718
4742
|
return triggerNode.parentElement;
|
|
4719
4743
|
}
|
|
@@ -4777,7 +4801,7 @@ function ToCDB$1(selectStr) {
|
|
|
4777
4801
|
return tmp;
|
|
4778
4802
|
}
|
|
4779
4803
|
|
|
4780
|
-
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table
|
|
4804
|
+
var css_248z$6 = ".search_select .ant-select-selector {\n height: 24px;\n overflow: hidden;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow {\n height: 40px;\n flex-wrap: nowrap;\n overflow-x: auto;\n}\n.search_select .ant-select-selector .ant-select-selection-overflow-item {\n align-self: auto;\n}\n.search_select_show {\n display: flex;\n}\n.search_select_show .ant-select-dropdown {\n top: 24px !important;\n width: calc(141%) !important;\n}\n.search_select_show .ant-select-clear {\n right: 33px;\n}\n.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,\n.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {\n padding-right: 28px;\n}\n.search_select_show.search_select_show_list .ant-select-dropdown {\n top: 24px !important;\n width: calc(100% + 110px) !important;\n}\n.search_select_expand_button {\n position: relative;\n right: -11px;\n width: 30px;\n border-left: 1px solid #d9d9d9;\n height: 24px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bolder;\n}\n.search_select_expand_button span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.search_select_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n}\n.search_select_expand_button_disabled:hover {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {\n font-family: MiSans-Regular;\n font-weight: 400;\n font-size: 12px;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {\n color: #333333;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {\n visibility: hidden;\n padding: 0;\n margin: 0;\n width: 0;\n height: 0;\n min-width: 0;\n min-height: 0;\n border: none;\n}\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,\n.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {\n display: none;\n}\n.search_select_modal_wrapper .ant-modal {\n top: 60px;\n}\n.search_select_modal_wrapper .ant-modal-header {\n padding: 6px 0px 6px 16px;\n}\n.search_select_modal_wrapper .ant-modal-header .ant-modal-title {\n height: 20px;\n color: #000000;\n line-height: 20px;\n}\n.search_select_modal_wrapper .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.search_select_modal_wrapper .ant-modal-body {\n padding: 0px;\n background: #F3F3F3;\n height: calc(100vh - 235px);\n overflow: hidden;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {\n color: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n background: #005cff;\n border-color: #005cff;\n}\n.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {\n opacity: 0.5;\n color: #fff;\n}\n.search_select_wrapper {\n position: relative;\n font-size: 14px;\n}\n.search_select_wrapper_topForm .select_list_columns {\n width: 100%;\n padding: 10px 6px 2px 16px;\n background-color: #fff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form {\n padding: 0;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4781
4805
|
styleInject(css_248z$6);
|
|
4782
4806
|
|
|
4783
4807
|
var zhankaitiaojian = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -4941,7 +4965,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4941
4965
|
title: item.name,
|
|
4942
4966
|
className: "propertyGroup_checkbox_container"
|
|
4943
4967
|
}, item.name));
|
|
4944
|
-
}), !!notCommonUseProperty.length && (
|
|
4968
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4945
4969
|
style: {
|
|
4946
4970
|
width: '50px',
|
|
4947
4971
|
cursor: 'pointer',
|
|
@@ -4954,7 +4978,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4954
4978
|
setShowNotCommon(!showNotCommon);
|
|
4955
4979
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4956
4980
|
}
|
|
4957
|
-
}, showNotCommon && (
|
|
4981
|
+
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4958
4982
|
};
|
|
4959
4983
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4960
4984
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5184,7 +5208,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5184
5208
|
propertyData: item,
|
|
5185
5209
|
handleProperyItemChange: handleProperyItemChange
|
|
5186
5210
|
});
|
|
5187
|
-
}))), !!notCommonProperty.length && (
|
|
5211
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
5188
5212
|
style: {
|
|
5189
5213
|
width: '50px',
|
|
5190
5214
|
cursor: 'pointer',
|
|
@@ -5194,7 +5218,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5194
5218
|
onClick: function onClick() {
|
|
5195
5219
|
return setShowNotCommon(!showNotCommon);
|
|
5196
5220
|
}
|
|
5197
|
-
}, showNotCommon && (
|
|
5221
|
+
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5198
5222
|
};
|
|
5199
5223
|
|
|
5200
5224
|
var Option$1 = Select.Option;
|
|
@@ -5208,7 +5232,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5208
5232
|
modalTableProps = _props$modalTableProp === void 0 ? {} : _props$modalTableProp,
|
|
5209
5233
|
_props$labelInValue = props.labelInValue,
|
|
5210
5234
|
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
5211
|
-
|
|
5235
|
+
rCTemp = props.requestConfig,
|
|
5212
5236
|
ctx = props.ctx,
|
|
5213
5237
|
_props$onlyShowStr = props.onlyShowStr,
|
|
5214
5238
|
sourceName = props.sourceName,
|
|
@@ -5220,7 +5244,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5220
5244
|
fieldComponent = props.fieldComponent,
|
|
5221
5245
|
onSaveCallback = props.onSaveCallback,
|
|
5222
5246
|
selectBusinessType = props.selectBusinessType;
|
|
5223
|
-
var _ref =
|
|
5247
|
+
var _ref = rCTemp || {},
|
|
5224
5248
|
url = _ref.url,
|
|
5225
5249
|
_ref$method = _ref.method,
|
|
5226
5250
|
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
@@ -5247,6 +5271,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5247
5271
|
noOperate = _ref.noOperate,
|
|
5248
5272
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5249
5273
|
searchStartLength = _ref.searchStartLength;
|
|
5274
|
+
var requestConfig = _objectSpread2({
|
|
5275
|
+
url: url,
|
|
5276
|
+
method: method,
|
|
5277
|
+
otherParams: otherParams,
|
|
5278
|
+
isMap: isMap,
|
|
5279
|
+
fixedparameter: fixedparameter,
|
|
5280
|
+
fieldValToParam: fieldValToParam,
|
|
5281
|
+
fixedparamsDisabled: fixedparamsDisabled,
|
|
5282
|
+
mappingTextField: mappingTextField,
|
|
5283
|
+
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
5284
|
+
mappingValueField: mappingValueField,
|
|
5285
|
+
mappingTextShowTextField: mappingTextShowTextField,
|
|
5286
|
+
init: init,
|
|
5287
|
+
extralHeaders: extralHeaders,
|
|
5288
|
+
specialBracket: specialBracket,
|
|
5289
|
+
noNeedSplit: noNeedSplit,
|
|
5290
|
+
noOperate: noOperate,
|
|
5291
|
+
viewShowValueStr: viewShowValueStr,
|
|
5292
|
+
searchStartLength: searchStartLength
|
|
5293
|
+
}, rCTemp);
|
|
5250
5294
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
5251
5295
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
5252
5296
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -5281,7 +5325,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5281
5325
|
total: 0,
|
|
5282
5326
|
current: 1
|
|
5283
5327
|
});
|
|
5284
|
-
var disabled = noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5328
|
+
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5285
5329
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
5286
5330
|
var isHaveDValue = function isHaveDValue() {
|
|
5287
5331
|
var formValueList = [];
|
|
@@ -5467,6 +5511,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5467
5511
|
});
|
|
5468
5512
|
// 获取数据源 (type: 1下拉框 2/3弹框 不传值默认为下拉框)
|
|
5469
5513
|
var getData = function getData() {
|
|
5514
|
+
var _method$toLocaleLower;
|
|
5470
5515
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5471
5516
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
5472
5517
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -5510,7 +5555,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5510
5555
|
queryParams[selectParamsKey] = searchValue;
|
|
5511
5556
|
}
|
|
5512
5557
|
var getRequest;
|
|
5513
|
-
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
5558
|
+
var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
|
|
5514
5559
|
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5515
5560
|
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5516
5561
|
} else {
|
|
@@ -6175,59 +6220,36 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6175
6220
|
}
|
|
6176
6221
|
})));
|
|
6177
6222
|
};
|
|
6178
|
-
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
6179
|
-
if (selectMode) {
|
|
6180
|
-
var _value$map;
|
|
6181
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
6182
|
-
return item.label || item.text || '';
|
|
6183
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
6184
|
-
}
|
|
6185
|
-
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
6186
|
-
};
|
|
6187
|
-
var getSelectValueText = function getSelectValueText(v) {
|
|
6188
|
-
var _filter, _filter$;
|
|
6189
|
-
return ((_filter = (items || []).filter(function (item) {
|
|
6190
|
-
return item.value === v;
|
|
6191
|
-
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
6192
|
-
};
|
|
6193
|
-
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
6194
|
-
if (selectMode) {
|
|
6195
|
-
var _value$map2;
|
|
6196
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
6197
|
-
return getSelectValueText(item);
|
|
6198
|
-
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
6199
|
-
}
|
|
6200
|
-
return getSelectValueText(value) || kongValue;
|
|
6201
|
-
};
|
|
6202
|
-
var getShowStr = function getShowStr() {
|
|
6203
|
-
// 优先使用业务使用传入的展示
|
|
6204
|
-
if (viewShowValueStr) return viewShowValueStr;
|
|
6205
|
-
var kongValue = '无';
|
|
6206
|
-
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
6207
|
-
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
6208
|
-
if (labelInValue) {
|
|
6209
|
-
return getShowLabelTextStr(kongValue);
|
|
6210
|
-
}
|
|
6211
|
-
return getShowValueStr(kongValue);
|
|
6212
|
-
};
|
|
6213
6223
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6214
6224
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
6215
6225
|
className: 'search_select'
|
|
6216
|
-
}, fieldComponent ? (
|
|
6226
|
+
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6217
6227
|
onClick: function onClick() {
|
|
6218
6228
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6219
6229
|
(_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);
|
|
6220
6230
|
showModal();
|
|
6221
6231
|
}
|
|
6222
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
6223
|
-
title: getShowStr(
|
|
6232
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
6233
|
+
title: getShowStr({
|
|
6234
|
+
viewShowValueStr: viewShowValueStr,
|
|
6235
|
+
labelInValue: labelInValue,
|
|
6236
|
+
selectMode: selectMode,
|
|
6237
|
+
value: value,
|
|
6238
|
+
items: items
|
|
6239
|
+
}),
|
|
6224
6240
|
style: {
|
|
6225
6241
|
overflow: 'hidden',
|
|
6226
6242
|
textOverflow: 'ellipsis',
|
|
6227
6243
|
whiteSpace: 'nowrap'
|
|
6228
6244
|
},
|
|
6229
6245
|
className: 'search_select_show'
|
|
6230
|
-
}, getShowStr(
|
|
6246
|
+
}, getShowStr({
|
|
6247
|
+
viewShowValueStr: viewShowValueStr,
|
|
6248
|
+
labelInValue: labelInValue,
|
|
6249
|
+
selectMode: selectMode,
|
|
6250
|
+
value: value,
|
|
6251
|
+
items: items
|
|
6252
|
+
}))) : /*#__PURE__*/React$1.createElement("div", {
|
|
6231
6253
|
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
6232
6254
|
id: "search_select_div_".concat(uniqueValue)
|
|
6233
6255
|
}, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
@@ -6246,10 +6268,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6246
6268
|
dropdownRender: function dropdownRender(menu) {
|
|
6247
6269
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6248
6270
|
},
|
|
6249
|
-
notFoundContent: fetching ? (
|
|
6271
|
+
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
6250
6272
|
size: "small",
|
|
6251
6273
|
className: 'searchSelectSpin'
|
|
6252
|
-
})) : (
|
|
6274
|
+
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
6253
6275
|
style: {
|
|
6254
6276
|
textAlign: 'center'
|
|
6255
6277
|
}
|
|
@@ -6289,7 +6311,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6289
6311
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6290
6312
|
filterTxt: searchValue
|
|
6291
6313
|
}));
|
|
6292
|
-
}))), needModalTable && isModalVisible && (
|
|
6314
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6293
6315
|
maskClosable: false,
|
|
6294
6316
|
destroyOnClose: true,
|
|
6295
6317
|
width: "80%",
|
|
@@ -6886,7 +6908,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6886
6908
|
style: {
|
|
6887
6909
|
width: 525
|
|
6888
6910
|
}
|
|
6889
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
6911
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6890
6912
|
checked: !dataSource.some(function (item) {
|
|
6891
6913
|
if (item.hidden) return true;
|
|
6892
6914
|
return false;
|
|
@@ -6924,13 +6946,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6924
6946
|
_this2.onChange(e, item.title);
|
|
6925
6947
|
}
|
|
6926
6948
|
}, item.title);
|
|
6927
|
-
}), !!seatchDataSource.length && (
|
|
6949
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6928
6950
|
style: {
|
|
6929
6951
|
width: '144px'
|
|
6930
6952
|
}
|
|
6931
|
-
})), !seatchDataSource.length && (
|
|
6953
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6932
6954
|
className: 'sort_table_column_all_empty'
|
|
6933
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
6955
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6934
6956
|
className: 'sort_table_column_special'
|
|
6935
6957
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6936
6958
|
className: 'sort_table_column_all'
|
|
@@ -7119,7 +7141,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7119
7141
|
});
|
|
7120
7142
|
};
|
|
7121
7143
|
// 格式化树选择器数据源
|
|
7122
|
-
var
|
|
7144
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7123
7145
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7124
7146
|
return {
|
|
7125
7147
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7129,7 +7151,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7129
7151
|
isLeaf: !haveChildren,
|
|
7130
7152
|
disabled: haveChildren,
|
|
7131
7153
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7132
|
-
return
|
|
7154
|
+
return _mapSearchTree(i, resKeyValue);
|
|
7133
7155
|
}) : []
|
|
7134
7156
|
};
|
|
7135
7157
|
};
|
|
@@ -7138,7 +7160,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7138
7160
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7139
7161
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7140
7162
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7141
|
-
return
|
|
7163
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
7142
7164
|
}) || [];
|
|
7143
7165
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7144
7166
|
};
|
|
@@ -7309,7 +7331,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7309
7331
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7310
7332
|
// FIXME: 特殊业务逻辑
|
|
7311
7333
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7312
|
-
var _ref2 = _asyncToGenerator(
|
|
7334
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7313
7335
|
var result;
|
|
7314
7336
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7315
7337
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7562,7 +7584,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7562
7584
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7563
7585
|
value: text || null,
|
|
7564
7586
|
onChange: function () {
|
|
7565
|
-
var _onChange = _asyncToGenerator(
|
|
7587
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7566
7588
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7567
7589
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7568
7590
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -8170,10 +8192,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8170
8192
|
var newColumns = arr.map(function (col) {
|
|
8171
8193
|
return _objectSpread2({}, col);
|
|
8172
8194
|
});
|
|
8173
|
-
var
|
|
8195
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8174
8196
|
var i = indexArr.shift();
|
|
8175
8197
|
if (indexArr.length > 0) {
|
|
8176
|
-
|
|
8198
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8177
8199
|
} else {
|
|
8178
8200
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8179
8201
|
width: size.width
|
|
@@ -8181,7 +8203,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8181
8203
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8182
8204
|
}
|
|
8183
8205
|
};
|
|
8184
|
-
|
|
8206
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8185
8207
|
callback(newColumns);
|
|
8186
8208
|
};
|
|
8187
8209
|
};
|
|
@@ -8191,13 +8213,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8191
8213
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8192
8214
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8193
8215
|
};
|
|
8194
|
-
var
|
|
8216
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8195
8217
|
arr.forEach(function (item, index) {
|
|
8196
8218
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8197
8219
|
return i || i === 0;
|
|
8198
8220
|
});
|
|
8199
8221
|
if (noEmptyArray$1(item.children)) {
|
|
8200
|
-
|
|
8222
|
+
_handleColumns(item.children, indexArrInside);
|
|
8201
8223
|
} else {
|
|
8202
8224
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8203
8225
|
item.onHeaderCell = function (column) {
|
|
@@ -8213,14 +8235,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8213
8235
|
handleAntdColumnsSpecialParams(item);
|
|
8214
8236
|
return _objectSpread2({}, item);
|
|
8215
8237
|
});
|
|
8216
|
-
|
|
8238
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
8217
8239
|
return setShowToChooseColumnsCallback(res);
|
|
8218
8240
|
});
|
|
8219
8241
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8220
8242
|
handleAntdColumnsSpecialParams(item);
|
|
8221
8243
|
return _objectSpread2({}, item);
|
|
8222
8244
|
});
|
|
8223
|
-
|
|
8245
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8224
8246
|
return setShowColumnsCallback(res);
|
|
8225
8247
|
});
|
|
8226
8248
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8231,7 +8253,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8231
8253
|
id: "add_select_div_".concat(uniqueValue)
|
|
8232
8254
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
8233
8255
|
onClick: handleShowModal
|
|
8234
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
8256
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
8235
8257
|
width: '1200px',
|
|
8236
8258
|
style: {
|
|
8237
8259
|
top: 20
|
|
@@ -9145,7 +9167,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9145
9167
|
});
|
|
9146
9168
|
};
|
|
9147
9169
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9148
|
-
var _ref4 = _asyncToGenerator(
|
|
9170
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9149
9171
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9150
9172
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9151
9173
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9228,10 +9250,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9228
9250
|
var newColumns = arr.map(function (col) {
|
|
9229
9251
|
return _objectSpread2({}, col);
|
|
9230
9252
|
});
|
|
9231
|
-
var
|
|
9253
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
9232
9254
|
var i = indexArr.shift();
|
|
9233
9255
|
if (indexArr.length > 0) {
|
|
9234
|
-
|
|
9256
|
+
_handleIndex(arr[i].children, indexArr);
|
|
9235
9257
|
} else {
|
|
9236
9258
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9237
9259
|
width: size.width
|
|
@@ -9239,17 +9261,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9239
9261
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9240
9262
|
}
|
|
9241
9263
|
};
|
|
9242
|
-
|
|
9264
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
9243
9265
|
callback(newColumns);
|
|
9244
9266
|
};
|
|
9245
9267
|
};
|
|
9246
|
-
var
|
|
9268
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9247
9269
|
arr.forEach(function (item, index) {
|
|
9248
9270
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9249
9271
|
return i || i === 0;
|
|
9250
9272
|
});
|
|
9251
9273
|
if (noEmptyArray$1(item.children)) {
|
|
9252
|
-
|
|
9274
|
+
_handleColumns(item.children, indexArrInside);
|
|
9253
9275
|
} else {
|
|
9254
9276
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9255
9277
|
item.onHeaderCell = function (column) {
|
|
@@ -9265,7 +9287,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9265
9287
|
handleAntdColumnsSpecialParams(item);
|
|
9266
9288
|
return _objectSpread2({}, item);
|
|
9267
9289
|
});
|
|
9268
|
-
|
|
9290
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9269
9291
|
return setShowColumnsCallback(res);
|
|
9270
9292
|
});
|
|
9271
9293
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9580,7 +9602,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9580
9602
|
});
|
|
9581
9603
|
};
|
|
9582
9604
|
// 格式化树选择器数据源
|
|
9583
|
-
var
|
|
9605
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9584
9606
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9585
9607
|
return {
|
|
9586
9608
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9590,7 +9612,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9590
9612
|
isLeaf: !haveChildren,
|
|
9591
9613
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9592
9614
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9593
|
-
return
|
|
9615
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9594
9616
|
}) : []
|
|
9595
9617
|
};
|
|
9596
9618
|
};
|
|
@@ -9604,7 +9626,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9604
9626
|
disabledJudge = false;
|
|
9605
9627
|
}
|
|
9606
9628
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9607
|
-
return
|
|
9629
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9608
9630
|
}) || [];
|
|
9609
9631
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9610
9632
|
};
|
|
@@ -9882,7 +9904,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9882
9904
|
sourceName: 'qp-skuCode-in',
|
|
9883
9905
|
specialBracket: true,
|
|
9884
9906
|
otherParams: {
|
|
9885
|
-
'ownOrgSign': getCurrentTargetBgId()
|
|
9907
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
9908
|
+
'ctl-count': true
|
|
9886
9909
|
} // 默认参数
|
|
9887
9910
|
}
|
|
9888
9911
|
}
|
|
@@ -9905,7 +9928,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9905
9928
|
mappingTextField: 'name',
|
|
9906
9929
|
mappingValueField: 'itemCode',
|
|
9907
9930
|
sourceName: 'qp-itemCode-in',
|
|
9908
|
-
specialBracket: true
|
|
9931
|
+
specialBracket: true,
|
|
9932
|
+
otherParams: {
|
|
9933
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
9934
|
+
'ctl-count': true
|
|
9935
|
+
} // 默认参数
|
|
9909
9936
|
}
|
|
9910
9937
|
}
|
|
9911
9938
|
}
|
|
@@ -13709,7 +13736,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13709
13736
|
};
|
|
13710
13737
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13711
13738
|
onClick: handleShowModal
|
|
13712
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
13739
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13713
13740
|
onOk: handleOk,
|
|
13714
13741
|
onCancel: handleCancel,
|
|
13715
13742
|
destroyOnClose: true,
|
|
@@ -13828,7 +13855,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13828
13855
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13829
13856
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13830
13857
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13831
|
-
var
|
|
13858
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13832
13859
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13833
13860
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13834
13861
|
return {
|
|
@@ -13840,7 +13867,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13840
13867
|
isLeaf: !haveChildren,
|
|
13841
13868
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13842
13869
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13843
|
-
return
|
|
13870
|
+
return _mapSearchTree(i);
|
|
13844
13871
|
}) : []
|
|
13845
13872
|
};
|
|
13846
13873
|
};
|
|
@@ -13858,8 +13885,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13858
13885
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13859
13886
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13860
13887
|
headers: headers
|
|
13861
|
-
}).then(
|
|
13862
|
-
var _ref = _asyncToGenerator(
|
|
13888
|
+
}).then(/*#__PURE__*/function () {
|
|
13889
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13863
13890
|
var _ctx$form;
|
|
13864
13891
|
var resData, coverData, data, dataList;
|
|
13865
13892
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13886,7 +13913,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13886
13913
|
case 9:
|
|
13887
13914
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13888
13915
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13889
|
-
return
|
|
13916
|
+
return _mapSearchTree(ites);
|
|
13890
13917
|
}) || [];
|
|
13891
13918
|
case 11:
|
|
13892
13919
|
_context.next = 14;
|
|
@@ -13924,11 +13951,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13924
13951
|
return _formatResult;
|
|
13925
13952
|
}
|
|
13926
13953
|
};
|
|
13927
|
-
var
|
|
13954
|
+
var _parallelData = function parallelData(data, result) {
|
|
13928
13955
|
data.forEach(function (i) {
|
|
13929
13956
|
result.push(i);
|
|
13930
13957
|
if (i[treeChildrenRoom]) {
|
|
13931
|
-
|
|
13958
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
13932
13959
|
}
|
|
13933
13960
|
});
|
|
13934
13961
|
return result;
|
|
@@ -13968,7 +13995,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13968
13995
|
var _ctx$form2;
|
|
13969
13996
|
var handleData = formatData(data);
|
|
13970
13997
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13971
|
-
var parallelTreeData =
|
|
13998
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13972
13999
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13973
14000
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13974
14001
|
onChangeName && onChangeName(dataName);
|
|
@@ -14011,7 +14038,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14011
14038
|
var getShowStr = function getShowStr() {
|
|
14012
14039
|
var isMultiple = multiple || treeCheckable;
|
|
14013
14040
|
var kongValue = '无';
|
|
14014
|
-
var parallelTreeData =
|
|
14041
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14015
14042
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14016
14043
|
if (isMultiple) {
|
|
14017
14044
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14023,7 +14050,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14023
14050
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14024
14051
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
14025
14052
|
className: 'tree_search_select'
|
|
14026
|
-
}, isShouldShowStr ? (
|
|
14053
|
+
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14027
14054
|
title: getShowStr(),
|
|
14028
14055
|
style: {
|
|
14029
14056
|
overflow: 'hidden',
|
|
@@ -14031,7 +14058,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14031
14058
|
whiteSpace: 'nowrap'
|
|
14032
14059
|
},
|
|
14033
14060
|
className: 'search_select_show'
|
|
14034
|
-
}, getShowStr())) : (
|
|
14061
|
+
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14035
14062
|
treeCheckable: treeCheckable,
|
|
14036
14063
|
maxTagCount: maxTagCount,
|
|
14037
14064
|
showSearch: showSearch,
|
|
@@ -14228,7 +14255,7 @@ var index$2 = (function (props) {
|
|
|
14228
14255
|
} : {}
|
|
14229
14256
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
14230
14257
|
className: 'status-label-operate'
|
|
14231
|
-
}, item.isDone ? (
|
|
14258
|
+
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
14232
14259
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14233
14260
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
14234
14261
|
style: {
|
|
@@ -15009,7 +15036,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15009
15036
|
style: {
|
|
15010
15037
|
width: 525
|
|
15011
15038
|
}
|
|
15012
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
15039
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
15013
15040
|
checked: !dataSource.some(function (item) {
|
|
15014
15041
|
if (item.hidden) return true;
|
|
15015
15042
|
return false;
|
|
@@ -15047,13 +15074,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15047
15074
|
_this2.onChange(e, item.title);
|
|
15048
15075
|
}
|
|
15049
15076
|
}, item.title);
|
|
15050
|
-
}), !!seatchDataSource.length && (
|
|
15077
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
15051
15078
|
style: {
|
|
15052
15079
|
width: '144px'
|
|
15053
15080
|
}
|
|
15054
|
-
})), !seatchDataSource.length && (
|
|
15081
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
15055
15082
|
className: 'sort_table_column_all_empty'
|
|
15056
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15083
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
15057
15084
|
className: 'sort_table_column_special'
|
|
15058
15085
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
15059
15086
|
className: 'sort_table_column_all'
|
|
@@ -15232,10 +15259,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15232
15259
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15233
15260
|
return _objectSpread2({}, col);
|
|
15234
15261
|
});
|
|
15235
|
-
var
|
|
15262
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15236
15263
|
var i = indexArr.shift();
|
|
15237
15264
|
if (indexArr.length > 0) {
|
|
15238
|
-
|
|
15265
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15239
15266
|
} else {
|
|
15240
15267
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15241
15268
|
width: size.width
|
|
@@ -15243,7 +15270,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15243
15270
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15244
15271
|
}
|
|
15245
15272
|
};
|
|
15246
|
-
|
|
15273
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15247
15274
|
_this.setState({
|
|
15248
15275
|
showColumns: _toConsumableArray(newColumns)
|
|
15249
15276
|
});
|
|
@@ -15284,7 +15311,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15284
15311
|
};
|
|
15285
15312
|
setIsResizing(true);
|
|
15286
15313
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15287
|
-
document.addEventListener('mouseup',
|
|
15314
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
15288
15315
|
};
|
|
15289
15316
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15290
15317
|
e.stopPropagation();
|
|
@@ -15300,9 +15327,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15300
15327
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15301
15328
|
}
|
|
15302
15329
|
};
|
|
15303
|
-
var
|
|
15330
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15304
15331
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15305
|
-
document.removeEventListener('mouseup',
|
|
15332
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15306
15333
|
setIsResizing(false);
|
|
15307
15334
|
};
|
|
15308
15335
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15423,13 +15450,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15423
15450
|
showSummary = summary;
|
|
15424
15451
|
}
|
|
15425
15452
|
}
|
|
15426
|
-
var
|
|
15453
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15427
15454
|
arr.forEach(function (item, index) {
|
|
15428
15455
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15429
15456
|
return i || i === 0;
|
|
15430
15457
|
});
|
|
15431
15458
|
if (noEmptyArray$1(item.children)) {
|
|
15432
|
-
|
|
15459
|
+
_handleColumns(item.children, indexArrInside);
|
|
15433
15460
|
} else {
|
|
15434
15461
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15435
15462
|
item.onHeaderCell = function (column) {
|
|
@@ -15445,7 +15472,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15445
15472
|
handleBssulaColumnsSpecialParams(item);
|
|
15446
15473
|
return _objectSpread2({}, item);
|
|
15447
15474
|
});
|
|
15448
|
-
|
|
15475
|
+
_handleColumns(showCol, []);
|
|
15449
15476
|
if (dynamicColumns.length) {
|
|
15450
15477
|
showCol = this.handledynamicColumns(showCol);
|
|
15451
15478
|
}
|
|
@@ -15486,7 +15513,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15486
15513
|
cell: this.ResizeableTitle
|
|
15487
15514
|
}
|
|
15488
15515
|
}
|
|
15489
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15516
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15490
15517
|
summary: summary
|
|
15491
15518
|
})));
|
|
15492
15519
|
}
|
|
@@ -15583,10 +15610,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15583
15610
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15584
15611
|
return _objectSpread2({}, col);
|
|
15585
15612
|
});
|
|
15586
|
-
var
|
|
15613
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15587
15614
|
var i = indexArr.shift();
|
|
15588
15615
|
if (indexArr.length > 0) {
|
|
15589
|
-
|
|
15616
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15590
15617
|
} else {
|
|
15591
15618
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15592
15619
|
width: size.width
|
|
@@ -15594,7 +15621,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15594
15621
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15595
15622
|
}
|
|
15596
15623
|
};
|
|
15597
|
-
|
|
15624
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15598
15625
|
_this.setState({
|
|
15599
15626
|
showColumns: _toConsumableArray(newColumns)
|
|
15600
15627
|
});
|
|
@@ -15670,13 +15697,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15670
15697
|
showSummary = summary;
|
|
15671
15698
|
}
|
|
15672
15699
|
}
|
|
15673
|
-
var
|
|
15700
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15674
15701
|
arr.forEach(function (item, index) {
|
|
15675
15702
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15676
15703
|
return i || i === 0;
|
|
15677
15704
|
});
|
|
15678
15705
|
if (noEmptyArray$1(item.children)) {
|
|
15679
|
-
|
|
15706
|
+
_handleColumns(item.children, indexArrInside);
|
|
15680
15707
|
} else {
|
|
15681
15708
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15682
15709
|
item.onHeaderCell = function (column) {
|
|
@@ -15692,7 +15719,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15692
15719
|
handleAntdColumnsSpecialParams(item);
|
|
15693
15720
|
return _objectSpread2({}, item);
|
|
15694
15721
|
});
|
|
15695
|
-
|
|
15722
|
+
_handleColumns(showCol, []);
|
|
15696
15723
|
if (dynamicColumns.length) {
|
|
15697
15724
|
showCol = this.handledynamicColumns(showCol);
|
|
15698
15725
|
}
|
|
@@ -15732,7 +15759,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15732
15759
|
cell: this.ResizeableTitle
|
|
15733
15760
|
}
|
|
15734
15761
|
}
|
|
15735
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15762
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15736
15763
|
summary: summary
|
|
15737
15764
|
})));
|
|
15738
15765
|
}
|
|
@@ -15792,20 +15819,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15792
15819
|
};
|
|
15793
15820
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15794
15821
|
var routerMap = {};
|
|
15795
|
-
var
|
|
15822
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
15796
15823
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15797
15824
|
data.forEach(function (menuItem) {
|
|
15798
15825
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15799
15826
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15800
15827
|
});
|
|
15801
15828
|
if (newMenuItem.children) {
|
|
15802
|
-
|
|
15829
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
15803
15830
|
}
|
|
15804
15831
|
// Reduce memory usage
|
|
15805
15832
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15806
15833
|
});
|
|
15807
15834
|
};
|
|
15808
|
-
|
|
15835
|
+
_flattenMenuData2(menuData, {});
|
|
15809
15836
|
return routerMap;
|
|
15810
15837
|
};
|
|
15811
15838
|
// mode类型判断
|
|
@@ -16131,7 +16158,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16131
16158
|
display: 'flex',
|
|
16132
16159
|
gap: '8px'
|
|
16133
16160
|
}
|
|
16134
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
16161
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16135
16162
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16136
16163
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16137
16164
|
onClick: function onClick() {
|
|
@@ -16139,7 +16166,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16139
16166
|
},
|
|
16140
16167
|
width: 24,
|
|
16141
16168
|
src: scanning
|
|
16142
|
-
}))) : (
|
|
16169
|
+
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
16143
16170
|
title: "\u5168\u5C4F"
|
|
16144
16171
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
16145
16172
|
onClick: function onClick() {
|
|
@@ -16147,7 +16174,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16147
16174
|
},
|
|
16148
16175
|
width: 24,
|
|
16149
16176
|
src: quanping
|
|
16150
|
-
}))))) : null)), alertProps && (
|
|
16177
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16151
16178
|
}, function (prevProps, nextProps) {
|
|
16152
16179
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16153
16180
|
return false;
|
|
@@ -16232,7 +16259,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
16232
16259
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
16233
16260
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16234
16261
|
}, item));
|
|
16235
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (
|
|
16262
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16236
16263
|
}, function (prevProps, nextProps) {
|
|
16237
16264
|
if (prevProps.title !== nextProps.title) {
|
|
16238
16265
|
return false;
|
|
@@ -16872,7 +16899,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16872
16899
|
});
|
|
16873
16900
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16874
16901
|
className: 'sort_table_wrapper'
|
|
16875
|
-
}, visible && (
|
|
16902
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16876
16903
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16877
16904
|
wrapClassName: 'sort_table_wrapper',
|
|
16878
16905
|
width: 810,
|
|
@@ -16923,7 +16950,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16923
16950
|
width: 525,
|
|
16924
16951
|
height: 24
|
|
16925
16952
|
}
|
|
16926
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
16953
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16927
16954
|
checked: !dataSource.some(function (item) {
|
|
16928
16955
|
if (item.hidden) return true;
|
|
16929
16956
|
return false;
|
|
@@ -16977,13 +17004,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16977
17004
|
_this2.onChange(e, item.title);
|
|
16978
17005
|
}
|
|
16979
17006
|
}, item.title);
|
|
16980
|
-
}), !!seatchDataSource.length && (
|
|
17007
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16981
17008
|
style: {
|
|
16982
17009
|
width: '144px'
|
|
16983
17010
|
}
|
|
16984
|
-
})), !seatchDataSource.length && (
|
|
17011
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16985
17012
|
className: 'sort_table_column_all_empty'
|
|
16986
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
17013
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16987
17014
|
className: 'sort_table_column_special'
|
|
16988
17015
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16989
17016
|
className: 'sort_table_column_all'
|
|
@@ -17457,7 +17484,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17457
17484
|
});
|
|
17458
17485
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17459
17486
|
className: 'sort_table_wrapper'
|
|
17460
|
-
}, visible && (
|
|
17487
|
+
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17461
17488
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17462
17489
|
wrapClassName: 'sort_table_wrapper',
|
|
17463
17490
|
width: 820,
|
|
@@ -17502,7 +17529,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17502
17529
|
style: {
|
|
17503
17530
|
width: 525
|
|
17504
17531
|
}
|
|
17505
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (
|
|
17532
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17506
17533
|
checked: !dataSource.some(function (item) {
|
|
17507
17534
|
if (item.hidden) return true;
|
|
17508
17535
|
return false;
|
|
@@ -17538,11 +17565,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17538
17565
|
_this2.onChange(e, item.name);
|
|
17539
17566
|
}
|
|
17540
17567
|
}, item.label);
|
|
17541
|
-
}), !!newSearchSource.length && (
|
|
17568
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17542
17569
|
style: {
|
|
17543
17570
|
width: '144px'
|
|
17544
17571
|
}
|
|
17545
|
-
})), !newSearchSource.length && (
|
|
17572
|
+
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17546
17573
|
className: 'sort_table_column_all_empty'
|
|
17547
17574
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17548
17575
|
className: 'sort_table_content_wrapper'
|
|
@@ -17641,7 +17668,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17641
17668
|
};
|
|
17642
17669
|
setIsResizing(true);
|
|
17643
17670
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17644
|
-
document.addEventListener('mouseup',
|
|
17671
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
17645
17672
|
};
|
|
17646
17673
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17647
17674
|
e.stopPropagation();
|
|
@@ -17657,9 +17684,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17657
17684
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17658
17685
|
}
|
|
17659
17686
|
};
|
|
17660
|
-
var
|
|
17687
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
17661
17688
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17662
|
-
document.removeEventListener('mouseup',
|
|
17689
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
17663
17690
|
setIsResizing(false);
|
|
17664
17691
|
};
|
|
17665
17692
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -18070,7 +18097,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18070
18097
|
actionsRender = actionsRender.concat([{
|
|
18071
18098
|
type: 'text',
|
|
18072
18099
|
props: {
|
|
18073
|
-
children: (
|
|
18100
|
+
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
18074
18101
|
request: {
|
|
18075
18102
|
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),
|
|
18076
18103
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18316,7 +18343,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18316
18343
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18317
18344
|
bsTableCode: bsTableCode,
|
|
18318
18345
|
onlyModal: true
|
|
18319
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
18346
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
18320
18347
|
ref: exportTableRef,
|
|
18321
18348
|
setShowColumns: setShowExportColumns,
|
|
18322
18349
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18409,11 +18436,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18409
18436
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18410
18437
|
var resultList = [];
|
|
18411
18438
|
var newRouter = cloneDeep(router);
|
|
18412
|
-
var
|
|
18439
|
+
var _deep = function deep(router) {
|
|
18413
18440
|
if (router && Array.isArray(router)) {
|
|
18414
18441
|
router.forEach(function (item) {
|
|
18415
18442
|
if (item.children && Array.isArray(item.children)) {
|
|
18416
|
-
|
|
18443
|
+
_deep(item.children);
|
|
18417
18444
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18418
18445
|
return d === item.code;
|
|
18419
18446
|
})) {
|
|
@@ -18427,10 +18454,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18427
18454
|
resultList.push(_objectSpread2({}, router));
|
|
18428
18455
|
}
|
|
18429
18456
|
};
|
|
18430
|
-
|
|
18457
|
+
_deep(newRouter);
|
|
18431
18458
|
callBack([].concat(resultList));
|
|
18432
18459
|
};
|
|
18433
|
-
var
|
|
18460
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18434
18461
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18435
18462
|
var _loop = function _loop(i) {
|
|
18436
18463
|
if (routesData[i].hideInMenu) {
|
|
@@ -18444,7 +18471,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18444
18471
|
return 0; // continue
|
|
18445
18472
|
}
|
|
18446
18473
|
if (routesData[i].children) {
|
|
18447
|
-
|
|
18474
|
+
_setMenuTreeData(routesData[i].children);
|
|
18448
18475
|
}
|
|
18449
18476
|
},
|
|
18450
18477
|
_ret;
|
|
@@ -18465,16 +18492,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18465
18492
|
};
|
|
18466
18493
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18467
18494
|
var routerMap = {};
|
|
18468
|
-
var
|
|
18495
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
18469
18496
|
data.forEach(function (menuItem) {
|
|
18470
18497
|
if (menuItem.children) {
|
|
18471
|
-
|
|
18498
|
+
_flattenMenuData(menuItem.children);
|
|
18472
18499
|
}
|
|
18473
18500
|
// Reduce memory usage
|
|
18474
18501
|
routerMap[menuItem.path] = menuItem;
|
|
18475
18502
|
});
|
|
18476
18503
|
};
|
|
18477
|
-
|
|
18504
|
+
_flattenMenuData(menuData);
|
|
18478
18505
|
return routerMap;
|
|
18479
18506
|
};
|
|
18480
18507
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18620,7 +18647,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18620
18647
|
sethomepageData(homepageDataList);
|
|
18621
18648
|
setroutesData(routesDataList);
|
|
18622
18649
|
}, []);
|
|
18623
|
-
var
|
|
18650
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
18624
18651
|
if (!child.hideInMenu && child.children) {
|
|
18625
18652
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18626
18653
|
style: {
|
|
@@ -18630,7 +18657,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18630
18657
|
}, formatMessage({
|
|
18631
18658
|
id: "".concat(child.locale)
|
|
18632
18659
|
})), child.children.map(function (menuItem) {
|
|
18633
|
-
return
|
|
18660
|
+
return _renderChildItem(menuItem);
|
|
18634
18661
|
}));
|
|
18635
18662
|
} else if (!child.hideInMenu && child.path) {
|
|
18636
18663
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18665,7 +18692,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18665
18692
|
className: 'drawerWarp'
|
|
18666
18693
|
}, homepageData && homepageData.filter(function (d) {
|
|
18667
18694
|
return !d.hideInMenu;
|
|
18668
|
-
}).length > 0 && (
|
|
18695
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18669
18696
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18670
18697
|
dataSource: homepageData,
|
|
18671
18698
|
renderItem: function renderItem(child) {
|
|
@@ -18700,7 +18727,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18700
18727
|
bordered: true,
|
|
18701
18728
|
dataSource: item.children,
|
|
18702
18729
|
renderItem: function renderItem(child) {
|
|
18703
|
-
return
|
|
18730
|
+
return _renderChildItem(child);
|
|
18704
18731
|
}
|
|
18705
18732
|
});
|
|
18706
18733
|
})));
|
|
@@ -18760,7 +18787,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18760
18787
|
src: allfunc
|
|
18761
18788
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18762
18789
|
className: 'btnSpan2'
|
|
18763
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
18790
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18764
18791
|
style: {
|
|
18765
18792
|
left: isDrawer ? 140 : 0,
|
|
18766
18793
|
top: 50
|
|
@@ -18806,7 +18833,7 @@ function outLogin(_x) {
|
|
|
18806
18833
|
return _outLogin.apply(this, arguments);
|
|
18807
18834
|
}
|
|
18808
18835
|
function _outLogin() {
|
|
18809
|
-
_outLogin = _asyncToGenerator(
|
|
18836
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18810
18837
|
var res;
|
|
18811
18838
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18812
18839
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18948,7 +18975,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18948
18975
|
});
|
|
18949
18976
|
};
|
|
18950
18977
|
var loginOut = /*#__PURE__*/function () {
|
|
18951
|
-
var _ref2 = _asyncToGenerator(
|
|
18978
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18952
18979
|
var sessionId;
|
|
18953
18980
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18954
18981
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19052,7 +19079,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19052
19079
|
marginRight: '0px'
|
|
19053
19080
|
},
|
|
19054
19081
|
src: './xialajiantou-new.svg'
|
|
19055
|
-
}))))), loginModalParams.visible && (
|
|
19082
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19056
19083
|
};
|
|
19057
19084
|
|
|
19058
19085
|
// -- 查询店铺 --
|
|
@@ -19060,7 +19087,7 @@ function getStoreByName(_x) {
|
|
|
19060
19087
|
return _getStoreByName.apply(this, arguments);
|
|
19061
19088
|
}
|
|
19062
19089
|
function _getStoreByName() {
|
|
19063
|
-
_getStoreByName = _asyncToGenerator(
|
|
19090
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19064
19091
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19065
19092
|
while (1) switch (_context.prev = _context.next) {
|
|
19066
19093
|
case 0:
|
|
@@ -19128,7 +19155,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19128
19155
|
return _fetchUserList.apply(this, arguments);
|
|
19129
19156
|
}
|
|
19130
19157
|
function _fetchUserList() {
|
|
19131
|
-
_fetchUserList = _asyncToGenerator(
|
|
19158
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19132
19159
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19133
19160
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19134
19161
|
case 0:
|
|
@@ -19176,7 +19203,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19176
19203
|
return debounce$1(loadOptions, debounceTimeout);
|
|
19177
19204
|
}, [debounceTimeout, key]);
|
|
19178
19205
|
var changeInput = /*#__PURE__*/function () {
|
|
19179
|
-
var _ref = _asyncToGenerator(
|
|
19206
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19180
19207
|
var res;
|
|
19181
19208
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19182
19209
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19198,7 +19225,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19198
19225
|
};
|
|
19199
19226
|
}();
|
|
19200
19227
|
useEffect(function () {
|
|
19201
|
-
_asyncToGenerator(
|
|
19228
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19202
19229
|
var res;
|
|
19203
19230
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19204
19231
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19363,7 +19390,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19363
19390
|
var resultList = [];
|
|
19364
19391
|
var newRouter = cloneDeep$1(router);
|
|
19365
19392
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19366
|
-
var
|
|
19393
|
+
var _deep = function deep(router) {
|
|
19367
19394
|
if (router && Array.isArray(router)) {
|
|
19368
19395
|
router.forEach(function (item) {
|
|
19369
19396
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19373,7 +19400,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19373
19400
|
d.nameEdit = true;
|
|
19374
19401
|
}
|
|
19375
19402
|
});
|
|
19376
|
-
|
|
19403
|
+
_deep(item.routes);
|
|
19377
19404
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19378
19405
|
id: "menu.".concat(item.name)
|
|
19379
19406
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19392,7 +19419,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19392
19419
|
}));
|
|
19393
19420
|
}
|
|
19394
19421
|
};
|
|
19395
|
-
|
|
19422
|
+
_deep(newRouter);
|
|
19396
19423
|
setroutesData([].concat(resultList));
|
|
19397
19424
|
};
|
|
19398
19425
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19474,7 +19501,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19474
19501
|
},
|
|
19475
19502
|
title: item.fullPathName
|
|
19476
19503
|
}, renderLineStyl(item.fullPathName));
|
|
19477
|
-
}))))), showSelectStore && (
|
|
19504
|
+
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19478
19505
|
employeeCode: employeeCode
|
|
19479
19506
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19480
19507
|
};
|
|
@@ -19489,7 +19516,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19489
19516
|
var TreeNode = Tree.TreeNode;
|
|
19490
19517
|
var Search$2 = Input.Search;
|
|
19491
19518
|
var dataList = [];
|
|
19492
|
-
var
|
|
19519
|
+
var _generateList = function generateList(data) {
|
|
19493
19520
|
for (var i = 0; i < data.length; i++) {
|
|
19494
19521
|
var node = data[i];
|
|
19495
19522
|
var path = node.path,
|
|
@@ -19499,11 +19526,11 @@ var generateList = function generateList(data) {
|
|
|
19499
19526
|
name: name
|
|
19500
19527
|
});
|
|
19501
19528
|
if (node.children) {
|
|
19502
|
-
|
|
19529
|
+
_generateList(node.children);
|
|
19503
19530
|
}
|
|
19504
19531
|
}
|
|
19505
19532
|
};
|
|
19506
|
-
var
|
|
19533
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
19507
19534
|
var parentKey;
|
|
19508
19535
|
for (var i = 0; i < tree.length; i++) {
|
|
19509
19536
|
var node = tree[i];
|
|
@@ -19512,8 +19539,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
19512
19539
|
return item.path === path;
|
|
19513
19540
|
})) {
|
|
19514
19541
|
parentKey = node.path;
|
|
19515
|
-
} else if (
|
|
19516
|
-
parentKey =
|
|
19542
|
+
} else if (_getParentKey(path, node.children)) {
|
|
19543
|
+
parentKey = _getParentKey(path, node.children);
|
|
19517
19544
|
}
|
|
19518
19545
|
}
|
|
19519
19546
|
}
|
|
@@ -19544,7 +19571,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19544
19571
|
var treeData = _this.state.treeData;
|
|
19545
19572
|
var expandedKeys = dataList.map(function (item) {
|
|
19546
19573
|
if (item.name.indexOf(value) > -1) {
|
|
19547
|
-
return
|
|
19574
|
+
return _getParentKey(item.path, treeData);
|
|
19548
19575
|
}
|
|
19549
19576
|
return null;
|
|
19550
19577
|
}).filter(function (item, i, self) {
|
|
@@ -19558,22 +19585,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19558
19585
|
};
|
|
19559
19586
|
_this.getPathList = function (originData) {
|
|
19560
19587
|
var pathList = [];
|
|
19561
|
-
var
|
|
19588
|
+
var _getList = function getList(data) {
|
|
19562
19589
|
if (Array.isArray(data)) {
|
|
19563
19590
|
data.forEach(function (item) {
|
|
19564
19591
|
pathList.push(item.path);
|
|
19565
19592
|
if (item.children) {
|
|
19566
|
-
|
|
19593
|
+
_getList(item.children);
|
|
19567
19594
|
}
|
|
19568
19595
|
});
|
|
19569
19596
|
} else {
|
|
19570
19597
|
pathList.push(data.path);
|
|
19571
19598
|
if (data.children) {
|
|
19572
|
-
|
|
19599
|
+
_getList(data.children);
|
|
19573
19600
|
}
|
|
19574
19601
|
}
|
|
19575
19602
|
};
|
|
19576
|
-
|
|
19603
|
+
_getList(originData);
|
|
19577
19604
|
return pathList;
|
|
19578
19605
|
};
|
|
19579
19606
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19582,18 +19609,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19582
19609
|
customerMenuData = _this$props.customerMenuData,
|
|
19583
19610
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19584
19611
|
var filterItem;
|
|
19585
|
-
var
|
|
19612
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
19586
19613
|
menuData.forEach(function (item) {
|
|
19587
19614
|
if (item.path === path) {
|
|
19588
19615
|
filterItem = _objectSpread2({}, item);
|
|
19589
19616
|
return;
|
|
19590
19617
|
}
|
|
19591
19618
|
if (item.children) {
|
|
19592
|
-
|
|
19619
|
+
_filterMenuItem(item.children);
|
|
19593
19620
|
}
|
|
19594
19621
|
});
|
|
19595
19622
|
};
|
|
19596
|
-
|
|
19623
|
+
_filterMenuItem(treeData);
|
|
19597
19624
|
var addPathList = _this.getPathList(filterItem);
|
|
19598
19625
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19599
19626
|
var isRepet = false;
|
|
@@ -19623,8 +19650,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19623
19650
|
return item.path === '/';
|
|
19624
19651
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19625
19652
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19626
|
-
|
|
19627
|
-
|
|
19653
|
+
_setMenuTreeData(routesData);
|
|
19654
|
+
_generateList(routesData);
|
|
19628
19655
|
this.setState({
|
|
19629
19656
|
treeData: routesData
|
|
19630
19657
|
});
|
|
@@ -19638,16 +19665,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19638
19665
|
expandedKeys = _this$state.expandedKeys,
|
|
19639
19666
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19640
19667
|
treeData = _this$state.treeData;
|
|
19641
|
-
var
|
|
19668
|
+
var _loop = function loop(data) {
|
|
19642
19669
|
return data.map(function (item) {
|
|
19643
19670
|
var index = item.name.indexOf(searchValue);
|
|
19644
19671
|
var beforeStr = item.name.substr(0, index);
|
|
19645
19672
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19646
|
-
var name = index > -1 ? (
|
|
19673
|
+
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19647
19674
|
style: {
|
|
19648
19675
|
color: '#f50'
|
|
19649
19676
|
}
|
|
19650
|
-
}, searchValue), afterStr)) : (
|
|
19677
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19651
19678
|
if (item.children && item.children.length) {
|
|
19652
19679
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19653
19680
|
path: item.path,
|
|
@@ -19669,7 +19696,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19669
19696
|
width: 18,
|
|
19670
19697
|
src: arrowRight
|
|
19671
19698
|
}))))
|
|
19672
|
-
},
|
|
19699
|
+
}, _loop(item.children));
|
|
19673
19700
|
}
|
|
19674
19701
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19675
19702
|
path: item.path,
|
|
@@ -19719,7 +19746,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19719
19746
|
onExpand: this.onExpand,
|
|
19720
19747
|
expandedKeys: expandedKeys,
|
|
19721
19748
|
autoExpandParent: autoExpandParent
|
|
19722
|
-
},
|
|
19749
|
+
}, _loop(treeData))));
|
|
19723
19750
|
}
|
|
19724
19751
|
}]);
|
|
19725
19752
|
}(React$1.Component);
|
|
@@ -19752,24 +19779,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19752
19779
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19753
19780
|
var dragObj;
|
|
19754
19781
|
var finalDropItem;
|
|
19755
|
-
var
|
|
19782
|
+
var _loop = function loop(data, path, callback) {
|
|
19756
19783
|
for (var i = 0; i < data.length; i++) {
|
|
19757
19784
|
if (data[i].path === path) {
|
|
19758
19785
|
return callback(data[i], i, data);
|
|
19759
19786
|
}
|
|
19760
19787
|
if (data[i].children) {
|
|
19761
|
-
|
|
19788
|
+
_loop(data[i].children, path, callback);
|
|
19762
19789
|
}
|
|
19763
19790
|
}
|
|
19764
19791
|
};
|
|
19765
19792
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19766
|
-
|
|
19793
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
19767
19794
|
arr.splice(index, 1);
|
|
19768
19795
|
dragObj = item;
|
|
19769
19796
|
});
|
|
19770
19797
|
if (!info.dropToGap) {
|
|
19771
19798
|
// Drop on the content
|
|
19772
|
-
|
|
19799
|
+
_loop(data, dropKey, function (item) {
|
|
19773
19800
|
item.children = item.children || [];
|
|
19774
19801
|
item.children.unshift(dragObj);
|
|
19775
19802
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19780,7 +19807,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19780
19807
|
// Is expanded
|
|
19781
19808
|
dropPosition === 1 // On the bottom gap
|
|
19782
19809
|
) {
|
|
19783
|
-
|
|
19810
|
+
_loop(data, dropKey, function (item) {
|
|
19784
19811
|
item.children = item.children || [];
|
|
19785
19812
|
item.children.unshift(dragObj);
|
|
19786
19813
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19788,7 +19815,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19788
19815
|
} else {
|
|
19789
19816
|
var ar;
|
|
19790
19817
|
var i;
|
|
19791
|
-
|
|
19818
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
19792
19819
|
ar = arr;
|
|
19793
19820
|
i = index;
|
|
19794
19821
|
});
|
|
@@ -19827,17 +19854,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19827
19854
|
title: '编辑名称',
|
|
19828
19855
|
callBack: function callBack(newName) {
|
|
19829
19856
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19830
|
-
var
|
|
19857
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19831
19858
|
oldTreeData.forEach(function (treeItem) {
|
|
19832
19859
|
if (treeItem.path === item.path) {
|
|
19833
19860
|
treeItem.name = newName;
|
|
19834
19861
|
}
|
|
19835
19862
|
if (treeItem.children) {
|
|
19836
|
-
|
|
19863
|
+
_editTreeDataName(treeItem.children);
|
|
19837
19864
|
}
|
|
19838
19865
|
});
|
|
19839
19866
|
};
|
|
19840
|
-
|
|
19867
|
+
_editTreeDataName(oldTreeData);
|
|
19841
19868
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19842
19869
|
_this.setState({
|
|
19843
19870
|
modalInfo: {
|
|
@@ -19882,7 +19909,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19882
19909
|
title: '新增子目录',
|
|
19883
19910
|
callBack: function callBack(newName) {
|
|
19884
19911
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19885
|
-
var
|
|
19912
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
19886
19913
|
oldTreeData.forEach(function (treeItem) {
|
|
19887
19914
|
if (treeItem.path === item.path) {
|
|
19888
19915
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19894,11 +19921,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19894
19921
|
}];
|
|
19895
19922
|
}
|
|
19896
19923
|
if (treeItem.children) {
|
|
19897
|
-
|
|
19924
|
+
_addChildFolder(treeItem.children);
|
|
19898
19925
|
}
|
|
19899
19926
|
});
|
|
19900
19927
|
};
|
|
19901
|
-
|
|
19928
|
+
_addChildFolder(oldTreeData);
|
|
19902
19929
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19903
19930
|
_this.setState({
|
|
19904
19931
|
modalInfo: {
|
|
@@ -19957,7 +19984,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19957
19984
|
var _this$state = this.state,
|
|
19958
19985
|
modalInfo = _this$state.modalInfo,
|
|
19959
19986
|
checkedKeys = _this$state.checkedKeys;
|
|
19960
|
-
var
|
|
19987
|
+
var _loop2 = function loop(data) {
|
|
19961
19988
|
return data.map(function (item) {
|
|
19962
19989
|
if (item.children && item.children.length) {
|
|
19963
19990
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19974,7 +20001,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19974
20001
|
e.stopPropagation();
|
|
19975
20002
|
}
|
|
19976
20003
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19977
|
-
},
|
|
20004
|
+
}, _loop2(item.children));
|
|
19978
20005
|
}
|
|
19979
20006
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19980
20007
|
path: item.path,
|
|
@@ -20053,7 +20080,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20053
20080
|
children: 'children'
|
|
20054
20081
|
},
|
|
20055
20082
|
onDrop: this.onDrop
|
|
20056
|
-
},
|
|
20083
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
20057
20084
|
width: 600,
|
|
20058
20085
|
bodyStyle: {
|
|
20059
20086
|
paddingTop: '32px',
|
|
@@ -20166,7 +20193,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20166
20193
|
pathname: item.path
|
|
20167
20194
|
});
|
|
20168
20195
|
};
|
|
20169
|
-
var
|
|
20196
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
20170
20197
|
return menuData.map(function (item) {
|
|
20171
20198
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20172
20199
|
style: {
|
|
@@ -20181,7 +20208,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20181
20208
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20182
20209
|
paddingLeft: '4px'
|
|
20183
20210
|
}
|
|
20184
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20211
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
20185
20212
|
});
|
|
20186
20213
|
};
|
|
20187
20214
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20207,7 +20234,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20207
20234
|
style: {
|
|
20208
20235
|
paddingLeft: '5px'
|
|
20209
20236
|
}
|
|
20210
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
20237
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
20211
20238
|
style: {
|
|
20212
20239
|
left: isDrawer ? 140 : 0
|
|
20213
20240
|
},
|
|
@@ -20228,7 +20255,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20228
20255
|
visible: isDrawer
|
|
20229
20256
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
20230
20257
|
className: 'menu_title_line'
|
|
20231
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20258
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
20232
20259
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
20233
20260
|
style: {
|
|
20234
20261
|
fontWeight: '600',
|
|
@@ -20302,7 +20329,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20302
20329
|
return item.path === '/';
|
|
20303
20330
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20304
20331
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20305
|
-
|
|
20332
|
+
_setMenuTreeData(routesData);
|
|
20306
20333
|
routesData.forEach(function (item) {
|
|
20307
20334
|
if (item.children) {
|
|
20308
20335
|
routesDataList.push(item);
|
|
@@ -20332,7 +20359,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20332
20359
|
setHeight(clientHeight - 190);
|
|
20333
20360
|
setDrawHeight(clientHeight - 70);
|
|
20334
20361
|
};
|
|
20335
|
-
var
|
|
20362
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20336
20363
|
if (!child.hideInMenu && child.children) {
|
|
20337
20364
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20338
20365
|
style: {
|
|
@@ -20342,7 +20369,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20342
20369
|
}, formatMessage({
|
|
20343
20370
|
id: "".concat(child.locale)
|
|
20344
20371
|
})), child.children.map(function (menuItem) {
|
|
20345
|
-
return
|
|
20372
|
+
return _renderChildItem(menuItem);
|
|
20346
20373
|
}));
|
|
20347
20374
|
} else if (!child.hideInMenu && child.path) {
|
|
20348
20375
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20484,7 +20511,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20484
20511
|
onMenuClick(e, item);
|
|
20485
20512
|
}
|
|
20486
20513
|
}, item.name);
|
|
20487
|
-
}))), !!SearhData.length ? (
|
|
20514
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20488
20515
|
className: 'search_menu_content'
|
|
20489
20516
|
}, SearhData.map(function (item) {
|
|
20490
20517
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20493,7 +20520,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20493
20520
|
},
|
|
20494
20521
|
key: item.path
|
|
20495
20522
|
}, item.name);
|
|
20496
|
-
}))) : (
|
|
20523
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20497
20524
|
style: {
|
|
20498
20525
|
height: "".concat(rightMenuHeight, "px"),
|
|
20499
20526
|
overflowY: 'scroll',
|
|
@@ -20505,7 +20532,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20505
20532
|
className: 'drawerWarp_right'
|
|
20506
20533
|
}, homepageData && homepageData.filter(function (d) {
|
|
20507
20534
|
return !d.hideInMenu;
|
|
20508
|
-
}).length > 0 && (
|
|
20535
|
+
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20509
20536
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20510
20537
|
dataSource: homepageData,
|
|
20511
20538
|
renderItem: function renderItem(child) {
|
|
@@ -20546,7 +20573,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20546
20573
|
bordered: true,
|
|
20547
20574
|
dataSource: item.children,
|
|
20548
20575
|
renderItem: function renderItem(child) {
|
|
20549
|
-
return
|
|
20576
|
+
return _renderChildItem(child);
|
|
20550
20577
|
}
|
|
20551
20578
|
});
|
|
20552
20579
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20704,10 +20731,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20704
20731
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20705
20732
|
var menuKeys = [];
|
|
20706
20733
|
var docsId = [];
|
|
20707
|
-
var
|
|
20734
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20708
20735
|
data.forEach(function (item) {
|
|
20709
20736
|
if (item.children && item.children.length > 0) {
|
|
20710
|
-
|
|
20737
|
+
_getLimitedMenuKeys(item.children);
|
|
20711
20738
|
} else {
|
|
20712
20739
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20713
20740
|
menuKeys.push(originPath);
|
|
@@ -20718,7 +20745,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20718
20745
|
});
|
|
20719
20746
|
};
|
|
20720
20747
|
try {
|
|
20721
|
-
|
|
20748
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
20722
20749
|
} catch (e) {}
|
|
20723
20750
|
return {
|
|
20724
20751
|
menuKeys: menuKeys,
|
|
@@ -20952,10 +20979,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20952
20979
|
return (node.path || '').includes('all-general-documents');
|
|
20953
20980
|
};
|
|
20954
20981
|
// 递归获取树列表
|
|
20955
|
-
var
|
|
20982
|
+
var _getTreeList = function getTreeList(data) {
|
|
20956
20983
|
data.forEach(function (node) {
|
|
20957
20984
|
if (node.routes && node.routes.length > 0) {
|
|
20958
|
-
|
|
20985
|
+
_getTreeList(node.routes);
|
|
20959
20986
|
return;
|
|
20960
20987
|
}
|
|
20961
20988
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20986,7 +21013,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20986
21013
|
}
|
|
20987
21014
|
});
|
|
20988
21015
|
};
|
|
20989
|
-
|
|
21016
|
+
_getTreeList(treeData);
|
|
20990
21017
|
return treeList;
|
|
20991
21018
|
};
|
|
20992
21019
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21615,7 +21642,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21615
21642
|
updateState = _ref8.updateState;
|
|
21616
21643
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21617
21644
|
className: "tab_title_content"
|
|
21618
|
-
}, item.tab, item.key !== '/' && (
|
|
21645
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21619
21646
|
info: item,
|
|
21620
21647
|
operateFun: _this3.operateFun,
|
|
21621
21648
|
listenRouterState: listenRouterState
|
|
@@ -21751,7 +21778,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21751
21778
|
};
|
|
21752
21779
|
}
|
|
21753
21780
|
var OperationsSlot = {
|
|
21754
|
-
left: (
|
|
21781
|
+
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21755
21782
|
className: 'tab_left_operate'
|
|
21756
21783
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21757
21784
|
onClick: function onClick() {
|
|
@@ -21767,7 +21794,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21767
21794
|
_this3.setTabNavTransLate(-100);
|
|
21768
21795
|
}
|
|
21769
21796
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21770
|
-
right: (
|
|
21797
|
+
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21771
21798
|
style: {
|
|
21772
21799
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21773
21800
|
},
|
|
@@ -21865,7 +21892,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21865
21892
|
onMouseLeave: function onMouseLeave() {
|
|
21866
21893
|
_this3.setShowMenu(false);
|
|
21867
21894
|
}
|
|
21868
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
21895
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21869
21896
|
style: {
|
|
21870
21897
|
position: 'absolute',
|
|
21871
21898
|
top: '14px',
|
|
@@ -21884,7 +21911,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21884
21911
|
postMenuData: function postMenuData(menus) {
|
|
21885
21912
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21886
21913
|
},
|
|
21887
|
-
links: [!this.state.collapse ? (
|
|
21914
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21888
21915
|
ref: this.allFunc,
|
|
21889
21916
|
itemPath: itemPath,
|
|
21890
21917
|
handleClose: this.handleClose,
|
|
@@ -21902,7 +21929,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21902
21929
|
},
|
|
21903
21930
|
menu: {
|
|
21904
21931
|
request: function () {
|
|
21905
|
-
var _request = _asyncToGenerator(
|
|
21932
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21906
21933
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21907
21934
|
while (1) switch (_context.prev = _context.next) {
|
|
21908
21935
|
case 0:
|
|
@@ -22037,7 +22064,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22037
22064
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22038
22065
|
timeFormat = _this$props4.timeFormat,
|
|
22039
22066
|
transparentProps = _this$props4.transparentProps;
|
|
22040
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (
|
|
22067
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22041
22068
|
getDictionarySource: getDictionarySource,
|
|
22042
22069
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22043
22070
|
timeFormat: timeFormat
|
|
@@ -22061,12 +22088,12 @@ var index$5 = (function (props) {
|
|
|
22061
22088
|
});
|
|
22062
22089
|
|
|
22063
22090
|
// @ts-nocheck
|
|
22064
|
-
var
|
|
22091
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
22065
22092
|
var result = [];
|
|
22066
22093
|
columns.forEach(function (column) {
|
|
22067
22094
|
if (column.children) {
|
|
22068
22095
|
result.push(column);
|
|
22069
|
-
result.push.apply(result,
|
|
22096
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
22070
22097
|
} else {
|
|
22071
22098
|
result.push(column);
|
|
22072
22099
|
}
|
|
@@ -22075,7 +22102,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
22075
22102
|
};
|
|
22076
22103
|
var convertToRows = function convertToRows(originColumns) {
|
|
22077
22104
|
var maxLevel = 1;
|
|
22078
|
-
var
|
|
22105
|
+
var _traverse = function traverse(column, parent) {
|
|
22079
22106
|
if (parent) {
|
|
22080
22107
|
column.level = parent.level + 1;
|
|
22081
22108
|
if (maxLevel < column.level) {
|
|
@@ -22085,7 +22112,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22085
22112
|
if (column.children) {
|
|
22086
22113
|
var colSpan = 0;
|
|
22087
22114
|
column.children.forEach(function (subColumn) {
|
|
22088
|
-
|
|
22115
|
+
_traverse(subColumn, column);
|
|
22089
22116
|
colSpan += subColumn.colSpan;
|
|
22090
22117
|
});
|
|
22091
22118
|
column.colSpan = colSpan;
|
|
@@ -22095,13 +22122,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22095
22122
|
};
|
|
22096
22123
|
originColumns.forEach(function (column) {
|
|
22097
22124
|
column.level = 1;
|
|
22098
|
-
|
|
22125
|
+
_traverse(column);
|
|
22099
22126
|
});
|
|
22100
22127
|
var rows = [];
|
|
22101
22128
|
for (var i = 0; i < maxLevel; i++) {
|
|
22102
22129
|
rows.push([]);
|
|
22103
22130
|
}
|
|
22104
|
-
var allColumns =
|
|
22131
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22105
22132
|
allColumns.forEach(function (column) {
|
|
22106
22133
|
if (!column.children) {
|
|
22107
22134
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22141,7 +22168,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22141
22168
|
};
|
|
22142
22169
|
var headersToRows = function headersToRows(originColumns) {
|
|
22143
22170
|
var maxLevel = 1;
|
|
22144
|
-
var
|
|
22171
|
+
var _traverse2 = function traverse(column, parent) {
|
|
22145
22172
|
if (parent) {
|
|
22146
22173
|
//计算当前元素属于第几个层级
|
|
22147
22174
|
column.level = parent.level + 1;
|
|
@@ -22154,7 +22181,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22154
22181
|
var colSpan = 0;
|
|
22155
22182
|
column.children.forEach(function (subColumn) {
|
|
22156
22183
|
//进行递归
|
|
22157
|
-
|
|
22184
|
+
_traverse2(subColumn, column);
|
|
22158
22185
|
colSpan += subColumn.colSpan;
|
|
22159
22186
|
});
|
|
22160
22187
|
column.colSpan = colSpan;
|
|
@@ -22164,14 +22191,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22164
22191
|
};
|
|
22165
22192
|
originColumns.forEach(function (column) {
|
|
22166
22193
|
column.level = 1;
|
|
22167
|
-
|
|
22194
|
+
_traverse2(column);
|
|
22168
22195
|
});
|
|
22169
22196
|
var rows = [];
|
|
22170
22197
|
var lastData = [];
|
|
22171
22198
|
for (var i = 0; i < maxLevel; i++) {
|
|
22172
22199
|
rows.push([]);
|
|
22173
22200
|
}
|
|
22174
|
-
var allColumns =
|
|
22201
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22175
22202
|
allColumns.forEach(function (column) {
|
|
22176
22203
|
if (!column.children) {
|
|
22177
22204
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -28188,7 +28215,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28188
28215
|
}
|
|
28189
28216
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28190
28217
|
};
|
|
28191
|
-
var
|
|
28218
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
28192
28219
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28193
28220
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28194
28221
|
var children = hightLightData.children,
|
|
@@ -28199,7 +28226,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28199
28226
|
lineEnd = _loc2[2];
|
|
28200
28227
|
if (children) {
|
|
28201
28228
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28202
|
-
return
|
|
28229
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
28203
28230
|
});
|
|
28204
28231
|
}
|
|
28205
28232
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28211,7 +28238,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28211
28238
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28212
28239
|
data.forEach(function (node) {
|
|
28213
28240
|
if (!node) return;
|
|
28214
|
-
node.toggled =
|
|
28241
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
28215
28242
|
node.active = isHightLight(node, highLightLine);
|
|
28216
28243
|
if (node.children) {
|
|
28217
28244
|
if (node.active) {
|
|
@@ -29642,7 +29669,7 @@ var valueType = {
|
|
|
29642
29669
|
};
|
|
29643
29670
|
|
|
29644
29671
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29645
|
-
var _ref = _asyncToGenerator(
|
|
29672
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29646
29673
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29647
29674
|
while (1) switch (_context.prev = _context.next) {
|
|
29648
29675
|
case 0:
|
|
@@ -29710,7 +29737,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29710
29737
|
value: false
|
|
29711
29738
|
}];
|
|
29712
29739
|
var ref = useRef();
|
|
29713
|
-
useMount(
|
|
29740
|
+
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29714
29741
|
var _ref$current, source;
|
|
29715
29742
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29716
29743
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29824,7 +29851,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29824
29851
|
source: {
|
|
29825
29852
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29826
29853
|
type: function () {
|
|
29827
|
-
var _type = _asyncToGenerator(
|
|
29854
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29828
29855
|
var form, values, name, relates, source;
|
|
29829
29856
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29830
29857
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30304,7 +30331,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30304
30331
|
source: {
|
|
30305
30332
|
relates: ['choiceType', 'inputType'],
|
|
30306
30333
|
type: function () {
|
|
30307
|
-
var _type2 = _asyncToGenerator(
|
|
30334
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30308
30335
|
var values, name, form, source;
|
|
30309
30336
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30310
30337
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30526,7 +30553,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30526
30553
|
width: 900,
|
|
30527
30554
|
maskClosable: false,
|
|
30528
30555
|
onOk: function () {
|
|
30529
|
-
var _onOk = _asyncToGenerator(
|
|
30556
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30530
30557
|
var _ref$current4, _res$editableStatus;
|
|
30531
30558
|
var res, _res$defaultValue;
|
|
30532
30559
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30598,7 +30625,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30598
30625
|
}()
|
|
30599
30626
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30600
30627
|
ref: ref
|
|
30601
|
-
})), maintainOptionsModal.visible && (
|
|
30628
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30602
30629
|
};
|
|
30603
30630
|
|
|
30604
30631
|
// @ts-nocheck
|
|
@@ -31212,7 +31239,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31212
31239
|
return setVisible(false);
|
|
31213
31240
|
},
|
|
31214
31241
|
className: 'customFieldsDrawer'
|
|
31215
|
-
}, detailTablesSetting.length == 0 && (
|
|
31242
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
31216
31243
|
style: {
|
|
31217
31244
|
display: 'flex'
|
|
31218
31245
|
}
|
|
@@ -31221,13 +31248,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31221
31248
|
flex: 1,
|
|
31222
31249
|
width: 500
|
|
31223
31250
|
}
|
|
31224
|
-
}, isEmpty(moduleParams) ? (
|
|
31251
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31225
31252
|
style: {
|
|
31226
31253
|
padding: "10px 0",
|
|
31227
31254
|
fontSize: "16px",
|
|
31228
31255
|
fontWeight: "bolder"
|
|
31229
31256
|
}
|
|
31230
|
-
}, "\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")) : (
|
|
31257
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31231
31258
|
style: {
|
|
31232
31259
|
flex: 1
|
|
31233
31260
|
}
|
|
@@ -31236,7 +31263,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31236
31263
|
onRun: onClickRun,
|
|
31237
31264
|
value: jsonEditorVal,
|
|
31238
31265
|
shallowHeight: height
|
|
31239
|
-
})))), detailTablesSetting.length > 0 && (
|
|
31266
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
31240
31267
|
defaultActiveKey: activeKey,
|
|
31241
31268
|
onChange: function onChange(v) {
|
|
31242
31269
|
return setActiveKey(v);
|
|
@@ -31253,13 +31280,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31253
31280
|
flex: 1,
|
|
31254
31281
|
width: 500
|
|
31255
31282
|
}
|
|
31256
|
-
}, isEmpty(moduleParams) ? (
|
|
31283
|
+
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31257
31284
|
style: {
|
|
31258
31285
|
padding: "10px 0",
|
|
31259
31286
|
fontSize: "16px",
|
|
31260
31287
|
fontWeight: "bolder"
|
|
31261
31288
|
}
|
|
31262
|
-
}, "\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")) : (
|
|
31289
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
31263
31290
|
style: {
|
|
31264
31291
|
flex: 1
|
|
31265
31292
|
}
|
|
@@ -31281,13 +31308,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
31281
31308
|
flex: 1,
|
|
31282
31309
|
width: 500
|
|
31283
31310
|
}
|
|
31284
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
31311
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
31285
31312
|
style: {
|
|
31286
31313
|
padding: "10px 0",
|
|
31287
31314
|
fontSize: "16px",
|
|
31288
31315
|
fontWeight: "bolder"
|
|
31289
31316
|
}
|
|
31290
|
-
}, "\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")) : (
|
|
31317
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
31291
31318
|
style: {
|
|
31292
31319
|
flex: 1
|
|
31293
31320
|
}
|
|
@@ -31433,7 +31460,7 @@ function getMetaData(_x) {
|
|
|
31433
31460
|
|
|
31434
31461
|
// 获取数据
|
|
31435
31462
|
function _getMetaData() {
|
|
31436
|
-
_getMetaData = _asyncToGenerator(
|
|
31463
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31437
31464
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31438
31465
|
while (1) switch (_context.prev = _context.next) {
|
|
31439
31466
|
case 0:
|
|
@@ -31655,7 +31682,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31655
31682
|
tableState = _useState4[0],
|
|
31656
31683
|
setTableState = _useState4[1];
|
|
31657
31684
|
var handleOpen = /*#__PURE__*/function () {
|
|
31658
|
-
var _ref = _asyncToGenerator(
|
|
31685
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31659
31686
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31660
31687
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31661
31688
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31974,7 +32001,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31974
32001
|
destroyOnClose: true
|
|
31975
32002
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31976
32003
|
ref: queryTableRef
|
|
31977
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
32004
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React$1.createElement(Row, {
|
|
31978
32005
|
justify: "center",
|
|
31979
32006
|
style: {
|
|
31980
32007
|
marginBottom: 30,
|
|
@@ -32090,7 +32117,7 @@ var CustomSelector = (function (props) {
|
|
|
32090
32117
|
var _props$ctx7;
|
|
32091
32118
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32092
32119
|
}
|
|
32093
|
-
})), showType === 'modalTable' && (
|
|
32120
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
32094
32121
|
type: "primary",
|
|
32095
32122
|
style: {
|
|
32096
32123
|
width: '30px',
|
|
@@ -32176,7 +32203,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32176
32203
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32177
32204
|
handSource = _useState2[0],
|
|
32178
32205
|
setHandSource = _useState2[1];
|
|
32179
|
-
useEffect(
|
|
32206
|
+
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32180
32207
|
var resData, data;
|
|
32181
32208
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32182
32209
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32328,7 +32355,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32328
32355
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32329
32356
|
}
|
|
32330
32357
|
function _getRegularThresholdRange() {
|
|
32331
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
32358
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32332
32359
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32333
32360
|
while (1) switch (_context.prev = _context.next) {
|
|
32334
32361
|
case 0:
|
|
@@ -32482,7 +32509,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32482
32509
|
};
|
|
32483
32510
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32484
32511
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32485
|
-
var _ref = _asyncToGenerator(
|
|
32512
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32486
32513
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32487
32514
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32488
32515
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33439,7 +33466,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33439
33466
|
isAll: true,
|
|
33440
33467
|
needNameAndCode: true,
|
|
33441
33468
|
notChangeOnSelect: true,
|
|
33442
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33469
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33443
33470
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33444
33471
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33445
33472
|
case 0:
|
|
@@ -33488,7 +33515,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33488
33515
|
isAll: true,
|
|
33489
33516
|
needNameAndCode: true,
|
|
33490
33517
|
notChangeOnSelect: true,
|
|
33491
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33518
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33492
33519
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33493
33520
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33494
33521
|
case 0:
|
|
@@ -33539,7 +33566,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33539
33566
|
isAll: true,
|
|
33540
33567
|
needNameAndCode: true,
|
|
33541
33568
|
notChangeOnSelect: true,
|
|
33542
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33569
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33543
33570
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33544
33571
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33545
33572
|
case 0:
|
|
@@ -35517,7 +35544,7 @@ var App$1 = function App(_ref) {
|
|
|
35517
35544
|
borderRadius: '5px',
|
|
35518
35545
|
cursor: 'pointer'
|
|
35519
35546
|
}
|
|
35520
|
-
}, isStaticNumber ? (
|
|
35547
|
+
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35521
35548
|
autoFocus: true,
|
|
35522
35549
|
onClick: function onClick(e) {
|
|
35523
35550
|
return e.stopPropagation();
|
|
@@ -35804,7 +35831,7 @@ function RenderCompItem(props) {
|
|
|
35804
35831
|
dictData = _useState2[0],
|
|
35805
35832
|
setDictData = _useState2[1];
|
|
35806
35833
|
var getDictData = /*#__PURE__*/function () {
|
|
35807
|
-
var _ref = _asyncToGenerator(
|
|
35834
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35808
35835
|
var _data$map;
|
|
35809
35836
|
var data;
|
|
35810
35837
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35846,7 +35873,7 @@ function RenderCompItem(props) {
|
|
|
35846
35873
|
var style2 = {
|
|
35847
35874
|
width: '100px'
|
|
35848
35875
|
};
|
|
35849
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (
|
|
35876
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
|
|
35850
35877
|
disabled: disabled,
|
|
35851
35878
|
allowClear: true,
|
|
35852
35879
|
onClear: function onClear() {
|
|
@@ -35857,7 +35884,7 @@ function RenderCompItem(props) {
|
|
|
35857
35884
|
onBlur: function onBlur(e) {
|
|
35858
35885
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35859
35886
|
}
|
|
35860
|
-
})) || 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) && (
|
|
35887
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React$1.createElement(InputNumber, {
|
|
35861
35888
|
disabled: disabled,
|
|
35862
35889
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35863
35890
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35870,7 +35897,7 @@ function RenderCompItem(props) {
|
|
|
35870
35897
|
onChange: function onChange(value) {
|
|
35871
35898
|
handleEdit(ites.code, value);
|
|
35872
35899
|
}
|
|
35873
|
-
})) || 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) && (
|
|
35900
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React$1.createElement(DatePicker, {
|
|
35874
35901
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35875
35902
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35876
35903
|
disabled: disabled,
|
|
@@ -35880,7 +35907,7 @@ function RenderCompItem(props) {
|
|
|
35880
35907
|
onChange: function onChange(value, dateString) {
|
|
35881
35908
|
handleEdit(ites.code, dateString);
|
|
35882
35909
|
}
|
|
35883
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
35910
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
35884
35911
|
showTime: true,
|
|
35885
35912
|
disabled: disabled,
|
|
35886
35913
|
defaultValue: ites.defaultValue,
|
|
@@ -35889,7 +35916,7 @@ function RenderCompItem(props) {
|
|
|
35889
35916
|
onChange: function onChange(value, timeString) {
|
|
35890
35917
|
handleEdit(ites.code, timeString);
|
|
35891
35918
|
}
|
|
35892
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
35919
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
|
|
35893
35920
|
disabled: disabled,
|
|
35894
35921
|
defaultChecked: !!ites.defaultValue,
|
|
35895
35922
|
style: style2,
|
|
@@ -35897,7 +35924,7 @@ function RenderCompItem(props) {
|
|
|
35897
35924
|
onChange: function onChange(value) {
|
|
35898
35925
|
handleEdit(ites.code, value);
|
|
35899
35926
|
}
|
|
35900
|
-
})) || 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 && (
|
|
35927
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
35901
35928
|
disabled: disabled,
|
|
35902
35929
|
allowClear: true,
|
|
35903
35930
|
showArrow: true
|
|
@@ -35915,7 +35942,7 @@ function RenderCompItem(props) {
|
|
|
35915
35942
|
key: it,
|
|
35916
35943
|
value: it
|
|
35917
35944
|
}, ites.enumeration[it]);
|
|
35918
|
-
}))) || 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 && (
|
|
35945
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
35919
35946
|
disabled: disabled,
|
|
35920
35947
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35921
35948
|
defaultValue: ites.defaultValue,
|
|
@@ -35925,7 +35952,7 @@ function RenderCompItem(props) {
|
|
|
35925
35952
|
handleEdit(ites.code, value);
|
|
35926
35953
|
},
|
|
35927
35954
|
dictionaryCode: ites.dictionaryCode
|
|
35928
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (
|
|
35955
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35929
35956
|
selectBusinessType: "physicalWarehouse",
|
|
35930
35957
|
selectProps: _objectSpread2({
|
|
35931
35958
|
style: styleCommon,
|
|
@@ -35947,7 +35974,7 @@ function RenderCompItem(props) {
|
|
|
35947
35974
|
getPopupContainer: function getPopupContainer() {
|
|
35948
35975
|
return document.body;
|
|
35949
35976
|
}
|
|
35950
|
-
})) || 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 && (
|
|
35977
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35951
35978
|
selectBusinessType: "realWarehouse",
|
|
35952
35979
|
selectProps: _objectSpread2({
|
|
35953
35980
|
style: styleCommon,
|
|
@@ -35969,7 +35996,7 @@ function RenderCompItem(props) {
|
|
|
35969
35996
|
getPopupContainer: function getPopupContainer() {
|
|
35970
35997
|
return document.body;
|
|
35971
35998
|
}
|
|
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) === 130 && (
|
|
35999
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35973
36000
|
selectBusinessType: "virtualWarehouse",
|
|
35974
36001
|
selectProps: _objectSpread2({
|
|
35975
36002
|
style: styleCommon,
|
|
@@ -35991,7 +36018,7 @@ function RenderCompItem(props) {
|
|
|
35991
36018
|
getPopupContainer: function getPopupContainer() {
|
|
35992
36019
|
return document.body;
|
|
35993
36020
|
}
|
|
35994
|
-
})) || 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 && (
|
|
36021
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35995
36022
|
selectBusinessType: "channelWarehouse",
|
|
35996
36023
|
selectProps: _objectSpread2({
|
|
35997
36024
|
style: styleCommon,
|
|
@@ -36013,7 +36040,7 @@ function RenderCompItem(props) {
|
|
|
36013
36040
|
getPopupContainer: function getPopupContainer() {
|
|
36014
36041
|
return document.body;
|
|
36015
36042
|
}
|
|
36016
|
-
})) || 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 && (
|
|
36043
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36017
36044
|
selectBusinessType: "spuCommodity",
|
|
36018
36045
|
selectProps: _objectSpread2({
|
|
36019
36046
|
style: styleCommon,
|
|
@@ -36034,7 +36061,7 @@ function RenderCompItem(props) {
|
|
|
36034
36061
|
getPopupContainer: function getPopupContainer() {
|
|
36035
36062
|
return document.body;
|
|
36036
36063
|
}
|
|
36037
|
-
})) || 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 && (
|
|
36064
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36038
36065
|
selectBusinessType: "skuCommodity",
|
|
36039
36066
|
selectProps: _objectSpread2({
|
|
36040
36067
|
style: styleCommon,
|
|
@@ -36055,13 +36082,13 @@ function RenderCompItem(props) {
|
|
|
36055
36082
|
getPopupContainer: function getPopupContainer() {
|
|
36056
36083
|
return document.body;
|
|
36057
36084
|
}
|
|
36058
|
-
})) || 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 && (
|
|
36085
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
36059
36086
|
disabled: disabled,
|
|
36060
36087
|
isAll: true,
|
|
36061
36088
|
needNameAndCode: true,
|
|
36062
36089
|
notChangeOnSelect: true,
|
|
36063
36090
|
initRequestSource: function () {
|
|
36064
|
-
var _initRequestSource = _asyncToGenerator(
|
|
36091
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36065
36092
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36066
36093
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36067
36094
|
case 0:
|
|
@@ -36103,7 +36130,7 @@ function RenderCompItem(props) {
|
|
|
36103
36130
|
getPopupContainer: function getPopupContainer() {
|
|
36104
36131
|
return document.body;
|
|
36105
36132
|
}
|
|
36106
|
-
})) || 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 && (
|
|
36133
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36107
36134
|
disabled: disabled,
|
|
36108
36135
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36109
36136
|
businessType: "department",
|
|
@@ -36116,7 +36143,7 @@ function RenderCompItem(props) {
|
|
|
36116
36143
|
getPopupContainer: function getPopupContainer() {
|
|
36117
36144
|
return document.body;
|
|
36118
36145
|
}
|
|
36119
|
-
})) || 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 && (
|
|
36146
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36120
36147
|
disabled: disabled,
|
|
36121
36148
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36122
36149
|
businessType: "purchase-organization",
|
|
@@ -36129,7 +36156,7 @@ function RenderCompItem(props) {
|
|
|
36129
36156
|
getPopupContainer: function getPopupContainer() {
|
|
36130
36157
|
return document.body;
|
|
36131
36158
|
}
|
|
36132
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (
|
|
36159
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36133
36160
|
disabled: disabled,
|
|
36134
36161
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36135
36162
|
businessType: "sales-organization",
|
|
@@ -36142,7 +36169,7 @@ function RenderCompItem(props) {
|
|
|
36142
36169
|
getPopupContainer: function getPopupContainer() {
|
|
36143
36170
|
return document.body;
|
|
36144
36171
|
}
|
|
36145
|
-
})) || 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 && (
|
|
36172
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36146
36173
|
selectBusinessType: "supplier2",
|
|
36147
36174
|
selectProps: _objectSpread2({
|
|
36148
36175
|
style: styleCommon,
|
|
@@ -36163,7 +36190,7 @@ function RenderCompItem(props) {
|
|
|
36163
36190
|
getPopupContainer: function getPopupContainer() {
|
|
36164
36191
|
return document.body;
|
|
36165
36192
|
}
|
|
36166
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (
|
|
36193
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36167
36194
|
selectBusinessType: "customer2",
|
|
36168
36195
|
selectProps: _objectSpread2({
|
|
36169
36196
|
style: styleCommon,
|
|
@@ -36184,7 +36211,7 @@ function RenderCompItem(props) {
|
|
|
36184
36211
|
getPopupContainer: function getPopupContainer() {
|
|
36185
36212
|
return document.body;
|
|
36186
36213
|
}
|
|
36187
|
-
})) || 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 && (
|
|
36214
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36188
36215
|
selectBusinessType: "shopFile2",
|
|
36189
36216
|
selectProps: _objectSpread2({
|
|
36190
36217
|
style: styleCommon,
|
|
@@ -36205,7 +36232,7 @@ function RenderCompItem(props) {
|
|
|
36205
36232
|
getPopupContainer: function getPopupContainer() {
|
|
36206
36233
|
return document.body;
|
|
36207
36234
|
}
|
|
36208
|
-
})) || 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 && (
|
|
36235
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36209
36236
|
selectBusinessType: "employee2",
|
|
36210
36237
|
selectProps: _objectSpread2({
|
|
36211
36238
|
style: styleCommon,
|
|
@@ -36226,7 +36253,7 @@ function RenderCompItem(props) {
|
|
|
36226
36253
|
getPopupContainer: function getPopupContainer() {
|
|
36227
36254
|
return document.body;
|
|
36228
36255
|
}
|
|
36229
|
-
})) || 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 && (
|
|
36256
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36230
36257
|
disabled: disabled,
|
|
36231
36258
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36232
36259
|
businessType: "stock-organization",
|
|
@@ -36239,7 +36266,7 @@ function RenderCompItem(props) {
|
|
|
36239
36266
|
getPopupContainer: function getPopupContainer() {
|
|
36240
36267
|
return document.body;
|
|
36241
36268
|
}
|
|
36242
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (
|
|
36269
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36243
36270
|
disabled: disabled,
|
|
36244
36271
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36245
36272
|
businessType: "settle-organization",
|
|
@@ -36252,7 +36279,7 @@ function RenderCompItem(props) {
|
|
|
36252
36279
|
getPopupContainer: function getPopupContainer() {
|
|
36253
36280
|
return document.body;
|
|
36254
36281
|
}
|
|
36255
|
-
})) || 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 && (
|
|
36282
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36256
36283
|
selectBusinessType: "deliveryMode",
|
|
36257
36284
|
selectProps: _objectSpread2({
|
|
36258
36285
|
style: styleCommon,
|
|
@@ -36273,7 +36300,7 @@ function RenderCompItem(props) {
|
|
|
36273
36300
|
getPopupContainer: function getPopupContainer() {
|
|
36274
36301
|
return document.body;
|
|
36275
36302
|
}
|
|
36276
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (
|
|
36303
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36277
36304
|
selectBusinessType: "role",
|
|
36278
36305
|
selectProps: _objectSpread2({
|
|
36279
36306
|
style: styleCommon,
|
|
@@ -36294,7 +36321,7 @@ function RenderCompItem(props) {
|
|
|
36294
36321
|
getPopupContainer: function getPopupContainer() {
|
|
36295
36322
|
return document.body;
|
|
36296
36323
|
}
|
|
36297
|
-
})) || 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 && (
|
|
36324
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
36298
36325
|
selectBusinessType: "brand",
|
|
36299
36326
|
selectProps: _objectSpread2({
|
|
36300
36327
|
style: styleCommon,
|
|
@@ -36315,7 +36342,7 @@ function RenderCompItem(props) {
|
|
|
36315
36342
|
getPopupContainer: function getPopupContainer() {
|
|
36316
36343
|
return document.body;
|
|
36317
36344
|
}
|
|
36318
|
-
})) || 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 && (
|
|
36345
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36319
36346
|
disabled: disabled,
|
|
36320
36347
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36321
36348
|
businessType: "background-category",
|
|
@@ -36328,7 +36355,7 @@ function RenderCompItem(props) {
|
|
|
36328
36355
|
getPopupContainer: function getPopupContainer() {
|
|
36329
36356
|
return document.body;
|
|
36330
36357
|
}
|
|
36331
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (
|
|
36358
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
36332
36359
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36333
36360
|
style: styleCommon,
|
|
36334
36361
|
placeholder: '请选择'
|
|
@@ -36351,7 +36378,7 @@ function RenderCompItem(props) {
|
|
|
36351
36378
|
onChange: function onChange(value) {
|
|
36352
36379
|
handleEdit(ites.code, value);
|
|
36353
36380
|
}
|
|
36354
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
36381
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36355
36382
|
style: {
|
|
36356
36383
|
display: 'flex'
|
|
36357
36384
|
}
|
|
@@ -36863,7 +36890,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36863
36890
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36864
36891
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36865
36892
|
}
|
|
36866
|
-
var parallelTreeData =
|
|
36893
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
36867
36894
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36868
36895
|
var _i$key;
|
|
36869
36896
|
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);
|
|
@@ -37790,13 +37817,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37790
37817
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37791
37818
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37792
37819
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37793
|
-
var list =
|
|
37820
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37794
37821
|
var requiredList = list.filter(function (c) {
|
|
37795
37822
|
return c.required == 1;
|
|
37796
37823
|
}) || []; // 获取对象属性为true的集合
|
|
37797
37824
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37798
37825
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37799
|
-
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) ?
|
|
37826
|
+
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];
|
|
37800
37827
|
(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) {
|
|
37801
37828
|
if (requiredList.some(function (r) {
|
|
37802
37829
|
return r.id === e.elementId;
|
|
@@ -38385,7 +38412,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38385
38412
|
style: {
|
|
38386
38413
|
float: 'right'
|
|
38387
38414
|
}
|
|
38388
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (
|
|
38415
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38389
38416
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38390
38417
|
ruleGroupInfo: {
|
|
38391
38418
|
ruleGroupList: ruleGroupList,
|
|
@@ -38403,7 +38430,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38403
38430
|
callBack: function callBack(newData) {
|
|
38404
38431
|
upDateData(newData);
|
|
38405
38432
|
}
|
|
38406
|
-
}))) : (
|
|
38433
|
+
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38407
38434
|
style: {
|
|
38408
38435
|
padding: 20
|
|
38409
38436
|
}
|
|
@@ -38778,4 +38805,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38778
38805
|
}, children));
|
|
38779
38806
|
};
|
|
38780
38807
|
|
|
38781
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|
|
38808
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|