@bit-sun/business-component 4.0.12-alpha.22 → 4.0.12-alpha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -4
- package/dist/components/Functional/SearchSelect/index.d.ts +0 -2
- package/dist/index.esm.js +471 -479
- package/dist/index.js +471 -479
- package/package.json +1 -1
- package/src/components/Business/PropertyModal/index.tsx +12 -10
- package/src/components/Functional/QueryMutipleInput/index.tsx +4 -22
- package/src/components/Functional/SearchSelect/index.less +2 -2
- package/src/components/Functional/SearchSelect/index.tsx +4 -32
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import request$1 from 'umi-request';
|
|
3
3
|
import cookie from 'js-cookie';
|
|
4
4
|
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Select, Tag, Form, Table, Spin, Row, Col, Tabs, TreeSelect, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, DatePicker, TimePicker, Divider, Switch, Collapse } from 'antd';
|
|
5
|
-
import _, {
|
|
5
|
+
import _, { isNil, escapeRegExp, omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
6
6
|
import memoizeOne from 'memoize-one';
|
|
7
7
|
import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
@@ -31,88 +31,9 @@ import { parse as parse$1 } from '@babel/parser';
|
|
|
31
31
|
import { visit } from 'ast-types';
|
|
32
32
|
import isArray$1 from 'lodash/isArray';
|
|
33
33
|
|
|
34
|
-
function _arrayLikeToArray(r, a) {
|
|
35
|
-
(null == a || a > r.length) && (a = r.length);
|
|
36
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
37
|
-
return n;
|
|
38
|
-
}
|
|
39
|
-
function _arrayWithHoles(r) {
|
|
40
|
-
if (Array.isArray(r)) return r;
|
|
41
|
-
}
|
|
42
|
-
function _arrayWithoutHoles(r) {
|
|
43
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
44
|
-
}
|
|
45
|
-
function _assertThisInitialized(e) {
|
|
46
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
47
|
-
return e;
|
|
48
|
-
}
|
|
49
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
50
|
-
try {
|
|
51
|
-
var i = n[a](c),
|
|
52
|
-
u = i.value;
|
|
53
|
-
} catch (n) {
|
|
54
|
-
return void e(n);
|
|
55
|
-
}
|
|
56
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
57
|
-
}
|
|
58
|
-
function _asyncToGenerator(n) {
|
|
59
|
-
return function () {
|
|
60
|
-
var t = this,
|
|
61
|
-
e = arguments;
|
|
62
|
-
return new Promise(function (r, o) {
|
|
63
|
-
var a = n.apply(t, e);
|
|
64
|
-
function _next(n) {
|
|
65
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
66
|
-
}
|
|
67
|
-
function _throw(n) {
|
|
68
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
69
|
-
}
|
|
70
|
-
_next(void 0);
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
34
|
function _callSuper(t, o, e) {
|
|
75
35
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
76
36
|
}
|
|
77
|
-
function _classCallCheck(a, n) {
|
|
78
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
79
|
-
}
|
|
80
|
-
function _defineProperties(e, r) {
|
|
81
|
-
for (var t = 0; t < r.length; t++) {
|
|
82
|
-
var o = r[t];
|
|
83
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function _createClass(e, r, t) {
|
|
87
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
88
|
-
writable: !1
|
|
89
|
-
}), e;
|
|
90
|
-
}
|
|
91
|
-
function _defineProperty(e, r, t) {
|
|
92
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
93
|
-
value: t,
|
|
94
|
-
enumerable: !0,
|
|
95
|
-
configurable: !0,
|
|
96
|
-
writable: !0
|
|
97
|
-
}) : e[r] = t, e;
|
|
98
|
-
}
|
|
99
|
-
function _getPrototypeOf(t) {
|
|
100
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
101
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
102
|
-
}, _getPrototypeOf(t);
|
|
103
|
-
}
|
|
104
|
-
function _inherits(t, e) {
|
|
105
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
106
|
-
t.prototype = Object.create(e && e.prototype, {
|
|
107
|
-
constructor: {
|
|
108
|
-
value: t,
|
|
109
|
-
writable: !0,
|
|
110
|
-
configurable: !0
|
|
111
|
-
}
|
|
112
|
-
}), Object.defineProperty(t, "prototype", {
|
|
113
|
-
writable: !1
|
|
114
|
-
}), e && _setPrototypeOf(t, e);
|
|
115
|
-
}
|
|
116
37
|
function _isNativeReflectConstruct() {
|
|
117
38
|
try {
|
|
118
39
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
@@ -121,9 +42,6 @@ function _isNativeReflectConstruct() {
|
|
|
121
42
|
return !!t;
|
|
122
43
|
})();
|
|
123
44
|
}
|
|
124
|
-
function _iterableToArray(r) {
|
|
125
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
126
|
-
}
|
|
127
45
|
function _iterableToArrayLimit(r, l) {
|
|
128
46
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
129
47
|
if (null != t) {
|
|
@@ -151,15 +69,6 @@ function _iterableToArrayLimit(r, l) {
|
|
|
151
69
|
return a;
|
|
152
70
|
}
|
|
153
71
|
}
|
|
154
|
-
function _nonIterableRest() {
|
|
155
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
|
-
}
|
|
157
|
-
function _nonIterableSpread() {
|
|
158
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
159
|
-
}
|
|
160
|
-
function _objectDestructuringEmpty(t) {
|
|
161
|
-
if (null == t) throw new TypeError("Cannot destructure " + t);
|
|
162
|
-
}
|
|
163
72
|
function ownKeys(e, r) {
|
|
164
73
|
var t = Object.keys(e);
|
|
165
74
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -181,31 +90,6 @@ function _objectSpread2(e) {
|
|
|
181
90
|
}
|
|
182
91
|
return e;
|
|
183
92
|
}
|
|
184
|
-
function _objectWithoutProperties(e, t) {
|
|
185
|
-
if (null == e) return {};
|
|
186
|
-
var o,
|
|
187
|
-
r,
|
|
188
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
189
|
-
if (Object.getOwnPropertySymbols) {
|
|
190
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
191
|
-
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
192
|
-
}
|
|
193
|
-
return i;
|
|
194
|
-
}
|
|
195
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
196
|
-
if (null == r) return {};
|
|
197
|
-
var t = {};
|
|
198
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
199
|
-
if (e.includes(n)) continue;
|
|
200
|
-
t[n] = r[n];
|
|
201
|
-
}
|
|
202
|
-
return t;
|
|
203
|
-
}
|
|
204
|
-
function _possibleConstructorReturn(t, e) {
|
|
205
|
-
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
206
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
207
|
-
return _assertThisInitialized(t);
|
|
208
|
-
}
|
|
209
93
|
function _regeneratorRuntime() {
|
|
210
94
|
_regeneratorRuntime = function () {
|
|
211
95
|
return e;
|
|
@@ -507,20 +391,6 @@ function _regeneratorRuntime() {
|
|
|
507
391
|
}
|
|
508
392
|
}, e;
|
|
509
393
|
}
|
|
510
|
-
function _setPrototypeOf(t, e) {
|
|
511
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
512
|
-
return t.__proto__ = e, t;
|
|
513
|
-
}, _setPrototypeOf(t, e);
|
|
514
|
-
}
|
|
515
|
-
function _slicedToArray(r, e) {
|
|
516
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
517
|
-
}
|
|
518
|
-
function _toArray(r) {
|
|
519
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
520
|
-
}
|
|
521
|
-
function _toConsumableArray(r) {
|
|
522
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
523
|
-
}
|
|
524
394
|
function _toPrimitive(t, r) {
|
|
525
395
|
if ("object" != typeof t || !t) return t;
|
|
526
396
|
var e = t[Symbol.toPrimitive];
|
|
@@ -544,13 +414,181 @@ function _typeof(o) {
|
|
|
544
414
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
545
415
|
}, _typeof(o);
|
|
546
416
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
var
|
|
551
|
-
|
|
417
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
418
|
+
try {
|
|
419
|
+
var info = gen[key](arg);
|
|
420
|
+
var value = info.value;
|
|
421
|
+
} catch (error) {
|
|
422
|
+
reject(error);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
if (info.done) {
|
|
426
|
+
resolve(value);
|
|
427
|
+
} else {
|
|
428
|
+
Promise.resolve(value).then(_next, _throw);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
function _asyncToGenerator(fn) {
|
|
432
|
+
return function () {
|
|
433
|
+
var self = this,
|
|
434
|
+
args = arguments;
|
|
435
|
+
return new Promise(function (resolve, reject) {
|
|
436
|
+
var gen = fn.apply(self, args);
|
|
437
|
+
function _next(value) {
|
|
438
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
439
|
+
}
|
|
440
|
+
function _throw(err) {
|
|
441
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
442
|
+
}
|
|
443
|
+
_next(undefined);
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function _classCallCheck(instance, Constructor) {
|
|
448
|
+
if (!(instance instanceof Constructor)) {
|
|
449
|
+
throw new TypeError("Cannot call a class as a function");
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function _defineProperties(target, props) {
|
|
453
|
+
for (var i = 0; i < props.length; i++) {
|
|
454
|
+
var descriptor = props[i];
|
|
455
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
456
|
+
descriptor.configurable = true;
|
|
457
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
458
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
552
459
|
}
|
|
553
460
|
}
|
|
461
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
+
writable: false
|
|
466
|
+
});
|
|
467
|
+
return Constructor;
|
|
468
|
+
}
|
|
469
|
+
function _defineProperty(obj, key, value) {
|
|
470
|
+
key = _toPropertyKey(key);
|
|
471
|
+
if (key in obj) {
|
|
472
|
+
Object.defineProperty(obj, key, {
|
|
473
|
+
value: value,
|
|
474
|
+
enumerable: true,
|
|
475
|
+
configurable: true,
|
|
476
|
+
writable: true
|
|
477
|
+
});
|
|
478
|
+
} else {
|
|
479
|
+
obj[key] = value;
|
|
480
|
+
}
|
|
481
|
+
return obj;
|
|
482
|
+
}
|
|
483
|
+
function _inherits(subClass, superClass) {
|
|
484
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
486
|
+
}
|
|
487
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
+
constructor: {
|
|
489
|
+
value: subClass,
|
|
490
|
+
writable: true,
|
|
491
|
+
configurable: true
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(subClass, "prototype", {
|
|
495
|
+
writable: false
|
|
496
|
+
});
|
|
497
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
+
}
|
|
499
|
+
function _getPrototypeOf(o) {
|
|
500
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
+
};
|
|
503
|
+
return _getPrototypeOf(o);
|
|
504
|
+
}
|
|
505
|
+
function _setPrototypeOf(o, p) {
|
|
506
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
+
o.__proto__ = p;
|
|
508
|
+
return o;
|
|
509
|
+
};
|
|
510
|
+
return _setPrototypeOf(o, p);
|
|
511
|
+
}
|
|
512
|
+
function _objectDestructuringEmpty(obj) {
|
|
513
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
+
}
|
|
515
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
+
if (source == null) return {};
|
|
517
|
+
var target = {};
|
|
518
|
+
for (var key in source) {
|
|
519
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
+
target[key] = source[key];
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
return target;
|
|
525
|
+
}
|
|
526
|
+
function _objectWithoutProperties(source, excluded) {
|
|
527
|
+
if (source == null) return {};
|
|
528
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
+
var key, i;
|
|
530
|
+
if (Object.getOwnPropertySymbols) {
|
|
531
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
+
key = sourceSymbolKeys[i];
|
|
534
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
+
target[key] = source[key];
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return target;
|
|
540
|
+
}
|
|
541
|
+
function _assertThisInitialized(self) {
|
|
542
|
+
if (self === void 0) {
|
|
543
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
544
|
+
}
|
|
545
|
+
return self;
|
|
546
|
+
}
|
|
547
|
+
function _possibleConstructorReturn(self, call) {
|
|
548
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
549
|
+
return call;
|
|
550
|
+
} else if (call !== void 0) {
|
|
551
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
552
|
+
}
|
|
553
|
+
return _assertThisInitialized(self);
|
|
554
|
+
}
|
|
555
|
+
function _slicedToArray(arr, i) {
|
|
556
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
557
|
+
}
|
|
558
|
+
function _toArray(arr) {
|
|
559
|
+
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
|
|
560
|
+
}
|
|
561
|
+
function _toConsumableArray(arr) {
|
|
562
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
563
|
+
}
|
|
564
|
+
function _arrayWithoutHoles(arr) {
|
|
565
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
566
|
+
}
|
|
567
|
+
function _arrayWithHoles(arr) {
|
|
568
|
+
if (Array.isArray(arr)) return arr;
|
|
569
|
+
}
|
|
570
|
+
function _iterableToArray(iter) {
|
|
571
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
572
|
+
}
|
|
573
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
574
|
+
if (!o) return;
|
|
575
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
576
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
577
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
578
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
579
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
580
|
+
}
|
|
581
|
+
function _arrayLikeToArray(arr, len) {
|
|
582
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
583
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
584
|
+
return arr2;
|
|
585
|
+
}
|
|
586
|
+
function _nonIterableSpread() {
|
|
587
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
588
|
+
}
|
|
589
|
+
function _nonIterableRest() {
|
|
590
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
591
|
+
}
|
|
554
592
|
|
|
555
593
|
var ENUM = {
|
|
556
594
|
// 浏览器缓存信息
|
|
@@ -1059,13 +1097,13 @@ var tableColumnsImage = function tableColumnsImage(url, paramsObj) {
|
|
|
1059
1097
|
imgHtml.innerHTML = str;
|
|
1060
1098
|
}
|
|
1061
1099
|
// 测试使用 测试类型缩小 end
|
|
1062
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
1100
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1063
1101
|
className: "clomnsImg"
|
|
1064
1102
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1065
1103
|
src: url,
|
|
1066
1104
|
width: "16px",
|
|
1067
1105
|
height: "16px"
|
|
1068
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
1106
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
1069
1107
|
className: "clomnsImg2"
|
|
1070
1108
|
}, /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1071
1109
|
src: noImg
|
|
@@ -1204,7 +1242,7 @@ function downloadExcel(data, fileName, isResUrl) {
|
|
|
1204
1242
|
}
|
|
1205
1243
|
save_link.click();
|
|
1206
1244
|
}
|
|
1207
|
-
var
|
|
1245
|
+
var formatter = function formatter(data, parentAuthority, parentName) {
|
|
1208
1246
|
return data.map(function (item) {
|
|
1209
1247
|
if (!item.name || !item.path) {
|
|
1210
1248
|
return null;
|
|
@@ -1224,7 +1262,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1224
1262
|
authority: item.authority || parentAuthority
|
|
1225
1263
|
});
|
|
1226
1264
|
if (item.routes) {
|
|
1227
|
-
var children =
|
|
1265
|
+
var children = formatter(item.routes, item.authority, locale);
|
|
1228
1266
|
// Reduce memory usage
|
|
1229
1267
|
result.children = children;
|
|
1230
1268
|
}
|
|
@@ -1234,7 +1272,7 @@ var _formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1234
1272
|
return item;
|
|
1235
1273
|
});
|
|
1236
1274
|
};
|
|
1237
|
-
var memoizeOneFormatter = memoizeOne(
|
|
1275
|
+
var memoizeOneFormatter = memoizeOne(formatter, isEqual);
|
|
1238
1276
|
var go2BackAndClose = function go2BackAndClose(backHistoryPath) {
|
|
1239
1277
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1240
1278
|
if (backHistoryPath) {
|
|
@@ -1543,7 +1581,7 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1543
1581
|
// sheepMap是表头字段中英文映射
|
|
1544
1582
|
// sheetCount:表的数量,默认一张
|
|
1545
1583
|
var resolveFile = /*#__PURE__*/function () {
|
|
1546
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1584
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
1547
1585
|
var config,
|
|
1548
1586
|
data,
|
|
1549
1587
|
_args = arguments;
|
|
@@ -1582,7 +1620,7 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1582
1620
|
}();
|
|
1583
1621
|
//读取文件
|
|
1584
1622
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1585
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1623
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1586
1624
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1587
1625
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1588
1626
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -1675,14 +1713,14 @@ var keyToWord = function keyToWord(data, fieldMapping) {
|
|
|
1675
1713
|
/**---------------------数据写入excel-------结束------------------------*/
|
|
1676
1714
|
|
|
1677
1715
|
// 获取树平行结构
|
|
1678
|
-
var
|
|
1716
|
+
var coverToParallel = function coverToParallel(treeData, result, chilKey) {
|
|
1679
1717
|
var childrenKey = chilKey || 'children';
|
|
1680
1718
|
treeData.forEach(function (el) {
|
|
1681
1719
|
var _el$childrenKey;
|
|
1682
1720
|
result.push(el);
|
|
1683
1721
|
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) {
|
|
1684
1722
|
// 子级递归
|
|
1685
|
-
|
|
1723
|
+
coverToParallel(el === null || el === void 0 ? void 0 : el[childrenKey], result, chilKey);
|
|
1686
1724
|
}
|
|
1687
1725
|
});
|
|
1688
1726
|
return result;
|
|
@@ -1959,13 +1997,13 @@ var tableColumnsImage$1 = function tableColumnsImage(url, paramsObj) {
|
|
|
1959
1997
|
imgHtml.innerHTML = str;
|
|
1960
1998
|
}
|
|
1961
1999
|
// 测试使用 测试类型缩小 end
|
|
1962
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? (/*#__PURE__*/React$1.createElement("div", {
|
|
2000
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, url ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
1963
2001
|
className: "clomnsImg"
|
|
1964
2002
|
}, /*#__PURE__*/React$1.createElement(Image, _objectSpread2({
|
|
1965
2003
|
src: url,
|
|
1966
2004
|
width: "16px",
|
|
1967
2005
|
height: "16px"
|
|
1968
|
-
}, paramsObj)))) : (/*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
2006
|
+
}, paramsObj)))) : ( /*#__PURE__*/React$1.createElement("img", _objectSpread2(_objectSpread2({}, paramsObj), {}, {
|
|
1969
2007
|
src: noImg
|
|
1970
2008
|
}))));
|
|
1971
2009
|
};
|
|
@@ -2027,7 +2065,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2027
2065
|
}
|
|
2028
2066
|
});
|
|
2029
2067
|
};
|
|
2030
|
-
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && (/*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2068
|
+
var menu = /*#__PURE__*/React$1.createElement(Menu, null, /*#__PURE__*/React$1.createElement(Menu.Item, null, type === 'input' && ( /*#__PURE__*/React$1.createElement(Input, _objectSpread2({
|
|
2031
2069
|
disabled: disabled,
|
|
2032
2070
|
onChange: function onChange(e) {
|
|
2033
2071
|
var v = e.target.value;
|
|
@@ -2037,7 +2075,7 @@ var ColumnsEdit = function ColumnsEdit(props) {
|
|
|
2037
2075
|
width: 170
|
|
2038
2076
|
},
|
|
2039
2077
|
value: inputValue
|
|
2040
|
-
}, inpProps))), type === 'number' && (/*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2078
|
+
}, inpProps))), type === 'number' && ( /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2({
|
|
2041
2079
|
disabled: disabled,
|
|
2042
2080
|
onBlur: function onBlur(e) {
|
|
2043
2081
|
var v = parseFloat(e.target.value);
|
|
@@ -2416,16 +2454,16 @@ var handleExport = function handleExport(type, params, url, methods, fileName, p
|
|
|
2416
2454
|
var handleExportBarCode = handleExport;
|
|
2417
2455
|
var getBreadcrumbNameMap = function getBreadcrumbNameMap(menuData) {
|
|
2418
2456
|
var routerMap = {};
|
|
2419
|
-
var
|
|
2457
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
2420
2458
|
data.forEach(function (menuItem) {
|
|
2421
2459
|
if (menuItem.children) {
|
|
2422
|
-
|
|
2460
|
+
flattenMenuData(menuItem.children);
|
|
2423
2461
|
}
|
|
2424
2462
|
// Reduce memory usage
|
|
2425
2463
|
routerMap[menuItem.path] = menuItem;
|
|
2426
2464
|
});
|
|
2427
2465
|
};
|
|
2428
|
-
|
|
2466
|
+
flattenMenuData(menuData);
|
|
2429
2467
|
return routerMap;
|
|
2430
2468
|
};
|
|
2431
2469
|
var ergodicMenuRoutes = function ergodicMenuRoutes(routes) {
|
|
@@ -2568,7 +2606,7 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2568
2606
|
return request$1(url, parms).then(handleResponseData);
|
|
2569
2607
|
};
|
|
2570
2608
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2571
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2609
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
2572
2610
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2573
2611
|
while (1) switch (_context.prev = _context.next) {
|
|
2574
2612
|
case 0:
|
|
@@ -3242,7 +3280,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3242
3280
|
placement: "bottomLeft"
|
|
3243
3281
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3244
3282
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3245
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3283
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3246
3284
|
trigger: ['click'],
|
|
3247
3285
|
overlay: this.menuList,
|
|
3248
3286
|
placement: "bottomRight"
|
|
@@ -3917,7 +3955,7 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3917
3955
|
placement: "bottomLeft"
|
|
3918
3956
|
}, /*#__PURE__*/React$1.createElement("a", null, /*#__PURE__*/React$1.createElement(ProfileTwoTone, null))), /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
3919
3957
|
title: /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("span", null, "\u4F7F\u7528\u6307\u5357\uFF1A"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "1\u3001\u62D6\u52A8\u6570\u636E\u9879\uFF0C\u4EE5\u9002\u914D\u6E90\u6570\u636E\u7684\u987A\u5E8F\uFF0C\u5982\u60A8Excel\u4E2D\u6570\u636E\u6392\u5E8F\u4F9D\u6B21\u4E3A\u7F16\u7801\u3001\u4EF7\u683C\u548C\u6570\u91CF\uFF0C\u5219\u60A8\u4E5F\u53EF\u4EE5\u5C06\u6570\u636E\u9879\u7684\u987A\u5E8F\u8C03\u6574\u4E3A\u4E00\u81F4"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "2\u3001\u590D\u5236\u6587\u4EF6\u6570\u636E\uFF08\u591A\u5217\u4E00\u8D77\uFF09\uFF0C\u5728\u6587\u672C\u6846\u5185\u8FDB\u884C\u7C98\u8D34"), /*#__PURE__*/React$1.createElement("br", null), /*#__PURE__*/React$1.createElement("span", null, "3\u3001\u70B9\u51FB\u8BC6\u522B\u6309\u94AE\u8FDB\u884C\u6570\u636E\u6821\u9A8C\uFF0C\u5982\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u70B9\u51FB\u5F55\u5165\u6309\u94AE\u53EF\u5F55\u5165\u6570\u636E\uFF0C\u5982\u5B58\u5728\u9519\u8BEF\u6570\u636E\uFF0C\u5219\u9700\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u5F55\u5165"))
|
|
3920
|
-
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && (/*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3958
|
+
}, /*#__PURE__*/React$1.createElement(ExclamationCircleOutlined, null))), /*#__PURE__*/React$1.createElement(Space, null, !notExcelImport && ( /*#__PURE__*/React$1.createElement(Upload, _objectSpread2({}, uploadProps), /*#__PURE__*/React$1.createElement(Button, null, "\u5BFC\u5165"))), /*#__PURE__*/React$1.createElement(Dropdown, {
|
|
3921
3959
|
trigger: ['click'],
|
|
3922
3960
|
overlay: this.menuList,
|
|
3923
3961
|
placement: "bottomRight"
|
|
@@ -3949,25 +3987,9 @@ var DataImport = /*#__PURE__*/function (_React$Component) {
|
|
|
3949
3987
|
var css_248z$4 = ".query_input_show {\n display: flex;\n}\n.query_input_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: 12px;\n text-align: center;\n line-height: normal;\n}\n.query_input_expand_button:hover {\n background-color: #005cff;\n color: #fff;\n}\n.query_input_wrapper_top {\n color: #8E8E8E;\n}\n.query_input_textArea {\n margin-top: 10px;\n}\n.query_input_textArea .ant-input {\n height: 300px;\n background: #FAFAFA;\n border: 0.8px solid #E0E0E0;\n resize: none;\n border-radius: 0;\n}\n.multiInput_modal .ant-modal-header {\n height: 32px;\n padding: 0 16px;\n font-size: 12px;\n}\n.multiInput_modal .ant-modal-title {\n line-height: 32px;\n}\n.multiInput_modal .ant-modal-close-x {\n width: 32px;\n height: 32px;\n line-height: 32px;\n}\n.multiInput_modal .ant-modal-footer {\n padding-right: 8px;\n height: 44px;\n}\n.multiInput_modal .ant-modal-footer .ant-btn + .ant-btn:not(.ant-dropdown-trigger) {\n margin-left: 6px;\n}\n.multiInput_modal .ant-modal-footer .ant-btn {\n width: 56px;\n height: 28px;\n font-weight: 500;\n}\n";
|
|
3950
3988
|
styleInject(css_248z$4);
|
|
3951
3989
|
|
|
3952
|
-
var handlePressEnter = debounce(function (ctx) {
|
|
3953
|
-
if (ctx === null || ctx === void 0 ? void 0 : ctx.table) {
|
|
3954
|
-
var _ctx$form, _ctx$form$validateFie;
|
|
3955
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : (_ctx$form$validateFie = _ctx$form.validateFields) === null || _ctx$form$validateFie === void 0 ? void 0 : _ctx$form$validateFie.call(_ctx$form).then(function (data) {
|
|
3956
|
-
var _ctx$table, _ctx$table2;
|
|
3957
|
-
var _ctx$table$getPaging = ctx === null || ctx === void 0 ? void 0 : (_ctx$table = ctx.table) === null || _ctx$table === void 0 ? void 0 : _ctx$table.getPaging(),
|
|
3958
|
-
pageSize = _ctx$table$getPaging.pagination.pageSize,
|
|
3959
|
-
sorter = _ctx$table$getPaging.sorter;
|
|
3960
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$table2 = ctx.table) === null || _ctx$table2 === void 0 ? void 0 : _ctx$table2.refreshTable({
|
|
3961
|
-
pageSize: pageSize,
|
|
3962
|
-
current: 1
|
|
3963
|
-
}, data, sorter);
|
|
3964
|
-
});
|
|
3965
|
-
}
|
|
3966
|
-
}, 50);
|
|
3967
3990
|
var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
3968
3991
|
var onValueChange = _ref.onValueChange,
|
|
3969
|
-
_onPressEnter = _ref.onPressEnter
|
|
3970
|
-
ctx = _ref.ctx;
|
|
3992
|
+
_onPressEnter = _ref.onPressEnter;
|
|
3971
3993
|
var _useState = useState(false),
|
|
3972
3994
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3973
3995
|
isModalVisible = _useState2[0],
|
|
@@ -4039,11 +4061,8 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
|
|
|
4039
4061
|
onClick: showModal
|
|
4040
4062
|
}, "..."),
|
|
4041
4063
|
placeholder: "\u8BF7\u8F93\u5165\uFF08\u67E5\u8BE2\u591A\u4E2A\u503C\u8BF7\u7528 ; \u6216 , \u5206\u5272\uFF09",
|
|
4042
|
-
onPressEnter: function onPressEnter(
|
|
4043
|
-
|
|
4044
|
-
_onPressEnter(e);
|
|
4045
|
-
}
|
|
4046
|
-
if (ctx) handlePressEnter(ctx);
|
|
4064
|
+
onPressEnter: function onPressEnter() {
|
|
4065
|
+
return _onPressEnter === null || _onPressEnter === void 0 ? void 0 : _onPressEnter();
|
|
4047
4066
|
}
|
|
4048
4067
|
})), /*#__PURE__*/React$1.createElement(Modal, {
|
|
4049
4068
|
width: 600,
|
|
@@ -4094,7 +4113,7 @@ function ToCDB(str) {
|
|
|
4094
4113
|
return tmp;
|
|
4095
4114
|
}
|
|
4096
4115
|
|
|
4097
|
-
var css_248z$5 = ".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(
|
|
4116
|
+
var css_248z$5 = ".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-cell .ant-table-selection-column .ant-radio,\n.search_select_dropdown_table table tr td.ant-table-selection-column .ant-radio-wrapper {\n display: none;\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 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 overflow: hidden;\n display: flex;\n align-items: flex-start;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {\n font-size: 12px !important;\n margin-right: 0px !important;\n margin-bottom: 8px !important;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {\n background-color: #fafafa;\n border: 0.8px solid #D9D9D9;\n border-radius: 2px;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {\n width: 100%;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {\n width: 110px;\n order: 1;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {\n width: 100%;\n text-align: left;\n padding: 0 10px;\n color: #333333;\n font-size: 12px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {\n order: 2;\n width: 100px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {\n border: 0;\n font-size: 12px;\n background-color: #fafafa;\n padding: 0 11px;\n height: 24px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {\n border: 0 !important;\n background-color: #fafafa !important;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {\n background-color: #fafafa !important;\n border: 0;\n font-size: 12px;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {\n background: #005cff;\n}\n.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {\n order: 2;\n padding-right: 10px;\n}\n.search_select_wrapper_topForm .select_list_button_space {\n margin-right: 10px;\n}\n.search_select_wrapper_bottomTable {\n margin: 10px;\n display: flex;\n justify-content: space-between;\n}\n.search_select_wrapper_bottomTable_wrapLeft1,\n.search_select_wrapper_bottomTable_wrapLeft2,\n.search_select_wrapper_bottomTable_wrapRight {\n background: #fff;\n width: calc(50% - 5px);\n}\n.search_select_wrapper_bottomTable_wrapLeft1 {\n width: 100%;\n}\n.search_select_wrapper_bottomTable_wrapRight {\n margin-left: 10px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav {\n margin: 0;\n padding: 6px 18.5px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {\n height: 28px;\n font-size: 14px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {\n padding: 4px 0;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {\n left: 3px !important;\n width: 40px !important;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {\n color: #005cff;\n cursor: pointer;\n}\n.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder {\n padding: 10px 10px 7px;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {\n color: #7F7F7F;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {\n justify-content: center;\n}\n.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {\n color: #333333;\n}\n.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {\n color: #005cff;\n background: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active a {\n color: #005cff;\n}\n.search_select_wrapper_bottomTable .ant-pagination-item-active {\n border-color: #005cff;\n}\n.searchSelectSpin > div {\n height: 300px !important;\n}\n.searchSelectMaxTagToolTip .ant-tooltip-inner {\n max-height: 72px;\n overflow-x: auto;\n padding: 0px;\n}\n";
|
|
4098
4117
|
styleInject(css_248z$5);
|
|
4099
4118
|
|
|
4100
4119
|
var columnsPerRow = 4; // 每行的列数
|
|
@@ -4335,7 +4354,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4335
4354
|
title: item.name,
|
|
4336
4355
|
className: "propertyGroup_checkbox_container"
|
|
4337
4356
|
}, item.name));
|
|
4338
|
-
}), !!notCommonUseProperty.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
4357
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
4339
4358
|
style: {
|
|
4340
4359
|
width: '50px',
|
|
4341
4360
|
cursor: 'pointer',
|
|
@@ -4348,7 +4367,7 @@ var PropertyGroup = function PropertyGroup(props) {
|
|
|
4348
4367
|
setShowNotCommon(!showNotCommon);
|
|
4349
4368
|
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4350
4369
|
}
|
|
4351
|
-
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4370
|
+
}, showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))));
|
|
4352
4371
|
};
|
|
4353
4372
|
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4354
4373
|
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
@@ -4428,12 +4447,13 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4428
4447
|
return;
|
|
4429
4448
|
}
|
|
4430
4449
|
var newArr = ((data === null || data === void 0 ? void 0 : data.data) || []).map(function (item) {
|
|
4450
|
+
var _item$property, _item$property2, _item$property3, _item$property4;
|
|
4431
4451
|
return {
|
|
4432
|
-
propertyCode: item.property.propertyCode,
|
|
4433
|
-
propertyName: item.property.name,
|
|
4434
|
-
propertyId: item.property.id,
|
|
4435
|
-
isCommonUse: item.property.isCommonUse === 'commonUse',
|
|
4436
|
-
detailList: item.propertyValueList.map(function (detail) {
|
|
4452
|
+
propertyCode: (_item$property = item.property) === null || _item$property === void 0 ? void 0 : _item$property.propertyCode,
|
|
4453
|
+
propertyName: (_item$property2 = item.property) === null || _item$property2 === void 0 ? void 0 : _item$property2.name,
|
|
4454
|
+
propertyId: (_item$property3 = item.property) === null || _item$property3 === void 0 ? void 0 : _item$property3.id,
|
|
4455
|
+
isCommonUse: ((_item$property4 = item.property) === null || _item$property4 === void 0 ? void 0 : _item$property4.isCommonUse) === 'commonUse',
|
|
4456
|
+
detailList: (item.propertyValueList || []).map(function (detail) {
|
|
4437
4457
|
return {
|
|
4438
4458
|
name: detail.value,
|
|
4439
4459
|
value: detail.value,
|
|
@@ -4452,8 +4472,11 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4452
4472
|
});
|
|
4453
4473
|
}, [choosedClassify]);
|
|
4454
4474
|
useEffect(function () {
|
|
4455
|
-
|
|
4456
|
-
|
|
4475
|
+
if (visible) {
|
|
4476
|
+
var _classifyOptionList$;
|
|
4477
|
+
// 获取选中品类信息
|
|
4478
|
+
setChoosedClassify((value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$ = classifyOptionList[0]) === null || _classifyOptionList$ === void 0 ? void 0 : _classifyOptionList$.value));
|
|
4479
|
+
}
|
|
4457
4480
|
// 获取选中属性值展示
|
|
4458
4481
|
var choosedPropertyList = ((value === null || value === void 0 ? void 0 : value.propertyList) || []).map(function (item) {
|
|
4459
4482
|
return (item.detailList || []).map(function (detail) {
|
|
@@ -4465,9 +4488,9 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4465
4488
|
})) {
|
|
4466
4489
|
setShowNotCommon(true);
|
|
4467
4490
|
}
|
|
4468
|
-
setChoosedValues(choosedPropertyList);
|
|
4469
4491
|
settingValue.current = _objectSpread2({}, value);
|
|
4470
|
-
|
|
4492
|
+
setChoosedValues(choosedPropertyList);
|
|
4493
|
+
}, [value, visible]);
|
|
4471
4494
|
// 关闭弹窗回传组件值
|
|
4472
4495
|
var handleConfirm = function handleConfirm() {
|
|
4473
4496
|
setVisible(false);
|
|
@@ -4571,7 +4594,7 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4571
4594
|
propertyData: item,
|
|
4572
4595
|
handleProperyItemChange: handleProperyItemChange
|
|
4573
4596
|
});
|
|
4574
|
-
}))), !!notCommonProperty.length && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
4597
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
4575
4598
|
style: {
|
|
4576
4599
|
width: '50px',
|
|
4577
4600
|
cursor: 'pointer',
|
|
@@ -4581,24 +4604,9 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
4581
4604
|
onClick: function onClick() {
|
|
4582
4605
|
return setShowNotCommon(!showNotCommon);
|
|
4583
4606
|
}
|
|
4584
|
-
}, showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && (/*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
4585
|
-
};
|
|
4586
|
-
|
|
4587
|
-
var handlePressEnter$1 = debounce(function (ctx) {
|
|
4588
|
-
if (ctx === null || ctx === void 0 ? void 0 : ctx.table) {
|
|
4589
|
-
var _ctx$form, _ctx$form$validateFie;
|
|
4590
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : (_ctx$form$validateFie = _ctx$form.validateFields) === null || _ctx$form$validateFie === void 0 ? void 0 : _ctx$form$validateFie.call(_ctx$form).then(function (data) {
|
|
4591
|
-
var _ctx$table, _ctx$table2;
|
|
4592
|
-
var _ctx$table$getPaging = ctx === null || ctx === void 0 ? void 0 : (_ctx$table = ctx.table) === null || _ctx$table === void 0 ? void 0 : _ctx$table.getPaging(),
|
|
4593
|
-
pageSize = _ctx$table$getPaging.pagination.pageSize,
|
|
4594
|
-
sorter = _ctx$table$getPaging.sorter;
|
|
4595
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$table2 = ctx.table) === null || _ctx$table2 === void 0 ? void 0 : _ctx$table2.refreshTable({
|
|
4596
|
-
pageSize: pageSize,
|
|
4597
|
-
current: 1
|
|
4598
|
-
}, data, sorter);
|
|
4599
|
-
});
|
|
4600
|
-
}
|
|
4601
|
-
}, 50);
|
|
4607
|
+
}, showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretUpOutlined, null), "\u6536\u8D77")), !showNotCommon && ( /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(CaretDownOutlined, null), "\u5C55\u5F00"))))))));
|
|
4608
|
+
};
|
|
4609
|
+
|
|
4602
4610
|
var Option$1 = Select.Option;
|
|
4603
4611
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
4604
4612
|
var _pathname$match, _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
@@ -5084,8 +5092,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5084
5092
|
callback(source);
|
|
5085
5093
|
} else {
|
|
5086
5094
|
if (type === 1) {
|
|
5087
|
-
var _ctx$
|
|
5088
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$
|
|
5095
|
+
var _ctx$form;
|
|
5096
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(resultSourceKey, source);
|
|
5089
5097
|
setSelectDataSource(source, Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
5090
5098
|
} else {
|
|
5091
5099
|
setTableData(source);
|
|
@@ -5188,8 +5196,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5188
5196
|
callback(source);
|
|
5189
5197
|
} else {
|
|
5190
5198
|
if (type === 1) {
|
|
5191
|
-
var _ctx$
|
|
5192
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$
|
|
5199
|
+
var _ctx$form2;
|
|
5200
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form2 = ctx.form) === null || _ctx$form2 === void 0 ? void 0 : _ctx$form2.setFieldSource(resultSourceKey, source);
|
|
5193
5201
|
setSelectDataSource(source, Number((res === null || res === void 0 ? void 0 : res.total) || (res === null || res === void 0 ? void 0 : res.totalCount) || source.length));
|
|
5194
5202
|
} else {
|
|
5195
5203
|
setTableData(source);
|
|
@@ -5333,10 +5341,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5333
5341
|
};
|
|
5334
5342
|
var handleSelectOver = function handleSelectOver(selectedValue) {
|
|
5335
5343
|
if (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.length) {
|
|
5336
|
-
var _ctx$
|
|
5344
|
+
var _ctx$form3;
|
|
5337
5345
|
// 解决选择最后1页的sku,返回后,不显示名称问题
|
|
5338
5346
|
var source = _.uniqBy(items.concat(selectedValue), 'value');
|
|
5339
|
-
ctx === null || ctx === void 0 ? void 0 : (_ctx$
|
|
5347
|
+
ctx === null || ctx === void 0 ? void 0 : (_ctx$form3 = ctx.form) === null || _ctx$form3 === void 0 ? void 0 : _ctx$form3.setFieldSource(resultSourceKey, source);
|
|
5340
5348
|
setSelectDataSource(source, source === null || source === void 0 ? void 0 : source.length);
|
|
5341
5349
|
formaData(selectedValue, source);
|
|
5342
5350
|
} else {
|
|
@@ -5740,9 +5748,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5740
5748
|
})) || [], 'noPage')
|
|
5741
5749
|
}];
|
|
5742
5750
|
var resetSelectDataSource = function resetSelectDataSource() {
|
|
5751
|
+
var isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
5743
5752
|
setSearchValue('');
|
|
5744
5753
|
// 有关联值 不需要清空下拉框数据 也不需要重新去请求了
|
|
5745
|
-
if (isHaveDependency) return;
|
|
5754
|
+
if (!isClear && isHaveDependency) return; // 清空时需要放开:级联首次回之后,清空数据需要重新查询下拉框的值
|
|
5746
5755
|
clearSelectDataSource();
|
|
5747
5756
|
init && run('init');
|
|
5748
5757
|
};
|
|
@@ -5754,7 +5763,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5754
5763
|
formaData([], items);
|
|
5755
5764
|
onChangeSelectedKeys([], []);
|
|
5756
5765
|
// 重置下拉框数据源
|
|
5757
|
-
resetSelectDataSource();
|
|
5766
|
+
resetSelectDataSource(true);
|
|
5758
5767
|
};
|
|
5759
5768
|
var onDeselect = function onDeselect() {
|
|
5760
5769
|
var oldSelect = (value === null || value === void 0 ? void 0 : value.map(function (s) {
|
|
@@ -5875,7 +5884,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5875
5884
|
destroyTooltipOnHide: true,
|
|
5876
5885
|
placement: "topRight",
|
|
5877
5886
|
autoAdjustOverflow: false,
|
|
5878
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
5887
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
5879
5888
|
style: {
|
|
5880
5889
|
margin: '6px 8px 0px'
|
|
5881
5890
|
},
|
|
@@ -5947,13 +5956,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5947
5956
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5948
5957
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5949
5958
|
className: 'search_select'
|
|
5950
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5959
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5951
5960
|
onClick: function onClick() {
|
|
5952
5961
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5953
5962
|
(_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);
|
|
5954
5963
|
showModal();
|
|
5955
5964
|
}
|
|
5956
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5965
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5957
5966
|
title: getShowStr(),
|
|
5958
5967
|
style: {
|
|
5959
5968
|
overflow: 'hidden',
|
|
@@ -5980,32 +5989,15 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5980
5989
|
dropdownRender: function dropdownRender(menu) {
|
|
5981
5990
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5982
5991
|
},
|
|
5983
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5992
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5984
5993
|
size: "small",
|
|
5985
5994
|
className: 'searchSelectSpin'
|
|
5986
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5995
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5987
5996
|
style: {
|
|
5988
5997
|
textAlign: 'center'
|
|
5989
5998
|
}
|
|
5990
5999
|
}, /*#__PURE__*/React$1.createElement("div", null, searchValue || init || isHaveDependency ? '无匹配结果,请更换其他内容再试' : "\u8BF7\u5F55\u5165".concat(searchStartLength ? '4位数以上' : '', "\u5B57\u7B26\u8FDB\u884C\u6A21\u7CCA\u67E5\u8BE2")))),
|
|
5991
6000
|
onPopupScroll: SelectScroll,
|
|
5992
|
-
onKeyDown: function onKeyDown(e) {
|
|
5993
|
-
if ((e.key === 'Enter' || e.keyCode === 13) && !selectOpen) {
|
|
5994
|
-
if (props === null || props === void 0 ? void 0 : props.onPressEnter) {
|
|
5995
|
-
var _props$onPressEnter;
|
|
5996
|
-
(_props$onPressEnter = props.onPressEnter) === null || _props$onPressEnter === void 0 ? void 0 : _props$onPressEnter.call(props, e);
|
|
5997
|
-
}
|
|
5998
|
-
handlePressEnter$1(ctx);
|
|
5999
|
-
setSelectOpen(false);
|
|
6000
|
-
e.preventDefault();
|
|
6001
|
-
e.stopPropagation();
|
|
6002
|
-
return;
|
|
6003
|
-
} else if (e.keyCode === 9 || e.key === 'Tab') {
|
|
6004
|
-
setSelectOpen(false);
|
|
6005
|
-
} else {
|
|
6006
|
-
setSelectOpen(true);
|
|
6007
|
-
}
|
|
6008
|
-
},
|
|
6009
6001
|
style: {
|
|
6010
6002
|
width: 'calc(100%)'
|
|
6011
6003
|
},
|
|
@@ -6031,7 +6023,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6031
6023
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
6032
6024
|
filterTxt: searchValue
|
|
6033
6025
|
}));
|
|
6034
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6026
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
6035
6027
|
maskClosable: false,
|
|
6036
6028
|
destroyOnClose: true,
|
|
6037
6029
|
width: "80%",
|
|
@@ -6628,7 +6620,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6628
6620
|
style: {
|
|
6629
6621
|
width: 525
|
|
6630
6622
|
}
|
|
6631
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6623
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6632
6624
|
checked: !dataSource.some(function (item) {
|
|
6633
6625
|
if (item.hidden) return true;
|
|
6634
6626
|
return false;
|
|
@@ -6666,13 +6658,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6666
6658
|
_this2.onChange(e, item.title);
|
|
6667
6659
|
}
|
|
6668
6660
|
}, item.title);
|
|
6669
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6661
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
6670
6662
|
style: {
|
|
6671
6663
|
width: '144px'
|
|
6672
6664
|
}
|
|
6673
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6665
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
6674
6666
|
className: 'sort_table_column_all_empty'
|
|
6675
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6667
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6676
6668
|
className: 'sort_table_column_special'
|
|
6677
6669
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6678
6670
|
className: 'sort_table_column_all'
|
|
@@ -6861,7 +6853,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6861
6853
|
});
|
|
6862
6854
|
};
|
|
6863
6855
|
// 格式化树选择器数据源
|
|
6864
|
-
var
|
|
6856
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6865
6857
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6866
6858
|
return {
|
|
6867
6859
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6871,7 +6863,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6871
6863
|
isLeaf: !haveChildren,
|
|
6872
6864
|
disabled: haveChildren,
|
|
6873
6865
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6874
|
-
return
|
|
6866
|
+
return mapSearchTree(i, resKeyValue);
|
|
6875
6867
|
}) : []
|
|
6876
6868
|
};
|
|
6877
6869
|
};
|
|
@@ -6880,7 +6872,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6880
6872
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6881
6873
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6882
6874
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6883
|
-
return
|
|
6875
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6884
6876
|
}) || [];
|
|
6885
6877
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6886
6878
|
};
|
|
@@ -7051,7 +7043,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7051
7043
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7052
7044
|
// FIXME: 特殊业务逻辑
|
|
7053
7045
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7054
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7046
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7055
7047
|
var result;
|
|
7056
7048
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
7057
7049
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7304,7 +7296,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7304
7296
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
7305
7297
|
value: text || null,
|
|
7306
7298
|
onChange: function () {
|
|
7307
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7299
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7308
7300
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
7309
7301
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
7310
7302
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7912,10 +7904,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7912
7904
|
var newColumns = arr.map(function (col) {
|
|
7913
7905
|
return _objectSpread2({}, col);
|
|
7914
7906
|
});
|
|
7915
|
-
var
|
|
7907
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7916
7908
|
var i = indexArr.shift();
|
|
7917
7909
|
if (indexArr.length > 0) {
|
|
7918
|
-
|
|
7910
|
+
handleIndex(arr[i].children, indexArr);
|
|
7919
7911
|
} else {
|
|
7920
7912
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7921
7913
|
width: size.width
|
|
@@ -7923,7 +7915,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7923
7915
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7924
7916
|
}
|
|
7925
7917
|
};
|
|
7926
|
-
|
|
7918
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7927
7919
|
callback(newColumns);
|
|
7928
7920
|
};
|
|
7929
7921
|
};
|
|
@@ -7933,13 +7925,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7933
7925
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7934
7926
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7935
7927
|
};
|
|
7936
|
-
var
|
|
7928
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7937
7929
|
arr.forEach(function (item, index) {
|
|
7938
7930
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7939
7931
|
return i || i === 0;
|
|
7940
7932
|
});
|
|
7941
7933
|
if (noEmptyArray$1(item.children)) {
|
|
7942
|
-
|
|
7934
|
+
handleColumns(item.children, indexArrInside);
|
|
7943
7935
|
} else {
|
|
7944
7936
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7945
7937
|
item.onHeaderCell = function (column) {
|
|
@@ -7955,14 +7947,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7955
7947
|
handleAntdColumnsSpecialParams(item);
|
|
7956
7948
|
return _objectSpread2({}, item);
|
|
7957
7949
|
});
|
|
7958
|
-
|
|
7950
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7959
7951
|
return setShowToChooseColumnsCallback(res);
|
|
7960
7952
|
});
|
|
7961
7953
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7962
7954
|
handleAntdColumnsSpecialParams(item);
|
|
7963
7955
|
return _objectSpread2({}, item);
|
|
7964
7956
|
});
|
|
7965
|
-
|
|
7957
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7966
7958
|
return setShowColumnsCallback(res);
|
|
7967
7959
|
});
|
|
7968
7960
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7973,7 +7965,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7973
7965
|
id: "add_select_div_".concat(uniqueValue)
|
|
7974
7966
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7975
7967
|
onClick: handleShowModal
|
|
7976
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7968
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7977
7969
|
width: '1200px',
|
|
7978
7970
|
style: {
|
|
7979
7971
|
top: 20
|
|
@@ -8887,7 +8879,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8887
8879
|
});
|
|
8888
8880
|
};
|
|
8889
8881
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8890
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8882
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8891
8883
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8892
8884
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8893
8885
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8970,10 +8962,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8970
8962
|
var newColumns = arr.map(function (col) {
|
|
8971
8963
|
return _objectSpread2({}, col);
|
|
8972
8964
|
});
|
|
8973
|
-
var
|
|
8965
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8974
8966
|
var i = indexArr.shift();
|
|
8975
8967
|
if (indexArr.length > 0) {
|
|
8976
|
-
|
|
8968
|
+
handleIndex(arr[i].children, indexArr);
|
|
8977
8969
|
} else {
|
|
8978
8970
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8979
8971
|
width: size.width
|
|
@@ -8981,17 +8973,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8981
8973
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8982
8974
|
}
|
|
8983
8975
|
};
|
|
8984
|
-
|
|
8976
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8985
8977
|
callback(newColumns);
|
|
8986
8978
|
};
|
|
8987
8979
|
};
|
|
8988
|
-
var
|
|
8980
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8989
8981
|
arr.forEach(function (item, index) {
|
|
8990
8982
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8991
8983
|
return i || i === 0;
|
|
8992
8984
|
});
|
|
8993
8985
|
if (noEmptyArray$1(item.children)) {
|
|
8994
|
-
|
|
8986
|
+
handleColumns(item.children, indexArrInside);
|
|
8995
8987
|
} else {
|
|
8996
8988
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8997
8989
|
item.onHeaderCell = function (column) {
|
|
@@ -9007,7 +8999,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9007
8999
|
handleAntdColumnsSpecialParams(item);
|
|
9008
9000
|
return _objectSpread2({}, item);
|
|
9009
9001
|
});
|
|
9010
|
-
|
|
9002
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
9011
9003
|
return setShowColumnsCallback(res);
|
|
9012
9004
|
});
|
|
9013
9005
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -9322,7 +9314,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9322
9314
|
});
|
|
9323
9315
|
};
|
|
9324
9316
|
// 格式化树选择器数据源
|
|
9325
|
-
var
|
|
9317
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
9326
9318
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
9327
9319
|
return {
|
|
9328
9320
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -9332,7 +9324,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9332
9324
|
isLeaf: !haveChildren,
|
|
9333
9325
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
9334
9326
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
9335
|
-
return
|
|
9327
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
9336
9328
|
}) : []
|
|
9337
9329
|
};
|
|
9338
9330
|
};
|
|
@@ -9346,7 +9338,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9346
9338
|
disabledJudge = false;
|
|
9347
9339
|
}
|
|
9348
9340
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
9349
|
-
return
|
|
9341
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
9350
9342
|
}) || [];
|
|
9351
9343
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
9352
9344
|
};
|
|
@@ -13416,7 +13408,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
13416
13408
|
};
|
|
13417
13409
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
13418
13410
|
onClick: handleShowModal
|
|
13419
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13411
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13420
13412
|
onOk: handleOk,
|
|
13421
13413
|
onCancel: handleCancel,
|
|
13422
13414
|
destroyOnClose: true,
|
|
@@ -13535,7 +13527,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13535
13527
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
13536
13528
|
_remoteSource$special = remoteSource.specialBracket,
|
|
13537
13529
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
13538
|
-
var
|
|
13530
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
13539
13531
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
13540
13532
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
13541
13533
|
return {
|
|
@@ -13547,7 +13539,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13547
13539
|
isLeaf: !haveChildren,
|
|
13548
13540
|
disabled: isDisabled(haveChildren, isRoot),
|
|
13549
13541
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
13550
|
-
return
|
|
13542
|
+
return mapSearchTree(i);
|
|
13551
13543
|
}) : []
|
|
13552
13544
|
};
|
|
13553
13545
|
};
|
|
@@ -13565,8 +13557,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13565
13557
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
13566
13558
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
13567
13559
|
headers: headers
|
|
13568
|
-
}).then(/*#__PURE__*/function () {
|
|
13569
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13560
|
+
}).then( /*#__PURE__*/function () {
|
|
13561
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13570
13562
|
var _ctx$form;
|
|
13571
13563
|
var resData, coverData, data, dataList;
|
|
13572
13564
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13593,7 +13585,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13593
13585
|
case 9:
|
|
13594
13586
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
13595
13587
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
13596
|
-
return
|
|
13588
|
+
return mapSearchTree(ites);
|
|
13597
13589
|
}) || [];
|
|
13598
13590
|
case 11:
|
|
13599
13591
|
_context.next = 14;
|
|
@@ -13631,11 +13623,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13631
13623
|
return _formatResult;
|
|
13632
13624
|
}
|
|
13633
13625
|
};
|
|
13634
|
-
var
|
|
13626
|
+
var parallelData = function parallelData(data, result) {
|
|
13635
13627
|
data.forEach(function (i) {
|
|
13636
13628
|
result.push(i);
|
|
13637
13629
|
if (i[treeChildrenRoom]) {
|
|
13638
|
-
|
|
13630
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13639
13631
|
}
|
|
13640
13632
|
});
|
|
13641
13633
|
return result;
|
|
@@ -13675,7 +13667,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13675
13667
|
var _ctx$form2;
|
|
13676
13668
|
var handleData = formatData(data);
|
|
13677
13669
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13678
|
-
var parallelTreeData =
|
|
13670
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13679
13671
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13680
13672
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13681
13673
|
onChangeName && onChangeName(dataName);
|
|
@@ -13718,7 +13710,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13718
13710
|
var getShowStr = function getShowStr() {
|
|
13719
13711
|
var isMultiple = multiple || treeCheckable;
|
|
13720
13712
|
var kongValue = '无';
|
|
13721
|
-
var parallelTreeData =
|
|
13713
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13722
13714
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13723
13715
|
if (isMultiple) {
|
|
13724
13716
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13730,7 +13722,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13730
13722
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13731
13723
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13732
13724
|
className: 'tree_search_select'
|
|
13733
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13725
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13734
13726
|
title: getShowStr(),
|
|
13735
13727
|
style: {
|
|
13736
13728
|
overflow: 'hidden',
|
|
@@ -13738,7 +13730,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13738
13730
|
whiteSpace: 'nowrap'
|
|
13739
13731
|
},
|
|
13740
13732
|
className: 'search_select_show'
|
|
13741
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13733
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13742
13734
|
treeCheckable: treeCheckable,
|
|
13743
13735
|
maxTagCount: maxTagCount,
|
|
13744
13736
|
showSearch: showSearch,
|
|
@@ -13935,7 +13927,7 @@ var index$2 = (function (props) {
|
|
|
13935
13927
|
} : {}
|
|
13936
13928
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13937
13929
|
className: 'status-label-operate'
|
|
13938
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13930
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13939
13931
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13940
13932
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13941
13933
|
style: {
|
|
@@ -14716,7 +14708,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14716
14708
|
style: {
|
|
14717
14709
|
width: 525
|
|
14718
14710
|
}
|
|
14719
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14711
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14720
14712
|
checked: !dataSource.some(function (item) {
|
|
14721
14713
|
if (item.hidden) return true;
|
|
14722
14714
|
return false;
|
|
@@ -14754,13 +14746,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14754
14746
|
_this2.onChange(e, item.title);
|
|
14755
14747
|
}
|
|
14756
14748
|
}, item.title);
|
|
14757
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14749
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
14758
14750
|
style: {
|
|
14759
14751
|
width: '144px'
|
|
14760
14752
|
}
|
|
14761
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14753
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
14762
14754
|
className: 'sort_table_column_all_empty'
|
|
14763
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14755
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14764
14756
|
className: 'sort_table_column_special'
|
|
14765
14757
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14766
14758
|
className: 'sort_table_column_all'
|
|
@@ -14939,10 +14931,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14939
14931
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14940
14932
|
return _objectSpread2({}, col);
|
|
14941
14933
|
});
|
|
14942
|
-
var
|
|
14934
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14943
14935
|
var i = indexArr.shift();
|
|
14944
14936
|
if (indexArr.length > 0) {
|
|
14945
|
-
|
|
14937
|
+
handleIndex(arr[i].children, indexArr);
|
|
14946
14938
|
} else {
|
|
14947
14939
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14948
14940
|
width: size.width
|
|
@@ -14950,7 +14942,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14950
14942
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14951
14943
|
}
|
|
14952
14944
|
};
|
|
14953
|
-
|
|
14945
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14954
14946
|
_this.setState({
|
|
14955
14947
|
showColumns: _toConsumableArray(newColumns)
|
|
14956
14948
|
});
|
|
@@ -14991,7 +14983,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14991
14983
|
};
|
|
14992
14984
|
setIsResizing(true);
|
|
14993
14985
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14994
|
-
document.addEventListener('mouseup',
|
|
14986
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
14995
14987
|
};
|
|
14996
14988
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14997
14989
|
e.stopPropagation();
|
|
@@ -15007,9 +14999,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15007
14999
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
15008
15000
|
}
|
|
15009
15001
|
};
|
|
15010
|
-
var
|
|
15002
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
15011
15003
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
15012
|
-
document.removeEventListener('mouseup',
|
|
15004
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
15013
15005
|
setIsResizing(false);
|
|
15014
15006
|
};
|
|
15015
15007
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -15130,13 +15122,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15130
15122
|
showSummary = summary;
|
|
15131
15123
|
}
|
|
15132
15124
|
}
|
|
15133
|
-
var
|
|
15125
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15134
15126
|
arr.forEach(function (item, index) {
|
|
15135
15127
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15136
15128
|
return i || i === 0;
|
|
15137
15129
|
});
|
|
15138
15130
|
if (noEmptyArray$1(item.children)) {
|
|
15139
|
-
|
|
15131
|
+
handleColumns(item.children, indexArrInside);
|
|
15140
15132
|
} else {
|
|
15141
15133
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15142
15134
|
item.onHeaderCell = function (column) {
|
|
@@ -15152,7 +15144,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15152
15144
|
handleBssulaColumnsSpecialParams(item);
|
|
15153
15145
|
return _objectSpread2({}, item);
|
|
15154
15146
|
});
|
|
15155
|
-
|
|
15147
|
+
handleColumns(showCol, []);
|
|
15156
15148
|
if (dynamicColumns.length) {
|
|
15157
15149
|
showCol = this.handledynamicColumns(showCol);
|
|
15158
15150
|
}
|
|
@@ -15193,7 +15185,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15193
15185
|
cell: this.ResizeableTitle
|
|
15194
15186
|
}
|
|
15195
15187
|
}
|
|
15196
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15188
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15197
15189
|
summary: summary
|
|
15198
15190
|
})));
|
|
15199
15191
|
}
|
|
@@ -15290,10 +15282,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15290
15282
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
15291
15283
|
return _objectSpread2({}, col);
|
|
15292
15284
|
});
|
|
15293
|
-
var
|
|
15285
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
15294
15286
|
var i = indexArr.shift();
|
|
15295
15287
|
if (indexArr.length > 0) {
|
|
15296
|
-
|
|
15288
|
+
handleIndex(arr[i].children, indexArr);
|
|
15297
15289
|
} else {
|
|
15298
15290
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
15299
15291
|
width: size.width
|
|
@@ -15301,7 +15293,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15301
15293
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
15302
15294
|
}
|
|
15303
15295
|
};
|
|
15304
|
-
|
|
15296
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
15305
15297
|
_this.setState({
|
|
15306
15298
|
showColumns: _toConsumableArray(newColumns)
|
|
15307
15299
|
});
|
|
@@ -15377,13 +15369,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15377
15369
|
showSummary = summary;
|
|
15378
15370
|
}
|
|
15379
15371
|
}
|
|
15380
|
-
var
|
|
15372
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
15381
15373
|
arr.forEach(function (item, index) {
|
|
15382
15374
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
15383
15375
|
return i || i === 0;
|
|
15384
15376
|
});
|
|
15385
15377
|
if (noEmptyArray$1(item.children)) {
|
|
15386
|
-
|
|
15378
|
+
handleColumns(item.children, indexArrInside);
|
|
15387
15379
|
} else {
|
|
15388
15380
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
15389
15381
|
item.onHeaderCell = function (column) {
|
|
@@ -15399,7 +15391,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15399
15391
|
handleAntdColumnsSpecialParams(item);
|
|
15400
15392
|
return _objectSpread2({}, item);
|
|
15401
15393
|
});
|
|
15402
|
-
|
|
15394
|
+
handleColumns(showCol, []);
|
|
15403
15395
|
if (dynamicColumns.length) {
|
|
15404
15396
|
showCol = this.handledynamicColumns(showCol);
|
|
15405
15397
|
}
|
|
@@ -15439,7 +15431,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
15439
15431
|
cell: this.ResizeableTitle
|
|
15440
15432
|
}
|
|
15441
15433
|
}
|
|
15442
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15434
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15443
15435
|
summary: summary
|
|
15444
15436
|
})));
|
|
15445
15437
|
}
|
|
@@ -15499,20 +15491,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
15499
15491
|
};
|
|
15500
15492
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
15501
15493
|
var routerMap = {};
|
|
15502
|
-
var
|
|
15494
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
15503
15495
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
15504
15496
|
data.forEach(function (menuItem) {
|
|
15505
15497
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
15506
15498
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
15507
15499
|
});
|
|
15508
15500
|
if (newMenuItem.children) {
|
|
15509
|
-
|
|
15501
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
15510
15502
|
}
|
|
15511
15503
|
// Reduce memory usage
|
|
15512
15504
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
15513
15505
|
});
|
|
15514
15506
|
};
|
|
15515
|
-
|
|
15507
|
+
flattenMenuData(menuData, {});
|
|
15516
15508
|
return routerMap;
|
|
15517
15509
|
};
|
|
15518
15510
|
// mode类型判断
|
|
@@ -15838,7 +15830,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15838
15830
|
display: 'flex',
|
|
15839
15831
|
gap: '8px'
|
|
15840
15832
|
}
|
|
15841
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15833
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15842
15834
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15843
15835
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15844
15836
|
onClick: function onClick() {
|
|
@@ -15846,7 +15838,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15846
15838
|
},
|
|
15847
15839
|
width: 24,
|
|
15848
15840
|
src: scanning
|
|
15849
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15841
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15850
15842
|
title: "\u5168\u5C4F"
|
|
15851
15843
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15852
15844
|
onClick: function onClick() {
|
|
@@ -15854,7 +15846,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15854
15846
|
},
|
|
15855
15847
|
width: 24,
|
|
15856
15848
|
src: quanping
|
|
15857
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15849
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15858
15850
|
}, function (prevProps, nextProps) {
|
|
15859
15851
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15860
15852
|
return false;
|
|
@@ -15939,7 +15931,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15939
15931
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15940
15932
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15941
15933
|
}, item));
|
|
15942
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15934
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15943
15935
|
}, function (prevProps, nextProps) {
|
|
15944
15936
|
if (prevProps.title !== nextProps.title) {
|
|
15945
15937
|
return false;
|
|
@@ -16579,7 +16571,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16579
16571
|
});
|
|
16580
16572
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16581
16573
|
className: 'sort_table_wrapper'
|
|
16582
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16574
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16583
16575
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16584
16576
|
wrapClassName: 'sort_table_wrapper',
|
|
16585
16577
|
width: 810,
|
|
@@ -16630,7 +16622,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16630
16622
|
width: 525,
|
|
16631
16623
|
height: 24
|
|
16632
16624
|
}
|
|
16633
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16625
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16634
16626
|
checked: !dataSource.some(function (item) {
|
|
16635
16627
|
if (item.hidden) return true;
|
|
16636
16628
|
return false;
|
|
@@ -16684,13 +16676,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16684
16676
|
_this2.onChange(e, item.title);
|
|
16685
16677
|
}
|
|
16686
16678
|
}, item.title);
|
|
16687
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16679
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16688
16680
|
style: {
|
|
16689
16681
|
width: '144px'
|
|
16690
16682
|
}
|
|
16691
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16683
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16692
16684
|
className: 'sort_table_column_all_empty'
|
|
16693
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16685
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16694
16686
|
className: 'sort_table_column_special'
|
|
16695
16687
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16696
16688
|
className: 'sort_table_column_all'
|
|
@@ -17164,7 +17156,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17164
17156
|
});
|
|
17165
17157
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
17166
17158
|
className: 'sort_table_wrapper'
|
|
17167
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17159
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
17168
17160
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
17169
17161
|
wrapClassName: 'sort_table_wrapper',
|
|
17170
17162
|
width: 820,
|
|
@@ -17209,7 +17201,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17209
17201
|
style: {
|
|
17210
17202
|
width: 525
|
|
17211
17203
|
}
|
|
17212
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17204
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17213
17205
|
checked: !dataSource.some(function (item) {
|
|
17214
17206
|
if (item.hidden) return true;
|
|
17215
17207
|
return false;
|
|
@@ -17245,11 +17237,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
17245
17237
|
_this2.onChange(e, item.name);
|
|
17246
17238
|
}
|
|
17247
17239
|
}, item.label);
|
|
17248
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17240
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
17249
17241
|
style: {
|
|
17250
17242
|
width: '144px'
|
|
17251
17243
|
}
|
|
17252
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17244
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
17253
17245
|
className: 'sort_table_column_all_empty'
|
|
17254
17246
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
17255
17247
|
className: 'sort_table_content_wrapper'
|
|
@@ -17348,7 +17340,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17348
17340
|
};
|
|
17349
17341
|
setIsResizing(true);
|
|
17350
17342
|
document.addEventListener('mousemove', handleMouseMove);
|
|
17351
|
-
document.addEventListener('mouseup',
|
|
17343
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
17352
17344
|
};
|
|
17353
17345
|
var handleMouseMove = function handleMouseMove(e) {
|
|
17354
17346
|
e.stopPropagation();
|
|
@@ -17364,9 +17356,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
17364
17356
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
17365
17357
|
}
|
|
17366
17358
|
};
|
|
17367
|
-
var
|
|
17359
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
17368
17360
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
17369
|
-
document.removeEventListener('mouseup',
|
|
17361
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
17370
17362
|
setIsResizing(false);
|
|
17371
17363
|
};
|
|
17372
17364
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17777,7 +17769,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17777
17769
|
actionsRender = actionsRender.concat([{
|
|
17778
17770
|
type: 'text',
|
|
17779
17771
|
props: {
|
|
17780
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17772
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17781
17773
|
request: {
|
|
17782
17774
|
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),
|
|
17783
17775
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -18023,7 +18015,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18023
18015
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
18024
18016
|
bsTableCode: bsTableCode,
|
|
18025
18017
|
onlyModal: true
|
|
18026
|
-
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && (/*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
18018
|
+
}), (value === null || value === void 0 ? void 0 : (_value$exportConfig6 = value.exportConfig) === null || _value$exportConfig6 === void 0 ? void 0 : _value$exportConfig6.settingColumns) && ( /*#__PURE__*/React$1.createElement(SortableTable$1, {
|
|
18027
18019
|
ref: exportTableRef,
|
|
18028
18020
|
setShowColumns: setShowExportColumns,
|
|
18029
18021
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -18116,11 +18108,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18116
18108
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18117
18109
|
var resultList = [];
|
|
18118
18110
|
var newRouter = cloneDeep(router);
|
|
18119
|
-
var
|
|
18111
|
+
var deep = function deep(router) {
|
|
18120
18112
|
if (router && Array.isArray(router)) {
|
|
18121
18113
|
router.forEach(function (item) {
|
|
18122
18114
|
if (item.children && Array.isArray(item.children)) {
|
|
18123
|
-
|
|
18115
|
+
deep(item.children);
|
|
18124
18116
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
18125
18117
|
return d === item.code;
|
|
18126
18118
|
})) {
|
|
@@ -18134,10 +18126,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
18134
18126
|
resultList.push(_objectSpread2({}, router));
|
|
18135
18127
|
}
|
|
18136
18128
|
};
|
|
18137
|
-
|
|
18129
|
+
deep(newRouter);
|
|
18138
18130
|
callBack([].concat(resultList));
|
|
18139
18131
|
};
|
|
18140
|
-
var
|
|
18132
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
18141
18133
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
18142
18134
|
var _loop = function _loop(i) {
|
|
18143
18135
|
if (routesData[i].hideInMenu) {
|
|
@@ -18151,7 +18143,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
18151
18143
|
return 0; // continue
|
|
18152
18144
|
}
|
|
18153
18145
|
if (routesData[i].children) {
|
|
18154
|
-
|
|
18146
|
+
setMenuTreeData(routesData[i].children);
|
|
18155
18147
|
}
|
|
18156
18148
|
},
|
|
18157
18149
|
_ret;
|
|
@@ -18172,16 +18164,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
18172
18164
|
};
|
|
18173
18165
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
18174
18166
|
var routerMap = {};
|
|
18175
|
-
var
|
|
18167
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
18176
18168
|
data.forEach(function (menuItem) {
|
|
18177
18169
|
if (menuItem.children) {
|
|
18178
|
-
|
|
18170
|
+
flattenMenuData(menuItem.children);
|
|
18179
18171
|
}
|
|
18180
18172
|
// Reduce memory usage
|
|
18181
18173
|
routerMap[menuItem.path] = menuItem;
|
|
18182
18174
|
});
|
|
18183
18175
|
};
|
|
18184
|
-
|
|
18176
|
+
flattenMenuData(menuData);
|
|
18185
18177
|
return routerMap;
|
|
18186
18178
|
};
|
|
18187
18179
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -18327,7 +18319,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18327
18319
|
sethomepageData(homepageDataList);
|
|
18328
18320
|
setroutesData(routesDataList);
|
|
18329
18321
|
}, []);
|
|
18330
|
-
var
|
|
18322
|
+
var renderChildItem = function renderChildItem(child) {
|
|
18331
18323
|
if (!child.hideInMenu && child.children) {
|
|
18332
18324
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
18333
18325
|
style: {
|
|
@@ -18337,7 +18329,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18337
18329
|
}, formatMessage({
|
|
18338
18330
|
id: "".concat(child.locale)
|
|
18339
18331
|
})), child.children.map(function (menuItem) {
|
|
18340
|
-
return
|
|
18332
|
+
return renderChildItem(menuItem);
|
|
18341
18333
|
}));
|
|
18342
18334
|
} else if (!child.hideInMenu && child.path) {
|
|
18343
18335
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -18372,7 +18364,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18372
18364
|
className: 'drawerWarp'
|
|
18373
18365
|
}, homepageData && homepageData.filter(function (d) {
|
|
18374
18366
|
return !d.hideInMenu;
|
|
18375
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18367
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
18376
18368
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
18377
18369
|
dataSource: homepageData,
|
|
18378
18370
|
renderItem: function renderItem(child) {
|
|
@@ -18407,7 +18399,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
18407
18399
|
bordered: true,
|
|
18408
18400
|
dataSource: item.children,
|
|
18409
18401
|
renderItem: function renderItem(child) {
|
|
18410
|
-
return
|
|
18402
|
+
return renderChildItem(child);
|
|
18411
18403
|
}
|
|
18412
18404
|
});
|
|
18413
18405
|
})));
|
|
@@ -18467,7 +18459,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
18467
18459
|
src: allfunc
|
|
18468
18460
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
18469
18461
|
className: 'btnSpan2'
|
|
18470
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18462
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18471
18463
|
style: {
|
|
18472
18464
|
left: isDrawer ? 140 : 0,
|
|
18473
18465
|
top: 50
|
|
@@ -18513,7 +18505,7 @@ function outLogin(_x) {
|
|
|
18513
18505
|
return _outLogin.apply(this, arguments);
|
|
18514
18506
|
}
|
|
18515
18507
|
function _outLogin() {
|
|
18516
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18508
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18517
18509
|
var res;
|
|
18518
18510
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18519
18511
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18655,7 +18647,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18655
18647
|
});
|
|
18656
18648
|
};
|
|
18657
18649
|
var loginOut = /*#__PURE__*/function () {
|
|
18658
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18650
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18659
18651
|
var sessionId;
|
|
18660
18652
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18661
18653
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18759,7 +18751,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18759
18751
|
marginRight: '0px'
|
|
18760
18752
|
},
|
|
18761
18753
|
src: './xialajiantou-new.svg'
|
|
18762
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18754
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18763
18755
|
};
|
|
18764
18756
|
|
|
18765
18757
|
// -- 查询店铺 --
|
|
@@ -18767,7 +18759,7 @@ function getStoreByName(_x) {
|
|
|
18767
18759
|
return _getStoreByName.apply(this, arguments);
|
|
18768
18760
|
}
|
|
18769
18761
|
function _getStoreByName() {
|
|
18770
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18762
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18771
18763
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18772
18764
|
while (1) switch (_context.prev = _context.next) {
|
|
18773
18765
|
case 0:
|
|
@@ -18835,7 +18827,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18835
18827
|
return _fetchUserList.apply(this, arguments);
|
|
18836
18828
|
}
|
|
18837
18829
|
function _fetchUserList() {
|
|
18838
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18830
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18839
18831
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18840
18832
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18841
18833
|
case 0:
|
|
@@ -18883,7 +18875,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18883
18875
|
return debounce$1(loadOptions, debounceTimeout);
|
|
18884
18876
|
}, [debounceTimeout, key]);
|
|
18885
18877
|
var changeInput = /*#__PURE__*/function () {
|
|
18886
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18878
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18887
18879
|
var res;
|
|
18888
18880
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18889
18881
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18905,7 +18897,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18905
18897
|
};
|
|
18906
18898
|
}();
|
|
18907
18899
|
useEffect(function () {
|
|
18908
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18900
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18909
18901
|
var res;
|
|
18910
18902
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18911
18903
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19070,7 +19062,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19070
19062
|
var resultList = [];
|
|
19071
19063
|
var newRouter = cloneDeep$1(router);
|
|
19072
19064
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
19073
|
-
var
|
|
19065
|
+
var deep = function deep(router) {
|
|
19074
19066
|
if (router && Array.isArray(router)) {
|
|
19075
19067
|
router.forEach(function (item) {
|
|
19076
19068
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -19080,7 +19072,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19080
19072
|
d.nameEdit = true;
|
|
19081
19073
|
}
|
|
19082
19074
|
});
|
|
19083
|
-
|
|
19075
|
+
deep(item.routes);
|
|
19084
19076
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
19085
19077
|
id: "menu.".concat(item.name)
|
|
19086
19078
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -19099,7 +19091,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19099
19091
|
}));
|
|
19100
19092
|
}
|
|
19101
19093
|
};
|
|
19102
|
-
|
|
19094
|
+
deep(newRouter);
|
|
19103
19095
|
setroutesData([].concat(resultList));
|
|
19104
19096
|
};
|
|
19105
19097
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -19181,7 +19173,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
19181
19173
|
},
|
|
19182
19174
|
title: item.fullPathName
|
|
19183
19175
|
}, renderLineStyl(item.fullPathName));
|
|
19184
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19176
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19185
19177
|
employeeCode: employeeCode
|
|
19186
19178
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
19187
19179
|
};
|
|
@@ -19196,7 +19188,7 @@ var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
19196
19188
|
var TreeNode = Tree.TreeNode;
|
|
19197
19189
|
var Search$2 = Input.Search;
|
|
19198
19190
|
var dataList = [];
|
|
19199
|
-
var
|
|
19191
|
+
var generateList = function generateList(data) {
|
|
19200
19192
|
for (var i = 0; i < data.length; i++) {
|
|
19201
19193
|
var node = data[i];
|
|
19202
19194
|
var path = node.path,
|
|
@@ -19206,11 +19198,11 @@ var _generateList = function generateList(data) {
|
|
|
19206
19198
|
name: name
|
|
19207
19199
|
});
|
|
19208
19200
|
if (node.children) {
|
|
19209
|
-
|
|
19201
|
+
generateList(node.children);
|
|
19210
19202
|
}
|
|
19211
19203
|
}
|
|
19212
19204
|
};
|
|
19213
|
-
var
|
|
19205
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
19214
19206
|
var parentKey;
|
|
19215
19207
|
for (var i = 0; i < tree.length; i++) {
|
|
19216
19208
|
var node = tree[i];
|
|
@@ -19219,8 +19211,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
19219
19211
|
return item.path === path;
|
|
19220
19212
|
})) {
|
|
19221
19213
|
parentKey = node.path;
|
|
19222
|
-
} else if (
|
|
19223
|
-
parentKey =
|
|
19214
|
+
} else if (getParentKey(path, node.children)) {
|
|
19215
|
+
parentKey = getParentKey(path, node.children);
|
|
19224
19216
|
}
|
|
19225
19217
|
}
|
|
19226
19218
|
}
|
|
@@ -19251,7 +19243,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19251
19243
|
var treeData = _this.state.treeData;
|
|
19252
19244
|
var expandedKeys = dataList.map(function (item) {
|
|
19253
19245
|
if (item.name.indexOf(value) > -1) {
|
|
19254
|
-
return
|
|
19246
|
+
return getParentKey(item.path, treeData);
|
|
19255
19247
|
}
|
|
19256
19248
|
return null;
|
|
19257
19249
|
}).filter(function (item, i, self) {
|
|
@@ -19265,22 +19257,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19265
19257
|
};
|
|
19266
19258
|
_this.getPathList = function (originData) {
|
|
19267
19259
|
var pathList = [];
|
|
19268
|
-
var
|
|
19260
|
+
var getList = function getList(data) {
|
|
19269
19261
|
if (Array.isArray(data)) {
|
|
19270
19262
|
data.forEach(function (item) {
|
|
19271
19263
|
pathList.push(item.path);
|
|
19272
19264
|
if (item.children) {
|
|
19273
|
-
|
|
19265
|
+
getList(item.children);
|
|
19274
19266
|
}
|
|
19275
19267
|
});
|
|
19276
19268
|
} else {
|
|
19277
19269
|
pathList.push(data.path);
|
|
19278
19270
|
if (data.children) {
|
|
19279
|
-
|
|
19271
|
+
getList(data.children);
|
|
19280
19272
|
}
|
|
19281
19273
|
}
|
|
19282
19274
|
};
|
|
19283
|
-
|
|
19275
|
+
getList(originData);
|
|
19284
19276
|
return pathList;
|
|
19285
19277
|
};
|
|
19286
19278
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -19289,18 +19281,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19289
19281
|
customerMenuData = _this$props.customerMenuData,
|
|
19290
19282
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
19291
19283
|
var filterItem;
|
|
19292
|
-
var
|
|
19284
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
19293
19285
|
menuData.forEach(function (item) {
|
|
19294
19286
|
if (item.path === path) {
|
|
19295
19287
|
filterItem = _objectSpread2({}, item);
|
|
19296
19288
|
return;
|
|
19297
19289
|
}
|
|
19298
19290
|
if (item.children) {
|
|
19299
|
-
|
|
19291
|
+
filterMenuItem(item.children);
|
|
19300
19292
|
}
|
|
19301
19293
|
});
|
|
19302
19294
|
};
|
|
19303
|
-
|
|
19295
|
+
filterMenuItem(treeData);
|
|
19304
19296
|
var addPathList = _this.getPathList(filterItem);
|
|
19305
19297
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
19306
19298
|
var isRepet = false;
|
|
@@ -19330,8 +19322,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19330
19322
|
return item.path === '/';
|
|
19331
19323
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19332
19324
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19333
|
-
|
|
19334
|
-
|
|
19325
|
+
setMenuTreeData(routesData);
|
|
19326
|
+
generateList(routesData);
|
|
19335
19327
|
this.setState({
|
|
19336
19328
|
treeData: routesData
|
|
19337
19329
|
});
|
|
@@ -19345,16 +19337,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19345
19337
|
expandedKeys = _this$state.expandedKeys,
|
|
19346
19338
|
autoExpandParent = _this$state.autoExpandParent,
|
|
19347
19339
|
treeData = _this$state.treeData;
|
|
19348
|
-
var
|
|
19340
|
+
var loop = function loop(data) {
|
|
19349
19341
|
return data.map(function (item) {
|
|
19350
19342
|
var index = item.name.indexOf(searchValue);
|
|
19351
19343
|
var beforeStr = item.name.substr(0, index);
|
|
19352
19344
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
19353
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19345
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19354
19346
|
style: {
|
|
19355
19347
|
color: '#f50'
|
|
19356
19348
|
}
|
|
19357
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19349
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19358
19350
|
if (item.children && item.children.length) {
|
|
19359
19351
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19360
19352
|
path: item.path,
|
|
@@ -19376,7 +19368,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19376
19368
|
width: 18,
|
|
19377
19369
|
src: arrowRight
|
|
19378
19370
|
}))))
|
|
19379
|
-
},
|
|
19371
|
+
}, loop(item.children));
|
|
19380
19372
|
}
|
|
19381
19373
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
19382
19374
|
path: item.path,
|
|
@@ -19426,7 +19418,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19426
19418
|
onExpand: this.onExpand,
|
|
19427
19419
|
expandedKeys: expandedKeys,
|
|
19428
19420
|
autoExpandParent: autoExpandParent
|
|
19429
|
-
},
|
|
19421
|
+
}, loop(treeData))));
|
|
19430
19422
|
}
|
|
19431
19423
|
}]);
|
|
19432
19424
|
}(React$1.Component);
|
|
@@ -19459,24 +19451,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19459
19451
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
19460
19452
|
var dragObj;
|
|
19461
19453
|
var finalDropItem;
|
|
19462
|
-
var
|
|
19454
|
+
var loop = function loop(data, path, callback) {
|
|
19463
19455
|
for (var i = 0; i < data.length; i++) {
|
|
19464
19456
|
if (data[i].path === path) {
|
|
19465
19457
|
return callback(data[i], i, data);
|
|
19466
19458
|
}
|
|
19467
19459
|
if (data[i].children) {
|
|
19468
|
-
|
|
19460
|
+
loop(data[i].children, path, callback);
|
|
19469
19461
|
}
|
|
19470
19462
|
}
|
|
19471
19463
|
};
|
|
19472
19464
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
19473
|
-
|
|
19465
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
19474
19466
|
arr.splice(index, 1);
|
|
19475
19467
|
dragObj = item;
|
|
19476
19468
|
});
|
|
19477
19469
|
if (!info.dropToGap) {
|
|
19478
19470
|
// Drop on the content
|
|
19479
|
-
|
|
19471
|
+
loop(data, dropKey, function (item) {
|
|
19480
19472
|
item.children = item.children || [];
|
|
19481
19473
|
item.children.unshift(dragObj);
|
|
19482
19474
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19487,7 +19479,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19487
19479
|
// Is expanded
|
|
19488
19480
|
dropPosition === 1 // On the bottom gap
|
|
19489
19481
|
) {
|
|
19490
|
-
|
|
19482
|
+
loop(data, dropKey, function (item) {
|
|
19491
19483
|
item.children = item.children || [];
|
|
19492
19484
|
item.children.unshift(dragObj);
|
|
19493
19485
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -19495,7 +19487,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19495
19487
|
} else {
|
|
19496
19488
|
var ar;
|
|
19497
19489
|
var i;
|
|
19498
|
-
|
|
19490
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
19499
19491
|
ar = arr;
|
|
19500
19492
|
i = index;
|
|
19501
19493
|
});
|
|
@@ -19534,17 +19526,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19534
19526
|
title: '编辑名称',
|
|
19535
19527
|
callBack: function callBack(newName) {
|
|
19536
19528
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19537
|
-
var
|
|
19529
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
19538
19530
|
oldTreeData.forEach(function (treeItem) {
|
|
19539
19531
|
if (treeItem.path === item.path) {
|
|
19540
19532
|
treeItem.name = newName;
|
|
19541
19533
|
}
|
|
19542
19534
|
if (treeItem.children) {
|
|
19543
|
-
|
|
19535
|
+
editTreeDataName(treeItem.children);
|
|
19544
19536
|
}
|
|
19545
19537
|
});
|
|
19546
19538
|
};
|
|
19547
|
-
|
|
19539
|
+
editTreeDataName(oldTreeData);
|
|
19548
19540
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19549
19541
|
_this.setState({
|
|
19550
19542
|
modalInfo: {
|
|
@@ -19589,7 +19581,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19589
19581
|
title: '新增子目录',
|
|
19590
19582
|
callBack: function callBack(newName) {
|
|
19591
19583
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
19592
|
-
var
|
|
19584
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
19593
19585
|
oldTreeData.forEach(function (treeItem) {
|
|
19594
19586
|
if (treeItem.path === item.path) {
|
|
19595
19587
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19601,11 +19593,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19601
19593
|
}];
|
|
19602
19594
|
}
|
|
19603
19595
|
if (treeItem.children) {
|
|
19604
|
-
|
|
19596
|
+
addChildFolder(treeItem.children);
|
|
19605
19597
|
}
|
|
19606
19598
|
});
|
|
19607
19599
|
};
|
|
19608
|
-
|
|
19600
|
+
addChildFolder(oldTreeData);
|
|
19609
19601
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19610
19602
|
_this.setState({
|
|
19611
19603
|
modalInfo: {
|
|
@@ -19664,7 +19656,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19664
19656
|
var _this$state = this.state,
|
|
19665
19657
|
modalInfo = _this$state.modalInfo,
|
|
19666
19658
|
checkedKeys = _this$state.checkedKeys;
|
|
19667
|
-
var
|
|
19659
|
+
var loop = function loop(data) {
|
|
19668
19660
|
return data.map(function (item) {
|
|
19669
19661
|
if (item.children && item.children.length) {
|
|
19670
19662
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19681,7 +19673,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19681
19673
|
e.stopPropagation();
|
|
19682
19674
|
}
|
|
19683
19675
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19684
|
-
},
|
|
19676
|
+
}, loop(item.children));
|
|
19685
19677
|
}
|
|
19686
19678
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19687
19679
|
path: item.path,
|
|
@@ -19760,7 +19752,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19760
19752
|
children: 'children'
|
|
19761
19753
|
},
|
|
19762
19754
|
onDrop: this.onDrop
|
|
19763
|
-
},
|
|
19755
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
19764
19756
|
width: 600,
|
|
19765
19757
|
bodyStyle: {
|
|
19766
19758
|
paddingTop: '32px',
|
|
@@ -19873,7 +19865,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19873
19865
|
pathname: item.path
|
|
19874
19866
|
});
|
|
19875
19867
|
};
|
|
19876
|
-
var
|
|
19868
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
19877
19869
|
return menuData.map(function (item) {
|
|
19878
19870
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
19879
19871
|
style: {
|
|
@@ -19888,7 +19880,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19888
19880
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19889
19881
|
paddingLeft: '4px'
|
|
19890
19882
|
}
|
|
19891
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19883
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
19892
19884
|
});
|
|
19893
19885
|
};
|
|
19894
19886
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19914,7 +19906,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19914
19906
|
style: {
|
|
19915
19907
|
paddingLeft: '5px'
|
|
19916
19908
|
}
|
|
19917
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19909
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19918
19910
|
style: {
|
|
19919
19911
|
left: isDrawer ? 140 : 0
|
|
19920
19912
|
},
|
|
@@ -19935,7 +19927,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19935
19927
|
visible: isDrawer
|
|
19936
19928
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19937
19929
|
className: 'menu_title_line'
|
|
19938
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19930
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19939
19931
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19940
19932
|
style: {
|
|
19941
19933
|
fontWeight: '600',
|
|
@@ -20009,7 +20001,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20009
20001
|
return item.path === '/';
|
|
20010
20002
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
20011
20003
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
20012
|
-
|
|
20004
|
+
setMenuTreeData(routesData);
|
|
20013
20005
|
routesData.forEach(function (item) {
|
|
20014
20006
|
if (item.children) {
|
|
20015
20007
|
routesDataList.push(item);
|
|
@@ -20039,7 +20031,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20039
20031
|
setHeight(clientHeight - 190);
|
|
20040
20032
|
setDrawHeight(clientHeight - 70);
|
|
20041
20033
|
};
|
|
20042
|
-
var
|
|
20034
|
+
var renderChildItem = function renderChildItem(child) {
|
|
20043
20035
|
if (!child.hideInMenu && child.children) {
|
|
20044
20036
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
20045
20037
|
style: {
|
|
@@ -20049,7 +20041,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20049
20041
|
}, formatMessage({
|
|
20050
20042
|
id: "".concat(child.locale)
|
|
20051
20043
|
})), child.children.map(function (menuItem) {
|
|
20052
|
-
return
|
|
20044
|
+
return renderChildItem(menuItem);
|
|
20053
20045
|
}));
|
|
20054
20046
|
} else if (!child.hideInMenu && child.path) {
|
|
20055
20047
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -20191,7 +20183,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20191
20183
|
onMenuClick(e, item);
|
|
20192
20184
|
}
|
|
20193
20185
|
}, item.name);
|
|
20194
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20186
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
20195
20187
|
className: 'search_menu_content'
|
|
20196
20188
|
}, SearhData.map(function (item) {
|
|
20197
20189
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20200,7 +20192,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20200
20192
|
},
|
|
20201
20193
|
key: item.path
|
|
20202
20194
|
}, item.name);
|
|
20203
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20195
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20204
20196
|
style: {
|
|
20205
20197
|
height: "".concat(rightMenuHeight, "px"),
|
|
20206
20198
|
overflowY: 'scroll',
|
|
@@ -20212,7 +20204,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20212
20204
|
className: 'drawerWarp_right'
|
|
20213
20205
|
}, homepageData && homepageData.filter(function (d) {
|
|
20214
20206
|
return !d.hideInMenu;
|
|
20215
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20207
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
20216
20208
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
20217
20209
|
dataSource: homepageData,
|
|
20218
20210
|
renderItem: function renderItem(child) {
|
|
@@ -20253,7 +20245,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
20253
20245
|
bordered: true,
|
|
20254
20246
|
dataSource: item.children,
|
|
20255
20247
|
renderItem: function renderItem(child) {
|
|
20256
|
-
return
|
|
20248
|
+
return renderChildItem(child);
|
|
20257
20249
|
}
|
|
20258
20250
|
});
|
|
20259
20251
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -20411,10 +20403,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20411
20403
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
20412
20404
|
var menuKeys = [];
|
|
20413
20405
|
var docsId = [];
|
|
20414
|
-
var
|
|
20406
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
20415
20407
|
data.forEach(function (item) {
|
|
20416
20408
|
if (item.children && item.children.length > 0) {
|
|
20417
|
-
|
|
20409
|
+
getLimitedMenuKeys(item.children);
|
|
20418
20410
|
} else {
|
|
20419
20411
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
20420
20412
|
menuKeys.push(originPath);
|
|
@@ -20425,7 +20417,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
20425
20417
|
});
|
|
20426
20418
|
};
|
|
20427
20419
|
try {
|
|
20428
|
-
|
|
20420
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
20429
20421
|
} catch (e) {}
|
|
20430
20422
|
return {
|
|
20431
20423
|
menuKeys: menuKeys,
|
|
@@ -20659,10 +20651,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20659
20651
|
return (node.path || '').includes('all-general-documents');
|
|
20660
20652
|
};
|
|
20661
20653
|
// 递归获取树列表
|
|
20662
|
-
var
|
|
20654
|
+
var getTreeList = function getTreeList(data) {
|
|
20663
20655
|
data.forEach(function (node) {
|
|
20664
20656
|
if (node.routes && node.routes.length > 0) {
|
|
20665
|
-
|
|
20657
|
+
getTreeList(node.routes);
|
|
20666
20658
|
return;
|
|
20667
20659
|
}
|
|
20668
20660
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20693,7 +20685,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20693
20685
|
}
|
|
20694
20686
|
});
|
|
20695
20687
|
};
|
|
20696
|
-
|
|
20688
|
+
getTreeList(treeData);
|
|
20697
20689
|
return treeList;
|
|
20698
20690
|
};
|
|
20699
20691
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -21322,7 +21314,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21322
21314
|
updateState = _ref8.updateState;
|
|
21323
21315
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
21324
21316
|
className: "tab_title_content"
|
|
21325
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21317
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21326
21318
|
info: item,
|
|
21327
21319
|
operateFun: _this3.operateFun,
|
|
21328
21320
|
listenRouterState: listenRouterState
|
|
@@ -21458,7 +21450,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21458
21450
|
};
|
|
21459
21451
|
}
|
|
21460
21452
|
var OperationsSlot = {
|
|
21461
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21453
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21462
21454
|
className: 'tab_left_operate'
|
|
21463
21455
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
21464
21456
|
onClick: function onClick() {
|
|
@@ -21474,7 +21466,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21474
21466
|
_this3.setTabNavTransLate(-100);
|
|
21475
21467
|
}
|
|
21476
21468
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
21477
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21469
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
21478
21470
|
style: {
|
|
21479
21471
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
21480
21472
|
},
|
|
@@ -21572,7 +21564,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21572
21564
|
onMouseLeave: function onMouseLeave() {
|
|
21573
21565
|
_this3.setShowMenu(false);
|
|
21574
21566
|
}
|
|
21575
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21567
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21576
21568
|
style: {
|
|
21577
21569
|
position: 'absolute',
|
|
21578
21570
|
top: '14px',
|
|
@@ -21591,7 +21583,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21591
21583
|
postMenuData: function postMenuData(menus) {
|
|
21592
21584
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
21593
21585
|
},
|
|
21594
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21586
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21595
21587
|
ref: this.allFunc,
|
|
21596
21588
|
itemPath: itemPath,
|
|
21597
21589
|
handleClose: this.handleClose,
|
|
@@ -21609,7 +21601,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21609
21601
|
},
|
|
21610
21602
|
menu: {
|
|
21611
21603
|
request: function () {
|
|
21612
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21604
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21613
21605
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21614
21606
|
while (1) switch (_context.prev = _context.next) {
|
|
21615
21607
|
case 0:
|
|
@@ -21744,7 +21736,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21744
21736
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21745
21737
|
timeFormat = _this$props4.timeFormat,
|
|
21746
21738
|
transparentProps = _this$props4.transparentProps;
|
|
21747
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? (/*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
21739
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, item.isNotFound ? ( /*#__PURE__*/React$1.createElement(NoFoundPage, null)) : /*#__PURE__*/React$1.createElement(item.content, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
21748
21740
|
getDictionarySource: getDictionarySource,
|
|
21749
21741
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21750
21742
|
timeFormat: timeFormat
|
|
@@ -21768,12 +21760,12 @@ var index$5 = (function (props) {
|
|
|
21768
21760
|
});
|
|
21769
21761
|
|
|
21770
21762
|
// @ts-nocheck
|
|
21771
|
-
var
|
|
21763
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
21772
21764
|
var result = [];
|
|
21773
21765
|
columns.forEach(function (column) {
|
|
21774
21766
|
if (column.children) {
|
|
21775
21767
|
result.push(column);
|
|
21776
|
-
result.push.apply(result,
|
|
21768
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
21777
21769
|
} else {
|
|
21778
21770
|
result.push(column);
|
|
21779
21771
|
}
|
|
@@ -21782,7 +21774,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
21782
21774
|
};
|
|
21783
21775
|
var convertToRows = function convertToRows(originColumns) {
|
|
21784
21776
|
var maxLevel = 1;
|
|
21785
|
-
var
|
|
21777
|
+
var traverse = function traverse(column, parent) {
|
|
21786
21778
|
if (parent) {
|
|
21787
21779
|
column.level = parent.level + 1;
|
|
21788
21780
|
if (maxLevel < column.level) {
|
|
@@ -21792,7 +21784,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21792
21784
|
if (column.children) {
|
|
21793
21785
|
var colSpan = 0;
|
|
21794
21786
|
column.children.forEach(function (subColumn) {
|
|
21795
|
-
|
|
21787
|
+
traverse(subColumn, column);
|
|
21796
21788
|
colSpan += subColumn.colSpan;
|
|
21797
21789
|
});
|
|
21798
21790
|
column.colSpan = colSpan;
|
|
@@ -21802,13 +21794,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21802
21794
|
};
|
|
21803
21795
|
originColumns.forEach(function (column) {
|
|
21804
21796
|
column.level = 1;
|
|
21805
|
-
|
|
21797
|
+
traverse(column);
|
|
21806
21798
|
});
|
|
21807
21799
|
var rows = [];
|
|
21808
21800
|
for (var i = 0; i < maxLevel; i++) {
|
|
21809
21801
|
rows.push([]);
|
|
21810
21802
|
}
|
|
21811
|
-
var allColumns =
|
|
21803
|
+
var allColumns = getAllColumns(originColumns);
|
|
21812
21804
|
allColumns.forEach(function (column) {
|
|
21813
21805
|
if (!column.children) {
|
|
21814
21806
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21848,7 +21840,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21848
21840
|
};
|
|
21849
21841
|
var headersToRows = function headersToRows(originColumns) {
|
|
21850
21842
|
var maxLevel = 1;
|
|
21851
|
-
var
|
|
21843
|
+
var traverse = function traverse(column, parent) {
|
|
21852
21844
|
if (parent) {
|
|
21853
21845
|
//计算当前元素属于第几个层级
|
|
21854
21846
|
column.level = parent.level + 1;
|
|
@@ -21861,7 +21853,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21861
21853
|
var colSpan = 0;
|
|
21862
21854
|
column.children.forEach(function (subColumn) {
|
|
21863
21855
|
//进行递归
|
|
21864
|
-
|
|
21856
|
+
traverse(subColumn, column);
|
|
21865
21857
|
colSpan += subColumn.colSpan;
|
|
21866
21858
|
});
|
|
21867
21859
|
column.colSpan = colSpan;
|
|
@@ -21871,14 +21863,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21871
21863
|
};
|
|
21872
21864
|
originColumns.forEach(function (column) {
|
|
21873
21865
|
column.level = 1;
|
|
21874
|
-
|
|
21866
|
+
traverse(column);
|
|
21875
21867
|
});
|
|
21876
21868
|
var rows = [];
|
|
21877
21869
|
var lastData = [];
|
|
21878
21870
|
for (var i = 0; i < maxLevel; i++) {
|
|
21879
21871
|
rows.push([]);
|
|
21880
21872
|
}
|
|
21881
|
-
var allColumns =
|
|
21873
|
+
var allColumns = getAllColumns(originColumns);
|
|
21882
21874
|
allColumns.forEach(function (column) {
|
|
21883
21875
|
if (!column.children) {
|
|
21884
21876
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -27895,7 +27887,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27895
27887
|
}
|
|
27896
27888
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27897
27889
|
};
|
|
27898
|
-
var
|
|
27890
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
27899
27891
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27900
27892
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27901
27893
|
var children = hightLightData.children,
|
|
@@ -27906,7 +27898,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27906
27898
|
lineEnd = _loc2[2];
|
|
27907
27899
|
if (children) {
|
|
27908
27900
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27909
|
-
return
|
|
27901
|
+
return hasHighLightChildren(v, highLightLine);
|
|
27910
27902
|
});
|
|
27911
27903
|
}
|
|
27912
27904
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27918,7 +27910,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27918
27910
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27919
27911
|
data.forEach(function (node) {
|
|
27920
27912
|
if (!node) return;
|
|
27921
|
-
node.toggled =
|
|
27913
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
27922
27914
|
node.active = isHightLight(node, highLightLine);
|
|
27923
27915
|
if (node.children) {
|
|
27924
27916
|
if (node.active) {
|
|
@@ -29349,7 +29341,7 @@ var valueType = {
|
|
|
29349
29341
|
};
|
|
29350
29342
|
|
|
29351
29343
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
29352
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29344
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29353
29345
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29354
29346
|
while (1) switch (_context.prev = _context.next) {
|
|
29355
29347
|
case 0:
|
|
@@ -29417,7 +29409,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29417
29409
|
value: false
|
|
29418
29410
|
}];
|
|
29419
29411
|
var ref = useRef();
|
|
29420
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29412
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29421
29413
|
var _ref$current, source;
|
|
29422
29414
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29423
29415
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -29531,7 +29523,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29531
29523
|
source: {
|
|
29532
29524
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
29533
29525
|
type: function () {
|
|
29534
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29526
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29535
29527
|
var form, values, name, relates, source;
|
|
29536
29528
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
29537
29529
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -30011,7 +30003,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30011
30003
|
source: {
|
|
30012
30004
|
relates: ['choiceType', 'inputType'],
|
|
30013
30005
|
type: function () {
|
|
30014
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30006
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
30015
30007
|
var values, name, form, source;
|
|
30016
30008
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
30017
30009
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -30233,7 +30225,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30233
30225
|
width: 900,
|
|
30234
30226
|
maskClosable: false,
|
|
30235
30227
|
onOk: function () {
|
|
30236
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30228
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30237
30229
|
var _ref$current4, _res$editableStatus;
|
|
30238
30230
|
var res, _res$defaultValue;
|
|
30239
30231
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -30305,7 +30297,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
30305
30297
|
}()
|
|
30306
30298
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
30307
30299
|
ref: ref
|
|
30308
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30300
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30309
30301
|
};
|
|
30310
30302
|
|
|
30311
30303
|
// @ts-nocheck
|
|
@@ -30919,7 +30911,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30919
30911
|
return setVisible(false);
|
|
30920
30912
|
},
|
|
30921
30913
|
className: 'customFieldsDrawer'
|
|
30922
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30914
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
30923
30915
|
style: {
|
|
30924
30916
|
display: 'flex'
|
|
30925
30917
|
}
|
|
@@ -30928,13 +30920,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30928
30920
|
flex: 1,
|
|
30929
30921
|
width: 500
|
|
30930
30922
|
}
|
|
30931
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30923
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30932
30924
|
style: {
|
|
30933
30925
|
padding: "10px 0",
|
|
30934
30926
|
fontSize: "16px",
|
|
30935
30927
|
fontWeight: "bolder"
|
|
30936
30928
|
}
|
|
30937
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30929
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30938
30930
|
style: {
|
|
30939
30931
|
flex: 1
|
|
30940
30932
|
}
|
|
@@ -30943,7 +30935,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30943
30935
|
onRun: onClickRun,
|
|
30944
30936
|
value: jsonEditorVal,
|
|
30945
30937
|
shallowHeight: height
|
|
30946
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30938
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
30947
30939
|
defaultActiveKey: activeKey,
|
|
30948
30940
|
onChange: function onChange(v) {
|
|
30949
30941
|
return setActiveKey(v);
|
|
@@ -30960,13 +30952,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30960
30952
|
flex: 1,
|
|
30961
30953
|
width: 500
|
|
30962
30954
|
}
|
|
30963
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30955
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30964
30956
|
style: {
|
|
30965
30957
|
padding: "10px 0",
|
|
30966
30958
|
fontSize: "16px",
|
|
30967
30959
|
fontWeight: "bolder"
|
|
30968
30960
|
}
|
|
30969
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30961
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)))), /*#__PURE__*/React$1.createElement("div", {
|
|
30970
30962
|
style: {
|
|
30971
30963
|
flex: 1
|
|
30972
30964
|
}
|
|
@@ -30988,13 +30980,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30988
30980
|
flex: 1,
|
|
30989
30981
|
width: 500
|
|
30990
30982
|
}
|
|
30991
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30983
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30992
30984
|
style: {
|
|
30993
30985
|
padding: "10px 0",
|
|
30994
30986
|
fontSize: "16px",
|
|
30995
30987
|
fontWeight: "bolder"
|
|
30996
30988
|
}
|
|
30997
|
-
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : (/*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
30989
|
+
}, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61")) : ( /*#__PURE__*/React$1.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])))), /*#__PURE__*/React$1.createElement("div", {
|
|
30998
30990
|
style: {
|
|
30999
30991
|
flex: 1
|
|
31000
30992
|
}
|
|
@@ -31140,7 +31132,7 @@ function getMetaData(_x) {
|
|
|
31140
31132
|
|
|
31141
31133
|
// 获取数据
|
|
31142
31134
|
function _getMetaData() {
|
|
31143
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31135
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31144
31136
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31145
31137
|
while (1) switch (_context.prev = _context.next) {
|
|
31146
31138
|
case 0:
|
|
@@ -31362,7 +31354,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31362
31354
|
tableState = _useState4[0],
|
|
31363
31355
|
setTableState = _useState4[1];
|
|
31364
31356
|
var handleOpen = /*#__PURE__*/function () {
|
|
31365
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31357
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31366
31358
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
31367
31359
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
31368
31360
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31681,7 +31673,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31681
31673
|
destroyOnClose: true
|
|
31682
31674
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31683
31675
|
ref: queryTableRef
|
|
31684
|
-
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && (/*#__PURE__*/React$1.createElement(Row, {
|
|
31676
|
+
}, config)), (props === null || props === void 0 ? void 0 : (_props$selectProps4 = props.selectProps) === null || _props$selectProps4 === void 0 ? void 0 : _props$selectProps4.multipleForQuery) && !isView && ( /*#__PURE__*/React$1.createElement(Row, {
|
|
31685
31677
|
justify: "center",
|
|
31686
31678
|
style: {
|
|
31687
31679
|
marginBottom: 30,
|
|
@@ -31797,7 +31789,7 @@ var CustomSelector = (function (props) {
|
|
|
31797
31789
|
var _props$ctx7;
|
|
31798
31790
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31799
31791
|
}
|
|
31800
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
31792
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
31801
31793
|
type: "primary",
|
|
31802
31794
|
style: {
|
|
31803
31795
|
width: '30px',
|
|
@@ -31883,7 +31875,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31883
31875
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31884
31876
|
handSource = _useState2[0],
|
|
31885
31877
|
setHandSource = _useState2[1];
|
|
31886
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31878
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31887
31879
|
var resData, data;
|
|
31888
31880
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31889
31881
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32035,7 +32027,7 @@ function getRegularThresholdRange(_x) {
|
|
|
32035
32027
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
32036
32028
|
}
|
|
32037
32029
|
function _getRegularThresholdRange() {
|
|
32038
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32030
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
32039
32031
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32040
32032
|
while (1) switch (_context.prev = _context.next) {
|
|
32041
32033
|
case 0:
|
|
@@ -32189,7 +32181,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32189
32181
|
};
|
|
32190
32182
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
32191
32183
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
32192
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32184
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32193
32185
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
32194
32186
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32195
32187
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -33134,7 +33126,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33134
33126
|
isAll: true,
|
|
33135
33127
|
needNameAndCode: true,
|
|
33136
33128
|
notChangeOnSelect: true,
|
|
33137
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33129
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33138
33130
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
33139
33131
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33140
33132
|
case 0:
|
|
@@ -33183,7 +33175,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33183
33175
|
isAll: true,
|
|
33184
33176
|
needNameAndCode: true,
|
|
33185
33177
|
notChangeOnSelect: true,
|
|
33186
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33178
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33187
33179
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
33188
33180
|
while (1) switch (_context3.prev = _context3.next) {
|
|
33189
33181
|
case 0:
|
|
@@ -33234,7 +33226,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
33234
33226
|
isAll: true,
|
|
33235
33227
|
needNameAndCode: true,
|
|
33236
33228
|
notChangeOnSelect: true,
|
|
33237
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33229
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33238
33230
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
33239
33231
|
while (1) switch (_context4.prev = _context4.next) {
|
|
33240
33232
|
case 0:
|
|
@@ -35198,7 +35190,7 @@ var App$1 = function App(_ref) {
|
|
|
35198
35190
|
borderRadius: '5px',
|
|
35199
35191
|
cursor: 'pointer'
|
|
35200
35192
|
}
|
|
35201
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35193
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35202
35194
|
autoFocus: true,
|
|
35203
35195
|
onClick: function onClick(e) {
|
|
35204
35196
|
return e.stopPropagation();
|
|
@@ -35485,7 +35477,7 @@ function RenderCompItem(props) {
|
|
|
35485
35477
|
dictData = _useState2[0],
|
|
35486
35478
|
setDictData = _useState2[1];
|
|
35487
35479
|
var getDictData = /*#__PURE__*/function () {
|
|
35488
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35480
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35489
35481
|
var _data$map;
|
|
35490
35482
|
var data;
|
|
35491
35483
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -35527,7 +35519,7 @@ function RenderCompItem(props) {
|
|
|
35527
35519
|
var style2 = {
|
|
35528
35520
|
width: '100px'
|
|
35529
35521
|
};
|
|
35530
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && (/*#__PURE__*/React$1.createElement(Input, {
|
|
35522
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 21 && ( /*#__PURE__*/React$1.createElement(Input, {
|
|
35531
35523
|
disabled: disabled,
|
|
35532
35524
|
allowClear: true,
|
|
35533
35525
|
onClear: function onClear() {
|
|
@@ -35538,7 +35530,7 @@ function RenderCompItem(props) {
|
|
|
35538
35530
|
onBlur: function onBlur(e) {
|
|
35539
35531
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
35540
35532
|
}
|
|
35541
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && (/*#__PURE__*/React$1.createElement(InputNumber, {
|
|
35533
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 23 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 22) && ( /*#__PURE__*/React$1.createElement(InputNumber, {
|
|
35542
35534
|
disabled: disabled,
|
|
35543
35535
|
// max={Number.MAX_SAFE_INTEGER}
|
|
35544
35536
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -35551,7 +35543,7 @@ function RenderCompItem(props) {
|
|
|
35551
35543
|
onChange: function onChange(value) {
|
|
35552
35544
|
handleEdit(ites.code, value);
|
|
35553
35545
|
}
|
|
35554
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && (/*#__PURE__*/React$1.createElement(DatePicker, {
|
|
35546
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && ((ites === null || ites === void 0 ? void 0 : ites.valueType) === 41 || (ites === null || ites === void 0 ? void 0 : ites.valueType) === 32) && ( /*#__PURE__*/React$1.createElement(DatePicker, {
|
|
35555
35547
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
35556
35548
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
35557
35549
|
disabled: disabled,
|
|
@@ -35561,7 +35553,7 @@ function RenderCompItem(props) {
|
|
|
35561
35553
|
onChange: function onChange(value, dateString) {
|
|
35562
35554
|
handleEdit(ites.code, dateString);
|
|
35563
35555
|
}
|
|
35564
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && (/*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
35556
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 40 && ( /*#__PURE__*/React$1.createElement(RangePicker$1, {
|
|
35565
35557
|
showTime: true,
|
|
35566
35558
|
disabled: disabled,
|
|
35567
35559
|
defaultValue: ites.defaultValue,
|
|
@@ -35570,7 +35562,7 @@ function RenderCompItem(props) {
|
|
|
35570
35562
|
onChange: function onChange(value, timeString) {
|
|
35571
35563
|
handleEdit(ites.code, timeString);
|
|
35572
35564
|
}
|
|
35573
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && (/*#__PURE__*/React$1.createElement(Switch, {
|
|
35565
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 10 && (ites === null || ites === void 0 ? void 0 : ites.valueType) === 24 && ( /*#__PURE__*/React$1.createElement(Switch, {
|
|
35574
35566
|
disabled: disabled,
|
|
35575
35567
|
defaultChecked: !!ites.defaultValue,
|
|
35576
35568
|
style: style2,
|
|
@@ -35578,7 +35570,7 @@ function RenderCompItem(props) {
|
|
|
35578
35570
|
onChange: function onChange(value) {
|
|
35579
35571
|
handleEdit(ites.code, value);
|
|
35580
35572
|
}
|
|
35581
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && (/*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
35573
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 10 && ( /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
35582
35574
|
disabled: disabled,
|
|
35583
35575
|
allowClear: true,
|
|
35584
35576
|
showArrow: true
|
|
@@ -35596,7 +35588,7 @@ function RenderCompItem(props) {
|
|
|
35596
35588
|
key: it,
|
|
35597
35589
|
value: it
|
|
35598
35590
|
}, ites.enumeration[it]);
|
|
35599
|
-
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && (/*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
35591
|
+
}))) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 20 && ( /*#__PURE__*/React$1.createElement(InnerSelect, {
|
|
35600
35592
|
disabled: disabled,
|
|
35601
35593
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35602
35594
|
defaultValue: ites.defaultValue,
|
|
@@ -35606,7 +35598,7 @@ function RenderCompItem(props) {
|
|
|
35606
35598
|
handleEdit(ites.code, value);
|
|
35607
35599
|
},
|
|
35608
35600
|
dictionaryCode: ites.dictionaryCode
|
|
35609
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35601
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 110 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35610
35602
|
selectBusinessType: "physicalWarehouse",
|
|
35611
35603
|
selectProps: _objectSpread2({
|
|
35612
35604
|
style: styleCommon,
|
|
@@ -35628,7 +35620,7 @@ function RenderCompItem(props) {
|
|
|
35628
35620
|
getPopupContainer: function getPopupContainer() {
|
|
35629
35621
|
return document.body;
|
|
35630
35622
|
}
|
|
35631
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35623
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 120 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35632
35624
|
selectBusinessType: "realWarehouse",
|
|
35633
35625
|
selectProps: _objectSpread2({
|
|
35634
35626
|
style: styleCommon,
|
|
@@ -35650,7 +35642,7 @@ function RenderCompItem(props) {
|
|
|
35650
35642
|
getPopupContainer: function getPopupContainer() {
|
|
35651
35643
|
return document.body;
|
|
35652
35644
|
}
|
|
35653
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35645
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 130 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35654
35646
|
selectBusinessType: "virtualWarehouse",
|
|
35655
35647
|
selectProps: _objectSpread2({
|
|
35656
35648
|
style: styleCommon,
|
|
@@ -35672,7 +35664,7 @@ function RenderCompItem(props) {
|
|
|
35672
35664
|
getPopupContainer: function getPopupContainer() {
|
|
35673
35665
|
return document.body;
|
|
35674
35666
|
}
|
|
35675
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35667
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 140 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35676
35668
|
selectBusinessType: "channelWarehouse",
|
|
35677
35669
|
selectProps: _objectSpread2({
|
|
35678
35670
|
style: styleCommon,
|
|
@@ -35694,7 +35686,7 @@ function RenderCompItem(props) {
|
|
|
35694
35686
|
getPopupContainer: function getPopupContainer() {
|
|
35695
35687
|
return document.body;
|
|
35696
35688
|
}
|
|
35697
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35689
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 150 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35698
35690
|
selectBusinessType: "spuCommodity",
|
|
35699
35691
|
selectProps: _objectSpread2({
|
|
35700
35692
|
style: styleCommon,
|
|
@@ -35715,7 +35707,7 @@ function RenderCompItem(props) {
|
|
|
35715
35707
|
getPopupContainer: function getPopupContainer() {
|
|
35716
35708
|
return document.body;
|
|
35717
35709
|
}
|
|
35718
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35710
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 160 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35719
35711
|
selectBusinessType: "skuCommodity",
|
|
35720
35712
|
selectProps: _objectSpread2({
|
|
35721
35713
|
style: styleCommon,
|
|
@@ -35736,13 +35728,13 @@ function RenderCompItem(props) {
|
|
|
35736
35728
|
getPopupContainer: function getPopupContainer() {
|
|
35737
35729
|
return document.body;
|
|
35738
35730
|
}
|
|
35739
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && (/*#__PURE__*/React$1.createElement(BsCascader, {
|
|
35731
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 190 && ( /*#__PURE__*/React$1.createElement(BsCascader, {
|
|
35740
35732
|
disabled: disabled,
|
|
35741
35733
|
isAll: true,
|
|
35742
35734
|
needNameAndCode: true,
|
|
35743
35735
|
notChangeOnSelect: true,
|
|
35744
35736
|
initRequestSource: function () {
|
|
35745
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35737
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35746
35738
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35747
35739
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35748
35740
|
case 0:
|
|
@@ -35784,7 +35776,7 @@ function RenderCompItem(props) {
|
|
|
35784
35776
|
getPopupContainer: function getPopupContainer() {
|
|
35785
35777
|
return document.body;
|
|
35786
35778
|
}
|
|
35787
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35779
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 210 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35788
35780
|
disabled: disabled,
|
|
35789
35781
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35790
35782
|
businessType: "department",
|
|
@@ -35797,7 +35789,7 @@ function RenderCompItem(props) {
|
|
|
35797
35789
|
getPopupContainer: function getPopupContainer() {
|
|
35798
35790
|
return document.body;
|
|
35799
35791
|
}
|
|
35800
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35792
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 220 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35801
35793
|
disabled: disabled,
|
|
35802
35794
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35803
35795
|
businessType: "purchase-organization",
|
|
@@ -35810,7 +35802,7 @@ function RenderCompItem(props) {
|
|
|
35810
35802
|
getPopupContainer: function getPopupContainer() {
|
|
35811
35803
|
return document.body;
|
|
35812
35804
|
}
|
|
35813
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35805
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 230 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35814
35806
|
disabled: disabled,
|
|
35815
35807
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35816
35808
|
businessType: "sales-organization",
|
|
@@ -35823,7 +35815,7 @@ function RenderCompItem(props) {
|
|
|
35823
35815
|
getPopupContainer: function getPopupContainer() {
|
|
35824
35816
|
return document.body;
|
|
35825
35817
|
}
|
|
35826
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35818
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 240 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35827
35819
|
selectBusinessType: "supplier2",
|
|
35828
35820
|
selectProps: _objectSpread2({
|
|
35829
35821
|
style: styleCommon,
|
|
@@ -35844,7 +35836,7 @@ function RenderCompItem(props) {
|
|
|
35844
35836
|
getPopupContainer: function getPopupContainer() {
|
|
35845
35837
|
return document.body;
|
|
35846
35838
|
}
|
|
35847
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35839
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 250 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35848
35840
|
selectBusinessType: "customer2",
|
|
35849
35841
|
selectProps: _objectSpread2({
|
|
35850
35842
|
style: styleCommon,
|
|
@@ -35865,7 +35857,7 @@ function RenderCompItem(props) {
|
|
|
35865
35857
|
getPopupContainer: function getPopupContainer() {
|
|
35866
35858
|
return document.body;
|
|
35867
35859
|
}
|
|
35868
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35860
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 260 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35869
35861
|
selectBusinessType: "shopFile2",
|
|
35870
35862
|
selectProps: _objectSpread2({
|
|
35871
35863
|
style: styleCommon,
|
|
@@ -35886,7 +35878,7 @@ function RenderCompItem(props) {
|
|
|
35886
35878
|
getPopupContainer: function getPopupContainer() {
|
|
35887
35879
|
return document.body;
|
|
35888
35880
|
}
|
|
35889
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35881
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 270 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35890
35882
|
selectBusinessType: "employee2",
|
|
35891
35883
|
selectProps: _objectSpread2({
|
|
35892
35884
|
style: styleCommon,
|
|
@@ -35907,7 +35899,7 @@ function RenderCompItem(props) {
|
|
|
35907
35899
|
getPopupContainer: function getPopupContainer() {
|
|
35908
35900
|
return document.body;
|
|
35909
35901
|
}
|
|
35910
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35902
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 280 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35911
35903
|
disabled: disabled,
|
|
35912
35904
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35913
35905
|
businessType: "stock-organization",
|
|
@@ -35920,7 +35912,7 @@ function RenderCompItem(props) {
|
|
|
35920
35912
|
getPopupContainer: function getPopupContainer() {
|
|
35921
35913
|
return document.body;
|
|
35922
35914
|
}
|
|
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) === 290 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35915
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 290 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35924
35916
|
disabled: disabled,
|
|
35925
35917
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35926
35918
|
businessType: "settle-organization",
|
|
@@ -35933,7 +35925,7 @@ function RenderCompItem(props) {
|
|
|
35933
35925
|
getPopupContainer: function getPopupContainer() {
|
|
35934
35926
|
return document.body;
|
|
35935
35927
|
}
|
|
35936
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35928
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35937
35929
|
selectBusinessType: "deliveryMode",
|
|
35938
35930
|
selectProps: _objectSpread2({
|
|
35939
35931
|
style: styleCommon,
|
|
@@ -35954,7 +35946,7 @@ function RenderCompItem(props) {
|
|
|
35954
35946
|
getPopupContainer: function getPopupContainer() {
|
|
35955
35947
|
return document.body;
|
|
35956
35948
|
}
|
|
35957
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35949
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 360 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35958
35950
|
selectBusinessType: "role",
|
|
35959
35951
|
selectProps: _objectSpread2({
|
|
35960
35952
|
style: styleCommon,
|
|
@@ -35975,7 +35967,7 @@ function RenderCompItem(props) {
|
|
|
35975
35967
|
getPopupContainer: function getPopupContainer() {
|
|
35976
35968
|
return document.body;
|
|
35977
35969
|
}
|
|
35978
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35970
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 410 && ( /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
|
|
35979
35971
|
selectBusinessType: "brand",
|
|
35980
35972
|
selectProps: _objectSpread2({
|
|
35981
35973
|
style: styleCommon,
|
|
@@ -35996,7 +35988,7 @@ function RenderCompItem(props) {
|
|
|
35996
35988
|
getPopupContainer: function getPopupContainer() {
|
|
35997
35989
|
return document.body;
|
|
35998
35990
|
}
|
|
35999
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && (/*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35991
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 420 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
36000
35992
|
disabled: disabled,
|
|
36001
35993
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
36002
35994
|
businessType: "background-category",
|
|
@@ -36009,7 +36001,7 @@ function RenderCompItem(props) {
|
|
|
36009
36001
|
getPopupContainer: function getPopupContainer() {
|
|
36010
36002
|
return document.body;
|
|
36011
36003
|
}
|
|
36012
|
-
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && (/*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
36004
|
+
})) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 40 && ( /*#__PURE__*/React$1.createElement(CustomSelector, {
|
|
36013
36005
|
selectProps: _objectSpread2(_objectSpread2({
|
|
36014
36006
|
style: styleCommon,
|
|
36015
36007
|
placeholder: '请选择'
|
|
@@ -36032,7 +36024,7 @@ function RenderCompItem(props) {
|
|
|
36032
36024
|
onChange: function onChange(value) {
|
|
36033
36025
|
handleEdit(ites.code, value);
|
|
36034
36026
|
}
|
|
36035
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
36027
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
36036
36028
|
style: {
|
|
36037
36029
|
display: 'flex'
|
|
36038
36030
|
}
|
|
@@ -36544,7 +36536,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36544
36536
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
36545
36537
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
36546
36538
|
}
|
|
36547
|
-
var parallelTreeData =
|
|
36539
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
36548
36540
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
36549
36541
|
var _i$key;
|
|
36550
36542
|
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);
|
|
@@ -37471,13 +37463,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
37471
37463
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
37472
37464
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
37473
37465
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
37474
|
-
var list =
|
|
37466
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
37475
37467
|
var requiredList = list.filter(function (c) {
|
|
37476
37468
|
return c.required == 1;
|
|
37477
37469
|
}) || []; // 获取对象属性为true的集合
|
|
37478
37470
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
37479
37471
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
37480
|
-
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) ?
|
|
37472
|
+
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];
|
|
37481
37473
|
(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) {
|
|
37482
37474
|
if (requiredList.some(function (r) {
|
|
37483
37475
|
return r.id === e.elementId;
|
|
@@ -38066,7 +38058,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38066
38058
|
style: {
|
|
38067
38059
|
float: 'right'
|
|
38068
38060
|
}
|
|
38069
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38061
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
38070
38062
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
38071
38063
|
ruleGroupInfo: {
|
|
38072
38064
|
ruleGroupList: ruleGroupList,
|
|
@@ -38084,7 +38076,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
38084
38076
|
callBack: function callBack(newData) {
|
|
38085
38077
|
upDateData(newData);
|
|
38086
38078
|
}
|
|
38087
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
38079
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
38088
38080
|
style: {
|
|
38089
38081
|
padding: 20
|
|
38090
38082
|
}
|
|
@@ -38459,4 +38451,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
38459
38451
|
}, children));
|
|
38460
38452
|
};
|
|
38461
38453
|
|
|
38462
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
38454
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
|