@bit-sun/business-component 4.0.13-alpha.3 → 4.0.13-alpha.31
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/.umirc.ts +20 -9
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +1 -1
- package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -0
- package/dist/components/Business/ItemPropertySelector/index.d.ts +3 -0
- package/dist/components/Functional/SearchSelect/utils.d.ts +4 -1
- package/dist/index.esm.js +1070 -626
- package/dist/index.js +1070 -626
- package/package.json +3 -2
- package/src/assets/btn-cancel.svg +3 -0
- package/src/assets/btn-copy.svg +3 -0
- package/src/assets/btn-delete.svg +2 -29
- package/src/assets/btn-edit.svg +2 -19
- package/src/assets/btn-hangUp.svg +3 -0
- package/src/assets/btn-print.svg +3 -0
- package/src/assets/btn-refresh.svg +3 -0
- package/src/assets/btn-unhook.svg +3 -0
- package/src/components/Business/BsSulaQueryTable/index.tsx +10 -10
- package/src/components/Business/BsSulaQueryTable/setting.tsx +3 -3
- package/src/components/Business/BsSulaQueryTable/utils.tsx +2 -1
- package/src/components/Business/CommodityEntry/index.tsx +11 -9
- package/src/components/Business/DetailPageWrapper/index.less +1 -1
- package/src/components/Business/DetailPageWrapper/index.tsx +24 -5
- package/src/components/Business/DetailPageWrapper/utils.tsx +7 -2
- package/src/components/Business/HomePageWrapper/index.less +1 -1
- package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +210 -12
- package/src/components/Business/SearchSelect/index.md +4 -4
- package/src/components/Business/SearchSelect/utils.ts +1 -1
- package/src/components/Functional/AddSelect/index.tsx +3 -3
- package/src/components/Functional/DataValidation/index.md +1 -0
- package/src/components/Functional/DataValidation/index.tsx +11 -4
- package/src/components/Functional/QueryMutipleSelect/index.md +2 -3
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -1
- package/src/components/Functional/SearchSelect/index.less +16 -6
- package/src/components/Functional/SearchSelect/index.tsx +65 -50
- package/src/components/Functional/SearchSelect/utils.tsx +46 -6
- package/src/components/Solution/RuleComponent/index.js +59 -1
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var memoizeOne = require('memoize-one');
|
|
|
11
11
|
var umi = require('umi');
|
|
12
12
|
var isEqual = require('lodash/isEqual');
|
|
13
13
|
var React$1 = require('react');
|
|
14
|
+
var ReactDOMServer = require('react-dom/server');
|
|
14
15
|
var moment$1 = require('moment');
|
|
15
16
|
var icons = require('@ant-design/icons');
|
|
16
17
|
var bssula = require('bssula');
|
|
@@ -54,9 +55,88 @@ var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
|
|
|
54
55
|
var castArray__default = /*#__PURE__*/_interopDefaultLegacy(castArray);
|
|
55
56
|
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray$1);
|
|
56
57
|
|
|
58
|
+
function _arrayLikeToArray(r, a) {
|
|
59
|
+
(null == a || a > r.length) && (a = r.length);
|
|
60
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
function _arrayWithHoles(r) {
|
|
64
|
+
if (Array.isArray(r)) return r;
|
|
65
|
+
}
|
|
66
|
+
function _arrayWithoutHoles(r) {
|
|
67
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
68
|
+
}
|
|
69
|
+
function _assertThisInitialized(e) {
|
|
70
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
71
|
+
return e;
|
|
72
|
+
}
|
|
73
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
74
|
+
try {
|
|
75
|
+
var i = n[a](c),
|
|
76
|
+
u = i.value;
|
|
77
|
+
} catch (n) {
|
|
78
|
+
return void e(n);
|
|
79
|
+
}
|
|
80
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
81
|
+
}
|
|
82
|
+
function _asyncToGenerator(n) {
|
|
83
|
+
return function () {
|
|
84
|
+
var t = this,
|
|
85
|
+
e = arguments;
|
|
86
|
+
return new Promise(function (r, o) {
|
|
87
|
+
var a = n.apply(t, e);
|
|
88
|
+
function _next(n) {
|
|
89
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
90
|
+
}
|
|
91
|
+
function _throw(n) {
|
|
92
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
93
|
+
}
|
|
94
|
+
_next(void 0);
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
}
|
|
57
98
|
function _callSuper(t, o, e) {
|
|
58
99
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
59
100
|
}
|
|
101
|
+
function _classCallCheck(a, n) {
|
|
102
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
103
|
+
}
|
|
104
|
+
function _defineProperties(e, r) {
|
|
105
|
+
for (var t = 0; t < r.length; t++) {
|
|
106
|
+
var o = r[t];
|
|
107
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function _createClass(e, r, t) {
|
|
111
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
112
|
+
writable: !1
|
|
113
|
+
}), e;
|
|
114
|
+
}
|
|
115
|
+
function _defineProperty(e, r, t) {
|
|
116
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
117
|
+
value: t,
|
|
118
|
+
enumerable: !0,
|
|
119
|
+
configurable: !0,
|
|
120
|
+
writable: !0
|
|
121
|
+
}) : e[r] = t, e;
|
|
122
|
+
}
|
|
123
|
+
function _getPrototypeOf(t) {
|
|
124
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
125
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
126
|
+
}, _getPrototypeOf(t);
|
|
127
|
+
}
|
|
128
|
+
function _inherits(t, e) {
|
|
129
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
130
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
131
|
+
constructor: {
|
|
132
|
+
value: t,
|
|
133
|
+
writable: !0,
|
|
134
|
+
configurable: !0
|
|
135
|
+
}
|
|
136
|
+
}), Object.defineProperty(t, "prototype", {
|
|
137
|
+
writable: !1
|
|
138
|
+
}), e && _setPrototypeOf(t, e);
|
|
139
|
+
}
|
|
60
140
|
function _isNativeReflectConstruct() {
|
|
61
141
|
try {
|
|
62
142
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -65,6 +145,9 @@ function _isNativeReflectConstruct() {
|
|
|
65
145
|
return !!t;
|
|
66
146
|
})();
|
|
67
147
|
}
|
|
148
|
+
function _iterableToArray(r) {
|
|
149
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
150
|
+
}
|
|
68
151
|
function _iterableToArrayLimit(r, l) {
|
|
69
152
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
70
153
|
if (null != t) {
|
|
@@ -92,6 +175,15 @@ function _iterableToArrayLimit(r, l) {
|
|
|
92
175
|
return a;
|
|
93
176
|
}
|
|
94
177
|
}
|
|
178
|
+
function _nonIterableRest() {
|
|
179
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
180
|
+
}
|
|
181
|
+
function _nonIterableSpread() {
|
|
182
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
183
|
+
}
|
|
184
|
+
function _objectDestructuringEmpty(t) {
|
|
185
|
+
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
186
|
+
}
|
|
95
187
|
function ownKeys(e, r) {
|
|
96
188
|
var t = Object.keys(e);
|
|
97
189
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -113,6 +205,31 @@ function _objectSpread2(e) {
|
|
|
113
205
|
}
|
|
114
206
|
return e;
|
|
115
207
|
}
|
|
208
|
+
function _objectWithoutProperties(e, t) {
|
|
209
|
+
if (null == e) return {};
|
|
210
|
+
var o,
|
|
211
|
+
r,
|
|
212
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
|
+
if (Object.getOwnPropertySymbols) {
|
|
214
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
|
+
}
|
|
217
|
+
return i;
|
|
218
|
+
}
|
|
219
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
220
|
+
if (null == r) return {};
|
|
221
|
+
var t = {};
|
|
222
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
224
|
+
t[n] = r[n];
|
|
225
|
+
}
|
|
226
|
+
return t;
|
|
227
|
+
}
|
|
228
|
+
function _possibleConstructorReturn(t, e) {
|
|
229
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
230
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
|
+
return _assertThisInitialized(t);
|
|
232
|
+
}
|
|
116
233
|
function _regeneratorRuntime() {
|
|
117
234
|
_regeneratorRuntime = function () {
|
|
118
235
|
return e;
|
|
@@ -414,6 +531,20 @@ function _regeneratorRuntime() {
|
|
|
414
531
|
}
|
|
415
532
|
}, e;
|
|
416
533
|
}
|
|
534
|
+
function _setPrototypeOf(t, e) {
|
|
535
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
536
|
+
return t.__proto__ = e, t;
|
|
537
|
+
}, _setPrototypeOf(t, e);
|
|
538
|
+
}
|
|
539
|
+
function _slicedToArray(r, e) {
|
|
540
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
541
|
+
}
|
|
542
|
+
function _toArray(r) {
|
|
543
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
544
|
+
}
|
|
545
|
+
function _toConsumableArray(r) {
|
|
546
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
547
|
+
}
|
|
417
548
|
function _toPrimitive(t, r) {
|
|
418
549
|
if ("object" != typeof t || !t) return t;
|
|
419
550
|
var e = t[Symbol.toPrimitive];
|
|
@@ -437,180 +568,12 @@ function _typeof(o) {
|
|
|
437
568
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
438
569
|
}, _typeof(o);
|
|
439
570
|
}
|
|
440
|
-
function
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
var
|
|
444
|
-
|
|
445
|
-
reject(error);
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
if (info.done) {
|
|
449
|
-
resolve(value);
|
|
450
|
-
} else {
|
|
451
|
-
Promise.resolve(value).then(_next, _throw);
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
function _asyncToGenerator(fn) {
|
|
455
|
-
return function () {
|
|
456
|
-
var self = this,
|
|
457
|
-
args = arguments;
|
|
458
|
-
return new Promise(function (resolve, reject) {
|
|
459
|
-
var gen = fn.apply(self, args);
|
|
460
|
-
function _next(value) {
|
|
461
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
462
|
-
}
|
|
463
|
-
function _throw(err) {
|
|
464
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
465
|
-
}
|
|
466
|
-
_next(undefined);
|
|
467
|
-
});
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
function _classCallCheck(instance, Constructor) {
|
|
471
|
-
if (!(instance instanceof Constructor)) {
|
|
472
|
-
throw new TypeError("Cannot call a class as a function");
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
function _defineProperties(target, props) {
|
|
476
|
-
for (var i = 0; i < props.length; i++) {
|
|
477
|
-
var descriptor = props[i];
|
|
478
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
479
|
-
descriptor.configurable = true;
|
|
480
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
481
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
485
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
486
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
487
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
488
|
-
writable: false
|
|
489
|
-
});
|
|
490
|
-
return Constructor;
|
|
491
|
-
}
|
|
492
|
-
function _defineProperty(obj, key, value) {
|
|
493
|
-
key = _toPropertyKey(key);
|
|
494
|
-
if (key in obj) {
|
|
495
|
-
Object.defineProperty(obj, key, {
|
|
496
|
-
value: value,
|
|
497
|
-
enumerable: true,
|
|
498
|
-
configurable: true,
|
|
499
|
-
writable: true
|
|
500
|
-
});
|
|
501
|
-
} else {
|
|
502
|
-
obj[key] = value;
|
|
503
|
-
}
|
|
504
|
-
return obj;
|
|
505
|
-
}
|
|
506
|
-
function _inherits(subClass, superClass) {
|
|
507
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
508
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
509
|
-
}
|
|
510
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
511
|
-
constructor: {
|
|
512
|
-
value: subClass,
|
|
513
|
-
writable: true,
|
|
514
|
-
configurable: true
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
Object.defineProperty(subClass, "prototype", {
|
|
518
|
-
writable: false
|
|
519
|
-
});
|
|
520
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
521
|
-
}
|
|
522
|
-
function _getPrototypeOf(o) {
|
|
523
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
524
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
525
|
-
};
|
|
526
|
-
return _getPrototypeOf(o);
|
|
527
|
-
}
|
|
528
|
-
function _setPrototypeOf(o, p) {
|
|
529
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
530
|
-
o.__proto__ = p;
|
|
531
|
-
return o;
|
|
532
|
-
};
|
|
533
|
-
return _setPrototypeOf(o, p);
|
|
534
|
-
}
|
|
535
|
-
function _objectDestructuringEmpty(obj) {
|
|
536
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
537
|
-
}
|
|
538
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
539
|
-
if (source == null) return {};
|
|
540
|
-
var target = {};
|
|
541
|
-
for (var key in source) {
|
|
542
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
543
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
544
|
-
target[key] = source[key];
|
|
545
|
-
}
|
|
571
|
+
function _unsupportedIterableToArray(r, a) {
|
|
572
|
+
if (r) {
|
|
573
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
574
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
575
|
+
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;
|
|
546
576
|
}
|
|
547
|
-
return target;
|
|
548
|
-
}
|
|
549
|
-
function _objectWithoutProperties(source, excluded) {
|
|
550
|
-
if (source == null) return {};
|
|
551
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
552
|
-
var key, i;
|
|
553
|
-
if (Object.getOwnPropertySymbols) {
|
|
554
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
555
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
556
|
-
key = sourceSymbolKeys[i];
|
|
557
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
558
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
559
|
-
target[key] = source[key];
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
return target;
|
|
563
|
-
}
|
|
564
|
-
function _assertThisInitialized(self) {
|
|
565
|
-
if (self === void 0) {
|
|
566
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
567
|
-
}
|
|
568
|
-
return self;
|
|
569
|
-
}
|
|
570
|
-
function _possibleConstructorReturn(self, call) {
|
|
571
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
572
|
-
return call;
|
|
573
|
-
} else if (call !== void 0) {
|
|
574
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
575
|
-
}
|
|
576
|
-
return _assertThisInitialized(self);
|
|
577
|
-
}
|
|
578
|
-
function _slicedToArray(arr, i) {
|
|
579
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
580
|
-
}
|
|
581
|
-
function _toArray(arr) {
|
|
582
|
-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
583
|
-
}
|
|
584
|
-
function _toConsumableArray(arr) {
|
|
585
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
586
|
-
}
|
|
587
|
-
function _arrayWithoutHoles(arr) {
|
|
588
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
589
|
-
}
|
|
590
|
-
function _arrayWithHoles(arr) {
|
|
591
|
-
if (Array.isArray(arr)) return arr;
|
|
592
|
-
}
|
|
593
|
-
function _iterableToArray(iter) {
|
|
594
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
595
|
-
}
|
|
596
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
597
|
-
if (!o) return;
|
|
598
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
599
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
600
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
601
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
602
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
603
|
-
}
|
|
604
|
-
function _arrayLikeToArray(arr, len) {
|
|
605
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
606
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
607
|
-
return arr2;
|
|
608
|
-
}
|
|
609
|
-
function _nonIterableSpread() {
|
|
610
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
611
|
-
}
|
|
612
|
-
function _nonIterableRest() {
|
|
613
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
614
577
|
}
|
|
615
578
|
|
|
616
579
|
var ENUM = {
|
|
@@ -1120,13 +1083,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1120
1083
|
imgHtml.innerHTML = str;
|
|
1121
1084
|
}
|
|
1122
1085
|
// 测试使用 测试类型缩小 end
|
|
1123
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (
|
|
1086
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1124
1087
|
className: "clomnsImg"
|
|
1125
1088
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
1126
1089
|
src: url,
|
|
1127
1090
|
width: "16px",
|
|
1128
1091
|
height: "16px"
|
|
1129
|
-
}, paramsObj)))) : (
|
|
1092
|
+
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
1130
1093
|
className: "clomnsImg2"
|
|
1131
1094
|
}, /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1132
1095
|
src: noImg
|
|
@@ -1248,7 +1211,8 @@ var authFn = function authFn(code) {
|
|
|
1248
1211
|
};
|
|
1249
1212
|
// 可以将普通字符串 或者tsx 转换成字符串
|
|
1250
1213
|
var renderToString = function renderToString(render) {
|
|
1251
|
-
return render;
|
|
1214
|
+
// return render;
|
|
1215
|
+
return typeof render === 'string' ? render : ReactDOMServer.renderToString(render);
|
|
1252
1216
|
};
|
|
1253
1217
|
|
|
1254
1218
|
function downloadExcel(data, fileName, isResUrl) {
|
|
@@ -1262,7 +1226,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1262
1226
|
}
|
|
1263
1227
|
save_link.click();
|
|
1264
1228
|
}
|
|
1265
|
-
var
|
|
1229
|
+
var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
1266
1230
|
return data.map(function (item) {
|
|
1267
1231
|
if (!item.name || !item.path) {
|
|
1268
1232
|
return null;
|
|
@@ -1282,7 +1246,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1282
1246
|
authority: item.authority || parentAuthority
|
|
1283
1247
|
});
|
|
1284
1248
|
if (item.routes) {
|
|
1285
|
-
var children =
|
|
1249
|
+
var children = _formatter(item.routes, item.authority, locale);
|
|
1286
1250
|
// Reduce memory usage
|
|
1287
1251
|
result.children = children;
|
|
1288
1252
|
}
|
|
@@ -1292,7 +1256,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1292
1256
|
return item;
|
|
1293
1257
|
});
|
|
1294
1258
|
};
|
|
1295
|
-
var memoizeOneFormatter = memoizeOne__default['default'](
|
|
1259
|
+
var memoizeOneFormatter = memoizeOne__default['default'](_formatter, isEqual__default['default']);
|
|
1296
1260
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1297
1261
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1298
1262
|
if (backHistoryPath) {
|
|
@@ -1601,7 +1565,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1601
1565
|
// sheepMap是表头字段中英文映射
|
|
1602
1566
|
// sheetCount:表的数量,默认一张
|
|
1603
1567
|
var resolveFile = /*#__PURE__*/function () {
|
|
1604
|
-
var _ref3 = _asyncToGenerator(
|
|
1568
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1605
1569
|
var config,
|
|
1606
1570
|
data,
|
|
1607
1571
|
_args = arguments;
|
|
@@ -1640,7 +1604,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1640
1604
|
}();
|
|
1641
1605
|
//读取文件
|
|
1642
1606
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1643
|
-
var _ref4 = _asyncToGenerator(
|
|
1607
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1644
1608
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1645
1609
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1646
1610
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1733,14 +1697,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1733
1697
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1734
1698
|
|
|
1735
1699
|
// 获取树平行结构
|
|
1736
|
-
var
|
|
1700
|
+
var _coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1737
1701
|
var childrenKey = chilKey || 'children';
|
|
1738
1702
|
treeData.forEach(function (el) {
|
|
1739
1703
|
var _el$childrenKey;
|
|
1740
1704
|
result.push(el);
|
|
1741
1705
|
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) {
|
|
1742
1706
|
// 子级递归
|
|
1743
|
-
|
|
1707
|
+
_coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1744
1708
|
}
|
|
1745
1709
|
});
|
|
1746
1710
|
return result;
|
|
@@ -2017,13 +1981,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
2017
1981
|
imgHtml.innerHTML = str;
|
|
2018
1982
|
}
|
|
2019
1983
|
// 测试使用 测试类型缩小 end
|
|
2020
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (
|
|
1984
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, url ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
2021
1985
|
className: "clomnsImg"
|
|
2022
1986
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2({
|
|
2023
1987
|
src: url,
|
|
2024
1988
|
width: "16px",
|
|
2025
1989
|
height: "16px"
|
|
2026
|
-
}, paramsObj)))) : (
|
|
1990
|
+
}, paramsObj)))) : (/*#__PURE__*/React__default['default'].createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2027
1991
|
src: noImg
|
|
2028
1992
|
}))));
|
|
2029
1993
|
};
|
|
@@ -2085,7 +2049,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2085
2049
|
}
|
|
2086
2050
|
});
|
|
2087
2051
|
};
|
|
2088
|
-
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (
|
|
2052
|
+
var menu = /*#__PURE__*/React__default['default'].createElement(antd.Menu, null, /*#__PURE__*/React__default['default'].createElement(antd.Menu.Item, null, type === 'input' && (/*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
|
|
2089
2053
|
disabled: disabled,
|
|
2090
2054
|
onChange: function onChange(e) {
|
|
2091
2055
|
var v = e.target.value;
|
|
@@ -2095,7 +2059,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2095
2059
|
width: 170
|
|
2096
2060
|
},
|
|
2097
2061
|
value: inputValue
|
|
2098
|
-
}, inpProps))), type === 'number' && (
|
|
2062
|
+
}, inpProps))), type === 'number' && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2({
|
|
2099
2063
|
disabled: disabled,
|
|
2100
2064
|
onBlur: function onBlur(e) {
|
|
2101
2065
|
var v = parseFloat(e.target.value);
|
|
@@ -2474,16 +2438,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2474
2438
|
var handleExportBarCode = handleExport;
|
|
2475
2439
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2476
2440
|
var routerMap = {};
|
|
2477
|
-
var
|
|
2441
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
2478
2442
|
data.forEach(function (menuItem) {
|
|
2479
2443
|
if (menuItem.children) {
|
|
2480
|
-
|
|
2444
|
+
_flattenMenuData(menuItem.children);
|
|
2481
2445
|
}
|
|
2482
2446
|
// Reduce memory usage
|
|
2483
2447
|
routerMap[menuItem.path] = menuItem;
|
|
2484
2448
|
});
|
|
2485
2449
|
};
|
|
2486
|
-
|
|
2450
|
+
_flattenMenuData(menuData);
|
|
2487
2451
|
return routerMap;
|
|
2488
2452
|
};
|
|
2489
2453
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2626,7 +2590,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2626
2590
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2627
2591
|
};
|
|
2628
2592
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2629
|
-
var _ref2 = _asyncToGenerator(
|
|
2593
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2630
2594
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2631
2595
|
while (1) switch (_context.prev = _context.next) {
|
|
2632
2596
|
case 0:
|
|
@@ -3236,7 +3200,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3236
3200
|
title = _this$props3.title,
|
|
3237
3201
|
notValid = _this$props3.notValid,
|
|
3238
3202
|
notExcelImport = _this$props3.notExcelImport,
|
|
3239
|
-
excelImportConfig = _this$props3.excelImportConfig
|
|
3203
|
+
excelImportConfig = _this$props3.excelImportConfig,
|
|
3204
|
+
getTemplate = _this$props3.getTemplate;
|
|
3240
3205
|
var _ref5 = excelImportConfig || {},
|
|
3241
3206
|
size = _ref5.size,
|
|
3242
3207
|
accept = _ref5.accept,
|
|
@@ -3304,7 +3269,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3304
3269
|
style: {
|
|
3305
3270
|
color: 'red'
|
|
3306
3271
|
}
|
|
3307
|
-
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (
|
|
3272
|
+
}, "\uFF08\u9F20\u6807\u79FB\u5165\u611F\u53F9\u53F7\u56FE\u6807\u67E5\u770B\u5BFC\u5165\u4F7F\u7528\u8BF4\u660E\uFF09")), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, getTemplate && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
3273
|
+
onClick: getTemplate
|
|
3274
|
+
}, "\u4E0B\u8F7D\u6A21\u677F")), /*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165")))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3308
3275
|
trigger: ['click'],
|
|
3309
3276
|
overlay: this.menuList,
|
|
3310
3277
|
placement: "bottomRight"
|
|
@@ -3979,7 +3946,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3979
3946
|
placement: "bottomLeft"
|
|
3980
3947
|
}, /*#__PURE__*/React__default['default'].createElement("a", null, /*#__PURE__*/React__default['default'].createElement(icons.ProfileTwoTone, null))), /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
3981
3948
|
title: /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3982
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (
|
|
3949
|
+
}, /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !notExcelImport && (/*#__PURE__*/React__default['default'].createElement(antd.Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React__default['default'].createElement(antd.Dropdown, {
|
|
3983
3950
|
trigger: ['click'],
|
|
3984
3951
|
overlay: this.menuList,
|
|
3985
3952
|
placement: "bottomRight"
|
|
@@ -4151,14 +4118,16 @@ var makeUniqueValue = function makeUniqueValue() {
|
|
|
4151
4118
|
return generateUnitKey;
|
|
4152
4119
|
};
|
|
4153
4120
|
// ------------------------------------------处理样式相关--开始----------------------------------------
|
|
4154
|
-
var getFormRowInfo = function getFormRowInfo(list) {
|
|
4155
|
-
var
|
|
4156
|
-
var
|
|
4157
|
-
var
|
|
4121
|
+
var getFormRowInfo = function getFormRowInfo(list, tableSearchColSpan) {
|
|
4122
|
+
var lastColumnsPerRow = tableSearchColSpan == 6 ? columnsPerRow : 3;
|
|
4123
|
+
var totalRows = Math.ceil(list.length / lastColumnsPerRow); // 计算总行数
|
|
4124
|
+
var lastRowColumns = (list.length + 1) % lastColumnsPerRow; // 计算最后一行的实际列数
|
|
4125
|
+
var emptySlots = lastRowColumns === 0 ? 0 : lastColumnsPerRow - lastRowColumns; // 计算最后一行的空位数
|
|
4158
4126
|
var emptyArray = new Array(emptySlots).fill(null); // 生成长度为 emptySlots 的数组
|
|
4159
4127
|
return {
|
|
4160
4128
|
totalRows: totalRows,
|
|
4161
|
-
emptyArray: emptyArray
|
|
4129
|
+
emptyArray: emptyArray,
|
|
4130
|
+
ColSpan: tableSearchColSpan !== null && tableSearchColSpan !== void 0 ? tableSearchColSpan : ColSpan
|
|
4162
4131
|
};
|
|
4163
4132
|
};
|
|
4164
4133
|
var defaultVisibleFieldsCount = 7;
|
|
@@ -4498,7 +4467,7 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4498
4467
|
destroyTooltipOnHide: true,
|
|
4499
4468
|
placement: "topRight",
|
|
4500
4469
|
autoAdjustOverflow: false,
|
|
4501
|
-
title: (
|
|
4470
|
+
title: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4502
4471
|
style: {
|
|
4503
4472
|
margin: '6px 8px 0px'
|
|
4504
4473
|
},
|
|
@@ -4524,7 +4493,77 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
|
|
|
4524
4493
|
})))
|
|
4525
4494
|
}, "+ ".concat(selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length));
|
|
4526
4495
|
};
|
|
4496
|
+
// 弹窗数据表头处理
|
|
4497
|
+
var handleTableColumns = function handleTableColumns(tableColumns) {
|
|
4498
|
+
// 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
|
|
4499
|
+
var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
|
|
4500
|
+
return typeof s.defaultSort == 'number';
|
|
4501
|
+
})) || tableColumns || [];
|
|
4502
|
+
return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
|
|
4503
|
+
return a.defaultSort - b.defaultSort;
|
|
4504
|
+
})) || [];
|
|
4505
|
+
};
|
|
4527
4506
|
// ------------------------------------------ 数据源展示 相关处理--结束----------------------------------------
|
|
4507
|
+
// ------------------------------------------ 选中数据展示 相关处理--开始----------------------------------------
|
|
4508
|
+
var getShowLabelTextStr = function getShowLabelTextStr(_ref4) {
|
|
4509
|
+
var kongValue = _ref4.kongValue,
|
|
4510
|
+
selectMode = _ref4.selectMode,
|
|
4511
|
+
value = _ref4.value,
|
|
4512
|
+
items = _ref4.items;
|
|
4513
|
+
if (selectMode) {
|
|
4514
|
+
var _value$map;
|
|
4515
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
4516
|
+
return item.label || item.text || '';
|
|
4517
|
+
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
4518
|
+
}
|
|
4519
|
+
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
4520
|
+
};
|
|
4521
|
+
var getSelectValueText = function getSelectValueText(v, items) {
|
|
4522
|
+
var _filter, _filter$;
|
|
4523
|
+
return ((_filter = (items || []).filter(function (item) {
|
|
4524
|
+
return item.value === v;
|
|
4525
|
+
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
4526
|
+
};
|
|
4527
|
+
var getShowValueStr = function getShowValueStr(_ref5) {
|
|
4528
|
+
var kongValue = _ref5.kongValue,
|
|
4529
|
+
selectMode = _ref5.selectMode,
|
|
4530
|
+
value = _ref5.value,
|
|
4531
|
+
items = _ref5.items;
|
|
4532
|
+
if (selectMode) {
|
|
4533
|
+
var _value$map2;
|
|
4534
|
+
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
4535
|
+
return getSelectValueText(item, items);
|
|
4536
|
+
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
4537
|
+
}
|
|
4538
|
+
return getSelectValueText(value, items) || kongValue;
|
|
4539
|
+
};
|
|
4540
|
+
var getShowStr = function getShowStr(_ref6) {
|
|
4541
|
+
var viewShowValueStr = _ref6.viewShowValueStr,
|
|
4542
|
+
labelInValue = _ref6.labelInValue,
|
|
4543
|
+
selectMode = _ref6.selectMode,
|
|
4544
|
+
value = _ref6.value,
|
|
4545
|
+
items = _ref6.items;
|
|
4546
|
+
// 优先使用业务使用传入的展示
|
|
4547
|
+
if (viewShowValueStr) return viewShowValueStr;
|
|
4548
|
+
var kongValue = '无';
|
|
4549
|
+
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
4550
|
+
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
4551
|
+
if (labelInValue) {
|
|
4552
|
+
return getShowLabelTextStr({
|
|
4553
|
+
kongValue: kongValue,
|
|
4554
|
+
selectMode: selectMode,
|
|
4555
|
+
value: value,
|
|
4556
|
+
items: items
|
|
4557
|
+
});
|
|
4558
|
+
}
|
|
4559
|
+
return getShowValueStr({
|
|
4560
|
+
kongValue: kongValue,
|
|
4561
|
+
selectMode: selectMode,
|
|
4562
|
+
value: value,
|
|
4563
|
+
items: items
|
|
4564
|
+
});
|
|
4565
|
+
};
|
|
4566
|
+
// ------------------------------------------ 选中数据展示 相关处理--结束---------------------------------------
|
|
4528
4567
|
|
|
4529
4568
|
var getValue = function getValue(value, selectMode) {
|
|
4530
4569
|
var _value$split;
|
|
@@ -4640,6 +4679,7 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4640
4679
|
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
4641
4680
|
if (!requestConfig) return;
|
|
4642
4681
|
if (!url) return;
|
|
4682
|
+
if (!(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) return; // 空值默认不查询
|
|
4643
4683
|
setFetching(true);
|
|
4644
4684
|
var queryParams = _objectSpread2(_objectSpread2({}, otherParams), params);
|
|
4645
4685
|
if (_.isNil(queryParams[selectParamsKey])) {
|
|
@@ -4729,14 +4769,14 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4729
4769
|
setIsMaxTagsOpen: function setIsMaxTagsOpen() {}
|
|
4730
4770
|
});
|
|
4731
4771
|
},
|
|
4732
|
-
notFoundContent: fetching ? (
|
|
4772
|
+
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
4733
4773
|
size: "small",
|
|
4734
4774
|
className: 'searchSelectSpin'
|
|
4735
|
-
})) : (
|
|
4775
|
+
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4736
4776
|
style: {
|
|
4737
4777
|
textAlign: 'center'
|
|
4738
4778
|
}
|
|
4739
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165\
|
|
4779
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, searchValue ? '无匹配结果,请更换其他内容再试' : (selectProps === null || selectProps === void 0 ? void 0 : selectProps.notFoundText) || "\u8BF7\u5F55\u5165\u7F16\u7801/\u540D\u79F0\u6A21\u7CCA\u67E5\u8BE2"))),
|
|
4740
4780
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
4741
4781
|
return triggerNode.parentElement;
|
|
4742
4782
|
}
|
|
@@ -4800,7 +4840,7 @@ function ToCDB$1(selectStr) {
|
|
|
4800
4840
|
return tmp;
|
|
4801
4841
|
}
|
|
4802
4842
|
|
|
4803
|
-
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
|
|
4843
|
+
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 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,\n.search_select_wrapper_bottomTable_wrapRight .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_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";
|
|
4804
4844
|
styleInject(css_248z$6);
|
|
4805
4845
|
|
|
4806
4846
|
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";
|
|
@@ -4964,7 +5004,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4964
5004
|
title: item.name,
|
|
4965
5005
|
className: "propertyGroup_checkbox_container"
|
|
4966
5006
|
}, item.name));
|
|
4967
|
-
}), !!notCommonUseProperty.length && (
|
|
5007
|
+
}), !!notCommonUseProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
4968
5008
|
style: {
|
|
4969
5009
|
width: '50px',
|
|
4970
5010
|
cursor: 'pointer',
|
|
@@ -4977,7 +5017,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4977
5017
|
setShowNotCommon(!showNotCommon);
|
|
4978
5018
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4979
5019
|
}
|
|
4980
|
-
}, showNotCommon && (
|
|
5020
|
+
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4981
5021
|
};
|
|
4982
5022
|
var PropertyGroup$1 = /*#__PURE__*/React__default['default'].memo(PropertyGroup, function (props, nextProps) {
|
|
4983
5023
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -5207,7 +5247,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5207
5247
|
propertyData: item,
|
|
5208
5248
|
handleProperyItemChange: handleProperyItemChange
|
|
5209
5249
|
});
|
|
5210
|
-
}))), !!notCommonProperty.length && (
|
|
5250
|
+
}))), !!notCommonProperty.length && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5211
5251
|
style: {
|
|
5212
5252
|
width: '50px',
|
|
5213
5253
|
cursor: 'pointer',
|
|
@@ -5217,12 +5257,59 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5217
5257
|
onClick: function onClick() {
|
|
5218
5258
|
return setShowNotCommon(!showNotCommon);
|
|
5219
5259
|
}
|
|
5220
|
-
}, showNotCommon && (
|
|
5260
|
+
}, showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(icons.CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
5261
|
+
};
|
|
5262
|
+
|
|
5263
|
+
var _excluded$4 = ["onChange", "value", "propertyCode", "name"];
|
|
5264
|
+
var ItemPropertySelector = function ItemPropertySelector(_ref) {
|
|
5265
|
+
var _onChange = _ref.onChange,
|
|
5266
|
+
value = _ref.value,
|
|
5267
|
+
propertyCode = _ref.propertyCode,
|
|
5268
|
+
name = _ref.name,
|
|
5269
|
+
restProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
5270
|
+
var _useState = React$1.useState([]),
|
|
5271
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
5272
|
+
source = _useState2[0],
|
|
5273
|
+
setSource = _useState2[1];
|
|
5274
|
+
React$1.useEffect(function () {
|
|
5275
|
+
// FIXME: 目前只能通过固定属性编码先获取属性id,再通过属性id去查属性值 @林军
|
|
5276
|
+
if (propertyCode) {
|
|
5277
|
+
bssula.request({
|
|
5278
|
+
url: "/items/item/propertyValue/getPropertyValueNoPagerByCode?qp-propertyCode-eq=".concat(propertyCode, "&pageSize=5000"),
|
|
5279
|
+
method: 'GET',
|
|
5280
|
+
converter: function converter(_ref2) {
|
|
5281
|
+
var data = _ref2.data;
|
|
5282
|
+
var source = ((data === null || data === void 0 ? void 0 : data.items) || []).map(function (item) {
|
|
5283
|
+
return {
|
|
5284
|
+
text: item.value,
|
|
5285
|
+
value: item.value
|
|
5286
|
+
};
|
|
5287
|
+
});
|
|
5288
|
+
setSource(source);
|
|
5289
|
+
}
|
|
5290
|
+
});
|
|
5291
|
+
return;
|
|
5292
|
+
}
|
|
5293
|
+
}, [propertyCode]);
|
|
5294
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
5295
|
+
value: value,
|
|
5296
|
+
allowClear: true,
|
|
5297
|
+
style: {
|
|
5298
|
+
width: '100%'
|
|
5299
|
+
},
|
|
5300
|
+
onChange: function onChange(v) {
|
|
5301
|
+
_onChange(v);
|
|
5302
|
+
}
|
|
5303
|
+
}), source.map(function (res) {
|
|
5304
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
5305
|
+
value: res.value
|
|
5306
|
+
}, res.text);
|
|
5307
|
+
}));
|
|
5221
5308
|
};
|
|
5222
5309
|
|
|
5223
5310
|
var Option$1 = antd.Select.Option;
|
|
5224
5311
|
var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
5225
|
-
var _pathname$match
|
|
5312
|
+
var _pathname$match;
|
|
5226
5313
|
var value = props.value,
|
|
5227
5314
|
onChangeTemp = props.onChange,
|
|
5228
5315
|
_props$selectProps = props.selectProps,
|
|
@@ -5231,7 +5318,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5231
5318
|
modalTableProps = _props$modalTableProp === void 0 ? {} : _props$modalTableProp,
|
|
5232
5319
|
_props$labelInValue = props.labelInValue,
|
|
5233
5320
|
labelInValue = _props$labelInValue === void 0 ? false : _props$labelInValue,
|
|
5234
|
-
|
|
5321
|
+
needTopSelectedSource = props.needTopSelectedSource,
|
|
5322
|
+
rCTemp = props.requestConfig,
|
|
5235
5323
|
ctx = props.ctx,
|
|
5236
5324
|
_props$onlyShowStr = props.onlyShowStr,
|
|
5237
5325
|
sourceName = props.sourceName,
|
|
@@ -5243,7 +5331,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5243
5331
|
fieldComponent = props.fieldComponent,
|
|
5244
5332
|
onSaveCallback = props.onSaveCallback,
|
|
5245
5333
|
selectBusinessType = props.selectBusinessType;
|
|
5246
|
-
var _ref =
|
|
5334
|
+
var _ref = rCTemp || {},
|
|
5247
5335
|
url = _ref.url,
|
|
5248
5336
|
_ref$method = _ref.method,
|
|
5249
5337
|
method = _ref$method === void 0 ? 'get' : _ref$method,
|
|
@@ -5270,6 +5358,26 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5270
5358
|
noOperate = _ref.noOperate,
|
|
5271
5359
|
viewShowValueStr = _ref.viewShowValueStr,
|
|
5272
5360
|
searchStartLength = _ref.searchStartLength;
|
|
5361
|
+
var requestConfig = _objectSpread2({
|
|
5362
|
+
url: url,
|
|
5363
|
+
method: method,
|
|
5364
|
+
otherParams: otherParams,
|
|
5365
|
+
isMap: isMap,
|
|
5366
|
+
fixedparameter: fixedparameter,
|
|
5367
|
+
fieldValToParam: fieldValToParam,
|
|
5368
|
+
fixedparamsDisabled: fixedparamsDisabled,
|
|
5369
|
+
mappingTextField: mappingTextField,
|
|
5370
|
+
mappingTextShowKeyField: mappingTextShowKeyField,
|
|
5371
|
+
mappingValueField: mappingValueField,
|
|
5372
|
+
mappingTextShowTextField: mappingTextShowTextField,
|
|
5373
|
+
init: init,
|
|
5374
|
+
extralHeaders: extralHeaders,
|
|
5375
|
+
specialBracket: specialBracket,
|
|
5376
|
+
noNeedSplit: noNeedSplit,
|
|
5377
|
+
noOperate: noOperate,
|
|
5378
|
+
viewShowValueStr: viewShowValueStr,
|
|
5379
|
+
searchStartLength: searchStartLength
|
|
5380
|
+
}, rCTemp);
|
|
5273
5381
|
var resultSourceKey = handleSourceName(sourceName || (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'supplierCode');
|
|
5274
5382
|
var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
|
|
5275
5383
|
var initVal = value || (selectMode ? [] : null);
|
|
@@ -5304,7 +5412,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5304
5412
|
total: 0,
|
|
5305
5413
|
current: 1
|
|
5306
5414
|
});
|
|
5307
|
-
var disabled = noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5415
|
+
var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
|
|
5308
5416
|
var isHaveDependency = fixedparameter && fieldValToParam && ctx;
|
|
5309
5417
|
var isHaveDValue = function isHaveDValue() {
|
|
5310
5418
|
var formValueList = [];
|
|
@@ -5425,14 +5533,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5425
5533
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5426
5534
|
tooltipVisible = _useState40[0],
|
|
5427
5535
|
setTooltipVisible = _useState40[1];
|
|
5428
|
-
var _useState41 = React$1.useState((modalTableProps === null || modalTableProps === void 0 ? void 0 :
|
|
5429
|
-
return typeof s.defaultSort == 'number';
|
|
5430
|
-
})) === null || _modalTableProps$tabl2 === void 0 ? void 0 : _modalTableProps$tabl2.sort(function (a, b) {
|
|
5431
|
-
return a.defaultSort - b.defaultSort;
|
|
5432
|
-
})) || []),
|
|
5536
|
+
var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5433
5537
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5434
5538
|
tableShowColumns = _useState42[0],
|
|
5435
|
-
setTabletShowColumns = _useState42[1];
|
|
5539
|
+
setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5436
5540
|
var _useState43 = React$1.useState(false),
|
|
5437
5541
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5438
5542
|
confirmLoading = _useState44[0],
|
|
@@ -5490,6 +5594,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5490
5594
|
});
|
|
5491
5595
|
// 获取数据源 (type: 1下拉框 2/3弹框 不传值默认为下拉框)
|
|
5492
5596
|
var getData = function getData() {
|
|
5597
|
+
var _method$toLocaleLower;
|
|
5493
5598
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
5494
5599
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
5495
5600
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
@@ -5529,11 +5634,12 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5529
5634
|
pageSize: pageSize,
|
|
5530
5635
|
currentPage: currentPage
|
|
5531
5636
|
}, otherParams), fixedParam), params);
|
|
5532
|
-
if (_.isNil(queryParams[selectParamsKey])) {
|
|
5533
|
-
|
|
5637
|
+
if (_.isNil(queryParams[selectParamsKey]) && (searchValue === null || searchValue === void 0 ? void 0 : searchValue.length)) {
|
|
5638
|
+
var _searchValue$trim;
|
|
5639
|
+
queryParams[selectParamsKey] = searchValue === null || searchValue === void 0 ? void 0 : (_searchValue$trim = searchValue.trim) === null || _searchValue$trim === void 0 ? void 0 : _searchValue$trim.call(searchValue);
|
|
5534
5640
|
}
|
|
5535
5641
|
var getRequest;
|
|
5536
|
-
var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
|
|
5642
|
+
var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
|
|
5537
5643
|
if (['post', 'patch', 'put'].includes(methodName)) {
|
|
5538
5644
|
getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams));
|
|
5539
5645
|
} else {
|
|
@@ -5556,7 +5662,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5556
5662
|
value: value,
|
|
5557
5663
|
type: type,
|
|
5558
5664
|
items: items,
|
|
5559
|
-
queryParams: queryParams
|
|
5665
|
+
queryParams: queryParams,
|
|
5666
|
+
needTopSelectedSource: needTopSelectedSource
|
|
5560
5667
|
});
|
|
5561
5668
|
if (callback) {
|
|
5562
5669
|
callback(source);
|
|
@@ -5633,6 +5740,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5633
5740
|
}, [value]);
|
|
5634
5741
|
React$1.useEffect(function () {
|
|
5635
5742
|
setUniqueValue(makeUniqueValue());
|
|
5743
|
+
setTabletShowColumns(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns));
|
|
5636
5744
|
}, [resultSourceKey]);
|
|
5637
5745
|
React$1.useEffect(function () {
|
|
5638
5746
|
if (init) {
|
|
@@ -5793,7 +5901,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5793
5901
|
}
|
|
5794
5902
|
};
|
|
5795
5903
|
var onSearchChange = function onSearchChange(v) {
|
|
5796
|
-
|
|
5904
|
+
var _v$trim;
|
|
5905
|
+
setSearchValue((v === null || v === void 0 ? void 0 : (_v$trim = v.trim) === null || _v$trim === void 0 ? void 0 : _v$trim.call(v)) || '');
|
|
5797
5906
|
if (!!searchStartLength && (v === null || v === void 0 ? void 0 : v.length) < searchStartLength) return;
|
|
5798
5907
|
refreshItems();
|
|
5799
5908
|
};
|
|
@@ -5884,7 +5993,6 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5884
5993
|
};
|
|
5885
5994
|
var formItem = function formItem(list) {
|
|
5886
5995
|
if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
|
|
5887
|
-
var _list$concat;
|
|
5888
5996
|
var setDisabled = function setDisabled(name) {
|
|
5889
5997
|
if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
|
|
5890
5998
|
return item === name;
|
|
@@ -5894,15 +6002,17 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5894
6002
|
return false;
|
|
5895
6003
|
}
|
|
5896
6004
|
};
|
|
5897
|
-
var _getFormRowInfo = getFormRowInfo(list),
|
|
5898
|
-
emptyArray = _getFormRowInfo.emptyArray
|
|
6005
|
+
var _getFormRowInfo = getFormRowInfo(list, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan),
|
|
6006
|
+
emptyArray = _getFormRowInfo.emptyArray,
|
|
6007
|
+
ColSpan = _getFormRowInfo.ColSpan;
|
|
5899
6008
|
var addKong = (emptyArray === null || emptyArray === void 0 ? void 0 : emptyArray.map(function (i) {
|
|
5900
6009
|
return {
|
|
5901
6010
|
type: 'kong'
|
|
5902
6011
|
};
|
|
5903
6012
|
})) || [];
|
|
5904
|
-
|
|
5905
|
-
|
|
6013
|
+
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6014
|
+
return searchList.map(function (i, index) {
|
|
6015
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
|
|
5906
6016
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5907
6017
|
span: ColSpan,
|
|
5908
6018
|
key: i
|
|
@@ -5951,7 +6061,44 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5951
6061
|
disabled: setDisabled(i.name)
|
|
5952
6062
|
}))));
|
|
5953
6063
|
}
|
|
5954
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === '
|
|
6064
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'rangepicker' || (i === null || i === void 0 ? void 0 : (_i$field5 = i.field) === null || _i$field5 === void 0 ? void 0 : _i$field5.type) === 'rangepicker') {
|
|
6065
|
+
var _i$initialValue, _i$field6;
|
|
6066
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6067
|
+
span: ColSpan,
|
|
6068
|
+
key: i.name
|
|
6069
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
6070
|
+
name: i.name,
|
|
6071
|
+
label: i.label,
|
|
6072
|
+
key: i.name,
|
|
6073
|
+
initialValue: (_i$initialValue = i === null || i === void 0 ? void 0 : i.initialValue) !== null && _i$initialValue !== void 0 ? _i$initialValue : []
|
|
6074
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.DatePicker.RangePicker, _objectSpread2(_objectSpread2({
|
|
6075
|
+
style: {
|
|
6076
|
+
width: '100%'
|
|
6077
|
+
},
|
|
6078
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6079
|
+
}, i === null || i === void 0 ? void 0 : (_i$field6 = i.field) === null || _i$field6 === void 0 ? void 0 : _i$field6.props), {}, {
|
|
6080
|
+
disabled: setDisabled(i.name)
|
|
6081
|
+
}))));
|
|
6082
|
+
}
|
|
6083
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'datepicker' || (i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.type) === 'datepicker') {
|
|
6084
|
+
var _i$field8;
|
|
6085
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6086
|
+
span: ColSpan,
|
|
6087
|
+
key: i.name
|
|
6088
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
6089
|
+
name: i.name,
|
|
6090
|
+
label: i.label,
|
|
6091
|
+
key: i.name
|
|
6092
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.DatePicker, _objectSpread2(_objectSpread2({
|
|
6093
|
+
style: {
|
|
6094
|
+
width: '100%'
|
|
6095
|
+
},
|
|
6096
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6097
|
+
}, i === null || i === void 0 ? void 0 : (_i$field8 = i.field) === null || _i$field8 === void 0 ? void 0 : _i$field8.props), {}, {
|
|
6098
|
+
disabled: setDisabled(i.name)
|
|
6099
|
+
}))));
|
|
6100
|
+
}
|
|
6101
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'businessSearchSelect' || (i === null || i === void 0 ? void 0 : (_i$field9 = i.field) === null || _i$field9 === void 0 ? void 0 : _i$field9.type) === 'businessSearchSelect') {
|
|
5955
6102
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5956
6103
|
span: ColSpan,
|
|
5957
6104
|
key: i.name
|
|
@@ -5963,7 +6110,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5963
6110
|
disabled: setDisabled(i.name)
|
|
5964
6111
|
}))));
|
|
5965
6112
|
}
|
|
5966
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6113
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
|
|
5967
6114
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5968
6115
|
span: ColSpan,
|
|
5969
6116
|
key: i.name
|
|
@@ -5977,7 +6124,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5977
6124
|
}
|
|
5978
6125
|
})));
|
|
5979
6126
|
}
|
|
5980
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6127
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
|
|
5981
6128
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5982
6129
|
span: ColSpan,
|
|
5983
6130
|
key: i.name
|
|
@@ -5987,7 +6134,23 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5987
6134
|
key: i.name
|
|
5988
6135
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
5989
6136
|
}
|
|
5990
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6137
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
|
|
6138
|
+
var _i$field13;
|
|
6139
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6140
|
+
span: ColSpan,
|
|
6141
|
+
key: i.name
|
|
6142
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
|
|
6143
|
+
name: i.name,
|
|
6144
|
+
label: i.label,
|
|
6145
|
+
key: i.name
|
|
6146
|
+
}, /*#__PURE__*/React__default['default'].createElement(ItemPropertySelector, _objectSpread2({
|
|
6147
|
+
style: {
|
|
6148
|
+
width: '100%'
|
|
6149
|
+
},
|
|
6150
|
+
placeholder: "\u8BF7\u9009\u62E9"
|
|
6151
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
|
|
6152
|
+
}
|
|
6153
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
|
|
5991
6154
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
5992
6155
|
span: ColSpan,
|
|
5993
6156
|
key: i.name
|
|
@@ -6016,7 +6179,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6016
6179
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6017
6180
|
allowClear: true,
|
|
6018
6181
|
maxLength: 100
|
|
6019
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6182
|
+
}, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
|
|
6020
6183
|
disabled: setDisabled(i.name)
|
|
6021
6184
|
}))));
|
|
6022
6185
|
});
|
|
@@ -6028,9 +6191,20 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6028
6191
|
var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
|
|
6029
6192
|
return collapsed ? formItem(list === null || list === void 0 ? void 0 : list.slice(0, viCount)) : formItem(list);
|
|
6030
6193
|
};
|
|
6194
|
+
var renderEmptyText = function renderEmptyText(text, x) {
|
|
6195
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Empty, {
|
|
6196
|
+
image: antd.Empty.PRESENTED_IMAGE_SIMPLE,
|
|
6197
|
+
description: text,
|
|
6198
|
+
style: {
|
|
6199
|
+
margin: "".concat(x, " 0px")
|
|
6200
|
+
}
|
|
6201
|
+
});
|
|
6202
|
+
};
|
|
6031
6203
|
var renderShowTable = function renderShowTable(tableList, type) {
|
|
6032
6204
|
var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
|
|
6033
|
-
var
|
|
6205
|
+
var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
|
|
6206
|
+
var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
|
|
6207
|
+
var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
|
|
6034
6208
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6035
6209
|
style: {
|
|
6036
6210
|
height: "calc(100vh - ".concat(tableBoxHeighth, "px)")
|
|
@@ -6046,14 +6220,14 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6046
6220
|
showSizeChanger: false
|
|
6047
6221
|
}),
|
|
6048
6222
|
locale: {
|
|
6049
|
-
emptyText: '暂无已选结果'
|
|
6223
|
+
emptyText: renderEmptyText('暂无已选结果', mTB)
|
|
6050
6224
|
}
|
|
6051
6225
|
} : {
|
|
6052
6226
|
pagination: tablePagination,
|
|
6053
6227
|
onChange: handleTableChange,
|
|
6054
6228
|
loading: fetching,
|
|
6055
6229
|
locale: {
|
|
6056
|
-
emptyText: modalSearched ? '
|
|
6230
|
+
emptyText: modalSearched ? renderEmptyText('匹配结果,请更换其他内容再试', mTB) : renderEmptyText('请输入搜索条件', mTB)
|
|
6057
6231
|
}
|
|
6058
6232
|
}), {}, {
|
|
6059
6233
|
rowKey: mappingValueField,
|
|
@@ -6198,59 +6372,36 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6198
6372
|
}
|
|
6199
6373
|
})));
|
|
6200
6374
|
};
|
|
6201
|
-
var getShowLabelTextStr = function getShowLabelTextStr(kongValue) {
|
|
6202
|
-
if (selectMode) {
|
|
6203
|
-
var _value$map;
|
|
6204
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map = value.map(function (item) {
|
|
6205
|
-
return item.label || item.text || '';
|
|
6206
|
-
})) === null || _value$map === void 0 ? void 0 : _value$map.join(',')) || kongValue;
|
|
6207
|
-
}
|
|
6208
|
-
return (value === null || value === void 0 ? void 0 : value.label) || (value === null || value === void 0 ? void 0 : value.text) || kongValue;
|
|
6209
|
-
};
|
|
6210
|
-
var getSelectValueText = function getSelectValueText(v) {
|
|
6211
|
-
var _filter, _filter$;
|
|
6212
|
-
return ((_filter = (items || []).filter(function (item) {
|
|
6213
|
-
return item.value === v;
|
|
6214
|
-
})) === null || _filter === void 0 ? void 0 : (_filter$ = _filter[0]) === null || _filter$ === void 0 ? void 0 : _filter$.text) || v || '';
|
|
6215
|
-
};
|
|
6216
|
-
var getShowValueStr = function getShowValueStr(kongValue) {
|
|
6217
|
-
if (selectMode) {
|
|
6218
|
-
var _value$map2;
|
|
6219
|
-
return Array.isArray(value) && (value === null || value === void 0 ? void 0 : (_value$map2 = value.map(function (item) {
|
|
6220
|
-
return getSelectValueText(item);
|
|
6221
|
-
})) === null || _value$map2 === void 0 ? void 0 : _value$map2.join(',')) || kongValue;
|
|
6222
|
-
}
|
|
6223
|
-
return getSelectValueText(value) || kongValue;
|
|
6224
|
-
};
|
|
6225
|
-
var getShowStr = function getShowStr() {
|
|
6226
|
-
// 优先使用业务使用传入的展示
|
|
6227
|
-
if (viewShowValueStr) return viewShowValueStr;
|
|
6228
|
-
var kongValue = '无';
|
|
6229
|
-
// 先判断labelInValue与否,labelInValue可以直接去value中获取字段名称,否则去下拉框数据里面去拿;
|
|
6230
|
-
// 再判断是单选还是多选,数据类型不同取值方式也不同
|
|
6231
|
-
if (labelInValue) {
|
|
6232
|
-
return getShowLabelTextStr(kongValue);
|
|
6233
|
-
}
|
|
6234
|
-
return getShowValueStr(kongValue);
|
|
6235
|
-
};
|
|
6236
6375
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
6237
6376
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6238
6377
|
className: 'search_select'
|
|
6239
|
-
}, fieldComponent ? (
|
|
6378
|
+
}, fieldComponent ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6240
6379
|
onClick: function onClick() {
|
|
6241
6380
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
6242
6381
|
(_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);
|
|
6243
6382
|
showModal();
|
|
6244
6383
|
}
|
|
6245
|
-
}, fieldComponent)) : isShouldShowStr ? (
|
|
6246
|
-
title: getShowStr(
|
|
6384
|
+
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6385
|
+
title: getShowStr({
|
|
6386
|
+
viewShowValueStr: viewShowValueStr,
|
|
6387
|
+
labelInValue: labelInValue,
|
|
6388
|
+
selectMode: selectMode,
|
|
6389
|
+
value: value,
|
|
6390
|
+
items: items
|
|
6391
|
+
}),
|
|
6247
6392
|
style: {
|
|
6248
6393
|
overflow: 'hidden',
|
|
6249
6394
|
textOverflow: 'ellipsis',
|
|
6250
6395
|
whiteSpace: 'nowrap'
|
|
6251
6396
|
},
|
|
6252
6397
|
className: 'search_select_show'
|
|
6253
|
-
}, getShowStr(
|
|
6398
|
+
}, getShowStr({
|
|
6399
|
+
viewShowValueStr: viewShowValueStr,
|
|
6400
|
+
labelInValue: labelInValue,
|
|
6401
|
+
selectMode: selectMode,
|
|
6402
|
+
value: value,
|
|
6403
|
+
items: items
|
|
6404
|
+
}))) : /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6254
6405
|
className: "".concat(isFormPage ? '' : 'search_select_show_list', " search_select_show"),
|
|
6255
6406
|
id: "search_select_div_".concat(uniqueValue)
|
|
6256
6407
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
@@ -6269,10 +6420,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6269
6420
|
dropdownRender: function dropdownRender(menu) {
|
|
6270
6421
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
6271
6422
|
},
|
|
6272
|
-
notFoundContent: fetching ? (
|
|
6423
|
+
notFoundContent: fetching ? (/*#__PURE__*/React__default['default'].createElement(antd.Spin, {
|
|
6273
6424
|
size: "small",
|
|
6274
6425
|
className: 'searchSelectSpin'
|
|
6275
|
-
})) : (
|
|
6426
|
+
})) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6276
6427
|
style: {
|
|
6277
6428
|
textAlign: 'center'
|
|
6278
6429
|
}
|
|
@@ -6312,10 +6463,10 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6312
6463
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6313
6464
|
filterTxt: searchValue
|
|
6314
6465
|
}));
|
|
6315
|
-
}))), needModalTable && isModalVisible && (
|
|
6466
|
+
}))), needModalTable && isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
6316
6467
|
maskClosable: false,
|
|
6317
6468
|
destroyOnClose: true,
|
|
6318
|
-
width: "
|
|
6469
|
+
width: "calc(100% - 320px)",
|
|
6319
6470
|
title: modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.modalTableTitle,
|
|
6320
6471
|
visible: isModalVisible,
|
|
6321
6472
|
confirmLoading: confirmLoading,
|
|
@@ -6348,17 +6499,19 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6348
6499
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
6349
6500
|
key: "search",
|
|
6350
6501
|
type: "primary",
|
|
6351
|
-
onClick: onSearchTable
|
|
6502
|
+
onClick: onSearchTable,
|
|
6503
|
+
disabled: fetching
|
|
6352
6504
|
}, "\u67E5\u8BE2 Enter"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
6353
6505
|
key: "reset",
|
|
6354
|
-
onClick: onResetTable
|
|
6506
|
+
onClick: onResetTable,
|
|
6507
|
+
disabled: fetching
|
|
6355
6508
|
}, "\u91CD\u7F6E ctrl+U"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6356
6509
|
style: {
|
|
6357
6510
|
position: 'absolute',
|
|
6358
6511
|
top: 0,
|
|
6359
6512
|
right: 0
|
|
6360
6513
|
}
|
|
6361
|
-
}, hasMoreQueryFields(modalTableProps)
|
|
6514
|
+
}, hasMoreQueryFields(modalTableProps) ? /*#__PURE__*/React__default['default'].createElement("img", {
|
|
6362
6515
|
onClick: function onClick() {
|
|
6363
6516
|
toggleCollapsed();
|
|
6364
6517
|
},
|
|
@@ -6407,7 +6560,7 @@ var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20enc
|
|
|
6407
6560
|
var css_248z$9 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
6408
6561
|
styleInject(css_248z$9);
|
|
6409
6562
|
|
|
6410
|
-
var _excluded$
|
|
6563
|
+
var _excluded$5 = ["className", "style"];
|
|
6411
6564
|
var Search = antd.Input.Search;
|
|
6412
6565
|
var DragHandle = reactSortableHoc.SortableHandle(function () {
|
|
6413
6566
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
@@ -6759,7 +6912,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6759
6912
|
_this.DraggableBodyRow = function (_ref2) {
|
|
6760
6913
|
var className = _ref2.className,
|
|
6761
6914
|
style = _ref2.style,
|
|
6762
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
6915
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
6763
6916
|
var sortDataSource = _this.state.sortDataSource;
|
|
6764
6917
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
6765
6918
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -6909,7 +7062,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6909
7062
|
style: {
|
|
6910
7063
|
width: 525
|
|
6911
7064
|
}
|
|
6912
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
7065
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
6913
7066
|
checked: !dataSource.some(function (item) {
|
|
6914
7067
|
if (item.hidden) return true;
|
|
6915
7068
|
return false;
|
|
@@ -6947,13 +7100,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6947
7100
|
_this2.onChange(e, item.title);
|
|
6948
7101
|
}
|
|
6949
7102
|
}, item.title);
|
|
6950
|
-
}), !!seatchDataSource.length && (
|
|
7103
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
6951
7104
|
style: {
|
|
6952
7105
|
width: '144px'
|
|
6953
7106
|
}
|
|
6954
|
-
})), !seatchDataSource.length && (
|
|
7107
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
6955
7108
|
className: 'sort_table_column_all_empty'
|
|
6956
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
7109
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6957
7110
|
className: 'sort_table_column_special'
|
|
6958
7111
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
6959
7112
|
className: 'sort_table_column_all'
|
|
@@ -7142,7 +7295,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
7142
7295
|
});
|
|
7143
7296
|
};
|
|
7144
7297
|
// 格式化树选择器数据源
|
|
7145
|
-
var
|
|
7298
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
7146
7299
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
7147
7300
|
return {
|
|
7148
7301
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -7152,7 +7305,7 @@ var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
7152
7305
|
isLeaf: !haveChildren,
|
|
7153
7306
|
disabled: haveChildren,
|
|
7154
7307
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
7155
|
-
return
|
|
7308
|
+
return _mapSearchTree(i, resKeyValue);
|
|
7156
7309
|
}) : []
|
|
7157
7310
|
};
|
|
7158
7311
|
};
|
|
@@ -7161,7 +7314,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
7161
7314
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
7162
7315
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
7163
7316
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
7164
|
-
return
|
|
7317
|
+
return _mapSearchTree(ites, resKeyValue);
|
|
7165
7318
|
}) || [];
|
|
7166
7319
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
7167
7320
|
};
|
|
@@ -7178,7 +7331,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
7178
7331
|
});
|
|
7179
7332
|
};
|
|
7180
7333
|
|
|
7181
|
-
var _excluded$
|
|
7334
|
+
var _excluded$6 = ["onResize", "width"],
|
|
7182
7335
|
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
7183
7336
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
7184
7337
|
return new Promise(function (resolve, reject) {
|
|
@@ -7198,7 +7351,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
7198
7351
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
7199
7352
|
var onResize = props.onResize,
|
|
7200
7353
|
width = props.width,
|
|
7201
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
7354
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
7202
7355
|
if (!width) {
|
|
7203
7356
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
7204
7357
|
}
|
|
@@ -7243,6 +7396,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7243
7396
|
clearTitle = props.clearTitle;
|
|
7244
7397
|
var _ref = requestConfig || {},
|
|
7245
7398
|
url = _ref.url,
|
|
7399
|
+
sourceKey = _ref.sourceKey,
|
|
7246
7400
|
otherParams = _ref.otherParams,
|
|
7247
7401
|
isMap = _ref.isMap,
|
|
7248
7402
|
_ref$mappingValueFiel = _ref.mappingValueField,
|
|
@@ -7332,7 +7486,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7332
7486
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7333
7487
|
// FIXME: 特殊业务逻辑
|
|
7334
7488
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7335
|
-
var _ref2 = _asyncToGenerator(
|
|
7489
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7336
7490
|
var result;
|
|
7337
7491
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7338
7492
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7585,7 +7739,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7585
7739
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7586
7740
|
value: text || null,
|
|
7587
7741
|
onChange: function () {
|
|
7588
|
-
var _onChange = _asyncToGenerator(
|
|
7742
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7589
7743
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7590
7744
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7591
7745
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7835,7 +7989,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7835
7989
|
};
|
|
7836
7990
|
});
|
|
7837
7991
|
} else {
|
|
7838
|
-
var keys = res.list ? 'list' : 'items';
|
|
7992
|
+
var keys = sourceKey ? sourceKey : res.list ? 'list' : 'items';
|
|
7839
7993
|
source = res ? res[keys] ? res[keys].map(function (item) {
|
|
7840
7994
|
var _item$packingUnitList, _item$packingUnitList2;
|
|
7841
7995
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -8193,10 +8347,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8193
8347
|
var newColumns = arr.map(function (col) {
|
|
8194
8348
|
return _objectSpread2({}, col);
|
|
8195
8349
|
});
|
|
8196
|
-
var
|
|
8350
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
8197
8351
|
var i = indexArr.shift();
|
|
8198
8352
|
if (indexArr.length > 0) {
|
|
8199
|
-
|
|
8353
|
+
_handleIndex(arr[i].children, indexArr);
|
|
8200
8354
|
} else {
|
|
8201
8355
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8202
8356
|
width: size.width
|
|
@@ -8204,7 +8358,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8204
8358
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8205
8359
|
}
|
|
8206
8360
|
};
|
|
8207
|
-
|
|
8361
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
8208
8362
|
callback(newColumns);
|
|
8209
8363
|
};
|
|
8210
8364
|
};
|
|
@@ -8214,13 +8368,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
8214
8368
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
8215
8369
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
8216
8370
|
};
|
|
8217
|
-
var
|
|
8371
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8218
8372
|
arr.forEach(function (item, index) {
|
|
8219
8373
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8220
8374
|
return i || i === 0;
|
|
8221
8375
|
});
|
|
8222
8376
|
if (noEmptyArray$1(item.children)) {
|
|
8223
|
-
|
|
8377
|
+
_handleColumns(item.children, indexArrInside);
|
|
8224
8378
|
} else {
|
|
8225
8379
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8226
8380
|
item.onHeaderCell = function (column) {
|
|
@@ -8236,14 +8390,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
8236
8390
|
handleAntdColumnsSpecialParams(item);
|
|
8237
8391
|
return _objectSpread2({}, item);
|
|
8238
8392
|
});
|
|
8239
|
-
|
|
8393
|
+
_handleColumns(showToChooseCol, [], function (res) {
|
|
8240
8394
|
return setShowToChooseColumnsCallback(res);
|
|
8241
8395
|
});
|
|
8242
8396
|
var showSelectedCol = showColumns.map(function (item) {
|
|
8243
8397
|
handleAntdColumnsSpecialParams(item);
|
|
8244
8398
|
return _objectSpread2({}, item);
|
|
8245
8399
|
});
|
|
8246
|
-
|
|
8400
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
8247
8401
|
return setShowColumnsCallback(res);
|
|
8248
8402
|
});
|
|
8249
8403
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -8254,8 +8408,8 @@ var AddSelect = function AddSelect(props) {
|
|
|
8254
8408
|
id: "add_select_div_".concat(uniqueValue)
|
|
8255
8409
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
8256
8410
|
onClick: handleShowModal
|
|
8257
|
-
}, realButtonProps), buttonText)), isModalVisible && (
|
|
8258
|
-
width:
|
|
8411
|
+
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
8412
|
+
width: "calc(100% - 320px)",
|
|
8259
8413
|
style: {
|
|
8260
8414
|
top: 20
|
|
8261
8415
|
},
|
|
@@ -8430,7 +8584,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
8430
8584
|
var css_248z$a = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
|
|
8431
8585
|
styleInject(css_248z$a);
|
|
8432
8586
|
|
|
8433
|
-
var _excluded$
|
|
8587
|
+
var _excluded$7 = ["onResize", "width"];
|
|
8434
8588
|
var _this = undefined;
|
|
8435
8589
|
var InputElement = function InputElement(_ref) {
|
|
8436
8590
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -8928,7 +9082,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
8928
9082
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
8929
9083
|
var onResize = props.onResize,
|
|
8930
9084
|
width = props.width,
|
|
8931
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
9085
|
+
restProps = _objectWithoutProperties(props, _excluded$7);
|
|
8932
9086
|
if (!width) {
|
|
8933
9087
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
8934
9088
|
}
|
|
@@ -9168,7 +9322,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9168
9322
|
});
|
|
9169
9323
|
};
|
|
9170
9324
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9171
|
-
var _ref4 = _asyncToGenerator(
|
|
9325
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9172
9326
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9173
9327
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9174
9328
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9251,10 +9405,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9251
9405
|
var newColumns = arr.map(function (col) {
|
|
9252
9406
|
return _objectSpread2({}, col);
|
|
9253
9407
|
});
|
|
9254
|
-
var
|
|
9408
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
9255
9409
|
var i = indexArr.shift();
|
|
9256
9410
|
if (indexArr.length > 0) {
|
|
9257
|
-
|
|
9411
|
+
_handleIndex(arr[i].children, indexArr);
|
|
9258
9412
|
} else {
|
|
9259
9413
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
9260
9414
|
width: size.width
|
|
@@ -9262,17 +9416,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9262
9416
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
9263
9417
|
}
|
|
9264
9418
|
};
|
|
9265
|
-
|
|
9419
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
9266
9420
|
callback(newColumns);
|
|
9267
9421
|
};
|
|
9268
9422
|
};
|
|
9269
|
-
var
|
|
9423
|
+
var _handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
9270
9424
|
arr.forEach(function (item, index) {
|
|
9271
9425
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
9272
9426
|
return i || i === 0;
|
|
9273
9427
|
});
|
|
9274
9428
|
if (noEmptyArray$1(item.children)) {
|
|
9275
|
-
|
|
9429
|
+
_handleColumns(item.children, indexArrInside);
|
|
9276
9430
|
} else {
|
|
9277
9431
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
9278
9432
|
item.onHeaderCell = function (column) {
|
|
@@ -9288,7 +9442,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9288
9442
|
handleAntdColumnsSpecialParams(item);
|
|
9289
9443
|
return _objectSpread2({}, item);
|
|
9290
9444
|
});
|
|
9291
|
-
|
|
9445
|
+
_handleColumns(showSelectedCol, [], function (res) {
|
|
9292
9446
|
return setShowColumnsCallback(res);
|
|
9293
9447
|
});
|
|
9294
9448
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -9498,6 +9652,7 @@ var handleDefaultPrefixUrl = function handleDefaultPrefixUrl(type) {
|
|
|
9498
9652
|
case 'spuCommodity':
|
|
9499
9653
|
case 'skcCommodity':
|
|
9500
9654
|
case 'brand':
|
|
9655
|
+
case 'spuCommodityWithProperty':
|
|
9501
9656
|
result = '/items';
|
|
9502
9657
|
break;
|
|
9503
9658
|
case 'physicalWarehouse':
|
|
@@ -9603,7 +9758,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9603
9758
|
});
|
|
9604
9759
|
};
|
|
9605
9760
|
// 格式化树选择器数据源
|
|
9606
|
-
var
|
|
9761
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9607
9762
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9608
9763
|
return {
|
|
9609
9764
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9613,7 +9768,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9613
9768
|
isLeaf: !haveChildren,
|
|
9614
9769
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9615
9770
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9616
|
-
return
|
|
9771
|
+
return _mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9617
9772
|
}) : []
|
|
9618
9773
|
};
|
|
9619
9774
|
};
|
|
@@ -9627,7 +9782,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9627
9782
|
disabledJudge = false;
|
|
9628
9783
|
}
|
|
9629
9784
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9630
|
-
return
|
|
9785
|
+
return _mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9631
9786
|
}) || [];
|
|
9632
9787
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9633
9788
|
};
|
|
@@ -9905,7 +10060,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9905
10060
|
sourceName: 'qp-skuCode-in',
|
|
9906
10061
|
specialBracket: true,
|
|
9907
10062
|
otherParams: {
|
|
9908
|
-
'ownOrgSign': getCurrentTargetBgId()
|
|
10063
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
10064
|
+
'ctl-count': true
|
|
9909
10065
|
} // 默认参数
|
|
9910
10066
|
}
|
|
9911
10067
|
}
|
|
@@ -9928,18 +10084,22 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9928
10084
|
mappingTextField: 'name',
|
|
9929
10085
|
mappingValueField: 'itemCode',
|
|
9930
10086
|
sourceName: 'qp-itemCode-in',
|
|
9931
|
-
specialBracket: true
|
|
10087
|
+
specialBracket: true,
|
|
10088
|
+
otherParams: {
|
|
10089
|
+
'ownOrgSign': getCurrentTargetBgId(),
|
|
10090
|
+
'ctl-count': true
|
|
10091
|
+
} // 默认参数
|
|
9932
10092
|
}
|
|
9933
10093
|
}
|
|
9934
10094
|
}
|
|
9935
|
-
},
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
10095
|
+
},
|
|
10096
|
+
// { name: 'qp-eancode-in', label: '商品条码', field: {
|
|
10097
|
+
// type: 'multipleQueryInput',
|
|
10098
|
+
// props: {
|
|
10099
|
+
// ...(requestConfigProp?.itemEancodeValueRequestConfig || {}),
|
|
10100
|
+
// },
|
|
10101
|
+
// }},
|
|
10102
|
+
{
|
|
9943
10103
|
name: 'qp-brandId-in',
|
|
9944
10104
|
type: 'select',
|
|
9945
10105
|
label: '品牌',
|
|
@@ -9999,8 +10159,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9999
10159
|
pageSize: 5000,
|
|
10000
10160
|
currentPage: 1
|
|
10001
10161
|
})]).then(function (x) {
|
|
10002
|
-
formatSource(x, 0,
|
|
10003
|
-
formatTreeDataSource(x, 1,
|
|
10162
|
+
formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
|
|
10163
|
+
formatTreeDataSource(x, 1, 4, tableSearchForm);
|
|
10004
10164
|
});
|
|
10005
10165
|
modalTableProps = _objectSpread2({
|
|
10006
10166
|
modalTableTitle: '选择SKU',
|
|
@@ -10061,6 +10221,144 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10061
10221
|
}
|
|
10062
10222
|
// 商品选择器spu
|
|
10063
10223
|
if (type === 'spuCommodity') {
|
|
10224
|
+
selectProps = _objectSpread2({
|
|
10225
|
+
placeholder: '输入商品(SPU)编码或名称',
|
|
10226
|
+
renderTableColumns: [{
|
|
10227
|
+
title: '商品编码(SPU)',
|
|
10228
|
+
dataIndex: 'itemCode'
|
|
10229
|
+
}, {
|
|
10230
|
+
title: '商品名称(SPU)',
|
|
10231
|
+
dataIndex: 'name'
|
|
10232
|
+
}]
|
|
10233
|
+
}, selectConfigProps);
|
|
10234
|
+
requestConfig = _objectSpread2({
|
|
10235
|
+
url: "".concat(prefixUrl.selectPrefix, "/item"),
|
|
10236
|
+
filter: 'qp-itemCode,name-orGroup,like',
|
|
10237
|
+
mappingTextField: 'name',
|
|
10238
|
+
mappingValueField: 'itemCode',
|
|
10239
|
+
otherParams: _objectSpread2({
|
|
10240
|
+
'qp-approveStatus-eq': 1,
|
|
10241
|
+
sorter: 'desc-id'
|
|
10242
|
+
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10243
|
+
sourceName: 'itemCode'
|
|
10244
|
+
}, requestConfigProp);
|
|
10245
|
+
tableSearchForm = [{
|
|
10246
|
+
name: 'qp-itemCode-like',
|
|
10247
|
+
label: '商品编码(SPU)'
|
|
10248
|
+
}, {
|
|
10249
|
+
name: 'qp-name-like',
|
|
10250
|
+
label: '商品名称(SPU)'
|
|
10251
|
+
}, {
|
|
10252
|
+
name: 'qp-brandId-in',
|
|
10253
|
+
type: 'select',
|
|
10254
|
+
label: '品牌',
|
|
10255
|
+
field: {
|
|
10256
|
+
type: 'select',
|
|
10257
|
+
props: {
|
|
10258
|
+
mode: 'multiple',
|
|
10259
|
+
notFoundContent: '暂无数据',
|
|
10260
|
+
allowClear: true,
|
|
10261
|
+
showSearch: true,
|
|
10262
|
+
showArrow: true,
|
|
10263
|
+
maxTagCount: 1,
|
|
10264
|
+
optionFilterProp: 'children',
|
|
10265
|
+
filterOption: function filterOption(input, option) {
|
|
10266
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10267
|
+
}
|
|
10268
|
+
}
|
|
10269
|
+
}
|
|
10270
|
+
}, {
|
|
10271
|
+
name: 'qp-categoryId-in',
|
|
10272
|
+
type: 'treeSelect',
|
|
10273
|
+
label: '类目',
|
|
10274
|
+
field: {
|
|
10275
|
+
type: 'treeSelect',
|
|
10276
|
+
props: {
|
|
10277
|
+
treeData: [],
|
|
10278
|
+
treeCheckable: true,
|
|
10279
|
+
showSearch: true,
|
|
10280
|
+
allowClear: true,
|
|
10281
|
+
showArrow: true,
|
|
10282
|
+
treeNodeFilterProp: 'title',
|
|
10283
|
+
treeDefaultExpandAll: true,
|
|
10284
|
+
maxTagCount: 1,
|
|
10285
|
+
placeholder: '请选择',
|
|
10286
|
+
style: {
|
|
10287
|
+
width: '100%'
|
|
10288
|
+
},
|
|
10289
|
+
dropdownStyle: {
|
|
10290
|
+
maxHeight: 400,
|
|
10291
|
+
maxWidth: 100,
|
|
10292
|
+
overflow: 'auto'
|
|
10293
|
+
}
|
|
10294
|
+
}
|
|
10295
|
+
}
|
|
10296
|
+
}, {
|
|
10297
|
+
name: 'qp-classId-in',
|
|
10298
|
+
type: 'select',
|
|
10299
|
+
label: '品类',
|
|
10300
|
+
field: {
|
|
10301
|
+
type: 'select',
|
|
10302
|
+
props: {
|
|
10303
|
+
mode: 'multiple',
|
|
10304
|
+
notFoundContent: '暂无数据',
|
|
10305
|
+
allowClear: true,
|
|
10306
|
+
showSearch: true,
|
|
10307
|
+
showArrow: true,
|
|
10308
|
+
maxTagCount: 1,
|
|
10309
|
+
optionFilterProp: 'children',
|
|
10310
|
+
filterOption: function filterOption(input, option) {
|
|
10311
|
+
return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
|
10312
|
+
}
|
|
10313
|
+
}
|
|
10314
|
+
}
|
|
10315
|
+
}];
|
|
10316
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
10317
|
+
pageSize: 5000,
|
|
10318
|
+
currentPage: 1,
|
|
10319
|
+
'ctl-withAuth': true
|
|
10320
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
|
|
10321
|
+
pageSize: 5000,
|
|
10322
|
+
currentPage: 1
|
|
10323
|
+
}), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
|
|
10324
|
+
pageSize: 5000,
|
|
10325
|
+
currentPage: 1
|
|
10326
|
+
})]).then(function (x) {
|
|
10327
|
+
formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
|
|
10328
|
+
formatTreeDataSource(x, 1, 3, tableSearchForm);
|
|
10329
|
+
formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
|
|
10330
|
+
});
|
|
10331
|
+
modalTableProps = _objectSpread2({
|
|
10332
|
+
modalTableTitle: '选择商品(SPU) ',
|
|
10333
|
+
tableSearchForm: tableSearchForm,
|
|
10334
|
+
tableColumns: [{
|
|
10335
|
+
title: '序号',
|
|
10336
|
+
dataIndex: 'keyIndex',
|
|
10337
|
+
defaultSort: 0
|
|
10338
|
+
}, {
|
|
10339
|
+
title: '商品编码(SPU)',
|
|
10340
|
+
dataIndex: 'itemCode',
|
|
10341
|
+
defaultSort: 1
|
|
10342
|
+
}, {
|
|
10343
|
+
title: '商品名称(SPU) ',
|
|
10344
|
+
dataIndex: 'name',
|
|
10345
|
+
defaultSort: 2
|
|
10346
|
+
}, {
|
|
10347
|
+
title: '品牌',
|
|
10348
|
+
dataIndex: 'brandName',
|
|
10349
|
+
defaultSort: 3
|
|
10350
|
+
}, {
|
|
10351
|
+
title: '类目',
|
|
10352
|
+
dataIndex: 'categoryText',
|
|
10353
|
+
defaultSort: 4
|
|
10354
|
+
}, {
|
|
10355
|
+
title: '品类',
|
|
10356
|
+
dataIndex: 'className'
|
|
10357
|
+
}]
|
|
10358
|
+
}, modalTableBusProps);
|
|
10359
|
+
}
|
|
10360
|
+
// 新库存商品选择器spu
|
|
10361
|
+
if (type === 'spuCommodityWithProperty') {
|
|
10064
10362
|
selectProps = _objectSpread2({
|
|
10065
10363
|
placeholder: '输入spu编码或名称',
|
|
10066
10364
|
renderTableColumns: [{
|
|
@@ -10072,12 +10370,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10072
10370
|
}]
|
|
10073
10371
|
}, selectConfigProps);
|
|
10074
10372
|
requestConfig = _objectSpread2({
|
|
10075
|
-
url: "
|
|
10373
|
+
url: "/stock/item/doItemPageAll",
|
|
10374
|
+
method: 'POST',
|
|
10076
10375
|
filter: 'qp-itemCode,name-orGroup,like',
|
|
10077
10376
|
mappingTextField: 'name',
|
|
10078
10377
|
mappingValueField: 'itemCode',
|
|
10079
10378
|
otherParams: _objectSpread2({
|
|
10080
|
-
'qp-approveStatus-eq': 1,
|
|
10379
|
+
// 'qp-approveStatus-eq': 1, // 审核状态(0.待审批;1.审批通过;2.驳回;3.审批未通过)
|
|
10081
10380
|
sorter: 'desc-id'
|
|
10082
10381
|
}, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
|
|
10083
10382
|
sourceName: 'itemCode'
|
|
@@ -10152,6 +10451,56 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10152
10451
|
}
|
|
10153
10452
|
}
|
|
10154
10453
|
}
|
|
10454
|
+
}, {
|
|
10455
|
+
name: 'qp-year-in',
|
|
10456
|
+
label: '年份',
|
|
10457
|
+
field: {
|
|
10458
|
+
type: 'itemPropertySelector',
|
|
10459
|
+
props: {
|
|
10460
|
+
propertyCode: 'SX0000114',
|
|
10461
|
+
mode: 'multiple'
|
|
10462
|
+
}
|
|
10463
|
+
}
|
|
10464
|
+
}, {
|
|
10465
|
+
name: 'qp-season-in',
|
|
10466
|
+
label: '季节',
|
|
10467
|
+
field: {
|
|
10468
|
+
type: 'itemPropertySelector',
|
|
10469
|
+
props: {
|
|
10470
|
+
propertyCode: 'SX0000070',
|
|
10471
|
+
mode: 'multiple'
|
|
10472
|
+
}
|
|
10473
|
+
}
|
|
10474
|
+
}, {
|
|
10475
|
+
name: 'qp-zzdlbm-in',
|
|
10476
|
+
label: '大类',
|
|
10477
|
+
field: {
|
|
10478
|
+
type: 'itemPropertySelector',
|
|
10479
|
+
props: {
|
|
10480
|
+
propertyCode: 'SX0000071',
|
|
10481
|
+
mode: 'multiple'
|
|
10482
|
+
}
|
|
10483
|
+
}
|
|
10484
|
+
}, {
|
|
10485
|
+
name: 'qp-zzzlbm-in',
|
|
10486
|
+
label: '中类',
|
|
10487
|
+
field: {
|
|
10488
|
+
type: 'itemPropertySelector',
|
|
10489
|
+
props: {
|
|
10490
|
+
propertyCode: 'SX0000072',
|
|
10491
|
+
mode: 'multiple'
|
|
10492
|
+
}
|
|
10493
|
+
}
|
|
10494
|
+
}, {
|
|
10495
|
+
name: 'qp-zzxlbm-in',
|
|
10496
|
+
label: '小类',
|
|
10497
|
+
field: {
|
|
10498
|
+
type: 'itemPropertySelector',
|
|
10499
|
+
props: {
|
|
10500
|
+
propertyCode: 'SX0000110',
|
|
10501
|
+
mode: 'multiple'
|
|
10502
|
+
}
|
|
10503
|
+
}
|
|
10155
10504
|
}];
|
|
10156
10505
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
10157
10506
|
pageSize: 5000,
|
|
@@ -10194,7 +10543,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10194
10543
|
}, {
|
|
10195
10544
|
title: '品类',
|
|
10196
10545
|
dataIndex: 'className'
|
|
10197
|
-
}]
|
|
10546
|
+
}],
|
|
10547
|
+
noEmptySearchField: true
|
|
10198
10548
|
}, modalTableBusProps);
|
|
10199
10549
|
}
|
|
10200
10550
|
// 商品选择器skc
|
|
@@ -11199,10 +11549,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11199
11549
|
}, requestConfigProp);
|
|
11200
11550
|
tableSearchForm = [{
|
|
11201
11551
|
name: 'qp-name-like',
|
|
11202
|
-
label: '商店名称'
|
|
11552
|
+
label: '商店名称',
|
|
11553
|
+
type: 'multipleQueryInput'
|
|
11203
11554
|
}, {
|
|
11204
11555
|
name: 'qp-code-like',
|
|
11205
|
-
label: '商店编码'
|
|
11556
|
+
label: '商店编码',
|
|
11557
|
+
type: 'multipleQueryInput'
|
|
11206
11558
|
}, {
|
|
11207
11559
|
name: 'qp-type-in',
|
|
11208
11560
|
type: 'select',
|
|
@@ -13707,16 +14059,18 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13707
14059
|
modalProps = _useState2[0],
|
|
13708
14060
|
setModalProps = _useState2[1];
|
|
13709
14061
|
var handleOk = function handleOk() {
|
|
13710
|
-
var _dataValidationRef$cu;
|
|
14062
|
+
var _dataValidationRef$cu, _dataValidationRef$cu2;
|
|
13711
14063
|
// 方法获取当前组件内部的数据,然后进行自身的业务操作
|
|
13712
|
-
var resultData = (_dataValidationRef$cu = dataValidationRef.current) === null || _dataValidationRef$cu === void 0 ? void 0 : _dataValidationRef$cu.getValidateData();
|
|
13713
|
-
if (
|
|
13714
|
-
|
|
13715
|
-
|
|
13716
|
-
|
|
13717
|
-
|
|
13718
|
-
|
|
13719
|
-
|
|
14064
|
+
var resultData = (props === null || props === void 0 ? void 0 : props.notValid) ? (_dataValidationRef$cu = dataValidationRef.current) === null || _dataValidationRef$cu === void 0 ? void 0 : _dataValidationRef$cu.getData() : (_dataValidationRef$cu2 = dataValidationRef.current) === null || _dataValidationRef$cu2 === void 0 ? void 0 : _dataValidationRef$cu2.getValidateData();
|
|
14065
|
+
if (!!!(props === null || props === void 0 ? void 0 : props.notValid)) {
|
|
14066
|
+
if (!resultData.successData.length) {
|
|
14067
|
+
antd.message.error("无校验通过数据,请校验数据");
|
|
14068
|
+
return;
|
|
14069
|
+
}
|
|
14070
|
+
if (resultData.failData.length) {
|
|
14071
|
+
antd.message.error("\u6709".concat(resultData.failData.length, "\u6761\u6821\u9A8C\u5931\u8D25\u6570\u636E"));
|
|
14072
|
+
return;
|
|
14073
|
+
}
|
|
13720
14074
|
}
|
|
13721
14075
|
callbackHandleOk(resultData, function () {
|
|
13722
14076
|
modalProps.hideModal();
|
|
@@ -13732,7 +14086,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13732
14086
|
};
|
|
13733
14087
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
13734
14088
|
onClick: handleShowModal
|
|
13735
|
-
}, buttonProps), buttonName), modalProps.visible && (
|
|
14089
|
+
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13736
14090
|
onOk: handleOk,
|
|
13737
14091
|
onCancel: handleCancel,
|
|
13738
14092
|
destroyOnClose: true,
|
|
@@ -13796,7 +14150,7 @@ function getStorageVale(storageKeyString) {
|
|
|
13796
14150
|
return "";
|
|
13797
14151
|
}
|
|
13798
14152
|
|
|
13799
|
-
var _excluded$
|
|
14153
|
+
var _excluded$8 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
|
|
13800
14154
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
13801
14155
|
var _useState = React$1.useState([]),
|
|
13802
14156
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -13838,7 +14192,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13838
14192
|
} : _props$style,
|
|
13839
14193
|
getTreeData = props.getTreeData,
|
|
13840
14194
|
disabled = props.disabled,
|
|
13841
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
14195
|
+
restProps = _objectWithoutProperties(props, _excluded$8);
|
|
13842
14196
|
var url = remoteSource.url,
|
|
13843
14197
|
headers = remoteSource.headers,
|
|
13844
14198
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -13851,7 +14205,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13851
14205
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13852
14206
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13853
14207
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13854
|
-
var
|
|
14208
|
+
var _mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13855
14209
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13856
14210
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13857
14211
|
return {
|
|
@@ -13863,7 +14217,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13863
14217
|
isLeaf: !haveChildren,
|
|
13864
14218
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13865
14219
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13866
|
-
return
|
|
14220
|
+
return _mapSearchTree(i);
|
|
13867
14221
|
}) : []
|
|
13868
14222
|
};
|
|
13869
14223
|
};
|
|
@@ -13881,8 +14235,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13881
14235
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13882
14236
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
13883
14237
|
headers: headers
|
|
13884
|
-
}).then(
|
|
13885
|
-
var _ref = _asyncToGenerator(
|
|
14238
|
+
}).then(/*#__PURE__*/function () {
|
|
14239
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13886
14240
|
var _ctx$form;
|
|
13887
14241
|
var resData, coverData, data, dataList;
|
|
13888
14242
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13909,7 +14263,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13909
14263
|
case 9:
|
|
13910
14264
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13911
14265
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13912
|
-
return
|
|
14266
|
+
return _mapSearchTree(ites);
|
|
13913
14267
|
}) || [];
|
|
13914
14268
|
case 11:
|
|
13915
14269
|
_context.next = 14;
|
|
@@ -13947,11 +14301,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13947
14301
|
return _formatResult;
|
|
13948
14302
|
}
|
|
13949
14303
|
};
|
|
13950
|
-
var
|
|
14304
|
+
var _parallelData = function parallelData(data, result) {
|
|
13951
14305
|
data.forEach(function (i) {
|
|
13952
14306
|
result.push(i);
|
|
13953
14307
|
if (i[treeChildrenRoom]) {
|
|
13954
|
-
|
|
14308
|
+
_parallelData(i[treeChildrenRoom], result);
|
|
13955
14309
|
}
|
|
13956
14310
|
});
|
|
13957
14311
|
return result;
|
|
@@ -13991,7 +14345,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13991
14345
|
var _ctx$form2;
|
|
13992
14346
|
var handleData = formatData(data);
|
|
13993
14347
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13994
|
-
var parallelTreeData =
|
|
14348
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
13995
14349
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13996
14350
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13997
14351
|
onChangeName && onChangeName(dataName);
|
|
@@ -14034,7 +14388,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14034
14388
|
var getShowStr = function getShowStr() {
|
|
14035
14389
|
var isMultiple = multiple || treeCheckable;
|
|
14036
14390
|
var kongValue = '无';
|
|
14037
|
-
var parallelTreeData =
|
|
14391
|
+
var parallelTreeData = _parallelData(treeData, []);
|
|
14038
14392
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
14039
14393
|
if (isMultiple) {
|
|
14040
14394
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -14046,7 +14400,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14046
14400
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
14047
14401
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14048
14402
|
className: 'tree_search_select'
|
|
14049
|
-
}, isShouldShowStr ? (
|
|
14403
|
+
}, isShouldShowStr ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14050
14404
|
title: getShowStr(),
|
|
14051
14405
|
style: {
|
|
14052
14406
|
overflow: 'hidden',
|
|
@@ -14054,7 +14408,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
14054
14408
|
whiteSpace: 'nowrap'
|
|
14055
14409
|
},
|
|
14056
14410
|
className: 'search_select_show'
|
|
14057
|
-
}, getShowStr())) : (
|
|
14411
|
+
}, getShowStr())) : (/*#__PURE__*/React__default['default'].createElement(antd.TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
14058
14412
|
treeCheckable: treeCheckable,
|
|
14059
14413
|
maxTagCount: maxTagCount,
|
|
14060
14414
|
showSearch: showSearch,
|
|
@@ -14251,7 +14605,7 @@ var index$2 = (function (props) {
|
|
|
14251
14605
|
} : {}
|
|
14252
14606
|
}, item.text)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14253
14607
|
className: 'status-label-operate'
|
|
14254
|
-
}, item.isDone ? (
|
|
14608
|
+
}, item.isDone ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
14255
14609
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
14256
14610
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14257
14611
|
style: {
|
|
@@ -14264,7 +14618,7 @@ var index$2 = (function (props) {
|
|
|
14264
14618
|
var css_248z$c = ".guide-wrapper .form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.guide-wrapper .form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.guide-wrapper .form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.guide-wrapper .form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .white-card.bitsun-form-card-class .guidewrapper-body-wrapper {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.guide-wrapper .bitsun-form-card-class > .guidewrapper-body-wrapper {\n margin-bottom: 10px;\n}\n.guide-wrapper .bitsun-form-card-class .guidewrapper-body-wrapper {\n padding: 12px 0 0;\n background-color: #F3F3F3;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005cff;\n height: 20px;\n margin-right: 16px;\n}\n.guide-wrapper .field-group-hidden .guidewrapper-body-wrapper {\n display: none !important;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap {\n cursor: pointer;\n color: #B6B6B6;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon {\n transition: transform 0.3s;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.guidewrapper-head-wrap {\n padding-left: 16px;\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: #fff;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left {\n display: flex;\n align-items: center;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left::before {\n content: '';\n display: block;\n width: 3px;\n background: #005cff;\n height: 20px;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left .guidewrapper-head-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n padding: 0 6px;\n}\n.guidewrapper-head-border {\n border-bottom: 1px solid #F0F0F0;\n}\n.guidewrapper-title-extra-wrap {\n padding-left: 5px;\n}\n";
|
|
14265
14619
|
styleInject(css_248z$c);
|
|
14266
14620
|
|
|
14267
|
-
var _excluded$
|
|
14621
|
+
var _excluded$9 = ["children", "titleExtra", "title", "extra", "bordered"],
|
|
14268
14622
|
_excluded2$3 = ["children"];
|
|
14269
14623
|
var Field = function Field(_ref) {
|
|
14270
14624
|
var children = _ref.children,
|
|
@@ -14272,7 +14626,7 @@ var Field = function Field(_ref) {
|
|
|
14272
14626
|
title = _ref.title,
|
|
14273
14627
|
extra = _ref.extra,
|
|
14274
14628
|
bordered = _ref.bordered,
|
|
14275
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14629
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
14276
14630
|
var _React$useState = React__default['default'].useState(true),
|
|
14277
14631
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
14278
14632
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -14399,7 +14753,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
14399
14753
|
var css_248z$d = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
14400
14754
|
styleInject(css_248z$d);
|
|
14401
14755
|
|
|
14402
|
-
var _excluded$
|
|
14756
|
+
var _excluded$a = ["className", "style"];
|
|
14403
14757
|
var Search$1 = antd.Input.Search;
|
|
14404
14758
|
var DragHandle$1 = reactSortableHoc.SortableHandle(function () {
|
|
14405
14759
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
@@ -14817,7 +15171,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14817
15171
|
_this.DraggableBodyRow = function (_ref2) {
|
|
14818
15172
|
var className = _ref2.className,
|
|
14819
15173
|
style = _ref2.style,
|
|
14820
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
15174
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
14821
15175
|
var sortDataSource = _this.state.sortDataSource;
|
|
14822
15176
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
14823
15177
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -15032,7 +15386,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15032
15386
|
style: {
|
|
15033
15387
|
width: 525
|
|
15034
15388
|
}
|
|
15035
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
15389
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
15036
15390
|
checked: !dataSource.some(function (item) {
|
|
15037
15391
|
if (item.hidden) return true;
|
|
15038
15392
|
return false;
|
|
@@ -15070,13 +15424,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15070
15424
|
_this2.onChange(e, item.title);
|
|
15071
15425
|
}
|
|
15072
15426
|
}, item.title);
|
|
15073
|
-
}), !!seatchDataSource.length && (
|
|
15427
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
15074
15428
|
style: {
|
|
15075
15429
|
width: '144px'
|
|
15076
15430
|
}
|
|
15077
|
-
})), !seatchDataSource.length && (
|
|
15431
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
15078
15432
|
className: 'sort_table_column_all_empty'
|
|
15079
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
15433
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15080
15434
|
className: 'sort_table_column_special'
|
|
15081
15435
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15082
15436
|
className: 'sort_table_column_all'
|
|
@@ -15171,7 +15525,7 @@ var TableSumComponent = (function (_ref) {
|
|
|
15171
15525
|
}));
|
|
15172
15526
|
});
|
|
15173
15527
|
|
|
15174
|
-
var _excluded$
|
|
15528
|
+
var _excluded$b = ["onResize", "width"],
|
|
15175
15529
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15176
15530
|
var Text = antd.Typography.Text;
|
|
15177
15531
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15255,10 +15609,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15255
15609
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15256
15610
|
return _objectSpread2({}, col);
|
|
15257
15611
|
});
|
|
15258
|
-
var
|
|
15612
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15259
15613
|
var i = indexArr.shift();
|
|
15260
15614
|
if (indexArr.length > 0) {
|
|
15261
|
-
|
|
15615
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15262
15616
|
} else {
|
|
15263
15617
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15264
15618
|
width: size.width
|
|
@@ -15266,7 +15620,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15266
15620
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
15267
15621
|
}
|
|
15268
15622
|
};
|
|
15269
|
-
|
|
15623
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15270
15624
|
_this.setState({
|
|
15271
15625
|
showColumns: _toConsumableArray(newColumns)
|
|
15272
15626
|
});
|
|
@@ -15275,7 +15629,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15275
15629
|
_this.ResizeableTitle = function (props) {
|
|
15276
15630
|
var onResize = props.onResize,
|
|
15277
15631
|
width = props.width,
|
|
15278
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15632
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
15279
15633
|
var _useState = React$1.useState(width),
|
|
15280
15634
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15281
15635
|
innerWidth = _useState2[0],
|
|
@@ -15307,7 +15661,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15307
15661
|
};
|
|
15308
15662
|
setIsResizing(true);
|
|
15309
15663
|
document.addEventListener('mousemove', handleMouseMove);
|
|
15310
|
-
document.addEventListener('mouseup',
|
|
15664
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
15311
15665
|
};
|
|
15312
15666
|
var handleMouseMove = function handleMouseMove(e) {
|
|
15313
15667
|
e.stopPropagation();
|
|
@@ -15323,9 +15677,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15323
15677
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15324
15678
|
}
|
|
15325
15679
|
};
|
|
15326
|
-
var
|
|
15680
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
15327
15681
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15328
|
-
document.removeEventListener('mouseup',
|
|
15682
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
15329
15683
|
setIsResizing(false);
|
|
15330
15684
|
};
|
|
15331
15685
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15446,13 +15800,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15446
15800
|
showSummary = summary;
|
|
15447
15801
|
}
|
|
15448
15802
|
}
|
|
15449
|
-
var
|
|
15803
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15450
15804
|
arr.forEach(function (item, index) {
|
|
15451
15805
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15452
15806
|
return i || i === 0;
|
|
15453
15807
|
});
|
|
15454
15808
|
if (noEmptyArray$1(item.children)) {
|
|
15455
|
-
|
|
15809
|
+
_handleColumns(item.children, indexArrInside);
|
|
15456
15810
|
} else {
|
|
15457
15811
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15458
15812
|
item.onHeaderCell = function (column) {
|
|
@@ -15468,7 +15822,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15468
15822
|
handleBssulaColumnsSpecialParams(item);
|
|
15469
15823
|
return _objectSpread2({}, item);
|
|
15470
15824
|
});
|
|
15471
|
-
|
|
15825
|
+
_handleColumns(showCol, []);
|
|
15472
15826
|
if (dynamicColumns.length) {
|
|
15473
15827
|
showCol = this.handledynamicColumns(showCol);
|
|
15474
15828
|
}
|
|
@@ -15509,14 +15863,14 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15509
15863
|
cell: this.ResizeableTitle
|
|
15510
15864
|
}
|
|
15511
15865
|
}
|
|
15512
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
15866
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15513
15867
|
summary: summary
|
|
15514
15868
|
})));
|
|
15515
15869
|
}
|
|
15516
15870
|
}]);
|
|
15517
15871
|
}(React__default['default'].Component);
|
|
15518
15872
|
|
|
15519
|
-
var _excluded$
|
|
15873
|
+
var _excluded$c = ["onResize", "width"],
|
|
15520
15874
|
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
15521
15875
|
var Text$1 = antd.Typography.Text;
|
|
15522
15876
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15606,10 +15960,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15606
15960
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15607
15961
|
return _objectSpread2({}, col);
|
|
15608
15962
|
});
|
|
15609
|
-
var
|
|
15963
|
+
var _handleIndex = function handleIndex(arr, indexArr) {
|
|
15610
15964
|
var i = indexArr.shift();
|
|
15611
15965
|
if (indexArr.length > 0) {
|
|
15612
|
-
|
|
15966
|
+
_handleIndex(arr[i].children, indexArr);
|
|
15613
15967
|
} else {
|
|
15614
15968
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15615
15969
|
width: size.width
|
|
@@ -15617,7 +15971,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15617
15971
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15618
15972
|
}
|
|
15619
15973
|
};
|
|
15620
|
-
|
|
15974
|
+
_handleIndex(newColumns, _toConsumableArray(index));
|
|
15621
15975
|
_this.setState({
|
|
15622
15976
|
showColumns: _toConsumableArray(newColumns)
|
|
15623
15977
|
});
|
|
@@ -15626,7 +15980,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15626
15980
|
_this.ResizeableTitle = function (props) {
|
|
15627
15981
|
var onResize = props.onResize,
|
|
15628
15982
|
width = props.width,
|
|
15629
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15983
|
+
restProps = _objectWithoutProperties(props, _excluded$c);
|
|
15630
15984
|
if (!width) {
|
|
15631
15985
|
return /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps));
|
|
15632
15986
|
}
|
|
@@ -15693,13 +16047,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15693
16047
|
showSummary = summary;
|
|
15694
16048
|
}
|
|
15695
16049
|
}
|
|
15696
|
-
var
|
|
16050
|
+
var _handleColumns = function handleColumns(arr, indexArr) {
|
|
15697
16051
|
arr.forEach(function (item, index) {
|
|
15698
16052
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15699
16053
|
return i || i === 0;
|
|
15700
16054
|
});
|
|
15701
16055
|
if (noEmptyArray$1(item.children)) {
|
|
15702
|
-
|
|
16056
|
+
_handleColumns(item.children, indexArrInside);
|
|
15703
16057
|
} else {
|
|
15704
16058
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15705
16059
|
item.onHeaderCell = function (column) {
|
|
@@ -15715,7 +16069,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15715
16069
|
handleAntdColumnsSpecialParams(item);
|
|
15716
16070
|
return _objectSpread2({}, item);
|
|
15717
16071
|
});
|
|
15718
|
-
|
|
16072
|
+
_handleColumns(showCol, []);
|
|
15719
16073
|
if (dynamicColumns.length) {
|
|
15720
16074
|
showCol = this.handledynamicColumns(showCol);
|
|
15721
16075
|
}
|
|
@@ -15755,7 +16109,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15755
16109
|
cell: this.ResizeableTitle
|
|
15756
16110
|
}
|
|
15757
16111
|
}
|
|
15758
|
-
}, otherTableInfo)), Array.isArray(summary) && (
|
|
16112
|
+
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React__default['default'].createElement(TableSumComponent, {
|
|
15759
16113
|
summary: summary
|
|
15760
16114
|
})));
|
|
15761
16115
|
}
|
|
@@ -15815,20 +16169,30 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15815
16169
|
};
|
|
15816
16170
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15817
16171
|
var routerMap = {};
|
|
15818
|
-
var
|
|
16172
|
+
var _flattenMenuData2 = function flattenMenuData(data, parent) {
|
|
15819
16173
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15820
16174
|
data.forEach(function (menuItem) {
|
|
16175
|
+
// 面包屑路径,增加显示一级导航路径显示
|
|
16176
|
+
if (parent.isMenuRoot) {
|
|
16177
|
+
var _ref, _ref$applicationList, _ref$applicationList$;
|
|
16178
|
+
var newList = ((_ref = window.top || window) === null || _ref === void 0 ? void 0 : (_ref$applicationList = _ref.applicationList) === null || _ref$applicationList === void 0 ? void 0 : (_ref$applicationList$ = _ref$applicationList.filter) === null || _ref$applicationList$ === void 0 ? void 0 : _ref$applicationList$.call(_ref$applicationList, function (app) {
|
|
16179
|
+
return app.code === menuItem.belongAppCode;
|
|
16180
|
+
})) || [];
|
|
16181
|
+
pNameMap = newList.length > 0 ? [newList[0].name] : [];
|
|
16182
|
+
}
|
|
15821
16183
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15822
16184
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15823
16185
|
});
|
|
15824
16186
|
if (newMenuItem.children) {
|
|
15825
|
-
|
|
16187
|
+
_flattenMenuData2(newMenuItem.children, newMenuItem);
|
|
15826
16188
|
}
|
|
15827
16189
|
// Reduce memory usage
|
|
15828
16190
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15829
16191
|
});
|
|
15830
16192
|
};
|
|
15831
|
-
|
|
16193
|
+
_flattenMenuData2(menuData, {
|
|
16194
|
+
isMenuRoot: true
|
|
16195
|
+
});
|
|
15832
16196
|
return routerMap;
|
|
15833
16197
|
};
|
|
15834
16198
|
// mode类型判断
|
|
@@ -15868,8 +16232,8 @@ function matchRoute(path, routeObj, hideRouteObj) {
|
|
|
15868
16232
|
// 如果都不匹配,返回null
|
|
15869
16233
|
return null;
|
|
15870
16234
|
}
|
|
15871
|
-
var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray,
|
|
15872
|
-
var pathToRegexp =
|
|
16235
|
+
var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRouteArray, _ref2) {
|
|
16236
|
+
var pathToRegexp = _ref2.pathToRegexp;
|
|
15873
16237
|
var newPath = path.split('?')[0];
|
|
15874
16238
|
var hideRouteObj = _defineProperty({}, newPath, Array.isArray(hideRouteArray) && (hideRouteArray === null || hideRouteArray === void 0 ? void 0 : hideRouteArray.find(function (itemRoute) {
|
|
15875
16239
|
return pathToRegexp(itemRoute.path).test(newPath);
|
|
@@ -15889,30 +16253,42 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
|
|
|
15889
16253
|
return undefined;
|
|
15890
16254
|
};
|
|
15891
16255
|
|
|
15892
|
-
var css_248z$f = ".bs_detail_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.detail_page_head {\n height: 32px;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n font-weight: 500;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_pre:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n}\n.back_home_img_content {\n display: inline-block;\n height: 16px;\n width: 16px;\n border: 1px solid #BABABA;\n margin: 0 8px 0 10px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005cff;\n border: 1px solid #005cff;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 14px;\n padding-right: 10px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n display: none;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 24px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0
|
|
16256
|
+
var css_248z$f = ".bs_detail_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.detail_page_head {\n height: 32px;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n font-weight: 500;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_pre:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n}\n.back_home_img_content {\n display: inline-block;\n height: 16px;\n width: 16px;\n border: 1px solid #BABABA;\n margin: 0 8px 0 10px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005cff;\n border: 1px solid #005cff;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 14px;\n padding-right: 10px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n display: none;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 24px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 2px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
|
|
15893
16257
|
styleInject(css_248z$f);
|
|
15894
16258
|
|
|
15895
16259
|
var quanping = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%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%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%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%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1823.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281593.000000%2C%2013.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.55801813%2C1%20L28.4419819%2C1%20C30.0269041%2C1%2030.6016352%2C1.16502331%2031.181059%2C1.47490258%20C31.7604829%2C1.78478186%2032.2152181%2C2.2395171%2032.5250974%2C2.81894097%20C32.8349767%2C3.39836484%2033%2C3.97309593%2033%2C5.55801813%20L33%2C28.4419819%20C33%2C30.0269041%2032.8349767%2C30.6016352%2032.5250974%2C31.181059%20C32.2152181%2C31.7604829%2031.7604829%2C32.2152181%2031.181059%2C32.5250974%20C30.6016352%2C32.8349767%2030.0269041%2C33%2028.4419819%2C33%20L5.55801813%2C33%20C3.97309593%2C33%203.39836484%2C32.8349767%202.81894097%2C32.5250974%20C2.2395171%2C32.2152181%201.78478186%2C31.7604829%201.47490258%2C31.181059%20C1.16502331%2C30.6016352%201%2C30.0269041%201%2C28.4419819%20L1%2C5.55801813%20C1%2C3.97309593%201.16502331%2C3.39836484%201.47490258%2C2.81894097%20C1.78478186%2C2.2395171%202.2395171%2C1.78478186%202.81894097%2C1.47490258%20C3.39836484%2C1.16502331%203.97309593%2C1%205.55801813%2C1%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%289.000000%2C%209.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.5%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.41%20L5.21873562%2C9.69278114%20Z%20M10.7898541%2C9.72266777%20L14.499%2C13.431%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.446%2C14.5%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%20M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.499%2C2.588%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.465%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%20M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%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";
|
|
15896
16260
|
|
|
15897
16261
|
var scanning = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%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%3Escanning%402x%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M4.55801813%2C-4.10857923e-16%20L27.4419819%2C1.84149388e-16%20C29.0269041%2C-1.06996098e-16%2029.6016352%2C0.165023309%2030.181059%2C0.474902584%20C30.7604829%2C0.78478186%2031.2152181%2C1.2395171%2031.5250974%2C1.81894097%20C31.8349767%2C2.39836484%2032%2C2.97309593%2032%2C4.55801813%20L32%2C27.4419819%20C32%2C29.0269041%2031.8349767%2C29.6016352%2031.5250974%2C30.181059%20C31.2152181%2C30.7604829%2030.7604829%2C31.2152181%2030.181059%2C31.5250974%20C29.6016352%2C31.8349767%2029.0269041%2C32%2027.4419819%2C32%20L4.55801813%2C32%20C2.97309593%2C32%202.39836484%2C31.8349767%201.81894097%2C31.5250974%20C1.2395171%2C31.2152181%200.78478186%2C30.7604829%200.474902584%2C30.181059%20C0.165023309%2C29.6016352%202.03054919e-16%2C29.0269041%20-3.49474794e-16%2C27.4419819%20L1.22766259e-16%2C4.55801813%20C-7.13307317e-17%2C2.97309593%200.165023309%2C2.39836484%200.474902584%2C1.81894097%20C0.78478186%2C1.2395171%201.2395171%2C0.78478186%201.81894097%2C0.474902584%20C2.39836484%2C0.165023309%202.97309593%2C2.38720285e-16%204.55801813%2C-4.10857923e-16%20Z%22%20id%3D%22path-1%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%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%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-63.000000%2C%20-69.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%2864.244061%2C%2070.096401%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%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%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%3Cg%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%288.000000%2C%208.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.4997811%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.4107811%20L5.21873562%2C9.69278114%20Z%22%20transform%3D%22translate%283.144771%2C%2012.846391%29%20scale%28-1%2C%20-1%29%20translate%28-3.144771%2C%20-12.846391%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10.7898541%2C9.72266777%20L14.4990478%2C13.4326678%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.4460478%2C14.4996678%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%22%20transform%3D%22translate%2812.859524%2C%2012.861334%29%20scale%28-1%2C%20-1%29%20translate%28-12.859524%2C%20-12.861334%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.4990478%2C2.587%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.4650478%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%22%20transform%3D%22translate%2812.859524%2C%203.153739%29%20scale%28-1%2C%20-1%29%20translate%28-12.859524%2C%20-3.153739%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20transform%3D%22translate%283.157002%2C%203.153739%29%20scale%28-1%2C%20-1%29%20translate%28-3.157002%2C%20-3.153739%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%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";
|
|
15898
16262
|
|
|
15899
|
-
var editIcon = "data:image/svg+xml,%
|
|
16263
|
+
var editIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20class%3D%22design-iconfont%22%20width%3D%2216%22%20height%3D%2216%22%3E%20%20%3Cpath%20d%3D%22M20%2C18.6652611%20L20%2C19.3979707%20L20%2C20%20L4%2C20%20L4%2C19.3979707%20L4%2C18.6652611%20L20%2C18.6652611%20Z%20M14.2960911%2C4.17633188%20C14.5275784%2C3.94122271%2014.9028913%2C3.94122271%2015.1343622%2C4.17633188%20L17.4163545%2C6.49402774%20C17.6478583%2C6.72913692%2017.6478583%2C7.11032182%2017.4163545%2C7.345431%20L8.43496158%2C16.4277085%20C8.36527571%2C16.4984893%208.27931305%2C16.550506%208.18485181%2C16.579052%20L4.93650384%2C17.560527%20C4.48520307%2C17.6968699%204.06507135%2C17.2701649%204.19933041%2C16.8118199%20L5.16568606%2C13.512649%20C5.19379224%2C13.4167098%205.24500766%2C13.3294022%205.31469813%2C13.2586261%20L14.2960911%2C4.17633188%20Z%20M20%2C16.1286246%20L20%2C16.8560691%20L20%2C17.4580984%20C19.2791568%2C17.4580984%2018.3492175%2C17.4580984%2017.2101821%2C17.4580984%20C16.0711466%2C17.4580984%2014.1650083%2C17.4580984%2011.4917673%2C17.4580984%20L11.4917673%2C16.8560691%20L11.4917673%2C16.1286246%20L20%2C16.1286246%20Z%20M6.25913831%2C14.002149%20L5.64777717%2C16.0893847%20L7.70287596%2C15.4684416%20L16.0610272%2C7.06564268%20L14.6173225%2C5.5993668%20L6.25913831%2C14.002149%20Z%22%20fill%3D%22%232C2C2C%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
15900
16264
|
|
|
15901
16265
|
var submitIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2220px%22%20height%3D%2220px%22%20viewBox%3D%220%200%2020%2020%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%3E%E7%BC%96%E7%BB%84%2013%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B6%E9%83%A8%E5%AF%BC%E8%88%AA%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%22%E6%9C%80%E6%96%B0%E6%A1%86%E6%9E%B6-%E4%B8%8B%E6%8B%89%E5%BC%8F%E5%B1%95%E5%BC%80%22%20transform%3D%22translate%28-1587.000000%2C%20-94.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-7%22%20transform%3D%22translate%28160.000000%2C%2050.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22tab%E5%AF%BC%E8%88%AA%E5%A4%87%E4%BB%BD-7%22%20transform%3D%22translate%280.000000%2C%2026.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-10%22%20transform%3D%22translate%281339.000000%2C%2012.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%22%20transform%3D%22translate%2878.000000%2C%200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-4%22%20transform%3D%22translate%2810.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2220%22%20height%3D%2220%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10%2C3%20C13.8660588%2C3%2017%2C6.13394117%2017%2C10%20C17%2C13.8660588%2013.8660588%2C17%2010%2C17%20C6.13394117%2C17%203%2C13.8660588%203%2C10%20C3%2C6.13394117%206.13394117%2C3%2010%2C3%20Z%20M10%2C4.23529412%20C6.8162353%2C4.23529412%204.23529412%2C6.81623528%204.23529412%2C10%20C4.23529412%2C13.1837647%206.81623528%2C15.7647059%2010%2C15.7647059%20C13.1837647%2C15.7647059%2015.7647059%2C13.1837647%2015.7647059%2C10%20C15.7647059%2C6.81623528%2013.1837647%2C4.23529412%2010%2C4.23529412%20Z%20M13.2628235%2C6.68735294%20L14.1489412%2C7.54794118%20L8.90223529%2C12.947%20L6.26117647%2C10.2071177%20L7.15058823%2C9.34982354%20L8.90594117%2C11.1706471%20L13.2628235%2C6.68735294%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%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";
|
|
15902
16266
|
|
|
15903
|
-
var deleteIcon = "data:image/svg+xml,%
|
|
16267
|
+
var deleteIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20class%3D%22design-iconfont%22%20width%3D%2216%22%20height%3D%2216%22%3E%20%20%3Cpath%20d%3D%22M15.1363636%2C4%20C15.6886484%2C4%2016.1363636%2C4.44771525%2016.1363636%2C5%20L16.1363636%2C7.125%20L19%2C7.125%20L19%2C8.375%20L17.1292731%2C8.375%20L17.1292731%2C19%20C17.1292731%2C19.5522847%2016.6815579%2C20%2016.1292731%2C20%20L15.5%2C20%20L8.5%2C20%20L7.59090908%2C20%20C7.03862433%2C20%206.59090908%2C19.5522847%206.59090908%2C19%20L6.59090908%2C8.375%20L5%2C8.375%20L5%2C7.125%20L7.86363637%2C7.125%20L7.86363637%2C5%20C7.86363637%2C4.44771525%208.31135162%2C4%208.86363637%2C4%20Z%20M15.9375%2C8.375%20L7.8125%2C8.375%20L7.8125%2C18.75%20L15.9375%2C18.75%20L15.9375%2C8.375%20Z%20M10.9375%2C10.1875957%20L10.9375%2C17.093797%20L9.68749998%2C17.093797%20L9.68749998%2C10.1875957%20L10.9375%2C10.1875957%20Z%20M14.0625%2C10.1875957%20L14.0625%2C17.093797%20L12.8125%2C17.093797%20L12.8125%2C10.1875957%20L14.0625%2C10.1875957%20Z%20M14.9222156%2C5.25%20L9.0625%2C5.25%20L9.0625%2C7.125%20L14.9222156%2C7.125%20L14.9222156%2C5.25%20Z%22%20fill%3D%22%233E3E3E%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
15904
16268
|
|
|
15905
16269
|
var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2220px%22%20height%3D%2220px%22%20viewBox%3D%220%200%2020%2020%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%3E%E7%BC%96%E7%BB%84%2014%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B6%E9%83%A8%E5%AF%BC%E8%88%AA%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%22%E6%9C%80%E6%96%B0%E6%A1%86%E6%9E%B6-%E4%B8%8B%E6%8B%89%E5%BC%8F%E5%B1%95%E5%BC%80%22%20transform%3D%22translate%28-1743.000000%2C%20-94.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-7%22%20transform%3D%22translate%28160.000000%2C%2050.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22tab%E5%AF%BC%E8%88%AA%E5%A4%87%E4%BB%BD-7%22%20transform%3D%22translate%280.000000%2C%2026.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-3%22%20transform%3D%22translate%281573.000000%2C%2012.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%2810.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2220%22%20height%3D%2220%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%2810.500000%2C%2010.022232%29%20rotate%28-90.000000%29%20translate%28-10.500000%2C%20-10.022232%29%20%22%20points%3D%2214%204.9775377%2013.0224623%204%207%2010.0252289%2013.0220012%2016.0444635%2014%2015.0660036%208.95599763%2010.0247678%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%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";
|
|
15906
16270
|
|
|
16271
|
+
var hangUpIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20class%3D%22design-iconfont%22%20width%3D%2216%22%20height%3D%2216%22%3E%20%20%3Cpath%20d%3D%22M11.7782857%2C3.00000016%20C12.3001619%2C2.99977385%2012.7937223%2C3.23470832%2013.1191658%2C3.63825843%20C13.4446093%2C4.04180854%2013.5664902%2C4.57002172%2013.4502857%2C5.07328132%20L17.112%2C8.69530544%20L18.8571429%2C8.69530544%20C19.1602474%2C8.69530544%2019.4509376%2C8.81440813%2019.6652649%2C9.02641228%20C19.8795922%2C9.23841643%2020%2C9.52595576%2020%2C9.82577491%20L20%2C18.8695305%20C20%2C19.4938716%2019.4883254%2C20.0000002%2018.8571429%2C20.0000002%20L5.14285714%2C20.0000002%20C4.51167457%2C20.0000002%204%2C19.4938716%204%2C18.8695305%20L4%2C9.82577491%20C4%2C9.52595576%204.12040781%2C9.23841643%204.3347351%2C9.02641228%20C4.54906239%2C8.81440813%204.83975258%2C8.69530544%205.14285714%2C8.69530544%20L6.48228571%2C8.69530544%20L10.1131428%2C5.10267352%20C9.98848601%2C4.59655451%2010.1052663%2C4.06183998%2010.4300197%2C3.65175481%20C10.7547732%2C3.24166964%2011.2516566%2C3.00147521%2011.7782857%2C3.00000016%20Z%20M18.8571429%2C9.82577491%20L5.14285714%2C9.82577491%20L5.14285714%2C18.8695305%20L18.8571429%2C18.8695305%20L18.8571429%2C9.82577491%20Z%20M6.85714285%2C16.6085916%20C7.17273414%2C16.6085916%207.42857143%2C16.8616558%207.42857143%2C17.1738264%20C7.42857143%2C17.4859969%207.17273414%2C17.7390611%206.85714285%2C17.7390611%20C6.54155156%2C17.7390611%206.28571427%2C17.4859969%206.28571427%2C17.1738264%20C6.28571427%2C16.8616558%206.54155156%2C16.6085916%206.85714285%2C16.6085916%20Z%20M17.1428571%2C16.6085916%20C17.4584484%2C16.6085916%2017.7142857%2C16.8616558%2017.7142857%2C17.1738264%20C17.7142857%2C17.4859969%2017.4584484%2C17.7390611%2017.1428571%2C17.7390611%20C16.8272659%2C17.7390611%2016.5714286%2C17.4859969%2016.5714286%2C17.1738264%20C16.5714286%2C16.8616558%2016.8272659%2C16.6085916%2017.1428571%2C16.6085916%20Z%20M13.9634286%2C11.4932173%20L14.7714286%2C12.2924592%20L12.7508571%2C14.2911292%20L14.7714286%2C16.2897992%20L13.9634286%2C17.0890411%20L11.9428571%2C15.0903712%20L9.92228571%2C17.0890411%20L9.11428572%2C16.2897992%20L11.1348571%2C14.2911292%20L9.11428572%2C12.2924592%20L9.92228571%2C11.4932173%20L11.9428571%2C13.4918874%20L13.9634286%2C11.4932173%20Z%20M17.1428571%2C11.0093764%20C17.4584484%2C11.0093764%2017.7142857%2C11.2624406%2017.7142857%2C11.5746112%20C17.7142857%2C11.8867817%2017.4584484%2C12.1398459%2017.1428571%2C12.1398459%20C16.9387054%2C12.1398459%2016.7500614%2C12.0321128%2016.6479855%2C11.8572285%20C16.5459096%2C11.6823443%2016.5459096%2C11.466878%2016.6479855%2C11.2919938%20C16.7500614%2C11.1171095%2016.9387054%2C11.0093764%2017.1428571%2C11.0093764%20Z%20M6.85714285%2C10.9562444%20C7.17273412%2C10.9562444%207.42857139%2C11.2093086%207.42857139%2C11.5214791%20C7.42857139%2C11.8336496%207.17273412%2C12.0867138%206.85714285%2C12.0867138%20C6.65299108%2C12.0867138%206.46434706%2C11.9789807%206.36227117%2C11.8040965%20C6.26019528%2C11.6292122%206.26019528%2C11.413746%206.36227117%2C11.2388617%20C6.46434706%2C11.0639775%206.65299108%2C10.9562444%206.85714285%2C10.9562444%20Z%20M12.8171429%2C6.04548504%20C12.5188904%2C6.27107685%2012.153742%2C6.39306307%2011.7782857%2C6.39253917%20C11.3977143%2C6.39253917%2011.0457143%2C6.269318%2010.7611429%2C6.06131161%20L8.09828571%2C8.69530544%20L15.4948571%2C8.69530544%20L12.8171429%2C6.04548504%20Z%22%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
16272
|
+
|
|
16273
|
+
var unhookIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20class%3D%22design-iconfont%22%20width%3D%2216%22%20height%3D%2216%22%3E%20%20%3Cpath%20d%3D%22M12.5311653%2C14.5508817%20L12.5311653%2C13.2326256%20C13.3848238%2C13.1340808%2014.1752484%2C12.8138102%2014.8328817%2C12.3334044%20L15.8699187%2C13.3434885%20L16.7109304%2C12.5243349%20L15.6865402%2C11.5265689%20C16.3757904%2C10.6889382%2016.7741644%2C9.61110446%2016.7299006%2C8.4470441%20C16.6774618%2C7.32337401%2016.3287928%2C6.21824036%2015.4374714%2C5.33134433%20C14.5455357%2C4.44383708%2013.3572314%2C4.01010691%2012%2C4.00006849%20C10.8617886%2C3.99405125%209.8036016%2C4.3849051%208.98156004%2C5.02544626%20L7.95302618%2C4.00636936%20L7.11833784%2C4.8193639%20L8.1531951%2C5.85691795%20C7.69418947%2C6.44248923%207.27225519%2C7.38404803%207.27225519%2C8.11644273%20C7.79460882%2C8.20600257%208.14631127%2C8.25397686%208.54141325%2C8.32640711%20C8.62994081%2C7.83368313%208.83284993%2C7.16515696%209.11107938%2C6.7709778%20L13.9539295%2C11.4772965%20C13.5365854%2C11.7544537%2013.0496838%2C11.9453842%2012.5311653%2C12.0316109%20L11.8102981%2C12.0316109%20C11.5826558%2C12.0316109%2011.3929539%2C12.2163824%2011.3929539%2C12.4381082%20L11.3929539%2C14.5508817%20L5.70189702%2C14.5508817%20C5.31616983%2C14.5631998%205%2C14.8773113%205%2C15.2468543%20L5%2C19.3040274%20C5%2C19.6858885%205.32249322%2C20%205.7145438%2C20%20L18.2854562%2C20%20C18.6775068%2C20%2019%2C19.6858885%2019%2C19.3040274%20L19%2C15.2468543%20C18.9873532%2C14.8649932%2018.66486%2C14.5508817%2018.2791328%2C14.5508817%20L12.5311653%2C14.5508817%20Z%20M12.2339657%2C5.20122497%20C12.9096339%2C5.25166385%2013.5465163%2C5.36896496%2014.0643728%2C5.74187871%20C14.8744517%2C6.32522476%2015.491468%2C7.27667119%2015.5647596%2C8.30990061%20C15.6279936%2C9.17216756%2015.2818428%2C10.048397%2014.8012647%2C10.67662%20L9.86269195%2C5.86640232%20C10.5203252%2C5.3921555%2011.3486901%2C5.13963448%2012.2339657%2C5.20122497%20Z%20M17.8491418%2C18.8081647%20L6.15718157%2C18.8081647%20L6.15718157%2C18.3831903%20L6.15718157%2C16.2686664%20L6.15718157%2C15.843692%20L17.8491418%2C15.843692%20L17.8491418%2C16.2686664%20L17.8491418%2C18.3831903%20L17.8491418%2C18.8081647%20Z%22%20fill%3D%22%233E3E3E%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
16274
|
+
|
|
16275
|
+
var refreshIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20class%3D%22design-iconfont%22%20width%3D%2216%22%20height%3D%2216%22%3E%20%20%3Cpath%20d%3D%22M18.94575%2C11.125%20C18.981625%2C11.4115625%2019%2C11.7038125%2019%2C12%20C19%2C15.8661875%2015.8661881%2C19%2012.0000014%2C19%20C10.1362517%2C19%208.44225205%2C18.2715625%207.1875023%2C17.08375%20L7.1875023%2C19%20L5.87500256%2C19%20L5.87544006%2C15.9375%20L5.87500256%2C14.625%20L10.2500017%2C14.625%20L10.2500017%2C15.9375%20L7.89625216%2C15.9375%20C8.93137696%2C17.016375%2010.3873767%2C17.6875%2012.0000014%2C17.6875%20C15.1412507%2C17.6875%2017.6875003%2C15.14125%2017.6875003%2C12%20C17.687583%2C11.7070512%2017.665205%2C11.4145273%2017.6205628%2C11.125%20L18.9461875%2C11.125%20L18.94575%2C11.125%20Z%20M18.1250002%2C5%20L18.1245627%2C8.06250001%20L18.1250002%2C9.375%20L13.750001%2C9.375%20L13.750001%2C8.06250001%20L16.1041881%2C8.06250001%20C15.0327104%2C6.9428839%2013.5497111%2C6.31054214%2012.0000014%2C6.3125%20C8.85875197%2C6.3125%206.31250247%2C8.85875%206.31250247%2C12%20C6.31250247%2C12.2975%206.33525247%2C12.5901875%206.37943996%2C12.875%20L5.05381521%2C12.875%20C5.01779256%2C12.5847275%204.99982051%2C12.2924991%205.00000135%2C12%20C5.00000135%2C8.1338125%208.13381462%2C5%2012.0000014%2C5%20C13.863751%2C5%2015.5581882%2C5.72887501%2016.8125004%2C6.91668749%20L16.8125004%2C5%20L18.1250002%2C5%20Z%22%20fill%3D%22%233E3E3E%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
16276
|
+
|
|
16277
|
+
var printIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20class%3D%22design-iconfont%22%20width%3D%2216%22%20height%3D%2216%22%3E%20%20%3Cpath%20d%3D%22M9.66666666%2C13.1666667%20L9.66666666%2C17.8333333%20L14.3333333%2C17.8333333%20L14.3333333%2C13.1666667%20L9.66666666%2C13.1666667%20Z%20M15.5%2C15.5%20L17.8333333%2C15.5%20L17.8333333%2C9.66666666%20L6.16666666%2C9.66666666%20L6.16666666%2C15.5%20L8.5%2C15.5%20L8.5%2C13.1666667%20L7.33342263%2C13.1666667%20L7.33342263%2C12.5833333%20L7.33342263%2C12%20L16.6665774%2C12%20L16.6665774%2C12.5833333%20L16.6665774%2C13.1666667%20L15.5%2C13.1666667%20L15.5%2C15.5%20Z%20M8.5%2C16.6666667%20L6.16666666%2C16.6666667%20C5.52233446%2C16.6666667%205%2C16.1443322%205%2C15.5%20L5%2C9.66666666%20C5%2C9.02233446%205.52233446%2C8.5%206.16666666%2C8.5%20L8.5%2C8.5%20L8.5%2C6.16666666%20C8.5%2C5.52233446%209.02233446%2C5%209.66666666%2C5%20L14.3333333%2C5%20C14.9776655%2C5%2015.5%2C5.52233446%2015.5%2C6.16666666%20L15.5%2C8.5%20L17.8333333%2C8.5%20C18.4776655%2C8.5%2019%2C9.02233446%2019%2C9.66666666%20L19%2C15.5%20C19%2C16.1443322%2018.4776655%2C16.6666667%2017.8333333%2C16.6666667%20L15.5%2C16.6666667%20L15.5%2C17.8333333%20C15.5%2C18.4776655%2014.9776655%2C19%2014.3333333%2C19%20L9.66666666%2C19%20C9.02233446%2C19%208.5%2C18.4776655%208.5%2C17.8333333%20L8.5%2C16.6666667%20Z%20M14.3333333%2C8.5%20L14.3333333%2C6.16666666%20L9.66666666%2C6.16666666%20L9.66666666%2C8.5%20L14.3333333%2C8.5%20Z%22%20fill%3D%22%233E3E3E%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
16278
|
+
|
|
16279
|
+
var copyIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20class%3D%22design-iconfont%22%20width%3D%2216%22%20height%3D%2216%22%3E%20%20%3Cpath%20d%3D%22M17.0909091%2C5%20L17.9987273%2C5.00011112%20C18.5509686%2C5.00011112%2018.9986659%2C5.44775865%2018.9987273%2C6.00000001%20L19%2C15.4545455%20C19.0000614%2C16.0068302%2018.5523959%2C16.4545952%2018.0001111%2C16.4546566%20C18.0000741%2C16.4546566%2018.000037%2C16.4546566%2018%2C16.4546566%20L17.1625%2C16.4545455%20L17.1625%2C16.4545455%20L17.0909091%2C16.4545455%20L16.4545455%2C16.4545455%20L16.4545455%2C18%20C16.4545455%2C18.5522847%2016.0068302%2C19%2015.4545455%2C19%20L14.6170455%2C19%20L14.6170455%2C19%20L14.5454546%2C19%20L6.90909091%2C19%20L6%2C19%20C5.44771525%2C19%205%2C18.5522847%205%2C18%20L5%2C9.45454545%20L5%2C9.45454545%20L5%2C8.54545454%20C5%2C7.99316979%205.44771525%2C7.54545454%206%2C7.54545454%20L7.54545454%2C7.54545454%20L7.54545454%2C7.54545454%20L7.54545454%2C6%20C7.54545454%2C5.44771525%207.99316979%2C5%208.54545454%2C5%20L9.38295454%2C5%20L9.38295454%2C5%20L9.45454545%2C5%20L17.0909091%2C5%20Z%20M14.5454546%2C8.68691666%20L6.90909091%2C8.68691666%20L6.16011512%2C8.68691666%20L6.16011512%2C16.7079008%20L6.16011512%2C17.8735523%20L7.16954857%2C17.8735523%20L14.2108223%2C17.8735523%20L15.3188691%2C17.8735523%20L15.3188691%2C16.7502891%20L15.3188691%2C8.68691666%20L14.5454546%2C8.68691666%20Z%20M13.5909091%2C14.8636364%20L13.5909091%2C15.5%20L7.86363635%2C15.5%20L7.86363635%2C14.8636364%20L7.86363635%2C14.2272727%20L13.5909091%2C14.2272727%20L13.5909091%2C14.8636364%20Z%20M9.45454545%2C6.07289387%20L8.72541673%2C6.07289387%20L8.72382583%2C7.54545454%20L15.4545455%2C7.54545454%20C16.0068302%2C7.54545454%2016.4545455%2C7.99316979%2016.4545455%2C8.54545454%20L16.4545455%2C9.38295454%20L16.4545455%2C9.38295454%20L16.4545455%2C9.45454545%20L16.4545455%2C15.1818184%20L17.0909091%2C15.1818184%20L17.8806016%2C15.1818184%20L17.8821925%2C6.07289387%20L9.45454545%2C6.07289387%20Z%20M13.5057337%2C11.3636082%20L13.5057337%2C12.0000281%20L13.5057337%2C12.3181818%20L7.94881173%2C12.3181818%20L7.94881173%2C12.0000281%20L7.94881173%2C11.3636082%20L7.94881173%2C11.0454545%20L13.5057337%2C11.0454545%20L13.5057337%2C11.3636082%20Z%22%20fill%3D%22%232E3033%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
16280
|
+
|
|
16281
|
+
var cancelIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20class%3D%22design-iconfont%22%20width%3D%2216%22%20height%3D%2216%22%3E%20%20%3Cpath%20d%3D%22M13.0151021%2C14.4269183%20L14.851%2C16.345%20L16.7185097%2C14.458311%20L17.5242651%2C15.3033815%20L15.658%2C17.189%20L17.3956835%2C19.0040241%20L16.5899281%2C19.8189135%20L14.847%2C18.009%20L13.0004688%2C19.876736%20L12.1947134%2C19.0316656%20L14.037%2C17.168%20L12.2093467%2C15.2719887%20L13.0151021%2C14.4269183%20Z%20M12.0143885%2C5%20C12.2446043%2C5%2012.4460432%2C5.09054326%2012.618705%2C5.27162978%20L16.9640288%2C9.79879276%20C17.1366906%2C9.97987928%2017.2230216%2C10.1911469%2017.2230216%2C10.4325956%20L17.2230216%2C13.4312601%20L16.0719424%2C13.4312601%20L16.071%2C10.949%20L12.4172662%2C10.9758551%20C12.1870504%2C10.9758551%2011.9568345%2C10.8853119%2011.7841727%2C10.7042254%20C11.6115108%2C10.5231388%2011.5251799%2C10.2816901%2011.5251799%2C10.0402414%20L11.525%2C6.237%20L7.17985612%2C6.23742455%20L7.17985612%2C18.1287726%20L10.9496403%2C18.1287726%20L10.9496403%2C19.3360161%20L6.86330935%2C19.3360161%20C6.4028777%2C19.3360161%206%2C18.943662%206%2C18.4305835%20L6%2C5.9054326%20C6%2C5.42253521%206.37410072%2C5%206.86330935%2C5%20L12.0143885%2C5%20Z%20M12.676259%2C7.08249497%20L12.676259%2C9.76861167%20L15.2086331%2C9.73843058%20L12.676259%2C7.08249497%20Z%22%20fill%3D%22%23040000%22%20fill-rule%3D%22nonzero%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E";
|
|
16282
|
+
|
|
15907
16283
|
var css_248z$g = "";
|
|
15908
16284
|
styleInject(css_248z$g);
|
|
15909
16285
|
|
|
15910
|
-
var _excluded$
|
|
16286
|
+
var _excluded$d = ["message", "type"];
|
|
15911
16287
|
var CommonAlert = (function (props) {
|
|
15912
16288
|
var message = props.message,
|
|
15913
16289
|
_props$type = props.type,
|
|
15914
16290
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
15915
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
16291
|
+
reset = _objectWithoutProperties(props, _excluded$d);
|
|
15916
16292
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15917
16293
|
style: {
|
|
15918
16294
|
width: '100%',
|
|
@@ -15933,20 +16309,42 @@ var CommonAlert = (function (props) {
|
|
|
15933
16309
|
}, reset)));
|
|
15934
16310
|
});
|
|
15935
16311
|
|
|
15936
|
-
var _excluded$
|
|
16312
|
+
var _excluded$e = ["children"];
|
|
16313
|
+
var iconStyle = {
|
|
16314
|
+
width: 16,
|
|
16315
|
+
height: 16
|
|
16316
|
+
};
|
|
15937
16317
|
var iconMap = {
|
|
15938
|
-
edit: /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16318
|
+
edit: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
15939
16319
|
src: editIcon
|
|
15940
|
-
}),
|
|
15941
|
-
delete: /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16320
|
+
}, iconStyle)),
|
|
16321
|
+
delete: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
15942
16322
|
src: deleteIcon
|
|
15943
|
-
}),
|
|
15944
|
-
submit: /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16323
|
+
}, iconStyle)),
|
|
16324
|
+
submit: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
15945
16325
|
src: submitIcon
|
|
15946
|
-
}),
|
|
15947
|
-
more: /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16326
|
+
}, iconStyle)),
|
|
16327
|
+
more: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
15948
16328
|
src: moreIcon
|
|
15949
|
-
})
|
|
16329
|
+
}, iconStyle)),
|
|
16330
|
+
hangUp: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
16331
|
+
src: hangUpIcon
|
|
16332
|
+
}, iconStyle)),
|
|
16333
|
+
unhook: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
16334
|
+
src: unhookIcon
|
|
16335
|
+
}, iconStyle)),
|
|
16336
|
+
refresh: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
16337
|
+
src: refreshIcon
|
|
16338
|
+
}, iconStyle)),
|
|
16339
|
+
print: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
16340
|
+
src: printIcon
|
|
16341
|
+
}, iconStyle)),
|
|
16342
|
+
copy: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
16343
|
+
src: copyIcon
|
|
16344
|
+
}, iconStyle)),
|
|
16345
|
+
cancel: /*#__PURE__*/React__default['default'].createElement("img", _objectSpread2({
|
|
16346
|
+
src: cancelIcon
|
|
16347
|
+
}, iconStyle))
|
|
15950
16348
|
};
|
|
15951
16349
|
var index$3 = (function (props) {
|
|
15952
16350
|
var _useLocation = umi.useLocation(),
|
|
@@ -15955,7 +16353,7 @@ var index$3 = (function (props) {
|
|
|
15955
16353
|
_useState2 = _slicedToArray(_useState, 1),
|
|
15956
16354
|
id = _useState2[0];
|
|
15957
16355
|
var children = props.children,
|
|
15958
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16356
|
+
restProps = _objectWithoutProperties(props, _excluded$e);
|
|
15959
16357
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
15960
16358
|
id: id,
|
|
15961
16359
|
className: 'detail_page_wrapper'
|
|
@@ -16061,6 +16459,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16061
16459
|
}
|
|
16062
16460
|
};
|
|
16063
16461
|
var renderPageActionList = function renderPageActionList(actionLists) {
|
|
16462
|
+
var _actionLists$;
|
|
16064
16463
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
16065
16464
|
var visibleActions = actionLists.filter(function (action) {
|
|
16066
16465
|
return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.filter(function (item) {
|
|
@@ -16068,9 +16467,10 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16068
16467
|
}));
|
|
16069
16468
|
});
|
|
16070
16469
|
var renderButton = function renderButton(item, type) {
|
|
16071
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
16470
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
|
|
16072
16471
|
type: type || 'primary',
|
|
16073
16472
|
icon: item.icon ? iconMap[item.icon] : '',
|
|
16473
|
+
style: item.icon ? {} : {},
|
|
16074
16474
|
danger: item.name === '删除' ? true : false,
|
|
16075
16475
|
disabled: item.disabled,
|
|
16076
16476
|
onClick: function onClick() {
|
|
@@ -16080,9 +16480,10 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16080
16480
|
doDetailPageAction(item.action);
|
|
16081
16481
|
}
|
|
16082
16482
|
}
|
|
16083
|
-
}, item.name);
|
|
16483
|
+
}, item === null || item === void 0 ? void 0 : item.buttomProps), item.name);
|
|
16084
16484
|
};
|
|
16085
|
-
|
|
16485
|
+
// 可在actionList第一项设置visibleActionCount,控制按钮几个开始显示更多,默认为3个
|
|
16486
|
+
if (visibleActions.length <= ((actionLists === null || actionLists === void 0 ? void 0 : (_actionLists$ = actionLists[0]) === null || _actionLists$ === void 0 ? void 0 : _actionLists$.visibleActionCount) || 3)) {
|
|
16086
16487
|
return visibleActions.map(function (item) {
|
|
16087
16488
|
return renderButton(item);
|
|
16088
16489
|
});
|
|
@@ -16154,7 +16555,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16154
16555
|
display: 'flex',
|
|
16155
16556
|
gap: '8px'
|
|
16156
16557
|
}
|
|
16157
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (
|
|
16558
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React__default['default'].createElement("a", null, isFullScreen ? (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16158
16559
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
16159
16560
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16160
16561
|
onClick: function onClick() {
|
|
@@ -16162,7 +16563,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16162
16563
|
},
|
|
16163
16564
|
width: 24,
|
|
16164
16565
|
src: scanning
|
|
16165
|
-
}))) : (
|
|
16566
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
16166
16567
|
title: "\u5168\u5C4F"
|
|
16167
16568
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16168
16569
|
onClick: function onClick() {
|
|
@@ -16170,7 +16571,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16170
16571
|
},
|
|
16171
16572
|
width: 24,
|
|
16172
16573
|
src: quanping
|
|
16173
|
-
}))))) : null)), alertProps && (
|
|
16574
|
+
}))))) : null)), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16174
16575
|
}, function (prevProps, nextProps) {
|
|
16175
16576
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
16176
16577
|
return false;
|
|
@@ -16178,10 +16579,10 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16178
16579
|
return true;
|
|
16179
16580
|
});
|
|
16180
16581
|
|
|
16181
|
-
var css_248z$h = ".bs_home_page_head_wrapper {\n
|
|
16582
|
+
var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
16182
16583
|
styleInject(css_248z$h);
|
|
16183
16584
|
|
|
16184
|
-
var _excluded$
|
|
16585
|
+
var _excluded$f = ["children"];
|
|
16185
16586
|
var index$4 = (function (props) {
|
|
16186
16587
|
var _useLocation = umi.useLocation(),
|
|
16187
16588
|
pathname = _useLocation.pathname;
|
|
@@ -16189,7 +16590,7 @@ var index$4 = (function (props) {
|
|
|
16189
16590
|
_useState2 = _slicedToArray(_useState, 1),
|
|
16190
16591
|
id = _useState2[0];
|
|
16191
16592
|
var children = props.children,
|
|
16192
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
16593
|
+
restProps = _objectWithoutProperties(props, _excluded$f);
|
|
16193
16594
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16194
16595
|
id: id,
|
|
16195
16596
|
className: 'home_page_wrapper'
|
|
@@ -16255,7 +16656,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16255
16656
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16256
16657
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
16257
16658
|
}, item));
|
|
16258
|
-
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (
|
|
16659
|
+
}))), extra ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, extra) : ''), alertProps && (/*#__PURE__*/React__default['default'].createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
16259
16660
|
}, function (prevProps, nextProps) {
|
|
16260
16661
|
if (prevProps.title !== nextProps.title) {
|
|
16261
16662
|
return false;
|
|
@@ -16266,7 +16667,7 @@ var HeaderWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16266
16667
|
var css_248z$i = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
16267
16668
|
styleInject(css_248z$i);
|
|
16268
16669
|
|
|
16269
|
-
var _excluded$
|
|
16670
|
+
var _excluded$g = ["className", "style"];
|
|
16270
16671
|
var DragHandle$2 = reactSortableHoc.SortableHandle(function () {
|
|
16271
16672
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
16272
16673
|
width: 25,
|
|
@@ -16704,7 +17105,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16704
17105
|
_this.DraggableBodyRow = function (_ref2) {
|
|
16705
17106
|
var className = _ref2.className,
|
|
16706
17107
|
style = _ref2.style,
|
|
16707
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17108
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
16708
17109
|
var sortDataSource = _this.state.sortDataSource;
|
|
16709
17110
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
16710
17111
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -16895,8 +17296,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16895
17296
|
});
|
|
16896
17297
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16897
17298
|
className: 'sort_table_wrapper'
|
|
16898
|
-
}, visible && (
|
|
16899
|
-
title: "\
|
|
17299
|
+
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17300
|
+
title: "\u5C55\u793A\u5217\u8BBE\u7F6E",
|
|
16900
17301
|
wrapClassName: 'sort_table_wrapper',
|
|
16901
17302
|
width: 810,
|
|
16902
17303
|
visible: visible,
|
|
@@ -16933,7 +17334,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16933
17334
|
className: 'sort_table_column_wrapper'
|
|
16934
17335
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
16935
17336
|
className: 'sort_table_column_count'
|
|
16936
|
-
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u52FE\u9009\u4F60\u60F3\
|
|
17337
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u52FE\u9009\u4F60\u60F3\u5C55\u793A\u7684\u8868\u683C\u5217")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16937
17338
|
className: 'sort_table_column'
|
|
16938
17339
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
16939
17340
|
prefix: /*#__PURE__*/React__default['default'].createElement(icons.SearchOutlined, {
|
|
@@ -16946,7 +17347,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16946
17347
|
width: 525,
|
|
16947
17348
|
height: 24
|
|
16948
17349
|
}
|
|
16949
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
17350
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
16950
17351
|
checked: !dataSource.some(function (item) {
|
|
16951
17352
|
if (item.hidden) return true;
|
|
16952
17353
|
return false;
|
|
@@ -17000,13 +17401,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17000
17401
|
_this2.onChange(e, item.title);
|
|
17001
17402
|
}
|
|
17002
17403
|
}, item.title);
|
|
17003
|
-
}), !!seatchDataSource.length && (
|
|
17404
|
+
}), !!seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17004
17405
|
style: {
|
|
17005
17406
|
width: '144px'
|
|
17006
17407
|
}
|
|
17007
|
-
})), !seatchDataSource.length && (
|
|
17408
|
+
})), !seatchDataSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17008
17409
|
className: 'sort_table_column_all_empty'
|
|
17009
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (
|
|
17410
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17010
17411
|
className: 'sort_table_column_special'
|
|
17011
17412
|
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17012
17413
|
className: 'sort_table_column_all'
|
|
@@ -17028,7 +17429,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17028
17429
|
className: 'sort_table_content_wrapper'
|
|
17029
17430
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17030
17431
|
className: 'sort_table_content_count'
|
|
17031
|
-
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9\u7684\
|
|
17432
|
+
}, /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9\u7684\u5C55\u793A\u5217\u6392\u5E8F")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17032
17433
|
className: 'sort_table_content'
|
|
17033
17434
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
17034
17435
|
style: {
|
|
@@ -17074,7 +17475,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17074
17475
|
}]);
|
|
17075
17476
|
}(React__default['default'].Component);
|
|
17076
17477
|
|
|
17077
|
-
var _excluded$
|
|
17478
|
+
var _excluded$h = ["className", "style"];
|
|
17078
17479
|
var DragHandle$3 = reactSortableHoc.SortableHandle(function () {
|
|
17079
17480
|
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
17080
17481
|
width: 25,
|
|
@@ -17327,7 +17728,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17327
17728
|
_this.DraggableBodyRow = function (_ref2) {
|
|
17328
17729
|
var className = _ref2.className,
|
|
17329
17730
|
style = _ref2.style,
|
|
17330
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
17731
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
17331
17732
|
var sortDataSource = _this.state.sortDataSource;
|
|
17332
17733
|
var index = sortDataSource.findIndex(function (x) {
|
|
17333
17734
|
return x.name === restProps['data-row-key'];
|
|
@@ -17480,7 +17881,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17480
17881
|
});
|
|
17481
17882
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17482
17883
|
className: 'sort_table_wrapper'
|
|
17483
|
-
}, visible && (
|
|
17884
|
+
}, visible && (/*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
17484
17885
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17485
17886
|
wrapClassName: 'sort_table_wrapper',
|
|
17486
17887
|
width: 820,
|
|
@@ -17525,7 +17926,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17525
17926
|
style: {
|
|
17526
17927
|
width: 525
|
|
17527
17928
|
}
|
|
17528
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (
|
|
17929
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", null, !searchDataSource && (/*#__PURE__*/React__default['default'].createElement(antd.Checkbox, {
|
|
17529
17930
|
checked: !dataSource.some(function (item) {
|
|
17530
17931
|
if (item.hidden) return true;
|
|
17531
17932
|
return false;
|
|
@@ -17561,11 +17962,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17561
17962
|
_this2.onChange(e, item.name);
|
|
17562
17963
|
}
|
|
17563
17964
|
}, item.label);
|
|
17564
|
-
}), !!newSearchSource.length && (
|
|
17965
|
+
}), !!newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("span", {
|
|
17565
17966
|
style: {
|
|
17566
17967
|
width: '144px'
|
|
17567
17968
|
}
|
|
17568
|
-
})), !newSearchSource.length && (
|
|
17969
|
+
})), !newSearchSource.length && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
17569
17970
|
className: 'sort_table_column_all_empty'
|
|
17570
17971
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17571
17972
|
className: 'sort_table_content_wrapper'
|
|
@@ -17626,13 +18027,13 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17626
18027
|
var css_248z$j = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17627
18028
|
styleInject(css_248z$j);
|
|
17628
18029
|
|
|
17629
|
-
var _excluded$
|
|
18030
|
+
var _excluded$i = ["onResize", "width"];
|
|
17630
18031
|
var MemoQueryTable = /*#__PURE__*/React__default['default'].memo(bssula.QueryTable);
|
|
17631
18032
|
var Text$2 = antd.Typography.Text;
|
|
17632
18033
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
17633
18034
|
var onResize = props.onResize,
|
|
17634
18035
|
width = props.width,
|
|
17635
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
18036
|
+
restProps = _objectWithoutProperties(props, _excluded$i);
|
|
17636
18037
|
var _useState = React$1.useState(width),
|
|
17637
18038
|
_useState2 = _slicedToArray(_useState, 2),
|
|
17638
18039
|
innerWidth = _useState2[0],
|
|
@@ -17664,7 +18065,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17664
18065
|
};
|
|
17665
18066
|
setIsResizing(true);
|
|
17666
18067
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17667
|
-
document.addEventListener('mouseup',
|
|
18068
|
+
document.addEventListener('mouseup', _handleMouseUp);
|
|
17668
18069
|
};
|
|
17669
18070
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17670
18071
|
e.stopPropagation();
|
|
@@ -17680,9 +18081,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17680
18081
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17681
18082
|
}
|
|
17682
18083
|
};
|
|
17683
|
-
var
|
|
18084
|
+
var _handleMouseUp = function handleMouseUp(e) {
|
|
17684
18085
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17685
|
-
document.removeEventListener('mouseup',
|
|
18086
|
+
document.removeEventListener('mouseup', _handleMouseUp);
|
|
17686
18087
|
setIsResizing(false);
|
|
17687
18088
|
};
|
|
17688
18089
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17901,7 +18302,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17901
18302
|
}
|
|
17902
18303
|
});
|
|
17903
18304
|
}
|
|
17904
|
-
handleBssulaColumnsSpecialParams(d);
|
|
18305
|
+
// handleBssulaColumnsSpecialParams(d);
|
|
17905
18306
|
});
|
|
17906
18307
|
setCommonRenderFn(props.columns);
|
|
17907
18308
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
@@ -17931,7 +18332,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17931
18332
|
var showColumns = getSettingFieldOrColumn(isReset ? [] : columnConfig, columns, 'columns');
|
|
17932
18333
|
showColumns.forEach(function (item, index) {
|
|
17933
18334
|
item.width = item.width || getItemDefaultWidth(item);
|
|
17934
|
-
handleBssulaColumnsSpecialParams(item);
|
|
18335
|
+
// handleBssulaColumnsSpecialParams(item);
|
|
17935
18336
|
item.onHeaderCell = function (column) {
|
|
17936
18337
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17937
18338
|
width: typeof column.width === 'number' ? column.width : parseWidth(column.width),
|
|
@@ -17944,7 +18345,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17944
18345
|
var showExportColumns = getSettingFieldOrColumn(exportColumnConfig, columns, 'columns');
|
|
17945
18346
|
showExportColumns.forEach(function (item, index) {
|
|
17946
18347
|
item.width = item.width || getItemDefaultWidth(item);
|
|
17947
|
-
handleBssulaColumnsSpecialParams(item);
|
|
18348
|
+
// handleBssulaColumnsSpecialParams(item);
|
|
17948
18349
|
item.onHeaderCell = function (column) {
|
|
17949
18350
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
17950
18351
|
width: typeof column.width === 'number' ? column.width : parseInt(column.width.replace('px', '')),
|
|
@@ -18025,7 +18426,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18025
18426
|
};
|
|
18026
18427
|
// 处理 table 基本参数
|
|
18027
18428
|
var setTableProps = function setTableProps() {
|
|
18028
|
-
var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3,
|
|
18429
|
+
var _tableProps, _tableProps$initialPa, _tableProps2, _tableProps3, _tableProps4, _tableProps4$initialP;
|
|
18029
18430
|
var tableProps = value.tableProps || {};
|
|
18030
18431
|
tableProps = _objectSpread2(_objectSpread2({}, tableProps), {}, {
|
|
18031
18432
|
size: value.size || 'middle',
|
|
@@ -18048,16 +18449,16 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18048
18449
|
x: props.overScrollX || 'max-content',
|
|
18049
18450
|
y: (props === null || props === void 0 ? void 0 : props.overScrollY) || height
|
|
18050
18451
|
},
|
|
18051
|
-
bordered: value.bordered
|
|
18052
|
-
sticky: true,
|
|
18053
|
-
rowClassName:
|
|
18452
|
+
bordered: typeof value.bordered == 'boolean' ? value.bordered : true,
|
|
18453
|
+
sticky: typeof value.sticky == 'boolean' ? value.sticky : true,
|
|
18454
|
+
rowClassName: (props === null || props === void 0 ? void 0 : props.rowClassName) || ((_tableProps2 = tableProps) === null || _tableProps2 === void 0 ? void 0 : _tableProps2.rowClassName) || function (record, index) {
|
|
18054
18455
|
return index % 2 === 0 ? 'table_base' : 'table_odd';
|
|
18055
18456
|
},
|
|
18056
18457
|
components: _objectSpread2({
|
|
18057
18458
|
header: {
|
|
18058
18459
|
cell: ResizeableTitle$2
|
|
18059
18460
|
}
|
|
18060
|
-
}, (
|
|
18461
|
+
}, (_tableProps3 = tableProps) === null || _tableProps3 === void 0 ? void 0 : _tableProps3.components)
|
|
18061
18462
|
}, props.viewPagePath ?
|
|
18062
18463
|
// 详情页查看地址 存在该参数时 默认列表支持双击打开
|
|
18063
18464
|
{
|
|
@@ -18072,7 +18473,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18072
18473
|
}
|
|
18073
18474
|
} : {});
|
|
18074
18475
|
// @ts-ignore
|
|
18075
|
-
if ((
|
|
18476
|
+
if ((_tableProps4 = tableProps) === null || _tableProps4 === void 0 ? void 0 : (_tableProps4$initialP = _tableProps4.initialPaging) === null || _tableProps4$initialP === void 0 ? void 0 : _tableProps4$initialP.pagination) {
|
|
18076
18477
|
// @ts-ignore
|
|
18077
18478
|
tableProps.initialPaging.pagination.showSizeChanger = true;
|
|
18078
18479
|
}
|
|
@@ -18093,7 +18494,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18093
18494
|
actionsRender = actionsRender.concat([{
|
|
18094
18495
|
type: 'text',
|
|
18095
18496
|
props: {
|
|
18096
|
-
children: (
|
|
18497
|
+
children: (/*#__PURE__*/React__default['default'].createElement(ExportIcon, {
|
|
18097
18498
|
request: {
|
|
18098
18499
|
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),
|
|
18099
18500
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18171,9 +18572,9 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18171
18572
|
newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
|
|
18172
18573
|
width: size.width
|
|
18173
18574
|
});
|
|
18174
|
-
newColumns.forEach(
|
|
18175
|
-
|
|
18176
|
-
});
|
|
18575
|
+
// newColumns.forEach((d: any) => {
|
|
18576
|
+
// handleBssulaColumnsSpecialParams(d);
|
|
18577
|
+
// });
|
|
18177
18578
|
return _toConsumableArray(newColumns);
|
|
18178
18579
|
});
|
|
18179
18580
|
};
|
|
@@ -18339,7 +18740,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18339
18740
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18340
18741
|
bsTableCode: bsTableCode,
|
|
18341
18742
|
onlyModal: true
|
|
18342
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (
|
|
18743
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
|
|
18343
18744
|
ref: exportTableRef,
|
|
18344
18745
|
setShowColumns: setShowExportColumns,
|
|
18345
18746
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18432,11 +18833,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18432
18833
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18433
18834
|
var resultList = [];
|
|
18434
18835
|
var newRouter = cloneDeep__default['default'](router);
|
|
18435
|
-
var
|
|
18836
|
+
var _deep = function deep(router) {
|
|
18436
18837
|
if (router && Array.isArray(router)) {
|
|
18437
18838
|
router.forEach(function (item) {
|
|
18438
18839
|
if (item.children && Array.isArray(item.children)) {
|
|
18439
|
-
|
|
18840
|
+
_deep(item.children);
|
|
18440
18841
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18441
18842
|
return d === item.code;
|
|
18442
18843
|
})) {
|
|
@@ -18450,10 +18851,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18450
18851
|
resultList.push(_objectSpread2({}, router));
|
|
18451
18852
|
}
|
|
18452
18853
|
};
|
|
18453
|
-
|
|
18854
|
+
_deep(newRouter);
|
|
18454
18855
|
callBack([].concat(resultList));
|
|
18455
18856
|
};
|
|
18456
|
-
var
|
|
18857
|
+
var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18457
18858
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18458
18859
|
var _loop = function _loop(i) {
|
|
18459
18860
|
if (routesData[i].hideInMenu) {
|
|
@@ -18467,7 +18868,7 @@ var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18467
18868
|
return 0; // continue
|
|
18468
18869
|
}
|
|
18469
18870
|
if (routesData[i].children) {
|
|
18470
|
-
|
|
18871
|
+
_setMenuTreeData(routesData[i].children);
|
|
18471
18872
|
}
|
|
18472
18873
|
},
|
|
18473
18874
|
_ret;
|
|
@@ -18488,16 +18889,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18488
18889
|
};
|
|
18489
18890
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18490
18891
|
var routerMap = {};
|
|
18491
|
-
var
|
|
18892
|
+
var _flattenMenuData = function flattenMenuData(data) {
|
|
18492
18893
|
data.forEach(function (menuItem) {
|
|
18493
18894
|
if (menuItem.children) {
|
|
18494
|
-
|
|
18895
|
+
_flattenMenuData(menuItem.children);
|
|
18495
18896
|
}
|
|
18496
18897
|
// Reduce memory usage
|
|
18497
18898
|
routerMap[menuItem.path] = menuItem;
|
|
18498
18899
|
});
|
|
18499
18900
|
};
|
|
18500
|
-
|
|
18901
|
+
_flattenMenuData(menuData);
|
|
18501
18902
|
return routerMap;
|
|
18502
18903
|
};
|
|
18503
18904
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18643,7 +19044,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18643
19044
|
sethomepageData(homepageDataList);
|
|
18644
19045
|
setroutesData(routesDataList);
|
|
18645
19046
|
}, []);
|
|
18646
|
-
var
|
|
19047
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
18647
19048
|
if (!child.hideInMenu && child.children) {
|
|
18648
19049
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
18649
19050
|
style: {
|
|
@@ -18653,7 +19054,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18653
19054
|
}, umi.formatMessage({
|
|
18654
19055
|
id: "".concat(child.locale)
|
|
18655
19056
|
})), child.children.map(function (menuItem) {
|
|
18656
|
-
return
|
|
19057
|
+
return _renderChildItem(menuItem);
|
|
18657
19058
|
}));
|
|
18658
19059
|
} else if (!child.hideInMenu && child.path) {
|
|
18659
19060
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -18688,7 +19089,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18688
19089
|
className: 'drawerWarp'
|
|
18689
19090
|
}, homepageData && homepageData.filter(function (d) {
|
|
18690
19091
|
return !d.hideInMenu;
|
|
18691
|
-
}).length > 0 && (
|
|
19092
|
+
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
18692
19093
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
18693
19094
|
dataSource: homepageData,
|
|
18694
19095
|
renderItem: function renderItem(child) {
|
|
@@ -18723,7 +19124,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18723
19124
|
bordered: true,
|
|
18724
19125
|
dataSource: item.children,
|
|
18725
19126
|
renderItem: function renderItem(child) {
|
|
18726
|
-
return
|
|
19127
|
+
return _renderChildItem(child);
|
|
18727
19128
|
}
|
|
18728
19129
|
});
|
|
18729
19130
|
})));
|
|
@@ -18783,7 +19184,7 @@ var AllFunc$1 = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
18783
19184
|
src: allfunc
|
|
18784
19185
|
})), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18785
19186
|
className: 'btnSpan2'
|
|
18786
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (
|
|
19187
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
18787
19188
|
style: {
|
|
18788
19189
|
left: isDrawer ? 140 : 0,
|
|
18789
19190
|
top: 50
|
|
@@ -18829,7 +19230,7 @@ function outLogin(_x) {
|
|
|
18829
19230
|
return _outLogin.apply(this, arguments);
|
|
18830
19231
|
}
|
|
18831
19232
|
function _outLogin() {
|
|
18832
|
-
_outLogin = _asyncToGenerator(
|
|
19233
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18833
19234
|
var res;
|
|
18834
19235
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18835
19236
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18971,7 +19372,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18971
19372
|
});
|
|
18972
19373
|
};
|
|
18973
19374
|
var loginOut = /*#__PURE__*/function () {
|
|
18974
|
-
var _ref2 = _asyncToGenerator(
|
|
19375
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18975
19376
|
var sessionId;
|
|
18976
19377
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18977
19378
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19075,7 +19476,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
19075
19476
|
marginRight: '0px'
|
|
19076
19477
|
},
|
|
19077
19478
|
src: './xialajiantou-new.svg'
|
|
19078
|
-
}))))), loginModalParams.visible && (
|
|
19479
|
+
}))))), loginModalParams.visible && (/*#__PURE__*/React__default['default'].createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
19079
19480
|
};
|
|
19080
19481
|
|
|
19081
19482
|
// -- 查询店铺 --
|
|
@@ -19083,7 +19484,7 @@ function getStoreByName(_x) {
|
|
|
19083
19484
|
return _getStoreByName.apply(this, arguments);
|
|
19084
19485
|
}
|
|
19085
19486
|
function _getStoreByName() {
|
|
19086
|
-
_getStoreByName = _asyncToGenerator(
|
|
19487
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
19087
19488
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19088
19489
|
while (1) switch (_context.prev = _context.next) {
|
|
19089
19490
|
case 0:
|
|
@@ -19151,7 +19552,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19151
19552
|
return _fetchUserList.apply(this, arguments);
|
|
19152
19553
|
}
|
|
19153
19554
|
function _fetchUserList() {
|
|
19154
|
-
_fetchUserList = _asyncToGenerator(
|
|
19555
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
19155
19556
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19156
19557
|
while (1) switch (_context3.prev = _context3.next) {
|
|
19157
19558
|
case 0:
|
|
@@ -19199,7 +19600,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19199
19600
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
19200
19601
|
}, [debounceTimeout, key]);
|
|
19201
19602
|
var changeInput = /*#__PURE__*/function () {
|
|
19202
|
-
var _ref = _asyncToGenerator(
|
|
19603
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
19203
19604
|
var res;
|
|
19204
19605
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19205
19606
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -19221,7 +19622,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
19221
19622
|
};
|
|
19222
19623
|
}();
|
|
19223
19624
|
React$1.useEffect(function () {
|
|
19224
|
-
_asyncToGenerator(
|
|
19625
|
+
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19225
19626
|
var res;
|
|
19226
19627
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19227
19628
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19386,7 +19787,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19386
19787
|
var resultList = [];
|
|
19387
19788
|
var newRouter = _.cloneDeep(router);
|
|
19388
19789
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19389
|
-
var
|
|
19790
|
+
var _deep = function deep(router) {
|
|
19390
19791
|
if (router && Array.isArray(router)) {
|
|
19391
19792
|
router.forEach(function (item) {
|
|
19392
19793
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19396,7 +19797,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19396
19797
|
d.nameEdit = true;
|
|
19397
19798
|
}
|
|
19398
19799
|
});
|
|
19399
|
-
|
|
19800
|
+
_deep(item.routes);
|
|
19400
19801
|
} else if (!item.hideInMenu && (name ? umi.formatMessage({
|
|
19401
19802
|
id: "menu.".concat(item.name)
|
|
19402
19803
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19415,7 +19816,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19415
19816
|
}));
|
|
19416
19817
|
}
|
|
19417
19818
|
};
|
|
19418
|
-
|
|
19819
|
+
_deep(newRouter);
|
|
19419
19820
|
setroutesData([].concat(resultList));
|
|
19420
19821
|
};
|
|
19421
19822
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19497,7 +19898,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19497
19898
|
},
|
|
19498
19899
|
title: item.fullPathName
|
|
19499
19900
|
}, renderLineStyl(item.fullPathName));
|
|
19500
|
-
}))))), showSelectStore && (
|
|
19901
|
+
}))))), showSelectStore && (/*#__PURE__*/React__default['default'].createElement(ChooseStore, {
|
|
19501
19902
|
employeeCode: employeeCode
|
|
19502
19903
|
})), /*#__PURE__*/React__default['default'].createElement(GlobalHeaderRight, null));
|
|
19503
19904
|
};
|
|
@@ -19512,7 +19913,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19512
19913
|
var TreeNode = antd.Tree.TreeNode;
|
|
19513
19914
|
var Search$2 = antd.Input.Search;
|
|
19514
19915
|
var dataList = [];
|
|
19515
|
-
var
|
|
19916
|
+
var _generateList = function generateList(data) {
|
|
19516
19917
|
for (var i = 0; i < data.length; i++) {
|
|
19517
19918
|
var node = data[i];
|
|
19518
19919
|
var path = node.path,
|
|
@@ -19522,11 +19923,11 @@ var generateList = function generateList(data) {
|
|
|
19522
19923
|
name: name
|
|
19523
19924
|
});
|
|
19524
19925
|
if (node.children) {
|
|
19525
|
-
|
|
19926
|
+
_generateList(node.children);
|
|
19526
19927
|
}
|
|
19527
19928
|
}
|
|
19528
19929
|
};
|
|
19529
|
-
var
|
|
19930
|
+
var _getParentKey = function getParentKey(path, tree) {
|
|
19530
19931
|
var parentKey;
|
|
19531
19932
|
for (var i = 0; i < tree.length; i++) {
|
|
19532
19933
|
var node = tree[i];
|
|
@@ -19535,8 +19936,8 @@ var getParentKey = function getParentKey(path, tree) {
|
|
|
19535
19936
|
return item.path === path;
|
|
19536
19937
|
})) {
|
|
19537
19938
|
parentKey = node.path;
|
|
19538
|
-
} else if (
|
|
19539
|
-
parentKey =
|
|
19939
|
+
} else if (_getParentKey(path, node.children)) {
|
|
19940
|
+
parentKey = _getParentKey(path, node.children);
|
|
19540
19941
|
}
|
|
19541
19942
|
}
|
|
19542
19943
|
}
|
|
@@ -19567,7 +19968,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19567
19968
|
var treeData = _this.state.treeData;
|
|
19568
19969
|
var expandedKeys = dataList.map(function (item) {
|
|
19569
19970
|
if (item.name.indexOf(value) > -1) {
|
|
19570
|
-
return
|
|
19971
|
+
return _getParentKey(item.path, treeData);
|
|
19571
19972
|
}
|
|
19572
19973
|
return null;
|
|
19573
19974
|
}).filter(function (item, i, self) {
|
|
@@ -19581,22 +19982,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19581
19982
|
};
|
|
19582
19983
|
_this.getPathList = function (originData) {
|
|
19583
19984
|
var pathList = [];
|
|
19584
|
-
var
|
|
19985
|
+
var _getList = function getList(data) {
|
|
19585
19986
|
if (Array.isArray(data)) {
|
|
19586
19987
|
data.forEach(function (item) {
|
|
19587
19988
|
pathList.push(item.path);
|
|
19588
19989
|
if (item.children) {
|
|
19589
|
-
|
|
19990
|
+
_getList(item.children);
|
|
19590
19991
|
}
|
|
19591
19992
|
});
|
|
19592
19993
|
} else {
|
|
19593
19994
|
pathList.push(data.path);
|
|
19594
19995
|
if (data.children) {
|
|
19595
|
-
|
|
19996
|
+
_getList(data.children);
|
|
19596
19997
|
}
|
|
19597
19998
|
}
|
|
19598
19999
|
};
|
|
19599
|
-
|
|
20000
|
+
_getList(originData);
|
|
19600
20001
|
return pathList;
|
|
19601
20002
|
};
|
|
19602
20003
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19605,18 +20006,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19605
20006
|
customerMenuData = _this$props.customerMenuData,
|
|
19606
20007
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19607
20008
|
var filterItem;
|
|
19608
|
-
var
|
|
20009
|
+
var _filterMenuItem = function filterMenuItem(menuData) {
|
|
19609
20010
|
menuData.forEach(function (item) {
|
|
19610
20011
|
if (item.path === path) {
|
|
19611
20012
|
filterItem = _objectSpread2({}, item);
|
|
19612
20013
|
return;
|
|
19613
20014
|
}
|
|
19614
20015
|
if (item.children) {
|
|
19615
|
-
|
|
20016
|
+
_filterMenuItem(item.children);
|
|
19616
20017
|
}
|
|
19617
20018
|
});
|
|
19618
20019
|
};
|
|
19619
|
-
|
|
20020
|
+
_filterMenuItem(treeData);
|
|
19620
20021
|
var addPathList = _this.getPathList(filterItem);
|
|
19621
20022
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19622
20023
|
var isRepet = false;
|
|
@@ -19646,8 +20047,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19646
20047
|
return item.path === '/';
|
|
19647
20048
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19648
20049
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19649
|
-
|
|
19650
|
-
|
|
20050
|
+
_setMenuTreeData(routesData);
|
|
20051
|
+
_generateList(routesData);
|
|
19651
20052
|
this.setState({
|
|
19652
20053
|
treeData: routesData
|
|
19653
20054
|
});
|
|
@@ -19661,16 +20062,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19661
20062
|
expandedKeys = _this$state.expandedKeys,
|
|
19662
20063
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19663
20064
|
treeData = _this$state.treeData;
|
|
19664
|
-
var
|
|
20065
|
+
var _loop = function loop(data) {
|
|
19665
20066
|
return data.map(function (item) {
|
|
19666
20067
|
var index = item.name.indexOf(searchValue);
|
|
19667
20068
|
var beforeStr = item.name.substr(0, index);
|
|
19668
20069
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19669
|
-
var name = index > -1 ? (
|
|
20070
|
+
var name = index > -1 ? (/*#__PURE__*/React__default['default'].createElement("span", null, beforeStr, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
19670
20071
|
style: {
|
|
19671
20072
|
color: '#f50'
|
|
19672
20073
|
}
|
|
19673
|
-
}, searchValue), afterStr)) : (
|
|
20074
|
+
}, searchValue), afterStr)) : (/*#__PURE__*/React__default['default'].createElement("span", null, item.name));
|
|
19674
20075
|
if (item.children && item.children.length) {
|
|
19675
20076
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19676
20077
|
path: item.path,
|
|
@@ -19692,7 +20093,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19692
20093
|
width: 18,
|
|
19693
20094
|
src: arrowRight
|
|
19694
20095
|
}))))
|
|
19695
|
-
},
|
|
20096
|
+
}, _loop(item.children));
|
|
19696
20097
|
}
|
|
19697
20098
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode, {
|
|
19698
20099
|
path: item.path,
|
|
@@ -19742,7 +20143,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19742
20143
|
onExpand: this.onExpand,
|
|
19743
20144
|
expandedKeys: expandedKeys,
|
|
19744
20145
|
autoExpandParent: autoExpandParent
|
|
19745
|
-
},
|
|
20146
|
+
}, _loop(treeData))));
|
|
19746
20147
|
}
|
|
19747
20148
|
}]);
|
|
19748
20149
|
}(React__default['default'].Component);
|
|
@@ -19775,24 +20176,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19775
20176
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19776
20177
|
var dragObj;
|
|
19777
20178
|
var finalDropItem;
|
|
19778
|
-
var
|
|
20179
|
+
var _loop = function loop(data, path, callback) {
|
|
19779
20180
|
for (var i = 0; i < data.length; i++) {
|
|
19780
20181
|
if (data[i].path === path) {
|
|
19781
20182
|
return callback(data[i], i, data);
|
|
19782
20183
|
}
|
|
19783
20184
|
if (data[i].children) {
|
|
19784
|
-
|
|
20185
|
+
_loop(data[i].children, path, callback);
|
|
19785
20186
|
}
|
|
19786
20187
|
}
|
|
19787
20188
|
};
|
|
19788
20189
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19789
|
-
|
|
20190
|
+
_loop(data, dragKey, function (item, index, arr) {
|
|
19790
20191
|
arr.splice(index, 1);
|
|
19791
20192
|
dragObj = item;
|
|
19792
20193
|
});
|
|
19793
20194
|
if (!info.dropToGap) {
|
|
19794
20195
|
// Drop on the content
|
|
19795
|
-
|
|
20196
|
+
_loop(data, dropKey, function (item) {
|
|
19796
20197
|
item.children = item.children || [];
|
|
19797
20198
|
item.children.unshift(dragObj);
|
|
19798
20199
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19803,7 +20204,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19803
20204
|
// Is expanded
|
|
19804
20205
|
dropPosition === 1 // On the bottom gap
|
|
19805
20206
|
) {
|
|
19806
|
-
|
|
20207
|
+
_loop(data, dropKey, function (item) {
|
|
19807
20208
|
item.children = item.children || [];
|
|
19808
20209
|
item.children.unshift(dragObj);
|
|
19809
20210
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19811,7 +20212,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19811
20212
|
} else {
|
|
19812
20213
|
var ar;
|
|
19813
20214
|
var i;
|
|
19814
|
-
|
|
20215
|
+
_loop(data, dropKey, function (item, index, arr) {
|
|
19815
20216
|
ar = arr;
|
|
19816
20217
|
i = index;
|
|
19817
20218
|
});
|
|
@@ -19850,17 +20251,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19850
20251
|
title: '编辑名称',
|
|
19851
20252
|
callBack: function callBack(newName) {
|
|
19852
20253
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19853
|
-
var
|
|
20254
|
+
var _editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19854
20255
|
oldTreeData.forEach(function (treeItem) {
|
|
19855
20256
|
if (treeItem.path === item.path) {
|
|
19856
20257
|
treeItem.name = newName;
|
|
19857
20258
|
}
|
|
19858
20259
|
if (treeItem.children) {
|
|
19859
|
-
|
|
20260
|
+
_editTreeDataName(treeItem.children);
|
|
19860
20261
|
}
|
|
19861
20262
|
});
|
|
19862
20263
|
};
|
|
19863
|
-
|
|
20264
|
+
_editTreeDataName(oldTreeData);
|
|
19864
20265
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19865
20266
|
_this.setState({
|
|
19866
20267
|
modalInfo: {
|
|
@@ -19905,7 +20306,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19905
20306
|
title: '新增子目录',
|
|
19906
20307
|
callBack: function callBack(newName) {
|
|
19907
20308
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19908
|
-
var
|
|
20309
|
+
var _addChildFolder = function addChildFolder(oldTreeData) {
|
|
19909
20310
|
oldTreeData.forEach(function (treeItem) {
|
|
19910
20311
|
if (treeItem.path === item.path) {
|
|
19911
20312
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19917,11 +20318,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19917
20318
|
}];
|
|
19918
20319
|
}
|
|
19919
20320
|
if (treeItem.children) {
|
|
19920
|
-
|
|
20321
|
+
_addChildFolder(treeItem.children);
|
|
19921
20322
|
}
|
|
19922
20323
|
});
|
|
19923
20324
|
};
|
|
19924
|
-
|
|
20325
|
+
_addChildFolder(oldTreeData);
|
|
19925
20326
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19926
20327
|
_this.setState({
|
|
19927
20328
|
modalInfo: {
|
|
@@ -19980,7 +20381,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19980
20381
|
var _this$state = this.state,
|
|
19981
20382
|
modalInfo = _this$state.modalInfo,
|
|
19982
20383
|
checkedKeys = _this$state.checkedKeys;
|
|
19983
|
-
var
|
|
20384
|
+
var _loop2 = function loop(data) {
|
|
19984
20385
|
return data.map(function (item) {
|
|
19985
20386
|
if (item.children && item.children.length) {
|
|
19986
20387
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
@@ -19997,7 +20398,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19997
20398
|
e.stopPropagation();
|
|
19998
20399
|
}
|
|
19999
20400
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(icons.EllipsisOutlined, null))))))
|
|
20000
|
-
},
|
|
20401
|
+
}, _loop2(item.children));
|
|
20001
20402
|
}
|
|
20002
20403
|
return /*#__PURE__*/React__default['default'].createElement(TreeNode$1, {
|
|
20003
20404
|
path: item.path,
|
|
@@ -20076,7 +20477,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
20076
20477
|
children: 'children'
|
|
20077
20478
|
},
|
|
20078
20479
|
onDrop: this.onDrop
|
|
20079
|
-
},
|
|
20480
|
+
}, _loop2(this.props.customerMenuData))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
20080
20481
|
width: 600,
|
|
20081
20482
|
bodyStyle: {
|
|
20082
20483
|
paddingTop: '32px',
|
|
@@ -20189,7 +20590,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20189
20590
|
pathname: item.path
|
|
20190
20591
|
});
|
|
20191
20592
|
};
|
|
20192
|
-
var
|
|
20593
|
+
var _getMenuDom = function getMenuDom(menuData) {
|
|
20193
20594
|
return menuData.map(function (item) {
|
|
20194
20595
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20195
20596
|
style: {
|
|
@@ -20204,7 +20605,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20204
20605
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
20205
20606
|
paddingLeft: '4px'
|
|
20206
20607
|
}
|
|
20207
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
20608
|
+
}, item.name), !!item.children && !!item.children.length && _getMenuDom(item.children));
|
|
20208
20609
|
});
|
|
20209
20610
|
};
|
|
20210
20611
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20230,7 +20631,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20230
20631
|
style: {
|
|
20231
20632
|
paddingLeft: '5px'
|
|
20232
20633
|
}
|
|
20233
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (
|
|
20634
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React__default['default'].createElement(antd.Drawer, {
|
|
20234
20635
|
style: {
|
|
20235
20636
|
left: isDrawer ? 140 : 0
|
|
20236
20637
|
},
|
|
@@ -20251,7 +20652,7 @@ var CustomerMenu = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
20251
20652
|
visible: isDrawer
|
|
20252
20653
|
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
20253
20654
|
className: 'menu_title_line'
|
|
20254
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
20655
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), _getMenuDom(menuData)))), /*#__PURE__*/React__default['default'].createElement(antd.Modal, _objectSpread2({
|
|
20255
20656
|
title: /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20256
20657
|
style: {
|
|
20257
20658
|
fontWeight: '600',
|
|
@@ -20325,7 +20726,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20325
20726
|
return item.path === '/';
|
|
20326
20727
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20327
20728
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20328
|
-
|
|
20729
|
+
_setMenuTreeData(routesData);
|
|
20329
20730
|
routesData.forEach(function (item) {
|
|
20330
20731
|
if (item.children) {
|
|
20331
20732
|
routesDataList.push(item);
|
|
@@ -20355,7 +20756,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20355
20756
|
setHeight(clientHeight - 190);
|
|
20356
20757
|
setDrawHeight(clientHeight - 70);
|
|
20357
20758
|
};
|
|
20358
|
-
var
|
|
20759
|
+
var _renderChildItem = function renderChildItem(child) {
|
|
20359
20760
|
if (!child.hideInMenu && child.children) {
|
|
20360
20761
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
20361
20762
|
style: {
|
|
@@ -20365,7 +20766,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20365
20766
|
}, umi.formatMessage({
|
|
20366
20767
|
id: "".concat(child.locale)
|
|
20367
20768
|
})), child.children.map(function (menuItem) {
|
|
20368
|
-
return
|
|
20769
|
+
return _renderChildItem(menuItem);
|
|
20369
20770
|
}));
|
|
20370
20771
|
} else if (!child.hideInMenu && child.path) {
|
|
20371
20772
|
return /*#__PURE__*/React__default['default'].createElement(antd.List.Item, {
|
|
@@ -20507,7 +20908,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20507
20908
|
onMenuClick(e, item);
|
|
20508
20909
|
}
|
|
20509
20910
|
}, item.name);
|
|
20510
|
-
}))), !!SearhData.length ? (
|
|
20911
|
+
}))), !!SearhData.length ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
20511
20912
|
className: 'search_menu_content'
|
|
20512
20913
|
}, SearhData.map(function (item) {
|
|
20513
20914
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20516,7 +20917,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20516
20917
|
},
|
|
20517
20918
|
key: item.path
|
|
20518
20919
|
}, item.name);
|
|
20519
|
-
}))) : (
|
|
20920
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20520
20921
|
style: {
|
|
20521
20922
|
height: "".concat(rightMenuHeight, "px"),
|
|
20522
20923
|
overflowY: 'scroll',
|
|
@@ -20528,7 +20929,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20528
20929
|
className: 'drawerWarp_right'
|
|
20529
20930
|
}, homepageData && homepageData.filter(function (d) {
|
|
20530
20931
|
return !d.hideInMenu;
|
|
20531
|
-
}).length > 0 && (
|
|
20932
|
+
}).length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.List, {
|
|
20532
20933
|
className: classNames__default['default']('allFunsList', 'allFunsListWarp'),
|
|
20533
20934
|
dataSource: homepageData,
|
|
20534
20935
|
renderItem: function renderItem(child) {
|
|
@@ -20569,7 +20970,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20569
20970
|
bordered: true,
|
|
20570
20971
|
dataSource: item.children,
|
|
20571
20972
|
renderItem: function renderItem(child) {
|
|
20572
|
-
return
|
|
20973
|
+
return _renderChildItem(child);
|
|
20573
20974
|
}
|
|
20574
20975
|
});
|
|
20575
20976
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -20709,7 +21110,7 @@ var NoFoundPage = function NoFoundPage(props) {
|
|
|
20709
21110
|
}));
|
|
20710
21111
|
};
|
|
20711
21112
|
|
|
20712
|
-
var _excluded$
|
|
21113
|
+
var _excluded$j = ["route"];
|
|
20713
21114
|
var TabPane = antd.Tabs.TabPane;
|
|
20714
21115
|
var getId = function getId(str) {
|
|
20715
21116
|
// 找到最后一个 / 的位置
|
|
@@ -20727,10 +21128,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20727
21128
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20728
21129
|
var menuKeys = [];
|
|
20729
21130
|
var docsId = [];
|
|
20730
|
-
var
|
|
21131
|
+
var _getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20731
21132
|
data.forEach(function (item) {
|
|
20732
21133
|
if (item.children && item.children.length > 0) {
|
|
20733
|
-
|
|
21134
|
+
_getLimitedMenuKeys(item.children);
|
|
20734
21135
|
} else {
|
|
20735
21136
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20736
21137
|
menuKeys.push(originPath);
|
|
@@ -20741,7 +21142,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20741
21142
|
});
|
|
20742
21143
|
};
|
|
20743
21144
|
try {
|
|
20744
|
-
|
|
21145
|
+
_getLimitedMenuKeys(limitedMenuData);
|
|
20745
21146
|
} catch (e) {}
|
|
20746
21147
|
return {
|
|
20747
21148
|
menuKeys: menuKeys,
|
|
@@ -20975,10 +21376,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20975
21376
|
return (node.path || '').includes('all-general-documents');
|
|
20976
21377
|
};
|
|
20977
21378
|
// 递归获取树列表
|
|
20978
|
-
var
|
|
21379
|
+
var _getTreeList = function getTreeList(data) {
|
|
20979
21380
|
data.forEach(function (node) {
|
|
20980
21381
|
if (node.routes && node.routes.length > 0) {
|
|
20981
|
-
|
|
21382
|
+
_getTreeList(node.routes);
|
|
20982
21383
|
return;
|
|
20983
21384
|
}
|
|
20984
21385
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -21009,7 +21410,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21009
21410
|
}
|
|
21010
21411
|
});
|
|
21011
21412
|
};
|
|
21012
|
-
|
|
21413
|
+
_getTreeList(treeData);
|
|
21013
21414
|
return treeList;
|
|
21014
21415
|
};
|
|
21015
21416
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21638,7 +22039,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21638
22039
|
updateState = _ref8.updateState;
|
|
21639
22040
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21640
22041
|
className: "tab_title_content"
|
|
21641
|
-
}, item.tab, item.key !== '/' && (
|
|
22042
|
+
}, item.tab, item.key !== '/' && (/*#__PURE__*/React__default['default'].createElement(ItemMenu, {
|
|
21642
22043
|
info: item,
|
|
21643
22044
|
operateFun: _this3.operateFun,
|
|
21644
22045
|
listenRouterState: listenRouterState
|
|
@@ -21650,7 +22051,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21650
22051
|
}); // 添加数据大屏
|
|
21651
22052
|
var _this$props3 = this.props,
|
|
21652
22053
|
route = _this$props3.route,
|
|
21653
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
22054
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$j);
|
|
21654
22055
|
var exist = route.routes.find(function (route) {
|
|
21655
22056
|
return route.path === '/homePage/data-show';
|
|
21656
22057
|
});
|
|
@@ -21774,7 +22175,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21774
22175
|
};
|
|
21775
22176
|
}
|
|
21776
22177
|
var OperationsSlot = {
|
|
21777
|
-
left: (
|
|
22178
|
+
left: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21778
22179
|
className: 'tab_left_operate'
|
|
21779
22180
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21780
22181
|
onClick: function onClick() {
|
|
@@ -21790,7 +22191,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21790
22191
|
_this3.setTabNavTransLate(-100);
|
|
21791
22192
|
}
|
|
21792
22193
|
}, /*#__PURE__*/React__default['default'].createElement(icons.DoubleLeftOutlined, null)))),
|
|
21793
|
-
right: (
|
|
22194
|
+
right: (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
21794
22195
|
style: {
|
|
21795
22196
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21796
22197
|
},
|
|
@@ -21888,7 +22289,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21888
22289
|
onMouseLeave: function onMouseLeave() {
|
|
21889
22290
|
_this3.setShowMenu(false);
|
|
21890
22291
|
}
|
|
21891
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (
|
|
22292
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React__default['default'].createElement(icons.CaretLeftOutlined, {
|
|
21892
22293
|
style: {
|
|
21893
22294
|
position: 'absolute',
|
|
21894
22295
|
top: '14px',
|
|
@@ -21907,7 +22308,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21907
22308
|
postMenuData: function postMenuData(menus) {
|
|
21908
22309
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21909
22310
|
},
|
|
21910
|
-
links: [!this.state.collapse ? (
|
|
22311
|
+
links: [!this.state.collapse ? (/*#__PURE__*/React__default['default'].createElement(AllFunc$1, {
|
|
21911
22312
|
ref: this.allFunc,
|
|
21912
22313
|
itemPath: itemPath,
|
|
21913
22314
|
handleClose: this.handleClose,
|
|
@@ -21925,7 +22326,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21925
22326
|
},
|
|
21926
22327
|
menu: {
|
|
21927
22328
|
request: function () {
|
|
21928
|
-
var _request = _asyncToGenerator(
|
|
22329
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21929
22330
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21930
22331
|
while (1) switch (_context.prev = _context.next) {
|
|
21931
22332
|
case 0:
|
|
@@ -22060,7 +22461,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
22060
22461
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
22061
22462
|
timeFormat = _this$props4.timeFormat,
|
|
22062
22463
|
transparentProps = _this$props4.transparentProps;
|
|
22063
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (
|
|
22464
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, item.isNotFound ? (/*#__PURE__*/React__default['default'].createElement(NoFoundPage, null)) : /*#__PURE__*/React__default['default'].createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
22064
22465
|
getDictionarySource: getDictionarySource,
|
|
22065
22466
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
22066
22467
|
timeFormat: timeFormat
|
|
@@ -22084,12 +22485,12 @@ var index$5 = (function (props) {
|
|
|
22084
22485
|
});
|
|
22085
22486
|
|
|
22086
22487
|
// @ts-nocheck
|
|
22087
|
-
var
|
|
22488
|
+
var _getAllColumns = function getAllColumns(columns) {
|
|
22088
22489
|
var result = [];
|
|
22089
22490
|
columns.forEach(function (column) {
|
|
22090
22491
|
if (column.children) {
|
|
22091
22492
|
result.push(column);
|
|
22092
|
-
result.push.apply(result,
|
|
22493
|
+
result.push.apply(result, _getAllColumns(column.children));
|
|
22093
22494
|
} else {
|
|
22094
22495
|
result.push(column);
|
|
22095
22496
|
}
|
|
@@ -22098,7 +22499,7 @@ var getAllColumns = function getAllColumns(columns) {
|
|
|
22098
22499
|
};
|
|
22099
22500
|
var convertToRows = function convertToRows(originColumns) {
|
|
22100
22501
|
var maxLevel = 1;
|
|
22101
|
-
var
|
|
22502
|
+
var _traverse = function traverse(column, parent) {
|
|
22102
22503
|
if (parent) {
|
|
22103
22504
|
column.level = parent.level + 1;
|
|
22104
22505
|
if (maxLevel < column.level) {
|
|
@@ -22108,7 +22509,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22108
22509
|
if (column.children) {
|
|
22109
22510
|
var colSpan = 0;
|
|
22110
22511
|
column.children.forEach(function (subColumn) {
|
|
22111
|
-
|
|
22512
|
+
_traverse(subColumn, column);
|
|
22112
22513
|
colSpan += subColumn.colSpan;
|
|
22113
22514
|
});
|
|
22114
22515
|
column.colSpan = colSpan;
|
|
@@ -22118,13 +22519,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22118
22519
|
};
|
|
22119
22520
|
originColumns.forEach(function (column) {
|
|
22120
22521
|
column.level = 1;
|
|
22121
|
-
|
|
22522
|
+
_traverse(column);
|
|
22122
22523
|
});
|
|
22123
22524
|
var rows = [];
|
|
22124
22525
|
for (var i = 0; i < maxLevel; i++) {
|
|
22125
22526
|
rows.push([]);
|
|
22126
22527
|
}
|
|
22127
|
-
var allColumns =
|
|
22528
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22128
22529
|
allColumns.forEach(function (column) {
|
|
22129
22530
|
if (!column.children) {
|
|
22130
22531
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22164,7 +22565,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
22164
22565
|
};
|
|
22165
22566
|
var headersToRows = function headersToRows(originColumns) {
|
|
22166
22567
|
var maxLevel = 1;
|
|
22167
|
-
var
|
|
22568
|
+
var _traverse2 = function traverse(column, parent) {
|
|
22168
22569
|
if (parent) {
|
|
22169
22570
|
//计算当前元素属于第几个层级
|
|
22170
22571
|
column.level = parent.level + 1;
|
|
@@ -22177,7 +22578,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22177
22578
|
var colSpan = 0;
|
|
22178
22579
|
column.children.forEach(function (subColumn) {
|
|
22179
22580
|
//进行递归
|
|
22180
|
-
|
|
22581
|
+
_traverse2(subColumn, column);
|
|
22181
22582
|
colSpan += subColumn.colSpan;
|
|
22182
22583
|
});
|
|
22183
22584
|
column.colSpan = colSpan;
|
|
@@ -22187,14 +22588,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
22187
22588
|
};
|
|
22188
22589
|
originColumns.forEach(function (column) {
|
|
22189
22590
|
column.level = 1;
|
|
22190
|
-
|
|
22591
|
+
_traverse2(column);
|
|
22191
22592
|
});
|
|
22192
22593
|
var rows = [];
|
|
22193
22594
|
var lastData = [];
|
|
22194
22595
|
for (var i = 0; i < maxLevel; i++) {
|
|
22195
22596
|
rows.push([]);
|
|
22196
22597
|
}
|
|
22197
|
-
var allColumns =
|
|
22598
|
+
var allColumns = _getAllColumns(originColumns);
|
|
22198
22599
|
allColumns.forEach(function (column) {
|
|
22199
22600
|
if (!column.children) {
|
|
22200
22601
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -22623,10 +23024,10 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
22623
23024
|
}))))));
|
|
22624
23025
|
});
|
|
22625
23026
|
|
|
22626
|
-
var _excluded$
|
|
23027
|
+
var _excluded$k = ["children"];
|
|
22627
23028
|
var Drawer = (function (props) {
|
|
22628
23029
|
var children = props.children,
|
|
22629
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
23030
|
+
restProps = _objectWithoutProperties(props, _excluded$k);
|
|
22630
23031
|
return /*#__PURE__*/React__default['default'].createElement(antd.Drawer, _objectSpread2({
|
|
22631
23032
|
mask: true,
|
|
22632
23033
|
closable: false,
|
|
@@ -28211,7 +28612,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
28211
28612
|
}
|
|
28212
28613
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
28213
28614
|
};
|
|
28214
|
-
var
|
|
28615
|
+
var _hasHighLightChildren = function hasHighLightChildren() {
|
|
28215
28616
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
28216
28617
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
28217
28618
|
var children = hightLightData.children,
|
|
@@ -28222,7 +28623,7 @@ var hasHighLightChildren = function hasHighLightChildren() {
|
|
|
28222
28623
|
lineEnd = _loc2[2];
|
|
28223
28624
|
if (children) {
|
|
28224
28625
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
28225
|
-
return
|
|
28626
|
+
return _hasHighLightChildren(v, highLightLine);
|
|
28226
28627
|
});
|
|
28227
28628
|
}
|
|
28228
28629
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -28234,7 +28635,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
28234
28635
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
28235
28636
|
data.forEach(function (node) {
|
|
28236
28637
|
if (!node) return;
|
|
28237
|
-
node.toggled =
|
|
28638
|
+
node.toggled = _hasHighLightChildren(node, highLightLine);
|
|
28238
28639
|
node.active = isHightLight(node, highLightLine);
|
|
28239
28640
|
if (node.children) {
|
|
28240
28641
|
if (node.active) {
|
|
@@ -29665,7 +30066,7 @@ var valueType = {
|
|
|
29665
30066
|
};
|
|
29666
30067
|
|
|
29667
30068
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29668
|
-
var _ref = _asyncToGenerator(
|
|
30069
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29669
30070
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29670
30071
|
while (1) switch (_context.prev = _context.next) {
|
|
29671
30072
|
case 0:
|
|
@@ -29733,7 +30134,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29733
30134
|
value: false
|
|
29734
30135
|
}];
|
|
29735
30136
|
var ref = React$1.useRef();
|
|
29736
|
-
ahooks.useMount(
|
|
30137
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29737
30138
|
var _ref$current, source;
|
|
29738
30139
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29739
30140
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29847,7 +30248,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29847
30248
|
source: {
|
|
29848
30249
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29849
30250
|
type: function () {
|
|
29850
|
-
var _type = _asyncToGenerator(
|
|
30251
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29851
30252
|
var form, values, name, relates, source;
|
|
29852
30253
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29853
30254
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30327,7 +30728,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30327
30728
|
source: {
|
|
30328
30729
|
relates: ['choiceType', 'inputType'],
|
|
30329
30730
|
type: function () {
|
|
30330
|
-
var _type2 = _asyncToGenerator(
|
|
30731
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30331
30732
|
var values, name, form, source;
|
|
30332
30733
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30333
30734
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30549,7 +30950,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30549
30950
|
width: 900,
|
|
30550
30951
|
maskClosable: false,
|
|
30551
30952
|
onOk: function () {
|
|
30552
|
-
var _onOk = _asyncToGenerator(
|
|
30953
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30553
30954
|
var _ref$current4, _res$editableStatus;
|
|
30554
30955
|
var res, _res$defaultValue;
|
|
30555
30956
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30621,7 +31022,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30621
31022
|
}()
|
|
30622
31023
|
}), /*#__PURE__*/React__default['default'].createElement(bssula.Form, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30623
31024
|
ref: ref
|
|
30624
|
-
})), maintainOptionsModal.visible && (
|
|
31025
|
+
})), maintainOptionsModal.visible && (/*#__PURE__*/React__default['default'].createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30625
31026
|
};
|
|
30626
31027
|
|
|
30627
31028
|
// @ts-nocheck
|
|
@@ -31235,7 +31636,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31235
31636
|
return setVisible(false);
|
|
31236
31637
|
},
|
|
31237
31638
|
className: 'customFieldsDrawer'
|
|
31238
|
-
}, detailTablesSetting.length == 0 && (
|
|
31639
|
+
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31239
31640
|
style: {
|
|
31240
31641
|
display: 'flex'
|
|
31241
31642
|
}
|
|
@@ -31244,13 +31645,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31244
31645
|
flex: 1,
|
|
31245
31646
|
width: 500
|
|
31246
31647
|
}
|
|
31247
|
-
}, _.isEmpty(moduleParams) ? (
|
|
31648
|
+
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31248
31649
|
style: {
|
|
31249
31650
|
padding: "10px 0",
|
|
31250
31651
|
fontSize: "16px",
|
|
31251
31652
|
fontWeight: "bolder"
|
|
31252
31653
|
}
|
|
31253
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
31654
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31254
31655
|
style: {
|
|
31255
31656
|
flex: 1
|
|
31256
31657
|
}
|
|
@@ -31259,7 +31660,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31259
31660
|
onRun: onClickRun,
|
|
31260
31661
|
value: jsonEditorVal,
|
|
31261
31662
|
shallowHeight: height
|
|
31262
|
-
})))), detailTablesSetting.length > 0 && (
|
|
31663
|
+
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
|
|
31263
31664
|
defaultActiveKey: activeKey,
|
|
31264
31665
|
onChange: function onChange(v) {
|
|
31265
31666
|
return setActiveKey(v);
|
|
@@ -31276,13 +31677,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31276
31677
|
flex: 1,
|
|
31277
31678
|
width: 500
|
|
31278
31679
|
}
|
|
31279
|
-
}, _.isEmpty(moduleParams) ? (
|
|
31680
|
+
}, _.isEmpty(moduleParams) ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31280
31681
|
style: {
|
|
31281
31682
|
padding: "10px 0",
|
|
31282
31683
|
fontSize: "16px",
|
|
31283
31684
|
fontWeight: "bolder"
|
|
31284
31685
|
}
|
|
31285
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
31686
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31286
31687
|
style: {
|
|
31287
31688
|
flex: 1
|
|
31288
31689
|
}
|
|
@@ -31304,13 +31705,13 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
31304
31705
|
flex: 1,
|
|
31305
31706
|
width: 500
|
|
31306
31707
|
}
|
|
31307
|
-
}, !tablesConfigParams[k.tableCode] ? (
|
|
31708
|
+
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
31308
31709
|
style: {
|
|
31309
31710
|
padding: "10px 0",
|
|
31310
31711
|
fontSize: "16px",
|
|
31311
31712
|
fontWeight: "bolder"
|
|
31312
31713
|
}
|
|
31313
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (
|
|
31714
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React__default['default'].createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
31314
31715
|
style: {
|
|
31315
31716
|
flex: 1
|
|
31316
31717
|
}
|
|
@@ -31405,7 +31806,7 @@ var formatListName = function formatListName(list, columns) {
|
|
|
31405
31806
|
});
|
|
31406
31807
|
};
|
|
31407
31808
|
|
|
31408
|
-
var _excluded$
|
|
31809
|
+
var _excluded$l = ["sorter"];
|
|
31409
31810
|
/**
|
|
31410
31811
|
* 删掉查询条件的qp- 和 -eq等
|
|
31411
31812
|
* @param {object} data
|
|
@@ -31456,7 +31857,7 @@ function getMetaData(_x) {
|
|
|
31456
31857
|
|
|
31457
31858
|
// 获取数据
|
|
31458
31859
|
function _getMetaData() {
|
|
31459
|
-
_getMetaData = _asyncToGenerator(
|
|
31860
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31460
31861
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31461
31862
|
while (1) switch (_context.prev = _context.next) {
|
|
31462
31863
|
case 0:
|
|
@@ -31488,7 +31889,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
|
|
|
31488
31889
|
var _requestConfig$method;
|
|
31489
31890
|
var params = _ref.params;
|
|
31490
31891
|
var sorter = params.sorter,
|
|
31491
|
-
paramsTemp = _objectWithoutProperties(params, _excluded$
|
|
31892
|
+
paramsTemp = _objectWithoutProperties(params, _excluded$l);
|
|
31492
31893
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), ___default['default'].omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
|
|
31493
31894
|
currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
|
|
31494
31895
|
});
|
|
@@ -31678,7 +32079,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31678
32079
|
tableState = _useState4[0],
|
|
31679
32080
|
setTableState = _useState4[1];
|
|
31680
32081
|
var handleOpen = /*#__PURE__*/function () {
|
|
31681
|
-
var _ref = _asyncToGenerator(
|
|
32082
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31682
32083
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31683
32084
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31684
32085
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31997,7 +32398,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
31997
32398
|
destroyOnClose: true
|
|
31998
32399
|
}, config && /*#__PURE__*/React__default['default'].createElement(bssula.QueryTable, _objectSpread2({
|
|
31999
32400
|
ref: queryTableRef
|
|
32000
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (
|
|
32401
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
32001
32402
|
justify: "center",
|
|
32002
32403
|
style: {
|
|
32003
32404
|
marginBottom: 30,
|
|
@@ -32113,7 +32514,7 @@ var CustomSelector = (function (props) {
|
|
|
32113
32514
|
var _props$ctx7;
|
|
32114
32515
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
32115
32516
|
}
|
|
32116
|
-
})), showType === 'modalTable' && (
|
|
32517
|
+
})), showType === 'modalTable' && (/*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32117
32518
|
type: "primary",
|
|
32118
32519
|
style: {
|
|
32119
32520
|
width: '30px',
|
|
@@ -32199,7 +32600,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
32199
32600
|
_useState2 = _slicedToArray(_useState, 2),
|
|
32200
32601
|
handSource = _useState2[0],
|
|
32201
32602
|
setHandSource = _useState2[1];
|
|
32202
|
-
React$1.useEffect(
|
|
32603
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
32203
32604
|
var resData, data;
|
|
32204
32605
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32205
32606
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32351,7 +32752,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32351
32752
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32352
32753
|
}
|
|
32353
32754
|
function _getRegularThresholdRange() {
|
|
32354
|
-
_getRegularThresholdRange = _asyncToGenerator(
|
|
32755
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32355
32756
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32356
32757
|
while (1) switch (_context.prev = _context.next) {
|
|
32357
32758
|
case 0:
|
|
@@ -32505,7 +32906,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32505
32906
|
};
|
|
32506
32907
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32507
32908
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32508
|
-
var _ref = _asyncToGenerator(
|
|
32909
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32509
32910
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32510
32911
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32511
32912
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33462,7 +33863,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33462
33863
|
isAll: true,
|
|
33463
33864
|
needNameAndCode: true,
|
|
33464
33865
|
notChangeOnSelect: true,
|
|
33465
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33866
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33466
33867
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33467
33868
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33468
33869
|
case 0:
|
|
@@ -33511,7 +33912,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33511
33912
|
isAll: true,
|
|
33512
33913
|
needNameAndCode: true,
|
|
33513
33914
|
notChangeOnSelect: true,
|
|
33514
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33915
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33515
33916
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33516
33917
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33517
33918
|
case 0:
|
|
@@ -33562,7 +33963,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33562
33963
|
isAll: true,
|
|
33563
33964
|
needNameAndCode: true,
|
|
33564
33965
|
notChangeOnSelect: true,
|
|
33565
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(
|
|
33966
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33566
33967
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33567
33968
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33568
33969
|
case 0:
|
|
@@ -35540,7 +35941,7 @@ var App$1 = function App(_ref) {
|
|
|
35540
35941
|
borderRadius: '5px',
|
|
35541
35942
|
cursor: 'pointer'
|
|
35542
35943
|
}
|
|
35543
|
-
}, isStaticNumber ? (
|
|
35944
|
+
}, isStaticNumber ? (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35544
35945
|
autoFocus: true,
|
|
35545
35946
|
onClick: function onClick(e) {
|
|
35546
35947
|
return e.stopPropagation();
|
|
@@ -35827,7 +36228,7 @@ function RenderCompItem(props) {
|
|
|
35827
36228
|
dictData = _useState2[0],
|
|
35828
36229
|
setDictData = _useState2[1];
|
|
35829
36230
|
var getDictData = /*#__PURE__*/function () {
|
|
35830
|
-
var _ref = _asyncToGenerator(
|
|
36231
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35831
36232
|
var _data$map;
|
|
35832
36233
|
var data;
|
|
35833
36234
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35869,7 +36270,7 @@ function RenderCompItem(props) {
|
|
|
35869
36270
|
var style2 = {
|
|
35870
36271
|
width: '100px'
|
|
35871
36272
|
};
|
|
35872
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (
|
|
36273
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
35873
36274
|
disabled: disabled,
|
|
35874
36275
|
allowClear: true,
|
|
35875
36276
|
onClear: function onClear() {
|
|
@@ -35880,7 +36281,7 @@ function RenderCompItem(props) {
|
|
|
35880
36281
|
onBlur: function onBlur(e) {
|
|
35881
36282
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35882
36283
|
}
|
|
35883
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (
|
|
36284
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
35884
36285
|
disabled: disabled,
|
|
35885
36286
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35886
36287
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35893,7 +36294,7 @@ function RenderCompItem(props) {
|
|
|
35893
36294
|
onChange: function onChange(value) {
|
|
35894
36295
|
handleEdit(ites.code, value);
|
|
35895
36296
|
}
|
|
35896
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (
|
|
36297
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React__default['default'].createElement(antd.DatePicker, {
|
|
35897
36298
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35898
36299
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35899
36300
|
disabled: disabled,
|
|
@@ -35903,7 +36304,7 @@ function RenderCompItem(props) {
|
|
|
35903
36304
|
onChange: function onChange(value, dateString) {
|
|
35904
36305
|
handleEdit(ites.code, dateString);
|
|
35905
36306
|
}
|
|
35906
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (
|
|
36307
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React__default['default'].createElement(RangePicker$1, {
|
|
35907
36308
|
showTime: true,
|
|
35908
36309
|
disabled: disabled,
|
|
35909
36310
|
defaultValue: ites.defaultValue,
|
|
@@ -35912,7 +36313,7 @@ function RenderCompItem(props) {
|
|
|
35912
36313
|
onChange: function onChange(value, timeString) {
|
|
35913
36314
|
handleEdit(ites.code, timeString);
|
|
35914
36315
|
}
|
|
35915
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (
|
|
36316
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React__default['default'].createElement(antd.Switch, {
|
|
35916
36317
|
disabled: disabled,
|
|
35917
36318
|
defaultChecked: !!ites.defaultValue,
|
|
35918
36319
|
style: style2,
|
|
@@ -35920,7 +36321,7 @@ function RenderCompItem(props) {
|
|
|
35920
36321
|
onChange: function onChange(value) {
|
|
35921
36322
|
handleEdit(ites.code, value);
|
|
35922
36323
|
}
|
|
35923
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (
|
|
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) === 10 && (/*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
35924
36325
|
disabled: disabled,
|
|
35925
36326
|
allowClear: true,
|
|
35926
36327
|
showArrow: true
|
|
@@ -35938,7 +36339,7 @@ function RenderCompItem(props) {
|
|
|
35938
36339
|
key: it,
|
|
35939
36340
|
value: it
|
|
35940
36341
|
}, ites.enumeration[it]);
|
|
35941
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (
|
|
36342
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React__default['default'].createElement(InnerSelect, {
|
|
35942
36343
|
disabled: disabled,
|
|
35943
36344
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35944
36345
|
defaultValue: ites.defaultValue,
|
|
@@ -35948,7 +36349,7 @@ function RenderCompItem(props) {
|
|
|
35948
36349
|
handleEdit(ites.code, value);
|
|
35949
36350
|
},
|
|
35950
36351
|
dictionaryCode: ites.dictionaryCode
|
|
35951
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (
|
|
36352
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35952
36353
|
selectBusinessType: "physicalWarehouse",
|
|
35953
36354
|
selectProps: _objectSpread2({
|
|
35954
36355
|
style: styleCommon,
|
|
@@ -35970,7 +36371,7 @@ function RenderCompItem(props) {
|
|
|
35970
36371
|
getPopupContainer: function getPopupContainer() {
|
|
35971
36372
|
return document.body;
|
|
35972
36373
|
}
|
|
35973
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (
|
|
36374
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35974
36375
|
selectBusinessType: "realWarehouse",
|
|
35975
36376
|
selectProps: _objectSpread2({
|
|
35976
36377
|
style: styleCommon,
|
|
@@ -35992,7 +36393,7 @@ function RenderCompItem(props) {
|
|
|
35992
36393
|
getPopupContainer: function getPopupContainer() {
|
|
35993
36394
|
return document.body;
|
|
35994
36395
|
}
|
|
35995
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (
|
|
36396
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
35996
36397
|
selectBusinessType: "virtualWarehouse",
|
|
35997
36398
|
selectProps: _objectSpread2({
|
|
35998
36399
|
style: styleCommon,
|
|
@@ -36014,7 +36415,7 @@ function RenderCompItem(props) {
|
|
|
36014
36415
|
getPopupContainer: function getPopupContainer() {
|
|
36015
36416
|
return document.body;
|
|
36016
36417
|
}
|
|
36017
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (
|
|
36418
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36018
36419
|
selectBusinessType: "channelWarehouse",
|
|
36019
36420
|
selectProps: _objectSpread2({
|
|
36020
36421
|
style: styleCommon,
|
|
@@ -36036,7 +36437,7 @@ function RenderCompItem(props) {
|
|
|
36036
36437
|
getPopupContainer: function getPopupContainer() {
|
|
36037
36438
|
return document.body;
|
|
36038
36439
|
}
|
|
36039
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (
|
|
36440
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36040
36441
|
selectBusinessType: "spuCommodity",
|
|
36041
36442
|
selectProps: _objectSpread2({
|
|
36042
36443
|
style: styleCommon,
|
|
@@ -36057,7 +36458,7 @@ function RenderCompItem(props) {
|
|
|
36057
36458
|
getPopupContainer: function getPopupContainer() {
|
|
36058
36459
|
return document.body;
|
|
36059
36460
|
}
|
|
36060
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (
|
|
36461
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36061
36462
|
selectBusinessType: "skuCommodity",
|
|
36062
36463
|
selectProps: _objectSpread2({
|
|
36063
36464
|
style: styleCommon,
|
|
@@ -36078,13 +36479,13 @@ function RenderCompItem(props) {
|
|
|
36078
36479
|
getPopupContainer: function getPopupContainer() {
|
|
36079
36480
|
return document.body;
|
|
36080
36481
|
}
|
|
36081
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (
|
|
36482
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React__default['default'].createElement(BsCascader, {
|
|
36082
36483
|
disabled: disabled,
|
|
36083
36484
|
isAll: true,
|
|
36084
36485
|
needNameAndCode: true,
|
|
36085
36486
|
notChangeOnSelect: true,
|
|
36086
36487
|
initRequestSource: function () {
|
|
36087
|
-
var _initRequestSource = _asyncToGenerator(
|
|
36488
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
36088
36489
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
36089
36490
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36090
36491
|
case 0:
|
|
@@ -36126,7 +36527,7 @@ function RenderCompItem(props) {
|
|
|
36126
36527
|
getPopupContainer: function getPopupContainer() {
|
|
36127
36528
|
return document.body;
|
|
36128
36529
|
}
|
|
36129
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (
|
|
36530
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36130
36531
|
disabled: disabled,
|
|
36131
36532
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36132
36533
|
businessType: "department",
|
|
@@ -36139,7 +36540,7 @@ function RenderCompItem(props) {
|
|
|
36139
36540
|
getPopupContainer: function getPopupContainer() {
|
|
36140
36541
|
return document.body;
|
|
36141
36542
|
}
|
|
36142
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (
|
|
36543
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36143
36544
|
disabled: disabled,
|
|
36144
36545
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36145
36546
|
businessType: "purchase-organization",
|
|
@@ -36152,7 +36553,7 @@ function RenderCompItem(props) {
|
|
|
36152
36553
|
getPopupContainer: function getPopupContainer() {
|
|
36153
36554
|
return document.body;
|
|
36154
36555
|
}
|
|
36155
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (
|
|
36556
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36156
36557
|
disabled: disabled,
|
|
36157
36558
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36158
36559
|
businessType: "sales-organization",
|
|
@@ -36165,7 +36566,7 @@ function RenderCompItem(props) {
|
|
|
36165
36566
|
getPopupContainer: function getPopupContainer() {
|
|
36166
36567
|
return document.body;
|
|
36167
36568
|
}
|
|
36168
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (
|
|
36569
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36169
36570
|
selectBusinessType: "supplier2",
|
|
36170
36571
|
selectProps: _objectSpread2({
|
|
36171
36572
|
style: styleCommon,
|
|
@@ -36186,7 +36587,7 @@ function RenderCompItem(props) {
|
|
|
36186
36587
|
getPopupContainer: function getPopupContainer() {
|
|
36187
36588
|
return document.body;
|
|
36188
36589
|
}
|
|
36189
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (
|
|
36590
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36190
36591
|
selectBusinessType: "customer2",
|
|
36191
36592
|
selectProps: _objectSpread2({
|
|
36192
36593
|
style: styleCommon,
|
|
@@ -36207,7 +36608,7 @@ function RenderCompItem(props) {
|
|
|
36207
36608
|
getPopupContainer: function getPopupContainer() {
|
|
36208
36609
|
return document.body;
|
|
36209
36610
|
}
|
|
36210
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (
|
|
36611
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36211
36612
|
selectBusinessType: "shopFile2",
|
|
36212
36613
|
selectProps: _objectSpread2({
|
|
36213
36614
|
style: styleCommon,
|
|
@@ -36228,7 +36629,7 @@ function RenderCompItem(props) {
|
|
|
36228
36629
|
getPopupContainer: function getPopupContainer() {
|
|
36229
36630
|
return document.body;
|
|
36230
36631
|
}
|
|
36231
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (
|
|
36632
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36232
36633
|
selectBusinessType: "employee2",
|
|
36233
36634
|
selectProps: _objectSpread2({
|
|
36234
36635
|
style: styleCommon,
|
|
@@ -36249,7 +36650,7 @@ function RenderCompItem(props) {
|
|
|
36249
36650
|
getPopupContainer: function getPopupContainer() {
|
|
36250
36651
|
return document.body;
|
|
36251
36652
|
}
|
|
36252
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (
|
|
36653
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36253
36654
|
disabled: disabled,
|
|
36254
36655
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36255
36656
|
businessType: "stock-organization",
|
|
@@ -36262,7 +36663,7 @@ function RenderCompItem(props) {
|
|
|
36262
36663
|
getPopupContainer: function getPopupContainer() {
|
|
36263
36664
|
return document.body;
|
|
36264
36665
|
}
|
|
36265
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (
|
|
36666
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36266
36667
|
disabled: disabled,
|
|
36267
36668
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36268
36669
|
businessType: "settle-organization",
|
|
@@ -36275,7 +36676,7 @@ function RenderCompItem(props) {
|
|
|
36275
36676
|
getPopupContainer: function getPopupContainer() {
|
|
36276
36677
|
return document.body;
|
|
36277
36678
|
}
|
|
36278
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (
|
|
36679
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36279
36680
|
selectBusinessType: "deliveryMode",
|
|
36280
36681
|
selectProps: _objectSpread2({
|
|
36281
36682
|
style: styleCommon,
|
|
@@ -36296,7 +36697,7 @@ function RenderCompItem(props) {
|
|
|
36296
36697
|
getPopupContainer: function getPopupContainer() {
|
|
36297
36698
|
return document.body;
|
|
36298
36699
|
}
|
|
36299
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (
|
|
36700
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36300
36701
|
selectBusinessType: "role",
|
|
36301
36702
|
selectProps: _objectSpread2({
|
|
36302
36703
|
style: styleCommon,
|
|
@@ -36317,7 +36718,7 @@ function RenderCompItem(props) {
|
|
|
36317
36718
|
getPopupContainer: function getPopupContainer() {
|
|
36318
36719
|
return document.body;
|
|
36319
36720
|
}
|
|
36320
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (
|
|
36721
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
|
|
36321
36722
|
selectBusinessType: "brand",
|
|
36322
36723
|
selectProps: _objectSpread2({
|
|
36323
36724
|
style: styleCommon,
|
|
@@ -36338,7 +36739,7 @@ function RenderCompItem(props) {
|
|
|
36338
36739
|
getPopupContainer: function getPopupContainer() {
|
|
36339
36740
|
return document.body;
|
|
36340
36741
|
}
|
|
36341
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (
|
|
36742
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React__default['default'].createElement(BusinessTreeSearchSelect$1, {
|
|
36342
36743
|
disabled: disabled,
|
|
36343
36744
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36344
36745
|
businessType: "background-category",
|
|
@@ -36351,7 +36752,7 @@ function RenderCompItem(props) {
|
|
|
36351
36752
|
getPopupContainer: function getPopupContainer() {
|
|
36352
36753
|
return document.body;
|
|
36353
36754
|
}
|
|
36354
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (
|
|
36755
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React__default['default'].createElement(CustomSelector, {
|
|
36355
36756
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36356
36757
|
style: styleCommon,
|
|
36357
36758
|
placeholder: '请选择'
|
|
@@ -36374,7 +36775,7 @@ function RenderCompItem(props) {
|
|
|
36374
36775
|
onChange: function onChange(value) {
|
|
36375
36776
|
handleEdit(ites.code, value);
|
|
36376
36777
|
}
|
|
36377
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (
|
|
36778
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
36378
36779
|
style: {
|
|
36379
36780
|
display: 'flex'
|
|
36380
36781
|
}
|
|
@@ -36861,14 +37262,15 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36861
37262
|
});
|
|
36862
37263
|
};
|
|
36863
37264
|
_this.renderRuleItem = function (itemDetail, parentDetail, floorIndex, classDataIndex, relateDatas) {
|
|
36864
|
-
var _itemDetail$subExpres, _itemDetail$params, _itemDetail$params
|
|
37265
|
+
var _itemDetail$subExpres, _itemDetail$params, _itemDetail$params$, _itemDetail$params2;
|
|
36865
37266
|
var ruleTreeData = _this.state.ruleTreeData;
|
|
36866
37267
|
var _this$props3 = _this.props,
|
|
36867
37268
|
callBack = _this$props3.callBack,
|
|
36868
37269
|
_this$props3$initialT = _this$props3.initialThresholdQuery,
|
|
36869
37270
|
initialThresholdQuery = _this$props3$initialT === void 0 ? {} : _this$props3$initialT,
|
|
36870
37271
|
disabled = _this$props3.disabled,
|
|
36871
|
-
systemVariableList = _this$props3.systemVariableList
|
|
37272
|
+
systemVariableList = _this$props3.systemVariableList,
|
|
37273
|
+
needShowInsertSQL = _this$props3.needShowInsertSQL;
|
|
36872
37274
|
var thresholdQuery = _objectSpread2(_objectSpread2({}, initialThresholdQuery), relateDatas);
|
|
36873
37275
|
var finalIndex = floorIndex + 1;
|
|
36874
37276
|
var queryIdentify = '';
|
|
@@ -36886,7 +37288,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36886
37288
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36887
37289
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36888
37290
|
}
|
|
36889
|
-
var parallelTreeData =
|
|
37291
|
+
var parallelTreeData = _coverToParallel(ruleTreeData, []) || [];
|
|
36890
37292
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36891
37293
|
var _i$key;
|
|
36892
37294
|
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);
|
|
@@ -36960,6 +37362,9 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36960
37362
|
itemDetail.dataTypeCode = nodeInfo.triggerNode.props.dataTypeCode;
|
|
36961
37363
|
itemDetail.metaObjectCode = nodeInfo.triggerNode.props.metaObjectCode;
|
|
36962
37364
|
itemDetail.isInsertParam = false;
|
|
37365
|
+
if (needShowInsertSQL) {
|
|
37366
|
+
itemDetail.isInsertSQL = false;
|
|
37367
|
+
}
|
|
36963
37368
|
_this.setState({
|
|
36964
37369
|
ruleClassData: ruleClassData
|
|
36965
37370
|
}, function () {
|
|
@@ -36991,7 +37396,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36991
37396
|
value: item.code,
|
|
36992
37397
|
key: item.code
|
|
36993
37398
|
}, item.name);
|
|
36994
|
-
})), !(itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertParam) ? /*#__PURE__*/React__default['default'].createElement(RuleField, {
|
|
37399
|
+
})), (needShowInsertSQL ? !(itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertParam) && !(itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertSQL) : !(itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertParam)) ? /*#__PURE__*/React__default['default'].createElement(RuleField, {
|
|
36995
37400
|
customerWidth: _this.props.customerWidth,
|
|
36996
37401
|
selectOperation: (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.operationCode) || '',
|
|
36997
37402
|
disabled: disabled,
|
|
@@ -37041,7 +37446,26 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37041
37446
|
value: item.code,
|
|
37042
37447
|
key: item.code
|
|
37043
37448
|
}, item.name);
|
|
37044
|
-
}) : null), /*#__PURE__*/React__default['default'].createElement(
|
|
37449
|
+
}) : null), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
37450
|
+
disabled: disabled,
|
|
37451
|
+
value: (itemDetail === null || itemDetail === void 0 ? void 0 : (_itemDetail$params2 = itemDetail.params) === null || _itemDetail$params2 === void 0 ? void 0 : _itemDetail$params2[0]) || '',
|
|
37452
|
+
style: {
|
|
37453
|
+
width: '150px',
|
|
37454
|
+
marginLeft: '10px',
|
|
37455
|
+
display: needShowInsertSQL && (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertSQL) ? '' : 'none'
|
|
37456
|
+
},
|
|
37457
|
+
onChange: function onChange(e) {
|
|
37458
|
+
var value = e.target.value;
|
|
37459
|
+
var ruleClassData = _this.state.ruleClassData;
|
|
37460
|
+
itemDetail.params = [value || ''];
|
|
37461
|
+
itemDetail.paramNames = [''];
|
|
37462
|
+
_this.setState({
|
|
37463
|
+
ruleClassData: ruleClassData
|
|
37464
|
+
}, function () {
|
|
37465
|
+
callBack(ruleClassData);
|
|
37466
|
+
});
|
|
37467
|
+
}
|
|
37468
|
+
}), /*#__PURE__*/React__default['default'].createElement(icons.PlusCircleOutlined, {
|
|
37045
37469
|
className: 'icon_btn_style',
|
|
37046
37470
|
onClick: function onClick() {
|
|
37047
37471
|
_this.addChildRules(itemDetail);
|
|
@@ -37083,7 +37507,27 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
37083
37507
|
antd.message.warn('未配置规则变量');
|
|
37084
37508
|
}
|
|
37085
37509
|
}
|
|
37086
|
-
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertParam) ? '取消插入参数' : '插入参数')
|
|
37510
|
+
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertParam) ? '取消插入参数' : '插入参数'), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
37511
|
+
type: "link",
|
|
37512
|
+
disabled: disabled || (itemDetail.operationCode === '' || !itemDetail.operationCode ? true : false),
|
|
37513
|
+
style: needShowInsertSQL ? {} : {
|
|
37514
|
+
display: 'none'
|
|
37515
|
+
},
|
|
37516
|
+
onClick: function onClick() {
|
|
37517
|
+
var ruleClassData = _this.state.ruleClassData;
|
|
37518
|
+
itemDetail.isInsertSQL = !itemDetail.isInsertSQL;
|
|
37519
|
+
if (itemDetail.isInsertSQL) {
|
|
37520
|
+
itemDetail.type = 30;
|
|
37521
|
+
itemDetail.paramNames = [];
|
|
37522
|
+
itemDetail.params = [];
|
|
37523
|
+
}
|
|
37524
|
+
_this.setState({
|
|
37525
|
+
ruleClassData: ruleClassData
|
|
37526
|
+
}, function () {
|
|
37527
|
+
callBack(ruleClassData);
|
|
37528
|
+
});
|
|
37529
|
+
}
|
|
37530
|
+
}, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertSQL) ? '取消插入SQL' : '插入SQL')), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
37087
37531
|
style: {
|
|
37088
37532
|
display: itemDetail.operationType == 'logic' && !disabled ? 'block' : 'none'
|
|
37089
37533
|
}
|
|
@@ -37813,13 +38257,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37813
38257
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37814
38258
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37815
38259
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37816
|
-
var list =
|
|
38260
|
+
var list = _coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37817
38261
|
var requiredList = list.filter(function (c) {
|
|
37818
38262
|
return c.required == 1;
|
|
37819
38263
|
}) || []; // 获取对象属性为true的集合
|
|
37820
38264
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37821
38265
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37822
|
-
var coverExpressionTree = (s === null || s === void 0 ? void 0 : (_s$expression = s.expression) === null || _s$expression === void 0 ? void 0 : (_s$expression$subExpr = _s$expression.subExpression) === null || _s$expression$subExpr === void 0 ? void 0 : _s$expression$subExpr.length) ?
|
|
38266
|
+
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];
|
|
37823
38267
|
(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) {
|
|
37824
38268
|
if (requiredList.some(function (r) {
|
|
37825
38269
|
return r.id === e.elementId;
|
|
@@ -38408,7 +38852,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38408
38852
|
style: {
|
|
38409
38853
|
float: 'right'
|
|
38410
38854
|
}
|
|
38411
|
-
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (
|
|
38855
|
+
})), /*#__PURE__*/React__default['default'].createElement("div", null, sceneId ? (/*#__PURE__*/React__default['default'].createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38412
38856
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38413
38857
|
ruleGroupInfo: {
|
|
38414
38858
|
ruleGroupList: ruleGroupList,
|
|
@@ -38426,7 +38870,7 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38426
38870
|
callBack: function callBack(newData) {
|
|
38427
38871
|
upDateData(newData);
|
|
38428
38872
|
}
|
|
38429
|
-
}))) : (
|
|
38873
|
+
}))) : (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
38430
38874
|
style: {
|
|
38431
38875
|
padding: 20
|
|
38432
38876
|
}
|
|
@@ -38656,14 +39100,14 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
38656
39100
|
var css_248z$y = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005cff;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
|
|
38657
39101
|
styleInject(css_248z$y);
|
|
38658
39102
|
|
|
38659
|
-
var _excluded$
|
|
39103
|
+
var _excluded$m = ["titleExtra", "header", "showArrow"];
|
|
38660
39104
|
var Panel = antd.Collapse.Panel;
|
|
38661
39105
|
var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
38662
39106
|
var titleExtra = _ref.titleExtra,
|
|
38663
39107
|
header = _ref.header,
|
|
38664
39108
|
_ref$showArrow = _ref.showArrow,
|
|
38665
39109
|
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
38666
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
39110
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
38667
39111
|
var renderHeader = function renderHeader() {
|
|
38668
39112
|
return /*#__PURE__*/React__default['default'].createElement(antd.Space, {
|
|
38669
39113
|
align: "center"
|
|
@@ -38687,11 +39131,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
|
38687
39131
|
}), props.children);
|
|
38688
39132
|
};
|
|
38689
39133
|
|
|
38690
|
-
var _excluded$
|
|
39134
|
+
var _excluded$n = ["children", "bordered"];
|
|
38691
39135
|
var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
38692
39136
|
var children = props.children,
|
|
38693
39137
|
bordered = props.bordered,
|
|
38694
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
39138
|
+
restProps = _objectWithoutProperties(props, _excluded$n);
|
|
38695
39139
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
38696
39140
|
className: classNames__default['default']({
|
|
38697
39141
|
'bs-collapse-wrap': true,
|
|
@@ -38843,11 +39287,11 @@ exports.TreeSearchSelect = TreeSearchSelect;
|
|
|
38843
39287
|
exports.authFunc = authFunc;
|
|
38844
39288
|
exports.calculateValidPeriod = calculateValidPeriod;
|
|
38845
39289
|
exports.checkQuantityAccuracy = checkQuantityAccuracy;
|
|
38846
|
-
exports.coverToParallel =
|
|
39290
|
+
exports.coverToParallel = _coverToParallel;
|
|
38847
39291
|
exports.createUniqID = createUniqID;
|
|
38848
39292
|
exports.downloadExcel = downloadExcel;
|
|
38849
39293
|
exports.ergodicMenuRoutes = ergodicMenuRoutes;
|
|
38850
|
-
exports.formatter =
|
|
39294
|
+
exports.formatter = _formatter;
|
|
38851
39295
|
exports.getAccountID = getAccountID;
|
|
38852
39296
|
exports.getAccountId = getAccountId;
|
|
38853
39297
|
exports.getBreadcrumbNameMap = getBreadcrumbNameMap;
|