@bit-sun/business-component 4.0.12-alpha.18 → 4.0.12-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Business/PropertyModal/index.d.ts +23 -0
- package/dist/components/Business/PropertyModal/mockData.d.ts +10 -0
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +979 -513
- package/dist/index.js +978 -511
- package/package.json +1 -1
- package/src/components/Business/PropertyModal/index.less +58 -0
- package/src/components/Business/PropertyModal/index.md +33 -0
- package/src/components/Business/PropertyModal/index.tsx +266 -0
- package/src/components/Business/PropertyModal/mockData.ts +160 -0
- package/src/components/Business/PropertyModal/propertyGroup.tsx +205 -0
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +4 -1
- package/src/components/Functional/SearchSelect/index.tsx +23 -6
- package/src/index.ts +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import request$1 from 'umi-request';
|
|
3
3
|
import cookie from 'js-cookie';
|
|
4
|
-
import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Select, Form, Table, Spin, Row, Col, Tabs, TreeSelect,
|
|
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
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';
|
|
9
|
-
import React$1, { useState, useEffect, forwardRef, useImperativeHandle,
|
|
9
|
+
import React$1, { useState, useEffect, useRef, forwardRef, useImperativeHandle, useMemo, Component, Fragment, useLayoutEffect, createRef } from 'react';
|
|
10
10
|
import moment$1 from 'moment';
|
|
11
|
-
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined,
|
|
11
|
+
import { EyeOutlined, DeleteOutlined, EditOutlined, CopyOutlined, CloseSquareOutlined, WarningOutlined, SendOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, UnorderedListOutlined, CaretUpOutlined, CaretDownOutlined, SearchOutlined, CloseCircleOutlined, DownCircleFilled, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, CaretLeftOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
12
12
|
import { request as request$2, Table as Table$1, QueryTable, Form as Form$1 } from 'bssula';
|
|
13
13
|
import 'qs';
|
|
14
14
|
import { utils, writeFile, read } from 'xlsx';
|
|
@@ -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,12 +414,180 @@ 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);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
462
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
463
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
464
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
465
|
+
writable: false
|
|
466
|
+
});
|
|
467
|
+
return Constructor;
|
|
468
|
+
}
|
|
469
|
+
function _defineProperty(obj, key, value) {
|
|
470
|
+
key = _toPropertyKey(key);
|
|
471
|
+
if (key in obj) {
|
|
472
|
+
Object.defineProperty(obj, key, {
|
|
473
|
+
value: value,
|
|
474
|
+
enumerable: true,
|
|
475
|
+
configurable: true,
|
|
476
|
+
writable: true
|
|
477
|
+
});
|
|
478
|
+
} else {
|
|
479
|
+
obj[key] = value;
|
|
480
|
+
}
|
|
481
|
+
return obj;
|
|
482
|
+
}
|
|
483
|
+
function _inherits(subClass, superClass) {
|
|
484
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
485
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
486
|
+
}
|
|
487
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
488
|
+
constructor: {
|
|
489
|
+
value: subClass,
|
|
490
|
+
writable: true,
|
|
491
|
+
configurable: true
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(subClass, "prototype", {
|
|
495
|
+
writable: false
|
|
496
|
+
});
|
|
497
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
498
|
+
}
|
|
499
|
+
function _getPrototypeOf(o) {
|
|
500
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
501
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
502
|
+
};
|
|
503
|
+
return _getPrototypeOf(o);
|
|
504
|
+
}
|
|
505
|
+
function _setPrototypeOf(o, p) {
|
|
506
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
507
|
+
o.__proto__ = p;
|
|
508
|
+
return o;
|
|
509
|
+
};
|
|
510
|
+
return _setPrototypeOf(o, p);
|
|
511
|
+
}
|
|
512
|
+
function _objectDestructuringEmpty(obj) {
|
|
513
|
+
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
|
514
|
+
}
|
|
515
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
516
|
+
if (source == null) return {};
|
|
517
|
+
var target = {};
|
|
518
|
+
for (var key in source) {
|
|
519
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
520
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
521
|
+
target[key] = source[key];
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
return target;
|
|
525
|
+
}
|
|
526
|
+
function _objectWithoutProperties(source, excluded) {
|
|
527
|
+
if (source == null) return {};
|
|
528
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
529
|
+
var key, i;
|
|
530
|
+
if (Object.getOwnPropertySymbols) {
|
|
531
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
532
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
533
|
+
key = sourceSymbolKeys[i];
|
|
534
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
535
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
536
|
+
target[key] = source[key];
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return target;
|
|
540
|
+
}
|
|
541
|
+
function _assertThisInitialized(self) {
|
|
542
|
+
if (self === void 0) {
|
|
543
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
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
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.");
|
|
553
591
|
}
|
|
554
592
|
|
|
555
593
|
var ENUM = {
|
|
@@ -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"
|
|
@@ -4157,6 +4195,414 @@ var getRenderSource = function getRenderSource(currentSRKs, items) {
|
|
|
4157
4195
|
|
|
4158
4196
|
var zhankaitiaojian = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Ezhankaitiaojian-icon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B5%E9%9D%A2-1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%28-702.000000%2C%20-498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22zhankaitiaojian-icon%22%20transform%3D%22translate%28702.000000%2C%20498.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.0142082%2C6%20L18%2C11.9972435%20L12.0142082%2C18%20L11.04209%2C17.0260337%20L16.0562218%2C11.9972435%20L11.04209%2C6.97396631%20L12.0142082%2C6%20Z%20M6.97257658%2C6%20L12.9583683%2C11.9972435%20L6.97257658%2C18%20L6.00091666%2C17.0260337%20L11.0150485%2C11.9972435%20L6%2C6.97396631%20L6.97257658%2C6%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%20transform%3D%22translate%2812.000000%2C%2012.000000%29%20rotate%28-270.000000%29%20translate%28-12.000000%2C%20-12.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
4159
4197
|
|
|
4198
|
+
var css_248z$6 = ".property_classify_content {\n margin-bottom: 15px;\n}\n.property_classify_content1 {\n max-height: 350px;\n overflow-y: scroll;\n overflow-x: hidden;\n}\n/* 滚动槽(轨道)宽高 */\n.property_classify_content1::-webkit-scrollbar {\n width: 5px;\n /*对垂直流动条有效*/\n height: 5px;\n /*对水平流动条有效*/\n}\n/* 滚动槽(轨道)样式 */\n.property_classify_content1::-webkit-scrollbar-track {\n background-color: #ffffff;\n border-radius: 8px;\n}\n/*定义滑块颜色、内阴影及圆角*/\n.property_classify_content1::-webkit-scrollbar-thumb {\n border-radius: 7px;\n background-color: #CECECE;\n}\n/*定义两端按钮的样式*/\n.property_classify_content1::-webkit-scrollbar-button {\n display: none;\n}\n.propertyGroup_container {\n display: flex;\n margin-bottom: 16px;\n}\n.propertyGroup_container .propertyGroup_container_left {\n width: 100px;\n flex-shrink: 0;\n flex-grow: 0;\n}\n.propertyGroup_container .propertyGroup_container_right {\n width: 560px;\n flex-shrink: 0;\n flex-grow: 0;\n display: flex;\n flex-wrap: wrap;\n}\n.propertyGroup_container .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.propertyGroup_checkbox_container {\n width: 80px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n";
|
|
4199
|
+
styleInject(css_248z$6);
|
|
4200
|
+
|
|
4201
|
+
var PropertyGroup = function PropertyGroup(props) {
|
|
4202
|
+
var propertyData = props.propertyData,
|
|
4203
|
+
handleProperyItemChange = props.handleProperyItemChange,
|
|
4204
|
+
modalVisilbe = props.modalVisilbe,
|
|
4205
|
+
itemValue = props.itemValue;
|
|
4206
|
+
var _useState = useState([]),
|
|
4207
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
4208
|
+
commonUseProperty = _useState2[0],
|
|
4209
|
+
setCommonUseProperty = _useState2[1]; // 常用属性值
|
|
4210
|
+
var _useState3 = useState([]),
|
|
4211
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
4212
|
+
notCommonUseProperty = _useState4[0],
|
|
4213
|
+
setNotCommonUseProperty = _useState4[1]; // 非常用属性值
|
|
4214
|
+
var _useState5 = useState(false),
|
|
4215
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
4216
|
+
indeterminate = _useState6[0],
|
|
4217
|
+
setIndeterminate = _useState6[1];
|
|
4218
|
+
var _useState7 = useState(false),
|
|
4219
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
4220
|
+
showNotCommon = _useState8[0],
|
|
4221
|
+
setShowNotCommon = _useState8[1];
|
|
4222
|
+
useEffect(function () {
|
|
4223
|
+
var proItemValue = (itemValue.propertyList || []).find(function (item) {
|
|
4224
|
+
return item.propertyCode === propertyData.propertyCode;
|
|
4225
|
+
});
|
|
4226
|
+
var checkedList = (proItemValue === null || proItemValue === void 0 ? void 0 : proItemValue.detailList) || [];
|
|
4227
|
+
var proDetailList = JSON.parse(JSON.stringify((propertyData === null || propertyData === void 0 ? void 0 : propertyData.detailList) || []));
|
|
4228
|
+
proDetailList.forEach(function (item) {
|
|
4229
|
+
if (checkedList.some(function (checkItem) {
|
|
4230
|
+
return checkItem.value === item.value;
|
|
4231
|
+
})) {
|
|
4232
|
+
item.isChecked = true;
|
|
4233
|
+
}
|
|
4234
|
+
});
|
|
4235
|
+
var commonUseProperty = proDetailList.filter(function (item) {
|
|
4236
|
+
return item.isCommonUse;
|
|
4237
|
+
});
|
|
4238
|
+
var notCommonUseProperty = proDetailList.filter(function (item) {
|
|
4239
|
+
return !item.isCommonUse;
|
|
4240
|
+
});
|
|
4241
|
+
if (checkedList.some(function (item) {
|
|
4242
|
+
return !item.isCommonUse;
|
|
4243
|
+
})) {
|
|
4244
|
+
setShowNotCommon(true);
|
|
4245
|
+
}
|
|
4246
|
+
setCommonUseProperty(commonUseProperty);
|
|
4247
|
+
setNotCommonUseProperty(notCommonUseProperty);
|
|
4248
|
+
}, [modalVisilbe]);
|
|
4249
|
+
var parseDataToParent = function parseDataToParent(comUse, notComUse) {
|
|
4250
|
+
var choosedPropertyList = (comUse || []).filter(function (item) {
|
|
4251
|
+
return item.isChecked;
|
|
4252
|
+
});
|
|
4253
|
+
if (showNotCommon) {
|
|
4254
|
+
choosedPropertyList = [].concat(_toConsumableArray(choosedPropertyList), _toConsumableArray((notComUse || []).filter(function (item) {
|
|
4255
|
+
return item.isChecked;
|
|
4256
|
+
})));
|
|
4257
|
+
}
|
|
4258
|
+
handleProperyItemChange({
|
|
4259
|
+
propertyCode: propertyData === null || propertyData === void 0 ? void 0 : propertyData.propertyCode,
|
|
4260
|
+
propertyName: propertyData === null || propertyData === void 0 ? void 0 : propertyData.propertyName,
|
|
4261
|
+
propertyId: propertyData === null || propertyData === void 0 ? void 0 : propertyData.propertyId,
|
|
4262
|
+
isCommonUse: propertyData === null || propertyData === void 0 ? void 0 : propertyData.isCommonUse,
|
|
4263
|
+
detailList: choosedPropertyList
|
|
4264
|
+
});
|
|
4265
|
+
};
|
|
4266
|
+
var handleChangeAll = function handleChangeAll(e) {
|
|
4267
|
+
if (showNotCommon) {
|
|
4268
|
+
notCommonUseProperty.map(function (item) {
|
|
4269
|
+
return item.isChecked = e.target.checked;
|
|
4270
|
+
});
|
|
4271
|
+
setNotCommonUseProperty(_toConsumableArray(notCommonUseProperty));
|
|
4272
|
+
}
|
|
4273
|
+
commonUseProperty.map(function (item) {
|
|
4274
|
+
return item.isChecked = e.target.checked;
|
|
4275
|
+
});
|
|
4276
|
+
parseDataToParent(commonUseProperty, notCommonUseProperty);
|
|
4277
|
+
setCommonUseProperty(_toConsumableArray(commonUseProperty));
|
|
4278
|
+
setIndeterminate(false);
|
|
4279
|
+
};
|
|
4280
|
+
var handleIndeterminate = function handleIndeterminate(commonUseProperty, notCommonUseProperty) {
|
|
4281
|
+
var checkList = _toConsumableArray(commonUseProperty);
|
|
4282
|
+
if (showNotCommon) {
|
|
4283
|
+
checkList = [].concat(_toConsumableArray(checkList), _toConsumableArray(notCommonUseProperty));
|
|
4284
|
+
}
|
|
4285
|
+
var indeterminate = !!checkList.filter(function (item) {
|
|
4286
|
+
return item.isChecked;
|
|
4287
|
+
}).length && checkList.filter(function (item) {
|
|
4288
|
+
return item.isChecked;
|
|
4289
|
+
}).length !== checkList.length;
|
|
4290
|
+
setIndeterminate(indeterminate);
|
|
4291
|
+
};
|
|
4292
|
+
var handleItemChecked = function handleItemChecked(e, item, type) {
|
|
4293
|
+
if (type === 1) {
|
|
4294
|
+
// 常用属性
|
|
4295
|
+
(commonUseProperty || []).forEach(function (info) {
|
|
4296
|
+
if (info.value === item.value) {
|
|
4297
|
+
info.isChecked = e.target.checked;
|
|
4298
|
+
}
|
|
4299
|
+
});
|
|
4300
|
+
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4301
|
+
parseDataToParent(commonUseProperty, notCommonUseProperty);
|
|
4302
|
+
setCommonUseProperty(_toConsumableArray(commonUseProperty));
|
|
4303
|
+
}
|
|
4304
|
+
if (type === 2) {
|
|
4305
|
+
// 非常用属性
|
|
4306
|
+
(notCommonUseProperty || []).forEach(function (info) {
|
|
4307
|
+
if (info.value === item.value) {
|
|
4308
|
+
info.isChecked = e.target.checked;
|
|
4309
|
+
}
|
|
4310
|
+
});
|
|
4311
|
+
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4312
|
+
parseDataToParent(commonUseProperty, notCommonUseProperty);
|
|
4313
|
+
setNotCommonUseProperty(_toConsumableArray(notCommonUseProperty));
|
|
4314
|
+
}
|
|
4315
|
+
};
|
|
4316
|
+
var checkAllChecked = function checkAllChecked() {
|
|
4317
|
+
var checkData = showNotCommon ? [].concat(_toConsumableArray(commonUseProperty), _toConsumableArray(notCommonUseProperty)) : _toConsumableArray(commonUseProperty);
|
|
4318
|
+
return checkData.length && checkData.every(function (item) {
|
|
4319
|
+
return item.isChecked;
|
|
4320
|
+
}) ? true : false;
|
|
4321
|
+
};
|
|
4322
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
4323
|
+
className: 'propertyGroup_container'
|
|
4324
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4325
|
+
className: 'propertyGroup_container_left'
|
|
4326
|
+
}, /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
4327
|
+
checked: checkAllChecked(),
|
|
4328
|
+
indeterminate: indeterminate,
|
|
4329
|
+
onChange: handleChangeAll
|
|
4330
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4331
|
+
title: propertyData.name,
|
|
4332
|
+
className: "propertyGroup_checkbox_container"
|
|
4333
|
+
}, propertyData.propertyName))), /*#__PURE__*/React$1.createElement("div", {
|
|
4334
|
+
className: 'propertyGroup_container_right'
|
|
4335
|
+
}, (commonUseProperty || []).map(function (item) {
|
|
4336
|
+
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
4337
|
+
checked: item.isChecked,
|
|
4338
|
+
key: item.value,
|
|
4339
|
+
onChange: function onChange(e) {
|
|
4340
|
+
handleItemChecked(e, item, 1);
|
|
4341
|
+
}
|
|
4342
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4343
|
+
title: item.name,
|
|
4344
|
+
className: "propertyGroup_checkbox_container"
|
|
4345
|
+
}, item.name));
|
|
4346
|
+
}), showNotCommon && (notCommonUseProperty || []).map(function (item) {
|
|
4347
|
+
return /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
4348
|
+
checked: item.isChecked,
|
|
4349
|
+
key: item.value,
|
|
4350
|
+
onChange: function onChange(e) {
|
|
4351
|
+
handleItemChecked(e, item, 2);
|
|
4352
|
+
}
|
|
4353
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4354
|
+
title: item.name,
|
|
4355
|
+
className: "propertyGroup_checkbox_container"
|
|
4356
|
+
}, item.name));
|
|
4357
|
+
}), !!notCommonUseProperty.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
4358
|
+
style: {
|
|
4359
|
+
width: '50px',
|
|
4360
|
+
cursor: 'pointer',
|
|
4361
|
+
color: '#005cff',
|
|
4362
|
+
fontSize: '10px',
|
|
4363
|
+
display: 'flex',
|
|
4364
|
+
alignItems: 'center'
|
|
4365
|
+
},
|
|
4366
|
+
onClick: function onClick() {
|
|
4367
|
+
setShowNotCommon(!showNotCommon);
|
|
4368
|
+
handleIndeterminate(commonUseProperty, notCommonUseProperty);
|
|
4369
|
+
}
|
|
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"))))));
|
|
4371
|
+
};
|
|
4372
|
+
var PropertyGroup$1 = /*#__PURE__*/React$1.memo(PropertyGroup, function (props, nextProps) {
|
|
4373
|
+
if (props.modalVisilbe !== nextProps.modalVisilbe) return false;
|
|
4374
|
+
return true;
|
|
4375
|
+
});
|
|
4376
|
+
|
|
4377
|
+
var _excluded$3 = ["value", "onChange", "width"];
|
|
4378
|
+
var PropertySelector = function PropertySelector(_ref) {
|
|
4379
|
+
var value = _ref.value,
|
|
4380
|
+
onChange = _ref.onChange,
|
|
4381
|
+
width = _ref.width,
|
|
4382
|
+
restProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
4383
|
+
var settingValue = useRef({
|
|
4384
|
+
classifyCode: '',
|
|
4385
|
+
classifyName: '',
|
|
4386
|
+
propertyList: []
|
|
4387
|
+
});
|
|
4388
|
+
var _useState = useState([]),
|
|
4389
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
4390
|
+
choosedValues = _useState2[0],
|
|
4391
|
+
setChoosedValues = _useState2[1];
|
|
4392
|
+
var _useState3 = useState(''),
|
|
4393
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
4394
|
+
choosedClassify = _useState4[0],
|
|
4395
|
+
setChoosedClassify = _useState4[1];
|
|
4396
|
+
var _useState5 = useState([]),
|
|
4397
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
4398
|
+
commonProperty = _useState6[0],
|
|
4399
|
+
setCommonUseProperty = _useState6[1];
|
|
4400
|
+
var _useState7 = useState([]),
|
|
4401
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
4402
|
+
notCommonProperty = _useState8[0],
|
|
4403
|
+
setNotCommonProperty = _useState8[1];
|
|
4404
|
+
var _useState9 = useState(false),
|
|
4405
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
4406
|
+
visible = _useState10[0],
|
|
4407
|
+
setVisible = _useState10[1];
|
|
4408
|
+
var _useState11 = useState(false),
|
|
4409
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
4410
|
+
showNotCommon = _useState12[0],
|
|
4411
|
+
setShowNotCommon = _useState12[1]; // 是否展示非常用属性
|
|
4412
|
+
var _useState13 = useState([]),
|
|
4413
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
4414
|
+
classifyOptionList = _useState14[0],
|
|
4415
|
+
setClassifyOptionList = _useState14[1];
|
|
4416
|
+
var _useState15 = useState('1'),
|
|
4417
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4418
|
+
listKey = _useState16[0],
|
|
4419
|
+
setListKey = _useState16[1];
|
|
4420
|
+
useEffect(function () {
|
|
4421
|
+
requestUtil({
|
|
4422
|
+
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
4423
|
+
method: 'GET'
|
|
4424
|
+
}).then(function (_ref2) {
|
|
4425
|
+
var _data$data;
|
|
4426
|
+
var data = _ref2.data;
|
|
4427
|
+
if (judgeIsRequestError(data)) {
|
|
4428
|
+
return;
|
|
4429
|
+
}
|
|
4430
|
+
var items = ((_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.items) || [];
|
|
4431
|
+
setClassifyOptionList(items.map(function (item) {
|
|
4432
|
+
return {
|
|
4433
|
+
label: item.name,
|
|
4434
|
+
value: item.id
|
|
4435
|
+
};
|
|
4436
|
+
}));
|
|
4437
|
+
});
|
|
4438
|
+
}, []);
|
|
4439
|
+
useEffect(function () {
|
|
4440
|
+
if (!choosedClassify) return;
|
|
4441
|
+
requestUtil({
|
|
4442
|
+
url: "/items/classProperty/".concat(choosedClassify),
|
|
4443
|
+
method: 'GET'
|
|
4444
|
+
}).then(function (_ref3) {
|
|
4445
|
+
var data = _ref3.data;
|
|
4446
|
+
if (judgeIsRequestError(data)) {
|
|
4447
|
+
return;
|
|
4448
|
+
}
|
|
4449
|
+
var newArr = ((data === null || data === void 0 ? void 0 : data.data) || []).map(function (item) {
|
|
4450
|
+
return {
|
|
4451
|
+
propertyCode: item.property.propertyCode,
|
|
4452
|
+
propertyName: item.property.name,
|
|
4453
|
+
propertyId: item.property.id,
|
|
4454
|
+
isCommonUse: item.property.isCommonUse === 'commonUse',
|
|
4455
|
+
detailList: item.propertyValueList.map(function (detail) {
|
|
4456
|
+
return {
|
|
4457
|
+
name: detail.value,
|
|
4458
|
+
value: detail.value,
|
|
4459
|
+
isCommonUse: detail.isCommonUse === 'commonUse'
|
|
4460
|
+
};
|
|
4461
|
+
})
|
|
4462
|
+
};
|
|
4463
|
+
});
|
|
4464
|
+
setCommonUseProperty(newArr.filter(function (item) {
|
|
4465
|
+
return item.isCommonUse;
|
|
4466
|
+
}));
|
|
4467
|
+
setNotCommonProperty(newArr.filter(function (item) {
|
|
4468
|
+
return !item.isCommonUse;
|
|
4469
|
+
}));
|
|
4470
|
+
setListKey(listKey === '1' ? '2' : '1');
|
|
4471
|
+
});
|
|
4472
|
+
}, [choosedClassify]);
|
|
4473
|
+
useEffect(function () {
|
|
4474
|
+
// 获取选中品类信息
|
|
4475
|
+
setChoosedClassify(value === null || value === void 0 ? void 0 : value.classifyCode);
|
|
4476
|
+
// 获取选中属性值展示
|
|
4477
|
+
var choosedPropertyList = ((value === null || value === void 0 ? void 0 : value.propertyList) || []).map(function (item) {
|
|
4478
|
+
return (item.detailList || []).map(function (detail) {
|
|
4479
|
+
return detail.name;
|
|
4480
|
+
});
|
|
4481
|
+
}).flat();
|
|
4482
|
+
if (((value === null || value === void 0 ? void 0 : value.propertyList) || []).some(function (item) {
|
|
4483
|
+
return !item.isCommonUse;
|
|
4484
|
+
})) {
|
|
4485
|
+
setShowNotCommon(true);
|
|
4486
|
+
}
|
|
4487
|
+
setChoosedValues(choosedPropertyList);
|
|
4488
|
+
settingValue.current = _objectSpread2({}, value);
|
|
4489
|
+
}, [value]);
|
|
4490
|
+
// 关闭弹窗回传组件值
|
|
4491
|
+
var handleConfirm = function handleConfirm() {
|
|
4492
|
+
setVisible(false);
|
|
4493
|
+
onChange(settingValue.current);
|
|
4494
|
+
};
|
|
4495
|
+
var onCancel = function onCancel() {
|
|
4496
|
+
setVisible(false);
|
|
4497
|
+
};
|
|
4498
|
+
// 获取选中属性值信息
|
|
4499
|
+
var handleProperyItemChange = function handleProperyItemChange(value) {
|
|
4500
|
+
var _settingValue$current;
|
|
4501
|
+
var newDetailList = ((_settingValue$current = settingValue.current) === null || _settingValue$current === void 0 ? void 0 : _settingValue$current.propertyList) || [];
|
|
4502
|
+
var itemIndex = newDetailList.findIndex(function (item) {
|
|
4503
|
+
return item.propertyCode === value.propertyCode;
|
|
4504
|
+
});
|
|
4505
|
+
if (itemIndex !== -1) {
|
|
4506
|
+
newDetailList[itemIndex] = value;
|
|
4507
|
+
} else {
|
|
4508
|
+
newDetailList.push(value);
|
|
4509
|
+
}
|
|
4510
|
+
settingValue.current = _objectSpread2(_objectSpread2({}, settingValue.current), {}, {
|
|
4511
|
+
propertyList: newDetailList.filter(function (item) {
|
|
4512
|
+
return item.detailList && item.detailList.length;
|
|
4513
|
+
})
|
|
4514
|
+
});
|
|
4515
|
+
};
|
|
4516
|
+
//修改品类值
|
|
4517
|
+
var onClassifyChange = function onClassifyChange(value, option) {
|
|
4518
|
+
setChoosedClassify(value);
|
|
4519
|
+
settingValue.current = {
|
|
4520
|
+
classifyCode: value,
|
|
4521
|
+
classifyName: option.children,
|
|
4522
|
+
propertyList: []
|
|
4523
|
+
};
|
|
4524
|
+
};
|
|
4525
|
+
var tagRender = function tagRender(props) {
|
|
4526
|
+
var label = props.label,
|
|
4527
|
+
value = props.value,
|
|
4528
|
+
closable = props.closable,
|
|
4529
|
+
onClose = props.onClose;
|
|
4530
|
+
return /*#__PURE__*/React$1.createElement(Tag, {
|
|
4531
|
+
closable: false,
|
|
4532
|
+
style: {
|
|
4533
|
+
marginRight: 3,
|
|
4534
|
+
height: '20px',
|
|
4535
|
+
fontSize: '12px'
|
|
4536
|
+
}
|
|
4537
|
+
}, label);
|
|
4538
|
+
};
|
|
4539
|
+
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({
|
|
4540
|
+
maxTagCount: 1,
|
|
4541
|
+
tagRender: tagRender
|
|
4542
|
+
}, restProps), {}, {
|
|
4543
|
+
mode: "multiple",
|
|
4544
|
+
value: choosedValues,
|
|
4545
|
+
onClick: function onClick() {
|
|
4546
|
+
setVisible(true);
|
|
4547
|
+
},
|
|
4548
|
+
style: {
|
|
4549
|
+
width: width || '100%'
|
|
4550
|
+
},
|
|
4551
|
+
open: false
|
|
4552
|
+
})), /*#__PURE__*/React$1.createElement(Modal, {
|
|
4553
|
+
title: "\u5C5E\u6027\u8BBE\u7F6E",
|
|
4554
|
+
width: 700,
|
|
4555
|
+
open: visible,
|
|
4556
|
+
onOk: handleConfirm,
|
|
4557
|
+
destroyOnClose: true,
|
|
4558
|
+
onCancel: onCancel,
|
|
4559
|
+
cancelText: '取消',
|
|
4560
|
+
okText: '确定'
|
|
4561
|
+
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
4562
|
+
className: 'property_classify_content'
|
|
4563
|
+
}, /*#__PURE__*/React$1.createElement("span", {
|
|
4564
|
+
style: {
|
|
4565
|
+
marginRight: '10px'
|
|
4566
|
+
}
|
|
4567
|
+
}, "\u54C1\u7C7B\u6A21\u677F"), /*#__PURE__*/React$1.createElement(Select, {
|
|
4568
|
+
style: {
|
|
4569
|
+
width: '200px'
|
|
4570
|
+
},
|
|
4571
|
+
value: choosedClassify,
|
|
4572
|
+
options: classifyOptionList,
|
|
4573
|
+
onChange: function onChange(value, option) {
|
|
4574
|
+
onClassifyChange(value, option);
|
|
4575
|
+
}
|
|
4576
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
4577
|
+
className: 'property_classify_content1',
|
|
4578
|
+
key: listKey
|
|
4579
|
+
}, /*#__PURE__*/React$1.createElement("div", null, commonProperty.map(function (item) {
|
|
4580
|
+
return /*#__PURE__*/React$1.createElement(PropertyGroup$1, {
|
|
4581
|
+
modalVisilbe: visible,
|
|
4582
|
+
itemValue: settingValue.current,
|
|
4583
|
+
propertyData: item,
|
|
4584
|
+
handleProperyItemChange: handleProperyItemChange
|
|
4585
|
+
});
|
|
4586
|
+
})), /*#__PURE__*/React$1.createElement("div", null, showNotCommon && notCommonProperty.map(function (item) {
|
|
4587
|
+
return /*#__PURE__*/React$1.createElement(PropertyGroup$1, {
|
|
4588
|
+
modalVisilbe: visible,
|
|
4589
|
+
itemValue: settingValue.current,
|
|
4590
|
+
propertyData: item,
|
|
4591
|
+
handleProperyItemChange: handleProperyItemChange
|
|
4592
|
+
});
|
|
4593
|
+
}))), !!notCommonProperty.length && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
4594
|
+
style: {
|
|
4595
|
+
width: '50px',
|
|
4596
|
+
cursor: 'pointer',
|
|
4597
|
+
color: '#005cff',
|
|
4598
|
+
fontSize: '10px'
|
|
4599
|
+
},
|
|
4600
|
+
onClick: function onClick() {
|
|
4601
|
+
return setShowNotCommon(!showNotCommon);
|
|
4602
|
+
}
|
|
4603
|
+
}, 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"))))))));
|
|
4604
|
+
};
|
|
4605
|
+
|
|
4160
4606
|
var Option$1 = Select.Option;
|
|
4161
4607
|
var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
4162
4608
|
var _pathname$match, _modalTableProps$tabl, _modalTableProps$tabl2;
|
|
@@ -4196,7 +4642,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4196
4642
|
_ref$init = _ref.init,
|
|
4197
4643
|
init = _ref$init === void 0 ? false : _ref$init,
|
|
4198
4644
|
_ref$extralHeaders = _ref.extralHeaders,
|
|
4199
|
-
extralHeaders = _ref$extralHeaders === void 0 ? {} : _ref$extralHeaders,
|
|
4200
4645
|
_ref$specialBracket = _ref.specialBracket,
|
|
4201
4646
|
specialBracket = _ref$specialBracket === void 0 ? false : _ref$specialBracket,
|
|
4202
4647
|
_ref$noNeedSplit = _ref.noNeedSplit,
|
|
@@ -4427,6 +4872,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4427
4872
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
4428
4873
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
4429
4874
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
4875
|
+
var bodyParams = arguments.length > 3 ? arguments[3] : undefined;
|
|
4430
4876
|
if (!requestConfig) return;
|
|
4431
4877
|
setFetching(true);
|
|
4432
4878
|
// 处理dependence参数
|
|
@@ -4555,9 +5001,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4555
5001
|
if (isNil(queryParams[selectParamsKey])) {
|
|
4556
5002
|
queryParams[selectParamsKey] = searchValue;
|
|
4557
5003
|
}
|
|
4558
|
-
requestUtil.
|
|
4559
|
-
headers: _objectSpread2({}, extralHeaders)
|
|
4560
|
-
}).then(function (result) {
|
|
5004
|
+
requestUtil.post("".concat(url, "?").concat(stringify(queryParams)), bodyParams || null).then(function (result) {
|
|
4561
5005
|
setFetching(false);
|
|
4562
5006
|
result = result.data;
|
|
4563
5007
|
if (judgeIsRequestError(result)) {
|
|
@@ -4879,12 +5323,18 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
4879
5323
|
};
|
|
4880
5324
|
var onSearchTable = function onSearchTable() {
|
|
4881
5325
|
var params = form.getFieldsValue();
|
|
5326
|
+
console.log('dddd', params);
|
|
4882
5327
|
// const isHaveParams = params && Object.keys(params).filter(item => params[item]).length > 0;
|
|
4883
5328
|
setModalSearched(true);
|
|
5329
|
+
var unique_params = null;
|
|
5330
|
+
if (params['UNIQUE_SPEC']) {
|
|
5331
|
+
var _params$UNIQUE_SPEC;
|
|
5332
|
+
unique_params = ((_params$UNIQUE_SPEC = params['UNIQUE_SPEC']) === null || _params$UNIQUE_SPEC === void 0 ? void 0 : _params$UNIQUE_SPEC.propertyList) || [];
|
|
5333
|
+
}
|
|
4884
5334
|
setTableFormParams(params);
|
|
4885
5335
|
getData(_objectSpread2(_objectSpread2({}, params), {}, {
|
|
4886
5336
|
pageSize: tableInitPageSize
|
|
4887
|
-
}), 2);
|
|
5337
|
+
}), 2, null, unique_params);
|
|
4888
5338
|
};
|
|
4889
5339
|
var onResetTable = function onResetTable() {
|
|
4890
5340
|
form.resetFields();
|
|
@@ -5011,7 +5461,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5011
5461
|
};
|
|
5012
5462
|
})) || [];
|
|
5013
5463
|
return list === null || list === void 0 ? void 0 : (_list$concat = list.concat(addKong)) === null || _list$concat === void 0 ? void 0 : _list$concat.map(function (i, index) {
|
|
5014
|
-
var _i$field, _i$field3, _i$field5, _i$field6, _i$field7;
|
|
5464
|
+
var _i$field, _i$field3, _i$field5, _i$field6, _i$field7, _i$field8;
|
|
5015
5465
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
|
|
5016
5466
|
span: ColSpan,
|
|
5017
5467
|
key: i
|
|
@@ -5086,6 +5536,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5086
5536
|
}
|
|
5087
5537
|
})));
|
|
5088
5538
|
}
|
|
5539
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field7 = i.field) === null || _i$field7 === void 0 ? void 0 : _i$field7.type) === 'proppertySelector') {
|
|
5540
|
+
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5541
|
+
span: ColSpan,
|
|
5542
|
+
key: i.name
|
|
5543
|
+
}, /*#__PURE__*/React$1.createElement(Form.Item, {
|
|
5544
|
+
name: i.name,
|
|
5545
|
+
label: i.label,
|
|
5546
|
+
key: i.name
|
|
5547
|
+
}, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
|
|
5548
|
+
}
|
|
5089
5549
|
// 默认type是input
|
|
5090
5550
|
return /*#__PURE__*/React$1.createElement(Col, {
|
|
5091
5551
|
span: ColSpan,
|
|
@@ -5101,7 +5561,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5101
5561
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
5102
5562
|
allowClear: true,
|
|
5103
5563
|
maxLength: 100
|
|
5104
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
5564
|
+
}, i === null || i === void 0 ? void 0 : (_i$field8 = i.field) === null || _i$field8 === void 0 ? void 0 : _i$field8.props), {}, {
|
|
5105
5565
|
disabled: setDisabled(i.name)
|
|
5106
5566
|
}))));
|
|
5107
5567
|
});
|
|
@@ -5314,7 +5774,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5314
5774
|
destroyTooltipOnHide: true,
|
|
5315
5775
|
placement: "topRight",
|
|
5316
5776
|
autoAdjustOverflow: false,
|
|
5317
|
-
title: (/*#__PURE__*/React$1.createElement("div", {
|
|
5777
|
+
title: ( /*#__PURE__*/React$1.createElement("div", {
|
|
5318
5778
|
style: {
|
|
5319
5779
|
margin: '6px 8px 0px'
|
|
5320
5780
|
},
|
|
@@ -5386,13 +5846,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5386
5846
|
var isShouldShowStr = props.disabled && ctx || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) == 'view';
|
|
5387
5847
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
5388
5848
|
className: 'search_select'
|
|
5389
|
-
}, fieldComponent ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5849
|
+
}, fieldComponent ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5390
5850
|
onClick: function onClick() {
|
|
5391
5851
|
var _fieldComponent$props, _fieldComponent$props2;
|
|
5392
5852
|
(_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);
|
|
5393
5853
|
showModal();
|
|
5394
5854
|
}
|
|
5395
|
-
}, fieldComponent)) : isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
5855
|
+
}, fieldComponent)) : isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
5396
5856
|
title: getShowStr(),
|
|
5397
5857
|
style: {
|
|
5398
5858
|
overflow: 'hidden',
|
|
@@ -5419,10 +5879,10 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5419
5879
|
dropdownRender: function dropdownRender(menu) {
|
|
5420
5880
|
return (items === null || items === void 0 ? void 0 : items.length) ? renderTable(items) : menu;
|
|
5421
5881
|
},
|
|
5422
|
-
notFoundContent: fetching ? (/*#__PURE__*/React$1.createElement(Spin, {
|
|
5882
|
+
notFoundContent: fetching ? ( /*#__PURE__*/React$1.createElement(Spin, {
|
|
5423
5883
|
size: "small",
|
|
5424
5884
|
className: 'searchSelectSpin'
|
|
5425
|
-
})) : (/*#__PURE__*/React$1.createElement("div", {
|
|
5885
|
+
})) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
5426
5886
|
style: {
|
|
5427
5887
|
textAlign: 'center'
|
|
5428
5888
|
}
|
|
@@ -5453,7 +5913,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5453
5913
|
text: handleSelectOptionsShowValue(specialBracket, noNeedSplit, item),
|
|
5454
5914
|
filterTxt: searchValue
|
|
5455
5915
|
}));
|
|
5456
|
-
}))), needModalTable && isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5916
|
+
}))), needModalTable && isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
5457
5917
|
maskClosable: false,
|
|
5458
5918
|
destroyOnClose: true,
|
|
5459
5919
|
width: "80%",
|
|
@@ -5528,8 +5988,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
5528
5988
|
})) : null)))));
|
|
5529
5989
|
});
|
|
5530
5990
|
|
|
5531
|
-
var css_248z$
|
|
5532
|
-
styleInject(css_248z$
|
|
5991
|
+
var css_248z$7 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper_select_quick {\n margin: 0;\n}\n.react-resizable {\n position: relative;\n background-clip: padding-box;\n}\n.react-resizable-handle {\n position: absolute;\n width: 10px;\n height: 100%;\n bottom: 0;\n right: -5px;\n cursor: col-resize;\n z-index: 1;\n}\n";
|
|
5992
|
+
styleInject(css_248z$7);
|
|
5533
5993
|
|
|
5534
5994
|
var shezhi = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E8%92%99%E7%89%88%401x%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22path-1%22%20points%3D%221.97175609e-13%200%2024%200%2024%2024%201.97175609e-13%2024%22%3E%3C%2Fpolygon%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E3%80%90%E9%94%80%E5%94%AE%E8%AE%A2%E5%8D%95%E3%80%91-%E5%88%97%E8%A1%A8%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-13%E5%A4%87%E4%BB%BD%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23FAFAFA%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11.0539833%2C6%20L12.9893599%2C6.00306539%20C13.5902684%2C6.0041207%2014.0770953%2C6.51753931%2014.0778957%2C7.15105962%20L14.0786226%2C7.48365607%20C14.4535346%2C7.64767515%2014.8086815%2C7.85797334%2015.1366285%2C8.11014825%20L15.3957691%2C7.95304625%20C15.9165865%2C7.6370624%2016.5817222%2C7.82488039%2016.8830106%2C8.37300674%20L17.8530614%2C10.1386801%20C18.1419103%2C10.664498%2017.9927093%2C11.3364989%2017.5125078%2C11.6725322%20L17.4532653%2C11.7108498%20L17.1930343%2C11.8691013%20C17.2377388%2C12.3043888%2017.232287%2C12.7465735%2017.1737714%2C13.186076%20L17.3576776%2C13.2983464%20C17.857707%2C13.60263%2018.0460753%2C14.2651041%2017.7872767%2C14.809208%20L17.7571103%2C14.8686002%20L16.8484828%2C16.5277508%20C16.5598628%2C17.0549169%2015.9314906%2C17.253508%2015.4153954%2C16.9806644%20L15.3586971%2C16.9484776%20L15.1075524%2C16.7952074%20C14.7917375%2C17.034765%2014.4508932%2C17.235328%2014.0917069%2C17.3929614%20L14.0917069%2C17.8489404%20C14.0924552%2C18.4564109%2013.6447505%2C18.9596333%2013.0696826%2C18.9977009%20L13.0002635%2C19%20L11.0648868%2C18.9969346%20C10.46412%2C18.9958799%209.97735149%2C18.4826942%209.97635104%2C17.8493235%20L9.97526069%2C17.2994665%20C9.67532321%2C17.1509864%209.38966197%2C16.9723666%209.12224117%2C16.766086%20L8.65847768%2C17.0473369%20C8.13756521%2C17.3632563%207.47240027%2C17.1752586%207.17123614%2C16.6269932%20L6.20118538%2C14.8617031%20C5.91210367%2C14.335799%206.06132792%2C13.6635256%206.54173898%2C13.3274678%20L6.6009815%2C13.2891502%20L7.0727409%2C13.002918%20C7.03639581%2C12.6389012%207.03457855%2C12.2706694%207.06946985%2C11.9032039%20L6.54573694%2C11.5840186%20C6.04557344%2C11.2798633%205.85703718%2C10.6173586%206.1157744%2C10.0731571%20L6.14630429%2C10.0137648%20L7.05493181%2C8.35461431%20C7.3435518%2C7.82744812%207.97192398%2C7.62885707%208.48801915%2C7.9017007%20L8.54435406%2C7.93388746%20L9.00084853%2C8.2116898%20C9.29835141%2C7.96712383%209.62078477%2C7.75828095%209.96217645%2C7.58902938%20L9.96217645%2C7.15144279%20C9.96123583%2C6.54382459%2010.4089927%2C6.0403757%2010.9842007%2C6.00229905%20L11.0536198%2C6%20L11.0539833%2C6%20Z%20M11.0525295%2C7.14952693%20L11.0536198%2C8.31821262%20L10.4270303%2C8.62896808%20C10.1588035%2C8.76193003%209.90547811%2C8.92592919%209.67214254%2C9.11790019%20L9.09280163%2C9.5945707%20L8.02679981%2C8.94547115%20L7.99954099%2C8.92937778%20L7.09091346%2C10.5885283%20L8.22488062%2C11.2786276%20L8.15437112%2C12.0177735%20C8.12711229%2C12.304772%208.12820264%2C12.5944528%208.15691528%2C12.8814513%20L8.23178618%2C13.6255784%20L7.14506767%2C14.2854069%20L8.11475496%2C16.0506971%20L9.19384102%2C15.3966163%20L9.76627637%2C15.8384178%20C9.97702523%2C16.0011688%2010.2022%2C16.142066%2010.4386607%2C16.2591446%20L11.0645234%2C16.5691337%20L11.0667041%2C17.8474077%20L13.0017173%2C17.8504731%20L13.0006269%2C16.6262269%20L13.6730113%2C16.3311816%20C13.9550669%2C16.2075098%2014.2227404%2C16.0501462%2014.4707863%2C15.8621747%20L15.0428581%2C15.428803%20L15.904237%2C15.9529873%20L16.8121377%2C14.2934536%20L15.9921922%2C13.7937926%20L16.0939585%2C13.0270581%20C16.1393899%2C12.6841159%2016.1444782%2C12.3369588%2016.1092234%2C11.9924839%20L16.0328987%2C11.2479736%20L16.9095425%2C10.7145931%20L15.9394918%2C8.9493029%20L15.0672094%2C9.47923482%20L14.4944106%2C9.038966%20C14.2359425%2C8.84023491%2013.9560781%2C8.67444458%2013.6606539%2C8.54505261%20L12.9897234%2C8.25154006%20L12.9875427%2C7.15259232%20L11.0525295%2C7.14952693%20L11.0525295%2C7.14952693%20Z%20M13.2226955%2C10.4494355%20C14.2654163%2C11.0852141%2014.6228641%2C12.4911028%2014.0215608%2C13.5914758%20C13.7329275%2C14.1197135%2013.2568818%2C14.5052495%2012.6983658%2C14.6630942%20C12.1398499%2C14.8209389%2011.5447201%2C14.7381326%2011.0441701%2C14.4329295%20C10.0015813%2C13.7970198%209.64430382%2C12.3911621%2010.2456682%2C11.2908893%20C10.5343004%2C10.7627557%2011.0102799%2C10.3772944%2011.5687082%2C10.2194552%20C12.1271364%2C10.0616161%2012.7221782%2C10.1443543%2013.2226955%2C10.4494355%20L13.2226955%2C10.4494355%20Z%20M11.189914%2C11.8648864%20C10.8889471%2C12.4157197%2011.0678166%2C13.119454%2011.5897101%2C13.4378224%20C11.8397194%2C13.5903842%2012.1370318%2C13.6318051%2012.4160482%2C13.5529458%20C12.6950647%2C13.4740865%2012.9328544%2C13.2814281%2013.0769516%2C13.0174787%20C13.3654467%2C12.4893922%2013.2141569%2C11.8157971%2012.7316732%2C11.480178%20L12.6771555%2C11.4445427%20L12.6208206%2C11.4127391%20C12.1055879%2C11.1395918%2011.4777022%2C11.3379953%2011.189914%2C11.8648864%20L11.189914%2C11.8648864%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%234C4E4D%22%20fill-rule%3D%22nonzero%22%20mask%3D%22url%28%23mask-2%29%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
5535
5995
|
|
|
@@ -5545,10 +6005,10 @@ var fixedRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
5545
6005
|
|
|
5546
6006
|
var fixedRightActive = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2218px%22%20height%3D%2218px%22%20viewBox%3D%220%200%2018%2018%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%209%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E4%B8%AA%E6%80%A7%E5%8C%96%E8%AE%BE%E7%BD%AE%26amp%3B%E9%94%81%E5%AE%9A%E5%88%97%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%94%BB%E6%9D%BF%22%20transform%3D%22translate%28-89.000000%2C%20-43.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%2889.000000%2C%2043.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2217%22%20height%3D%2217%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M9.49980555%2C4.20269836%20L15%2C9.65415997%20L14.1747569%2C10.4721491%20L10.0757645%2C6.40841633%20L10.0757645%2C15%20L8.90867951%2C15%20L8.90906842%2C6.4246065%20L4.82524306%2C10.4721491%20L4%2C9.65493094%20L9.49980555%2C4.20269836%20Z%20M14.9824996%2C3%20L14.9824996%2C4.15644073%20L4.09333569%2C4.15644073%20L4.09333569%2C3%20L14.9824996%2C3%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%289.500000%2C%209.000000%29%20rotate%28-180.000000%29%20translate%28-9.500000%2C%20-9.000000%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
5547
6007
|
|
|
5548
|
-
var css_248z$
|
|
5549
|
-
styleInject(css_248z$
|
|
6008
|
+
var css_248z$8 = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
6009
|
+
styleInject(css_248z$8);
|
|
5550
6010
|
|
|
5551
|
-
var _excluded$
|
|
6011
|
+
var _excluded$4 = ["className", "style"];
|
|
5552
6012
|
var Search = Input.Search;
|
|
5553
6013
|
var DragHandle = SortableHandle(function () {
|
|
5554
6014
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -5900,7 +6360,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
5900
6360
|
_this.DraggableBodyRow = function (_ref2) {
|
|
5901
6361
|
var className = _ref2.className,
|
|
5902
6362
|
style = _ref2.style,
|
|
5903
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
6363
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$4);
|
|
5904
6364
|
var sortDataSource = _this.state.sortDataSource;
|
|
5905
6365
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
5906
6366
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -6050,7 +6510,7 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6050
6510
|
style: {
|
|
6051
6511
|
width: 525
|
|
6052
6512
|
}
|
|
6053
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6513
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
6054
6514
|
checked: !dataSource.some(function (item) {
|
|
6055
6515
|
if (item.hidden) return true;
|
|
6056
6516
|
return false;
|
|
@@ -6088,13 +6548,13 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
|
|
|
6088
6548
|
_this2.onChange(e, item.title);
|
|
6089
6549
|
}
|
|
6090
6550
|
}, item.title);
|
|
6091
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
6551
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
6092
6552
|
style: {
|
|
6093
6553
|
width: '144px'
|
|
6094
6554
|
}
|
|
6095
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
6555
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
6096
6556
|
className: 'sort_table_column_all_empty'
|
|
6097
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6557
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
6098
6558
|
className: 'sort_table_column_special'
|
|
6099
6559
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
6100
6560
|
className: 'sort_table_column_all'
|
|
@@ -6283,7 +6743,7 @@ var formatSource = function formatSource(reData, position, changePosition, chang
|
|
|
6283
6743
|
});
|
|
6284
6744
|
};
|
|
6285
6745
|
// 格式化树选择器数据源
|
|
6286
|
-
var
|
|
6746
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
6287
6747
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
6288
6748
|
return {
|
|
6289
6749
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -6293,7 +6753,7 @@ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue) {
|
|
|
6293
6753
|
isLeaf: !haveChildren,
|
|
6294
6754
|
disabled: haveChildren,
|
|
6295
6755
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
6296
|
-
return
|
|
6756
|
+
return mapSearchTree(i, resKeyValue);
|
|
6297
6757
|
}) : []
|
|
6298
6758
|
};
|
|
6299
6759
|
};
|
|
@@ -6302,7 +6762,7 @@ var formatTreeDataSource = function formatTreeDataSource(reData, position, chang
|
|
|
6302
6762
|
var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
|
|
6303
6763
|
var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
|
|
6304
6764
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
6305
|
-
return
|
|
6765
|
+
return mapSearchTree(ites, resKeyValue);
|
|
6306
6766
|
}) || [];
|
|
6307
6767
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
6308
6768
|
};
|
|
@@ -6319,7 +6779,7 @@ var formatFormSourceList = function formatFormSourceList(x, loadList, tableSearc
|
|
|
6319
6779
|
});
|
|
6320
6780
|
};
|
|
6321
6781
|
|
|
6322
|
-
var _excluded$
|
|
6782
|
+
var _excluded$5 = ["onResize", "width"],
|
|
6323
6783
|
_excluded2$2 = ["name", "label", "field", "type", "filterFormItem", "initialSource"];
|
|
6324
6784
|
var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
6325
6785
|
return new Promise(function (resolve, reject) {
|
|
@@ -6339,7 +6799,7 @@ var checkSpuMatchCode = function checkSpuMatchCode(data) {
|
|
|
6339
6799
|
var ResizeableTitle = function ResizeableTitle(props) {
|
|
6340
6800
|
var onResize = props.onResize,
|
|
6341
6801
|
width = props.width,
|
|
6342
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
6802
|
+
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
6343
6803
|
if (!width) {
|
|
6344
6804
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
6345
6805
|
}
|
|
@@ -6473,7 +6933,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6473
6933
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
6474
6934
|
// FIXME: 特殊业务逻辑
|
|
6475
6935
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
6476
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6936
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
6477
6937
|
var result;
|
|
6478
6938
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6479
6939
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6726,7 +7186,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
6726
7186
|
return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
6727
7187
|
value: text || null,
|
|
6728
7188
|
onChange: function () {
|
|
6729
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
7189
|
+
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
|
|
6730
7190
|
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
6731
7191
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
6732
7192
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -7334,10 +7794,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7334
7794
|
var newColumns = arr.map(function (col) {
|
|
7335
7795
|
return _objectSpread2({}, col);
|
|
7336
7796
|
});
|
|
7337
|
-
var
|
|
7797
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
7338
7798
|
var i = indexArr.shift();
|
|
7339
7799
|
if (indexArr.length > 0) {
|
|
7340
|
-
|
|
7800
|
+
handleIndex(arr[i].children, indexArr);
|
|
7341
7801
|
} else {
|
|
7342
7802
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
7343
7803
|
width: size.width
|
|
@@ -7345,7 +7805,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7345
7805
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
7346
7806
|
}
|
|
7347
7807
|
};
|
|
7348
|
-
|
|
7808
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
7349
7809
|
callback(newColumns);
|
|
7350
7810
|
};
|
|
7351
7811
|
};
|
|
@@ -7355,13 +7815,13 @@ var AddSelect = function AddSelect(props) {
|
|
|
7355
7815
|
var setShowToChooseColumnsCallback = function setShowToChooseColumnsCallback(newColumns) {
|
|
7356
7816
|
setShowToChooseColumns(_toConsumableArray(newColumns));
|
|
7357
7817
|
};
|
|
7358
|
-
var
|
|
7818
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
7359
7819
|
arr.forEach(function (item, index) {
|
|
7360
7820
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
7361
7821
|
return i || i === 0;
|
|
7362
7822
|
});
|
|
7363
7823
|
if (noEmptyArray$1(item.children)) {
|
|
7364
|
-
|
|
7824
|
+
handleColumns(item.children, indexArrInside);
|
|
7365
7825
|
} else {
|
|
7366
7826
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
7367
7827
|
item.onHeaderCell = function (column) {
|
|
@@ -7377,14 +7837,14 @@ var AddSelect = function AddSelect(props) {
|
|
|
7377
7837
|
handleAntdColumnsSpecialParams(item);
|
|
7378
7838
|
return _objectSpread2({}, item);
|
|
7379
7839
|
});
|
|
7380
|
-
|
|
7840
|
+
handleColumns(showToChooseCol, [], function (res) {
|
|
7381
7841
|
return setShowToChooseColumnsCallback(res);
|
|
7382
7842
|
});
|
|
7383
7843
|
var showSelectedCol = showColumns.map(function (item) {
|
|
7384
7844
|
handleAntdColumnsSpecialParams(item);
|
|
7385
7845
|
return _objectSpread2({}, item);
|
|
7386
7846
|
});
|
|
7387
|
-
|
|
7847
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
7388
7848
|
return setShowColumnsCallback(res);
|
|
7389
7849
|
});
|
|
7390
7850
|
var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
|
|
@@ -7395,7 +7855,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
7395
7855
|
id: "add_select_div_".concat(uniqueValue)
|
|
7396
7856
|
}, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
7397
7857
|
onClick: handleShowModal
|
|
7398
|
-
}, realButtonProps), buttonText)), isModalVisible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
7858
|
+
}, realButtonProps), buttonText)), isModalVisible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
7399
7859
|
width: '1200px',
|
|
7400
7860
|
style: {
|
|
7401
7861
|
top: 20
|
|
@@ -7568,10 +8028,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
7568
8028
|
}))))));
|
|
7569
8029
|
};
|
|
7570
8030
|
|
|
7571
|
-
var css_248z$
|
|
7572
|
-
styleInject(css_248z$
|
|
8031
|
+
var css_248z$9 = ".add_select_show {\n display: flex;\n}\n.add_select_expand_button {\n position: relative;\n width: 30px;\n color: #ffffff;\n cursor: pointer;\n}\n.add_select_expand_button span {\n position: absolute;\n height: 20px;\n line-height: 14px;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n.add_select_header {\n border-bottom: 1px solid #D9D9D9;\n height: 24px;\n height: 40px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n line-height: 40px;\n margin-bottom: 10px;\n padding-left: 10px;\n}\n.add_select_header > span {\n margin-left: 20px;\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 40px;\n}\n.add_select_header > span > span {\n color: #ff0000;\n}\n.add_select_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_quick_header {\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.add_select_quick_header_title {\n display: flex;\n justify-content: space-between;\n}\n.add_select_quick_header > span {\n font-weight: 400;\n font-size: 12px;\n color: #666666;\n letter-spacing: 0;\n line-height: 20px;\n}\n.add_select_quick_header > span > span {\n color: #ff0000;\n}\n.add_select_quick_header_close span {\n position: absolute;\n color: black !important;\n right: 10px;\n top: 10px;\n}\n.add_select_wrapper {\n position: relative;\n display: flex;\n max-height: 60vh;\n overflow: hidden;\n font-size: 14px;\n margin: 5px 10px;\n}\n.add_select_wrapper .ant-table-pagination.ant-pagination {\n margin: 5px;\n padding-right: 5px;\n}\n.add_select_wrapper .ant-checkbox-wrapper {\n justify-content: center;\n}\n.add_select_wrapper .ant-form-item-label {\n padding: 0PX;\n line-height: 23px !important;\n}\n.add_select_wrapper .ant-form-item-label > label {\n font-size: 12px;\n}\n.add_select_wrapper .ant-table-thead th {\n height: 20px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper .row-class {\n height: 24px;\n}\n.add_select_wrapper .row-class td {\n font-size: 12px !important;\n height: 24px !important;\n padding: 0px 8px !important;\n line-height: 20px !important;\n}\n.add_select_wrapper .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select_wrapper .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_click_flag {\n position: absolute;\n z-index: 10;\n}\n.add_select_wrapper_click_flag_arrow {\n transform: rotate(0deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_click_flag_arrow_1 {\n transform: rotate(-180deg);\n transition: transform 0.5s;\n}\n.add_select_wrapper_left {\n flex-basis: 298px;\n width: 298px;\n overflow-y: hidden;\n transition: all 0.3s;\n margin-right: 10px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_left1 {\n width: 0;\n height: 0;\n transition: all 0.3s;\n display: none;\n}\n.add_select_wrapper_right {\n width: 872px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n}\n.add_select_wrapper_right1 {\n width: 100%;\n margin-left: 10px;\n}\n.add_select_wrapper_right,\n.add_select_wrapper_right1 {\n overflow-x: auto;\n}\n.add_select_wrapper .select_list_columns {\n height: 272px;\n overflow-y: auto;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_columns_tips {\n background: #eee;\n padding: 6px 20px;\n margin-bottom: 10px;\n}\n.add_select_wrapper .select_list_columns_formItems {\n padding: 7px 10px;\n}\n.add_select_wrapper .select_list_searchButton {\n display: flex;\n margin: 10px;\n justify-content: flex-end;\n}\n.add_select_wrapper .select_list_button_space {\n margin-right: 10px;\n}\n.add_select_wrapper .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 5px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select_wrapper .select_list_selectAll {\n position: relative;\n top: -40px;\n left: 20px;\n width: 160px;\n}\n.add_select_wrapper_select {\n margin-top: 4px;\n border: 1px solid #D9D9D9;\n border-radius: 5px;\n margin: 5px 10px;\n}\n.add_select_wrapper_select .ant-table-pagination.ant-pagination {\n margin: 9px;\n padding-right: 5px;\n}\n.add_select_wrapper_select .ant-modal-body {\n padding: 10px;\n}\n.add_select_wrapper_select .ant-table-wrapper {\n padding: 0px !important;\n}\n.add_select_wrapper_select .ant-table-thead th {\n height: 23px !important;\n padding: 0px 8px !important;\n font-size: 12px !important;\n font-weight: 600 !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-modal-close-x {\n height: 30px;\n}\n.add_select_wrapper_select .row-class {\n height: 30px;\n}\n.add_select_wrapper_select .row-class td {\n font-size: 12px !important;\n height: 30px !important;\n padding: 4px 8px !important;\n}\n.add_select_wrapper_select .ant-table-body {\n height: 200px;\n overflow-y: auto !important;\n}\n.add_select_wrapper_select .ant-row.ant-form-item {\n margin-bottom: 10px;\n}\n.add_select_wrapper_select .ant-input-number-input,\n.add_select_wrapper_select .ant-input {\n height: auto;\n height: 22px;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select-selection-search-input {\n height: auto;\n height: 22px !important;\n padding: 0px 10px;\n font-size: 12px;\n}\n.add_select_wrapper_select .ant-select .ant-select-arrow {\n top: 13px;\n}\n.add_select_wrapper_select .ant-select-selector {\n position: relative;\n top: 1px;\n height: 23px !important;\n line-height: 23px !important;\n}\n.add_select_wrapper_select .ant-select-selector .ant-select-selection-item,\n.add_select_wrapper_select .ant-select-selector ant-select-selection-search {\n height: 23px !important;\n line-height: 23px !important;\n font-size: 12px;\n}\n.add_select_wrapper_select .select_list_selectTips {\n display: flex;\n justify-content: space-between;\n height: 24px;\n font-size: 12px;\n line-height: 24px;\n background: #F7F8FB;\n padding: 0 3px;\n border-bottom: 1px solid #D9D9D9;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick {\n margin: 0;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-body {\n height: 240px;\n overflow-y: auto !important;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_base {\n background: #fff;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .table_odd {\n background: #f7f8fb;\n}\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-left,\n.add_select div.add_select_wrapper_select.add_select_wrapper_select_quick .ant-table-cell-fix-right {\n background: #FFFFFF !important;\n}\n";
|
|
8032
|
+
styleInject(css_248z$9);
|
|
7573
8033
|
|
|
7574
|
-
var _excluded$
|
|
8034
|
+
var _excluded$6 = ["onResize", "width"];
|
|
7575
8035
|
var _this = undefined;
|
|
7576
8036
|
var InputElement = function InputElement(_ref) {
|
|
7577
8037
|
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
@@ -8069,7 +8529,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
8069
8529
|
var ResizeableTitle$1 = function ResizeableTitle(props) {
|
|
8070
8530
|
var onResize = props.onResize,
|
|
8071
8531
|
width = props.width,
|
|
8072
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
8532
|
+
restProps = _objectWithoutProperties(props, _excluded$6);
|
|
8073
8533
|
if (!width) {
|
|
8074
8534
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
8075
8535
|
}
|
|
@@ -8309,7 +8769,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8309
8769
|
});
|
|
8310
8770
|
};
|
|
8311
8771
|
var handleSubmit = /*#__PURE__*/function () {
|
|
8312
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8772
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8313
8773
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
8314
8774
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8315
8775
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8392,10 +8852,10 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8392
8852
|
var newColumns = arr.map(function (col) {
|
|
8393
8853
|
return _objectSpread2({}, col);
|
|
8394
8854
|
});
|
|
8395
|
-
var
|
|
8855
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
8396
8856
|
var i = indexArr.shift();
|
|
8397
8857
|
if (indexArr.length > 0) {
|
|
8398
|
-
|
|
8858
|
+
handleIndex(arr[i].children, indexArr);
|
|
8399
8859
|
} else {
|
|
8400
8860
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
8401
8861
|
width: size.width
|
|
@@ -8403,17 +8863,17 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8403
8863
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
8404
8864
|
}
|
|
8405
8865
|
};
|
|
8406
|
-
|
|
8866
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
8407
8867
|
callback(newColumns);
|
|
8408
8868
|
};
|
|
8409
8869
|
};
|
|
8410
|
-
var
|
|
8870
|
+
var handleColumns = function handleColumns(arr, indexArr, callback) {
|
|
8411
8871
|
arr.forEach(function (item, index) {
|
|
8412
8872
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
8413
8873
|
return i || i === 0;
|
|
8414
8874
|
});
|
|
8415
8875
|
if (noEmptyArray$1(item.children)) {
|
|
8416
|
-
|
|
8876
|
+
handleColumns(item.children, indexArrInside);
|
|
8417
8877
|
} else {
|
|
8418
8878
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
8419
8879
|
item.onHeaderCell = function (column) {
|
|
@@ -8429,7 +8889,7 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
8429
8889
|
handleAntdColumnsSpecialParams(item);
|
|
8430
8890
|
return _objectSpread2({}, item);
|
|
8431
8891
|
});
|
|
8432
|
-
|
|
8892
|
+
handleColumns(showSelectedCol, [], function (res) {
|
|
8433
8893
|
return setShowColumnsCallback(res);
|
|
8434
8894
|
});
|
|
8435
8895
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -8743,7 +9203,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8743
9203
|
});
|
|
8744
9204
|
};
|
|
8745
9205
|
// 格式化树选择器数据源
|
|
8746
|
-
var
|
|
9206
|
+
var mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
|
|
8747
9207
|
var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
|
|
8748
9208
|
return {
|
|
8749
9209
|
title: treeDataItem[resKeyValue[1]],
|
|
@@ -8753,7 +9213,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8753
9213
|
isLeaf: !haveChildren,
|
|
8754
9214
|
disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
|
|
8755
9215
|
children: haveChildren ? treeDataItem.children.map(function (i) {
|
|
8756
|
-
return
|
|
9216
|
+
return mapSearchTree(i, resKeyValue, disabledJudge);
|
|
8757
9217
|
}) : []
|
|
8758
9218
|
};
|
|
8759
9219
|
};
|
|
@@ -8767,7 +9227,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
8767
9227
|
disabledJudge = false;
|
|
8768
9228
|
}
|
|
8769
9229
|
var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
|
|
8770
|
-
return
|
|
9230
|
+
return mapSearchTree(ites, resKeyValue, disabledJudge);
|
|
8771
9231
|
}) || [];
|
|
8772
9232
|
changeSearchForm[changePosition].field.props.treeData = formatData;
|
|
8773
9233
|
};
|
|
@@ -9005,7 +9465,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9005
9465
|
// 商品选择器sku
|
|
9006
9466
|
if (type === 'skuCommodity') {
|
|
9007
9467
|
requestConfig = _objectSpread2({
|
|
9008
|
-
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/
|
|
9468
|
+
url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/v4"),
|
|
9009
9469
|
filter: 'skuCodeAndSkuName',
|
|
9010
9470
|
searchStartLength: 4,
|
|
9011
9471
|
mappingTextField: 'name',
|
|
@@ -9088,6 +9548,12 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
9088
9548
|
}
|
|
9089
9549
|
}
|
|
9090
9550
|
}
|
|
9551
|
+
}, {
|
|
9552
|
+
name: 'UNIQUE_SPEC',
|
|
9553
|
+
label: '属性',
|
|
9554
|
+
field: {
|
|
9555
|
+
type: 'proppertySelector'
|
|
9556
|
+
}
|
|
9091
9557
|
}];
|
|
9092
9558
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
9093
9559
|
pageSize: 5000,
|
|
@@ -12817,7 +13283,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
12817
13283
|
};
|
|
12818
13284
|
return /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
|
|
12819
13285
|
onClick: handleShowModal
|
|
12820
|
-
}, buttonProps), buttonName), modalProps.visible && (/*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
13286
|
+
}, buttonProps), buttonName), modalProps.visible && ( /*#__PURE__*/React$1.createElement(Modal, _objectSpread2(_objectSpread2({}, modalProps), {}, {
|
|
12821
13287
|
onOk: handleOk,
|
|
12822
13288
|
onCancel: handleCancel,
|
|
12823
13289
|
destroyOnClose: true,
|
|
@@ -12881,7 +13347,7 @@ function getStorageVale(storageKeyString) {
|
|
|
12881
13347
|
return "";
|
|
12882
13348
|
}
|
|
12883
13349
|
|
|
12884
|
-
var _excluded$
|
|
13350
|
+
var _excluded$7 = ["ctx", "value", "valueName", "onChange", "onChangeName", "placeholder", "remoteSource", "initialValue", "treeCheckable", "showSearch", "maxTagCount", "multiple", "isChoose", "rootDisabled", "mode", "getPopupContainer", "labelInValue", "showArrow", "allowClear", "showCheckedStrategy", "style", "getTreeData", "disabled"];
|
|
12885
13351
|
var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
12886
13352
|
var _useState = useState([]),
|
|
12887
13353
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12923,7 +13389,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12923
13389
|
} : _props$style,
|
|
12924
13390
|
getTreeData = props.getTreeData,
|
|
12925
13391
|
disabled = props.disabled,
|
|
12926
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
13392
|
+
restProps = _objectWithoutProperties(props, _excluded$7);
|
|
12927
13393
|
var url = remoteSource.url,
|
|
12928
13394
|
headers = remoteSource.headers,
|
|
12929
13395
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
@@ -12936,7 +13402,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12936
13402
|
treeChildrenRoom = _remoteSource$treeChi === void 0 ? 'children' : _remoteSource$treeChi,
|
|
12937
13403
|
_remoteSource$special = remoteSource.specialBracket,
|
|
12938
13404
|
specialBracket = _remoteSource$special === void 0 ? false : _remoteSource$special;
|
|
12939
|
-
var
|
|
13405
|
+
var mapSearchTree = function mapSearchTree(treeDataItem) {
|
|
12940
13406
|
var haveChildren = Array.isArray(treeDataItem[treeChildrenRoom]) && treeDataItem[treeChildrenRoom].length > 0; // 盘算是否为父节点
|
|
12941
13407
|
var isRoot = (treeDataItem === null || treeDataItem === void 0 ? void 0 : treeDataItem.id) == '0'; // 判断是否为根节点
|
|
12942
13408
|
return {
|
|
@@ -12948,7 +13414,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12948
13414
|
isLeaf: !haveChildren,
|
|
12949
13415
|
disabled: isDisabled(haveChildren, isRoot),
|
|
12950
13416
|
children: haveChildren ? treeDataItem[treeChildrenRoom].map(function (i) {
|
|
12951
|
-
return
|
|
13417
|
+
return mapSearchTree(i);
|
|
12952
13418
|
}) : []
|
|
12953
13419
|
};
|
|
12954
13420
|
};
|
|
@@ -12966,8 +13432,8 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12966
13432
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
12967
13433
|
requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
12968
13434
|
headers: headers
|
|
12969
|
-
}).then(/*#__PURE__*/function () {
|
|
12970
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
13435
|
+
}).then( /*#__PURE__*/function () {
|
|
13436
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
12971
13437
|
var _ctx$form;
|
|
12972
13438
|
var resData, coverData, data, dataList;
|
|
12973
13439
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -12994,7 +13460,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
12994
13460
|
case 9:
|
|
12995
13461
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
12996
13462
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
12997
|
-
return
|
|
13463
|
+
return mapSearchTree(ites);
|
|
12998
13464
|
}) || [];
|
|
12999
13465
|
case 11:
|
|
13000
13466
|
_context.next = 14;
|
|
@@ -13032,11 +13498,11 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13032
13498
|
return _formatResult;
|
|
13033
13499
|
}
|
|
13034
13500
|
};
|
|
13035
|
-
var
|
|
13501
|
+
var parallelData = function parallelData(data, result) {
|
|
13036
13502
|
data.forEach(function (i) {
|
|
13037
13503
|
result.push(i);
|
|
13038
13504
|
if (i[treeChildrenRoom]) {
|
|
13039
|
-
|
|
13505
|
+
parallelData(i[treeChildrenRoom], result);
|
|
13040
13506
|
}
|
|
13041
13507
|
});
|
|
13042
13508
|
return result;
|
|
@@ -13076,7 +13542,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13076
13542
|
var _ctx$form2;
|
|
13077
13543
|
var handleData = formatData(data);
|
|
13078
13544
|
// 获取选中树节点当条数据,并返回给调用业务
|
|
13079
|
-
var parallelTreeData =
|
|
13545
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13080
13546
|
var currentItem = getSelectItem(parallelTreeData, data);
|
|
13081
13547
|
onChange(handleData, data, currentItem, parallelTreeData);
|
|
13082
13548
|
onChangeName && onChangeName(dataName);
|
|
@@ -13119,7 +13585,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13119
13585
|
var getShowStr = function getShowStr() {
|
|
13120
13586
|
var isMultiple = multiple || treeCheckable;
|
|
13121
13587
|
var kongValue = '无';
|
|
13122
|
-
var parallelTreeData =
|
|
13588
|
+
var parallelTreeData = parallelData(treeData, []);
|
|
13123
13589
|
var currentItem = getSelectItem(parallelTreeData, value); // 得到选中的数据项
|
|
13124
13590
|
if (isMultiple) {
|
|
13125
13591
|
return (currentItem === null || currentItem === void 0 ? void 0 : currentItem.map(function (i) {
|
|
@@ -13131,7 +13597,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13131
13597
|
var isShouldShowStr = (disabled || mode === 'view' || (ctx === null || ctx === void 0 ? void 0 : ctx.mode) === 'view') && ctx;
|
|
13132
13598
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
13133
13599
|
className: 'tree_search_select'
|
|
13134
|
-
}, isShouldShowStr ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13600
|
+
}, isShouldShowStr ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13135
13601
|
title: getShowStr(),
|
|
13136
13602
|
style: {
|
|
13137
13603
|
overflow: 'hidden',
|
|
@@ -13139,7 +13605,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
13139
13605
|
whiteSpace: 'nowrap'
|
|
13140
13606
|
},
|
|
13141
13607
|
className: 'search_select_show'
|
|
13142
|
-
}, getShowStr())) : (/*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13608
|
+
}, getShowStr())) : ( /*#__PURE__*/React$1.createElement(TreeSelect, _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
13143
13609
|
treeCheckable: treeCheckable,
|
|
13144
13610
|
maxTagCount: maxTagCount,
|
|
13145
13611
|
showSearch: showSearch,
|
|
@@ -13308,8 +13774,8 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React$1.memo(BusinessTreeSearchSel
|
|
|
13308
13774
|
return true;
|
|
13309
13775
|
});
|
|
13310
13776
|
|
|
13311
|
-
var css_248z$
|
|
13312
|
-
styleInject(css_248z$
|
|
13777
|
+
var css_248z$a = ".state-flow .form-status-label {\n height: 28px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.state-flow .choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.state-flow .form-status-label:last-child {\n margin-right: 0px;\n}\n.state-flow .form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.state-flow .form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:first-child {\n padding-left: 10px;\n}\n.state-flow .form-status-label:not(:first-child) {\n padding-left: 15px;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::before {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.state-flow .form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -28px;\n top: 0;\n width: 28px;\n height: 28px;\n border: 14px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.state-flow .status-label-index {\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1px solid #FFFFFF;\n color: #FFFFFF;\n border-radius: 50%;\n font-family: Montserrat;\n font-size: 14px;\n line-height: 24px;\n text-align: center;\n margin: 0 6px 0 20px;\n}\n.state-flow .status-label-key {\n width: auto;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n color: #FFFFFF;\n font-size: 14px;\n}\n.state-flow .status-label-operate {\n float: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 12px;\n margin: 8px 0;\n margin-left: 8px;\n padding-left: 8px;\n font-size: 10px;\n border-left: 1px solid #FFFFFF;\n}\n.state-flow .status-label-operate > div {\n font-size: 12px;\n height: 12px;\n line-height: 12px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.state-flow .status-label-operate > div:first-child {\n font-size: 10px;\n font-weight: 400;\n}\n.state-flow .only-one-child.form-status-label::after,\n.state-flow .only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
13778
|
+
styleInject(css_248z$a);
|
|
13313
13779
|
|
|
13314
13780
|
var index$2 = (function (props) {
|
|
13315
13781
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
@@ -13336,7 +13802,7 @@ var index$2 = (function (props) {
|
|
|
13336
13802
|
} : {}
|
|
13337
13803
|
}, item.text)), /*#__PURE__*/React$1.createElement("div", {
|
|
13338
13804
|
className: 'status-label-operate'
|
|
13339
|
-
}, item.isDone ? (/*#__PURE__*/React$1.createElement("div", {
|
|
13805
|
+
}, item.isDone ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
13340
13806
|
title: "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--')
|
|
13341
13807
|
}, "".concat(item.modifyUserName || '--', " ").concat(item.modifyTime || '--'))) : null), /*#__PURE__*/React$1.createElement("div", {
|
|
13342
13808
|
style: {
|
|
@@ -13346,10 +13812,10 @@ var index$2 = (function (props) {
|
|
|
13346
13812
|
}));
|
|
13347
13813
|
});
|
|
13348
13814
|
|
|
13349
|
-
var css_248z$
|
|
13350
|
-
styleInject(css_248z$
|
|
13815
|
+
var css_248z$b = ".guide-wrapper .form-guide {\n cursor: pointer;\n position: fixed;\n right: 5px;\n color: #B1BAD4;\n padding: 5px 0;\n width: 48px;\n z-index: 10;\n top: 50%;\n transform: translateY(-50%);\n background-color: #141620;\n border-radius: 5px;\n}\n.guide-wrapper .form-guide .form-guide-top {\n padding: 0px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-center {\n border-top: 1px solid #6E7588;\n border-bottom: 1px solid #6E7588;\n padding: 0px 10px;\n}\n.guide-wrapper .form-guide .form-guide-item {\n width: 28px;\n padding: 5px 0;\n display: block;\n word-break: break-all;\n color: #B1BAD4;\n font-size: 14px;\n line-height: 16px;\n position: relative;\n}\n.guide-wrapper .form-guide .form-guide-item::after {\n content: '';\n display: block;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .form-guide .form-guide-bottom {\n padding: 5px 10px;\n display: flex;\n justify-content: center;\n}\n.guide-wrapper .form-guide .form-guide-item:last-child::after {\n content: '';\n display: none;\n width: 15px;\n height: 1px;\n background-color: #6E7588;\n position: absolute;\n bottom: 0px;\n left: 7px;\n}\n.guide-wrapper .white-card.bitsun-form-card-class .guidewrapper-body-wrapper {\n background-color: #FFFFFF;\n padding: 0px;\n}\n.guide-wrapper .bitsun-form-card-class > .guidewrapper-body-wrapper {\n margin-bottom: 10px;\n}\n.guide-wrapper .bitsun-form-card-class .guidewrapper-body-wrapper {\n padding: 12px 0 0;\n background-color: #F3F3F3;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title {\n display: flex;\n align-items: center;\n font-size: 16px;\n color: #000000;\n font-weight: 600;\n background-color: #FFFFFF;\n padding: 8px 0;\n margin: 0px;\n}\n.guide-wrapper .bitsun-form-card-class .ant-card-head-title .title-left-line {\n display: inline-block;\n width: 4px;\n height: 100%;\n background-color: #005cff;\n height: 20px;\n margin-right: 16px;\n}\n.guide-wrapper .field-group-hidden .guidewrapper-body-wrapper {\n display: none !important;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap {\n cursor: pointer;\n color: #B6B6B6;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon {\n transition: transform 0.3s;\n}\n.guide-wrapper .bs-guidewrap-icon-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.guidewrapper-head-wrap {\n padding-left: 16px;\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background: #fff;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left {\n display: flex;\n align-items: center;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left::before {\n content: '';\n display: block;\n width: 3px;\n background: #005cff;\n height: 20px;\n}\n.guidewrapper-head-wrap .guidewrapper-head-left .guidewrapper-head-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n padding: 0 6px;\n}\n.guidewrapper-head-border {\n border-bottom: 1px solid #F0F0F0;\n}\n.guidewrapper-title-extra-wrap {\n padding-left: 5px;\n}\n";
|
|
13816
|
+
styleInject(css_248z$b);
|
|
13351
13817
|
|
|
13352
|
-
var _excluded$
|
|
13818
|
+
var _excluded$8 = ["children", "titleExtra", "title", "extra", "bordered"],
|
|
13353
13819
|
_excluded2$3 = ["children"];
|
|
13354
13820
|
var Field = function Field(_ref) {
|
|
13355
13821
|
var children = _ref.children,
|
|
@@ -13357,7 +13823,7 @@ var Field = function Field(_ref) {
|
|
|
13357
13823
|
title = _ref.title,
|
|
13358
13824
|
extra = _ref.extra,
|
|
13359
13825
|
bordered = _ref.bordered,
|
|
13360
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
13826
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
13361
13827
|
var _React$useState = React$1.useState(true),
|
|
13362
13828
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13363
13829
|
fieldGroupVisible = _React$useState2[0],
|
|
@@ -13481,10 +13947,10 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
13481
13947
|
})));
|
|
13482
13948
|
};
|
|
13483
13949
|
|
|
13484
|
-
var css_248z$
|
|
13485
|
-
styleInject(css_248z$
|
|
13950
|
+
var css_248z$c = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
13951
|
+
styleInject(css_248z$c);
|
|
13486
13952
|
|
|
13487
|
-
var _excluded$
|
|
13953
|
+
var _excluded$9 = ["className", "style"];
|
|
13488
13954
|
var Search$1 = Input.Search;
|
|
13489
13955
|
var DragHandle$1 = SortableHandle(function () {
|
|
13490
13956
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
@@ -13902,7 +14368,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
13902
14368
|
_this.DraggableBodyRow = function (_ref2) {
|
|
13903
14369
|
var className = _ref2.className,
|
|
13904
14370
|
style = _ref2.style,
|
|
13905
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
14371
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$9);
|
|
13906
14372
|
var sortDataSource = _this.state.sortDataSource;
|
|
13907
14373
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
13908
14374
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -14117,7 +14583,7 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14117
14583
|
style: {
|
|
14118
14584
|
width: 525
|
|
14119
14585
|
}
|
|
14120
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14586
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
14121
14587
|
checked: !dataSource.some(function (item) {
|
|
14122
14588
|
if (item.hidden) return true;
|
|
14123
14589
|
return false;
|
|
@@ -14155,13 +14621,13 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14155
14621
|
_this2.onChange(e, item.title);
|
|
14156
14622
|
}
|
|
14157
14623
|
}, item.title);
|
|
14158
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
14624
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
14159
14625
|
style: {
|
|
14160
14626
|
width: '144px'
|
|
14161
14627
|
}
|
|
14162
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
14628
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
14163
14629
|
className: 'sort_table_column_all_empty'
|
|
14164
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14630
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
14165
14631
|
className: 'sort_table_column_special'
|
|
14166
14632
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
14167
14633
|
className: 'sort_table_column_all'
|
|
@@ -14234,8 +14700,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14234
14700
|
}]);
|
|
14235
14701
|
}(React$1.Component);
|
|
14236
14702
|
|
|
14237
|
-
var css_248z$
|
|
14238
|
-
styleInject(css_248z$
|
|
14703
|
+
var css_248z$d = ".table_sum_wrapper {\n position: absolute;\n overflow: hidden;\n width: 80%;\n height: 26px;\n bottom: 0;\n}\n.table_sum_wrapper .table-bssula-summary {\n height: 40px;\n right: 0;\n bottom: -20px;\n white-space: nowrap;\n overflow-x: auto;\n}\n.sum_right_line {\n position: absolute;\n right: 20%;\n bottom: 0;\n width: 16px;\n height: 26px;\n opacity: 0.32;\n transform: scaleX(-1);\n background-image: linear-gradient(270deg, #ffffff00 0%, #A4A4A4 100%);\n}\n";
|
|
14704
|
+
styleInject(css_248z$d);
|
|
14239
14705
|
|
|
14240
14706
|
//表格底部 金额总计
|
|
14241
14707
|
var TableSumComponent = (function (_ref) {
|
|
@@ -14256,7 +14722,7 @@ var TableSumComponent = (function (_ref) {
|
|
|
14256
14722
|
}));
|
|
14257
14723
|
});
|
|
14258
14724
|
|
|
14259
|
-
var _excluded$
|
|
14725
|
+
var _excluded$a = ["onResize", "width"],
|
|
14260
14726
|
_excluded2$4 = ["style", "columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
14261
14727
|
var Text = Typography.Text;
|
|
14262
14728
|
var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -14340,10 +14806,10 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14340
14806
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14341
14807
|
return _objectSpread2({}, col);
|
|
14342
14808
|
});
|
|
14343
|
-
var
|
|
14809
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14344
14810
|
var i = indexArr.shift();
|
|
14345
14811
|
if (indexArr.length > 0) {
|
|
14346
|
-
|
|
14812
|
+
handleIndex(arr[i].children, indexArr);
|
|
14347
14813
|
} else {
|
|
14348
14814
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14349
14815
|
width: size.width
|
|
@@ -14351,7 +14817,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14351
14817
|
handleBssulaColumnsSpecialParams(arr[i]);
|
|
14352
14818
|
}
|
|
14353
14819
|
};
|
|
14354
|
-
|
|
14820
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14355
14821
|
_this.setState({
|
|
14356
14822
|
showColumns: _toConsumableArray(newColumns)
|
|
14357
14823
|
});
|
|
@@ -14360,7 +14826,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14360
14826
|
_this.ResizeableTitle = function (props) {
|
|
14361
14827
|
var onResize = props.onResize,
|
|
14362
14828
|
width = props.width,
|
|
14363
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
14829
|
+
restProps = _objectWithoutProperties(props, _excluded$a);
|
|
14364
14830
|
var _useState = useState(width),
|
|
14365
14831
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14366
14832
|
innerWidth = _useState2[0],
|
|
@@ -14392,7 +14858,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14392
14858
|
};
|
|
14393
14859
|
setIsResizing(true);
|
|
14394
14860
|
document.addEventListener('mousemove', handleMouseMove);
|
|
14395
|
-
document.addEventListener('mouseup',
|
|
14861
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
14396
14862
|
};
|
|
14397
14863
|
var handleMouseMove = function handleMouseMove(e) {
|
|
14398
14864
|
e.stopPropagation();
|
|
@@ -14408,9 +14874,9 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14408
14874
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
14409
14875
|
}
|
|
14410
14876
|
};
|
|
14411
|
-
var
|
|
14877
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
14412
14878
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
14413
|
-
document.removeEventListener('mouseup',
|
|
14879
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
14414
14880
|
setIsResizing(false);
|
|
14415
14881
|
};
|
|
14416
14882
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -14531,13 +14997,13 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14531
14997
|
showSummary = summary;
|
|
14532
14998
|
}
|
|
14533
14999
|
}
|
|
14534
|
-
var
|
|
15000
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14535
15001
|
arr.forEach(function (item, index) {
|
|
14536
15002
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14537
15003
|
return i || i === 0;
|
|
14538
15004
|
});
|
|
14539
15005
|
if (noEmptyArray$1(item.children)) {
|
|
14540
|
-
|
|
15006
|
+
handleColumns(item.children, indexArrInside);
|
|
14541
15007
|
} else {
|
|
14542
15008
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14543
15009
|
item.onHeaderCell = function (column) {
|
|
@@ -14553,7 +15019,7 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14553
15019
|
handleBssulaColumnsSpecialParams(item);
|
|
14554
15020
|
return _objectSpread2({}, item);
|
|
14555
15021
|
});
|
|
14556
|
-
|
|
15022
|
+
handleColumns(showCol, []);
|
|
14557
15023
|
if (dynamicColumns.length) {
|
|
14558
15024
|
showCol = this.handledynamicColumns(showCol);
|
|
14559
15025
|
}
|
|
@@ -14594,14 +15060,14 @@ var ColumnSettingSulaTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14594
15060
|
cell: this.ResizeableTitle
|
|
14595
15061
|
}
|
|
14596
15062
|
}
|
|
14597
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15063
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14598
15064
|
summary: summary
|
|
14599
15065
|
})));
|
|
14600
15066
|
}
|
|
14601
15067
|
}]);
|
|
14602
15068
|
}(React$1.Component);
|
|
14603
15069
|
|
|
14604
|
-
var _excluded$
|
|
15070
|
+
var _excluded$b = ["onResize", "width"],
|
|
14605
15071
|
_excluded2$5 = ["columns", "tableCode", "appRequestConfig", "summary", "dynamicColumns", "scroll"];
|
|
14606
15072
|
var Text$1 = Typography.Text;
|
|
14607
15073
|
var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
@@ -14691,10 +15157,10 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14691
15157
|
var newColumns = _this.state.showColumns.map(function (col) {
|
|
14692
15158
|
return _objectSpread2({}, col);
|
|
14693
15159
|
});
|
|
14694
|
-
var
|
|
15160
|
+
var handleIndex = function handleIndex(arr, indexArr) {
|
|
14695
15161
|
var i = indexArr.shift();
|
|
14696
15162
|
if (indexArr.length > 0) {
|
|
14697
|
-
|
|
15163
|
+
handleIndex(arr[i].children, indexArr);
|
|
14698
15164
|
} else {
|
|
14699
15165
|
arr[i] = _objectSpread2(_objectSpread2({}, arr[i]), {}, {
|
|
14700
15166
|
width: size.width
|
|
@@ -14702,7 +15168,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14702
15168
|
handleAntdColumnsSpecialParams(arr[i]);
|
|
14703
15169
|
}
|
|
14704
15170
|
};
|
|
14705
|
-
|
|
15171
|
+
handleIndex(newColumns, _toConsumableArray(index));
|
|
14706
15172
|
_this.setState({
|
|
14707
15173
|
showColumns: _toConsumableArray(newColumns)
|
|
14708
15174
|
});
|
|
@@ -14711,7 +15177,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14711
15177
|
_this.ResizeableTitle = function (props) {
|
|
14712
15178
|
var onResize = props.onResize,
|
|
14713
15179
|
width = props.width,
|
|
14714
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15180
|
+
restProps = _objectWithoutProperties(props, _excluded$b);
|
|
14715
15181
|
if (!width) {
|
|
14716
15182
|
return /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps));
|
|
14717
15183
|
}
|
|
@@ -14778,13 +15244,13 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14778
15244
|
showSummary = summary;
|
|
14779
15245
|
}
|
|
14780
15246
|
}
|
|
14781
|
-
var
|
|
15247
|
+
var handleColumns = function handleColumns(arr, indexArr) {
|
|
14782
15248
|
arr.forEach(function (item, index) {
|
|
14783
15249
|
var indexArrInside = [].concat(_toConsumableArray(indexArr), [index]).filter(function (i) {
|
|
14784
15250
|
return i || i === 0;
|
|
14785
15251
|
});
|
|
14786
15252
|
if (noEmptyArray$1(item.children)) {
|
|
14787
|
-
|
|
15253
|
+
handleColumns(item.children, indexArrInside);
|
|
14788
15254
|
} else {
|
|
14789
15255
|
item.width = item.width || getItemDefaultWidth$2(item);
|
|
14790
15256
|
item.onHeaderCell = function (column) {
|
|
@@ -14800,7 +15266,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14800
15266
|
handleAntdColumnsSpecialParams(item);
|
|
14801
15267
|
return _objectSpread2({}, item);
|
|
14802
15268
|
});
|
|
14803
|
-
|
|
15269
|
+
handleColumns(showCol, []);
|
|
14804
15270
|
if (dynamicColumns.length) {
|
|
14805
15271
|
showCol = this.handledynamicColumns(showCol);
|
|
14806
15272
|
}
|
|
@@ -14840,7 +15306,7 @@ var ColumnSettingTable = /*#__PURE__*/function (_React$Component) {
|
|
|
14840
15306
|
cell: this.ResizeableTitle
|
|
14841
15307
|
}
|
|
14842
15308
|
}
|
|
14843
|
-
}, otherTableInfo)), Array.isArray(summary) && (/*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
15309
|
+
}, otherTableInfo)), Array.isArray(summary) && ( /*#__PURE__*/React$1.createElement(TableSumComponent, {
|
|
14844
15310
|
summary: summary
|
|
14845
15311
|
})));
|
|
14846
15312
|
}
|
|
@@ -14900,20 +15366,20 @@ var judgeIsEmpty$1 = function judgeIsEmpty(value) {
|
|
|
14900
15366
|
};
|
|
14901
15367
|
var getMainCrumbNameMap = function getMainCrumbNameMap(menuData) {
|
|
14902
15368
|
var routerMap = {};
|
|
14903
|
-
var
|
|
15369
|
+
var flattenMenuData = function flattenMenuData(data, parent) {
|
|
14904
15370
|
var pNameMap = parent.nameMap ? _toConsumableArray(parent.nameMap) : [];
|
|
14905
15371
|
data.forEach(function (menuItem) {
|
|
14906
15372
|
var newMenuItem = _objectSpread2(_objectSpread2({}, menuItem), {}, {
|
|
14907
15373
|
nameMap: [].concat(_toConsumableArray(pNameMap), [menuItem.name])
|
|
14908
15374
|
});
|
|
14909
15375
|
if (newMenuItem.children) {
|
|
14910
|
-
|
|
15376
|
+
flattenMenuData(newMenuItem.children, newMenuItem);
|
|
14911
15377
|
}
|
|
14912
15378
|
// Reduce memory usage
|
|
14913
15379
|
routerMap[menuItem.path] = _objectSpread2({}, newMenuItem);
|
|
14914
15380
|
});
|
|
14915
15381
|
};
|
|
14916
|
-
|
|
15382
|
+
flattenMenuData(menuData, {});
|
|
14917
15383
|
return routerMap;
|
|
14918
15384
|
};
|
|
14919
15385
|
// mode类型判断
|
|
@@ -14974,8 +15440,8 @@ var getDetailMatchRoute = function getDetailMatchRoute(path, routeObj, hideRoute
|
|
|
14974
15440
|
return undefined;
|
|
14975
15441
|
};
|
|
14976
15442
|
|
|
14977
|
-
var css_248z$
|
|
14978
|
-
styleInject(css_248z$
|
|
15443
|
+
var css_248z$e = ".bs_detail_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.detail_page_head {\n height: 32px;\n z-index: 5;\n display: flex;\n align-items: center;\n background-color: #FFFFFF;\n font-weight: 500;\n}\n.detail_page_head .ant-breadcrumb {\n display: block !important;\n}\n.detail_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.detail_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n cursor: pointer;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n.detail_page_head .ant-breadcrumb li .bread_name_pre:hover {\n color: #000000d9;\n}\n.detail_page_wrapper {\n height: calc(100vh - 80px);\n}\n.back_home_img_content {\n display: inline-block;\n height: 16px;\n width: 16px;\n border: 1px solid #BABABA;\n margin: 0 8px 0 10px;\n border-radius: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.back_home_img_content .anticon-arrow-left {\n color: #BABABA;\n}\n.back_home_img_content:hover {\n background-color: #005cff;\n border: 1px solid #005cff;\n}\n.back_home_img_content:hover .anticon-arrow-left {\n color: #FFFFFF;\n}\n.detail_page_title_box {\n flex-grow: 1;\n display: flex;\n align-items: center;\n}\n.detail_page_title {\n height: 20px;\n font-family: PingFangSC;\n font-weight: 600;\n font-size: 14px;\n padding-right: 10px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n display: none;\n}\n.detail_page_btns {\n display: flex;\n gap: 8px;\n margin-right: 20px;\n}\n.detail_page_btns button {\n height: 24px !important;\n display: flex;\n align-items: center;\n gap: 2px;\n border-radius: 3px;\n padding: 0 10px;\n}\n.detail_page_btns .ant-btn-dangerous {\n background-color: #EC5246 !important;\n}\n";
|
|
15444
|
+
styleInject(css_248z$e);
|
|
14979
15445
|
|
|
14980
15446
|
var quanping = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2234px%22%20height%3D%2234px%22%20viewBox%3D%220%200%2034%2034%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%9F%A9%E5%BD%A2%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%88%97%E8%A1%A8%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%98%9F%E6%BE%9C-%E6%90%9C%E7%B4%A2-%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%28-1823.000000%2C%20-297.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%90%9C%E7%B4%A2%E7%BB%84%E4%BB%B6-%E6%A0%B7%E5%BC%8F%E4%B8%80%22%20transform%3D%22translate%28230.000000%2C%20284.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%A1%AE%E5%AE%9A%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%281593.000000%2C%2013.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.55801813%2C1%20L28.4419819%2C1%20C30.0269041%2C1%2030.6016352%2C1.16502331%2031.181059%2C1.47490258%20C31.7604829%2C1.78478186%2032.2152181%2C2.2395171%2032.5250974%2C2.81894097%20C32.8349767%2C3.39836484%2033%2C3.97309593%2033%2C5.55801813%20L33%2C28.4419819%20C33%2C30.0269041%2032.8349767%2C30.6016352%2032.5250974%2C31.181059%20C32.2152181%2C31.7604829%2031.7604829%2C32.2152181%2031.181059%2C32.5250974%20C30.6016352%2C32.8349767%2030.0269041%2C33%2028.4419819%2C33%20L5.55801813%2C33%20C3.97309593%2C33%203.39836484%2C32.8349767%202.81894097%2C32.5250974%20C2.2395171%2C32.2152181%201.78478186%2C31.7604829%201.47490258%2C31.181059%20C1.16502331%2C30.6016352%201%2C30.0269041%201%2C28.4419819%20L1%2C5.55801813%20C1%2C3.97309593%201.16502331%2C3.39836484%201.47490258%2C2.81894097%20C1.78478186%2C2.2395171%202.2395171%2C1.78478186%202.81894097%2C1.47490258%20C3.39836484%2C1.16502331%203.97309593%2C1%205.55801813%2C1%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23D9D9D9%22%20stroke-width%3D%220.888888889%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22scanning%22%20transform%3D%22translate%289.000000%2C%209.000000%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21873562%2C9.69278114%20L6.28954184%2C10.7432953%20L2.532%2C14.5%20L5.24949999%2C14.5%20L5.24949999%2C16%20L1.5%2C16%20C0.671572876%2C16%200%2C15.3284271%200%2C14.5%20L0%2C11%20L1.5%2C11%20L1.5%2C13.41%20L5.21873562%2C9.69278114%20Z%20M10.7898541%2C9.72266777%20L14.499%2C13.431%20L14.5%2C11%20L16%2C11%20L16%2C14.5%20C16%2C15.3284271%2015.3284271%2C16%2014.5%2C16%20L10.7495%2C16%20L10.7495%2C14.5%20L13.446%2C14.5%20L9.71904783%2C10.7731819%20L10.7898541%2C9.72266777%20Z%20M14.5%2C0%20C15.3284271%2C0%2016%2C0.671572876%2016%2C1.5%20L16%2C5%20L14.5%2C5%20L14.499%2C2.588%20L10.779708%2C6.3074783%20L9.71904783%2C5.24681813%20L13.465%2C1.5%20L10.75%2C1.5%20L10.75%2C0%20L14.5%2C0%20Z%20M5.25000001%2C0%20L5.25000001%2C1.5%20L2.567%2C1.5%20L6.31400442%2C5.24681813%20L5.25334424%2C6.3074783%20L1.5%2C2.554%20L1.5%2C5%20L0%2C5%20L0%2C1.5%20C0%2C0.671572876%200.671572876%2C0%201.5%2C0%20L5.25000001%2C0%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
14981
15447
|
|
|
@@ -14989,15 +15455,15 @@ var deleteIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
14989
15455
|
|
|
14990
15456
|
var moreIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2220px%22%20height%3D%2220px%22%20viewBox%3D%220%200%2020%2020%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2014%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E9%A1%B6%E9%83%A8%E5%AF%BC%E8%88%AA%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9C%80%E6%96%B0%E6%A1%86%E6%9E%B6-%E4%B8%8B%E6%8B%89%E5%BC%8F%E5%B1%95%E5%BC%80%22%20transform%3D%22translate%28-1743.000000%2C%20-94.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-7%22%20transform%3D%22translate%28160.000000%2C%2050.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22tab%E5%AF%BC%E8%88%AA%E5%A4%87%E4%BB%BD-7%22%20transform%3D%22translate%280.000000%2C%2026.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-3%22%20transform%3D%22translate%281573.000000%2C%2012.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%2810.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E8%92%99%E7%89%88%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2220%22%20height%3D%2220%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22nonzero%22%20transform%3D%22translate%2810.500000%2C%2010.022232%29%20rotate%28-90.000000%29%20translate%28-10.500000%2C%20-10.022232%29%20%22%20points%3D%2214%204.9775377%2013.0224623%204%207%2010.0252289%2013.0220012%2016.0444635%2014%2015.0660036%208.95599763%2010.0247678%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
14991
15457
|
|
|
14992
|
-
var css_248z$
|
|
14993
|
-
styleInject(css_248z$
|
|
15458
|
+
var css_248z$f = "";
|
|
15459
|
+
styleInject(css_248z$f);
|
|
14994
15460
|
|
|
14995
|
-
var _excluded$
|
|
15461
|
+
var _excluded$c = ["message", "type"];
|
|
14996
15462
|
var CommonAlert = (function (props) {
|
|
14997
15463
|
var message = props.message,
|
|
14998
15464
|
_props$type = props.type,
|
|
14999
15465
|
type = _props$type === void 0 ? 'info' : _props$type,
|
|
15000
|
-
reset = _objectWithoutProperties(props, _excluded$
|
|
15466
|
+
reset = _objectWithoutProperties(props, _excluded$c);
|
|
15001
15467
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15002
15468
|
style: {
|
|
15003
15469
|
width: '100%',
|
|
@@ -15018,7 +15484,7 @@ var CommonAlert = (function (props) {
|
|
|
15018
15484
|
}, reset)));
|
|
15019
15485
|
});
|
|
15020
15486
|
|
|
15021
|
-
var _excluded$
|
|
15487
|
+
var _excluded$d = ["children"];
|
|
15022
15488
|
var iconMap = {
|
|
15023
15489
|
edit: /*#__PURE__*/React$1.createElement("img", {
|
|
15024
15490
|
src: editIcon
|
|
@@ -15040,7 +15506,7 @@ var index$3 = (function (props) {
|
|
|
15040
15506
|
_useState2 = _slicedToArray(_useState, 1),
|
|
15041
15507
|
id = _useState2[0];
|
|
15042
15508
|
var children = props.children,
|
|
15043
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15509
|
+
restProps = _objectWithoutProperties(props, _excluded$d);
|
|
15044
15510
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15045
15511
|
id: id,
|
|
15046
15512
|
className: 'detail_page_wrapper'
|
|
@@ -15239,7 +15705,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15239
15705
|
display: 'flex',
|
|
15240
15706
|
gap: '8px'
|
|
15241
15707
|
}
|
|
15242
|
-
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? (/*#__PURE__*/React$1.createElement("a", null, isFullScreen ? (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15708
|
+
}, renderPageActionList(actionList), !donotNeedShowScreenIcon ? ( /*#__PURE__*/React$1.createElement("a", null, isFullScreen ? ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15243
15709
|
title: "\u53D6\u6D88\u5168\u5C4F"
|
|
15244
15710
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15245
15711
|
onClick: function onClick() {
|
|
@@ -15247,7 +15713,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15247
15713
|
},
|
|
15248
15714
|
width: 24,
|
|
15249
15715
|
src: scanning
|
|
15250
|
-
}))) : (/*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15716
|
+
}))) : ( /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
15251
15717
|
title: "\u5168\u5C4F"
|
|
15252
15718
|
}, /*#__PURE__*/React$1.createElement("img", {
|
|
15253
15719
|
onClick: function onClick() {
|
|
@@ -15255,7 +15721,7 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15255
15721
|
},
|
|
15256
15722
|
width: 24,
|
|
15257
15723
|
src: quanping
|
|
15258
|
-
}))))) : null)), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15724
|
+
}))))) : null)), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15259
15725
|
}, function (prevProps, nextProps) {
|
|
15260
15726
|
if (JSON.stringify(prevProps.actionList) != JSON.stringify(nextProps.actionList) || prevProps.title !== nextProps.title) {
|
|
15261
15727
|
return false;
|
|
@@ -15263,10 +15729,10 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15263
15729
|
return true;
|
|
15264
15730
|
});
|
|
15265
15731
|
|
|
15266
|
-
var css_248z$
|
|
15267
|
-
styleInject(css_248z$
|
|
15732
|
+
var css_248z$g = ".bs_home_page_head_wrapper {\n height: 32px;\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
|
|
15733
|
+
styleInject(css_248z$g);
|
|
15268
15734
|
|
|
15269
|
-
var _excluded$
|
|
15735
|
+
var _excluded$e = ["children"];
|
|
15270
15736
|
var index$4 = (function (props) {
|
|
15271
15737
|
var _useLocation = useLocation(),
|
|
15272
15738
|
pathname = _useLocation.pathname;
|
|
@@ -15274,7 +15740,7 @@ var index$4 = (function (props) {
|
|
|
15274
15740
|
_useState2 = _slicedToArray(_useState, 1),
|
|
15275
15741
|
id = _useState2[0];
|
|
15276
15742
|
var children = props.children,
|
|
15277
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
15743
|
+
restProps = _objectWithoutProperties(props, _excluded$e);
|
|
15278
15744
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15279
15745
|
id: id,
|
|
15280
15746
|
className: 'home_page_wrapper'
|
|
@@ -15340,7 +15806,7 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15340
15806
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
15341
15807
|
className: "".concat(index === breadcrumbArr.length - 1 ? 'bread_name_last' : '', " bread_name")
|
|
15342
15808
|
}, item));
|
|
15343
|
-
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && (/*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15809
|
+
}))), extra ? /*#__PURE__*/React$1.createElement(Space, null, extra) : ''), alertProps && ( /*#__PURE__*/React$1.createElement(CommonAlert, _objectSpread2({}, alertProps))));
|
|
15344
15810
|
}, function (prevProps, nextProps) {
|
|
15345
15811
|
if (prevProps.title !== nextProps.title) {
|
|
15346
15812
|
return false;
|
|
@@ -15348,10 +15814,10 @@ var HeaderWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
|
15348
15814
|
return true;
|
|
15349
15815
|
});
|
|
15350
15816
|
|
|
15351
|
-
var css_248z$
|
|
15352
|
-
styleInject(css_248z$
|
|
15817
|
+
var css_248z$h = ".sort_table_wrapper .sort_table {\n display: flex;\n}\n.sort_table_wrapper .sort_table .sort_table_column_wrapper {\n width: 560px;\n margin-right: 8px;\n}\n.sort_table_wrapper .sort_table .sort_table_content_wrapper {\n width: 210px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count,\n.sort_table_wrapper .sort_table .sort_table_content_count {\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column_count span,\n.sort_table_wrapper .sort_table .sort_table_content_count span {\n color: #8E8E8E;\n}\n.sort_table_wrapper .sort_table .sort_table_column {\n margin-top: 10px;\n width: 560px;\n height: 430px;\n overflow: auto;\n padding: 10px;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n}\n.sort_table_wrapper .sort_table .sort_table_column_all_empty {\n width: 538px;\n line-height: 360px;\n text-align: center;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n}\n.sort_table_wrapper .sort_table .sort_table_column_special {\n margin-top: 40px;\n width: 100px;\n height: 20px;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #848484;\n letter-spacing: 0;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper {\n width: 144px;\n height: 16px;\n line-height: 16px;\n margin-top: 16px;\n}\n.sort_table_wrapper .sort_table .sort_table_column .ant-checkbox-wrapper + .ant-checkbox-wrapper {\n margin-left: 0px;\n}\n.sort_table_wrapper .sort_table .sort_table_content {\n height: 430px;\n margin-top: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border: 1px solid #d9d9d9;\n border-radius: 5px;\n}\n.sort_table_wrapper .sort_table .sort_table_content .ant-table-wrapper {\n padding: 0px !important;\n}\n.sort_table_wrapper .sort_table .sort_table_content .sort_table_title {\n height: 32px;\n line-height: 32px;\n padding-left: 10px;\n color: gray;\n}\n.sort_table_wrapper .ant-modal-body {\n padding: 10px 16px;\n}\n.sort_table_wrapper .ant-modal-close-x {\n height: 24px;\n font-family: PingFangSC-Medium;\n font-weight: 500;\n font-size: 18px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-input-affix-wrapper {\n padding: 0px;\n padding-right: 10px;\n}\n.sort_table_wrapper input {\n height: 22px;\n padding: 6px 4px;\n border-radius: 5px;\n}\n.sort_table_wrapper .ant-input-prefix {\n width: 24px;\n height: 24px;\n margin: 0 4px;\n display: flex;\n justify-content: center;\n}\n.sort_table_wrapper .ant-modal-footer {\n padding: 8px 16px;\n display: flex;\n justify-content: space-between;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn {\n width: 80px;\n height: 28px;\n}\n.sort_table_wrapper .ant-modal-footer .ant-btn span {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 12px;\n letter-spacing: 0;\n text-align: center;\n line-height: 20px;\n}\n.sort_table_wrapper .ant-table-wrapper::-webkit-scrollbar {\n display: none;\n}\n.sort_table_wrapper .ant-table-wrapper {\n margin-top: 10px;\n height: 364px;\n overflow: scroll;\n padding-bottom: 50px;\n}\n.sort_table_wrapper .ant-table-wrapper tr {\n height: 30px;\n}\n.sort_table_wrapper .ant-table-wrapper tr td {\n width: 24px !important;\n height: 30px !important;\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #000000;\n letter-spacing: 0;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:first-child {\n padding-left: 10px !important;\n padding-right: 0px !important;\n width: 108px !important;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 30px !important;\n line-height: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td img {\n cursor: pointer;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:not(:first-child) {\n padding-left: 0px !important;\n padding-right: 0px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child {\n padding-left: 0px !important;\n padding-right: 3px !important;\n width: 30px !important;\n}\n.sort_table_wrapper .ant-table-wrapper tr td:last-child img {\n position: relative;\n top: 1px;\n}\n.sort_table_wrapper .ant-dropdown-link {\n cursor: pointer;\n}\n";
|
|
15818
|
+
styleInject(css_248z$h);
|
|
15353
15819
|
|
|
15354
|
-
var _excluded$
|
|
15820
|
+
var _excluded$f = ["className", "style"];
|
|
15355
15821
|
var DragHandle$2 = SortableHandle(function () {
|
|
15356
15822
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
15357
15823
|
width: 25,
|
|
@@ -15789,7 +16255,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15789
16255
|
_this.DraggableBodyRow = function (_ref2) {
|
|
15790
16256
|
var className = _ref2.className,
|
|
15791
16257
|
style = _ref2.style,
|
|
15792
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
16258
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$f);
|
|
15793
16259
|
var sortDataSource = _this.state.sortDataSource;
|
|
15794
16260
|
// function findIndex base on Table rowKey props and should always be a right array index
|
|
15795
16261
|
var index = sortDataSource.findIndex(function (x) {
|
|
@@ -15980,7 +16446,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15980
16446
|
});
|
|
15981
16447
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
15982
16448
|
className: 'sort_table_wrapper'
|
|
15983
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
16449
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
15984
16450
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
15985
16451
|
wrapClassName: 'sort_table_wrapper',
|
|
15986
16452
|
width: 810,
|
|
@@ -16031,7 +16497,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16031
16497
|
width: 525,
|
|
16032
16498
|
height: 24
|
|
16033
16499
|
}
|
|
16034
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16500
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16035
16501
|
checked: !dataSource.some(function (item) {
|
|
16036
16502
|
if (item.hidden) return true;
|
|
16037
16503
|
return false;
|
|
@@ -16085,13 +16551,13 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16085
16551
|
_this2.onChange(e, item.title);
|
|
16086
16552
|
}
|
|
16087
16553
|
}, item.title);
|
|
16088
|
-
}), !!seatchDataSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
16554
|
+
}), !!seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16089
16555
|
style: {
|
|
16090
16556
|
width: '144px'
|
|
16091
16557
|
}
|
|
16092
|
-
})), !seatchDataSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
16558
|
+
})), !seatchDataSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16093
16559
|
className: 'sort_table_column_all_empty'
|
|
16094
|
-
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16560
|
+
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))), !searchDataSource && ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
16095
16561
|
className: 'sort_table_column_special'
|
|
16096
16562
|
}, /*#__PURE__*/React$1.createElement("span", null, "\u4EBA\u5458\u65F6\u95F4\u5B57\u6BB5")), /*#__PURE__*/React$1.createElement("div", {
|
|
16097
16563
|
className: 'sort_table_column_all'
|
|
@@ -16159,7 +16625,7 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16159
16625
|
}]);
|
|
16160
16626
|
}(React$1.Component);
|
|
16161
16627
|
|
|
16162
|
-
var _excluded$
|
|
16628
|
+
var _excluded$g = ["className", "style"];
|
|
16163
16629
|
var DragHandle$3 = SortableHandle(function () {
|
|
16164
16630
|
return /*#__PURE__*/React$1.createElement("img", {
|
|
16165
16631
|
width: 25,
|
|
@@ -16412,7 +16878,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16412
16878
|
_this.DraggableBodyRow = function (_ref2) {
|
|
16413
16879
|
var className = _ref2.className,
|
|
16414
16880
|
style = _ref2.style,
|
|
16415
|
-
restProps = _objectWithoutProperties(_ref2, _excluded$
|
|
16881
|
+
restProps = _objectWithoutProperties(_ref2, _excluded$g);
|
|
16416
16882
|
var sortDataSource = _this.state.sortDataSource;
|
|
16417
16883
|
var index = sortDataSource.findIndex(function (x) {
|
|
16418
16884
|
return x.name === restProps['data-row-key'];
|
|
@@ -16565,7 +17031,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16565
17031
|
});
|
|
16566
17032
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
16567
17033
|
className: 'sort_table_wrapper'
|
|
16568
|
-
}, visible && (/*#__PURE__*/React$1.createElement(Modal, {
|
|
17034
|
+
}, visible && ( /*#__PURE__*/React$1.createElement(Modal, {
|
|
16569
17035
|
title: "\u7B5B\u9009\u6761\u4EF6\u8BBE\u7F6E",
|
|
16570
17036
|
wrapClassName: 'sort_table_wrapper',
|
|
16571
17037
|
width: 820,
|
|
@@ -16610,7 +17076,7 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16610
17076
|
style: {
|
|
16611
17077
|
width: 525
|
|
16612
17078
|
}
|
|
16613
|
-
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && (/*#__PURE__*/React$1.createElement(Checkbox, {
|
|
17079
|
+
}), /*#__PURE__*/React$1.createElement("div", null, !searchDataSource && ( /*#__PURE__*/React$1.createElement(Checkbox, {
|
|
16614
17080
|
checked: !dataSource.some(function (item) {
|
|
16615
17081
|
if (item.hidden) return true;
|
|
16616
17082
|
return false;
|
|
@@ -16646,11 +17112,11 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16646
17112
|
_this2.onChange(e, item.name);
|
|
16647
17113
|
}
|
|
16648
17114
|
}, item.label);
|
|
16649
|
-
}), !!newSearchSource.length && (/*#__PURE__*/React$1.createElement("span", {
|
|
17115
|
+
}), !!newSearchSource.length && ( /*#__PURE__*/React$1.createElement("span", {
|
|
16650
17116
|
style: {
|
|
16651
17117
|
width: '144px'
|
|
16652
17118
|
}
|
|
16653
|
-
})), !newSearchSource.length && (/*#__PURE__*/React$1.createElement("div", {
|
|
17119
|
+
})), !newSearchSource.length && ( /*#__PURE__*/React$1.createElement("div", {
|
|
16654
17120
|
className: 'sort_table_column_all_empty'
|
|
16655
17121
|
}, "\u672A\u67E5\u8BE2\u5230\u7ED3\u679C"))))), /*#__PURE__*/React$1.createElement("div", {
|
|
16656
17122
|
className: 'sort_table_content_wrapper'
|
|
@@ -16708,16 +17174,16 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
|
|
|
16708
17174
|
}]);
|
|
16709
17175
|
}(React$1.Component);
|
|
16710
17176
|
|
|
16711
|
-
var css_248z$
|
|
16712
|
-
styleInject(css_248z$
|
|
17177
|
+
var css_248z$i = "#bs-sula-query-table .ant-table-title + .ant-table-container table {\n visibility: unset !important;\n}\n";
|
|
17178
|
+
styleInject(css_248z$i);
|
|
16713
17179
|
|
|
16714
|
-
var _excluded$
|
|
17180
|
+
var _excluded$h = ["onResize", "width"];
|
|
16715
17181
|
var MemoQueryTable = /*#__PURE__*/React$1.memo(QueryTable);
|
|
16716
17182
|
var Text$2 = Typography.Text;
|
|
16717
17183
|
var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
16718
17184
|
var onResize = props.onResize,
|
|
16719
17185
|
width = props.width,
|
|
16720
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
17186
|
+
restProps = _objectWithoutProperties(props, _excluded$h);
|
|
16721
17187
|
var _useState = useState(width),
|
|
16722
17188
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16723
17189
|
innerWidth = _useState2[0],
|
|
@@ -16749,7 +17215,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16749
17215
|
};
|
|
16750
17216
|
setIsResizing(true);
|
|
16751
17217
|
document.addEventListener('mousemove', handleMouseMove);
|
|
16752
|
-
document.addEventListener('mouseup',
|
|
17218
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
16753
17219
|
};
|
|
16754
17220
|
var handleMouseMove = function handleMouseMove(e) {
|
|
16755
17221
|
e.stopPropagation();
|
|
@@ -16765,9 +17231,9 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
|
|
|
16765
17231
|
dom.style.top = "".concat(e.clientY - 20, "px");
|
|
16766
17232
|
}
|
|
16767
17233
|
};
|
|
16768
|
-
var
|
|
17234
|
+
var handleMouseUp = function handleMouseUp(e) {
|
|
16769
17235
|
document.removeEventListener('mousemove', handleMouseMove);
|
|
16770
|
-
document.removeEventListener('mouseup',
|
|
17236
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
16771
17237
|
setIsResizing(false);
|
|
16772
17238
|
};
|
|
16773
17239
|
var handleresize = function handleresize(e, data, title) {
|
|
@@ -17178,7 +17644,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17178
17644
|
actionsRender = actionsRender.concat([{
|
|
17179
17645
|
type: 'text',
|
|
17180
17646
|
props: {
|
|
17181
|
-
children: (/*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17647
|
+
children: ( /*#__PURE__*/React$1.createElement(ExportIcon, {
|
|
17182
17648
|
request: {
|
|
17183
17649
|
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),
|
|
17184
17650
|
params: value === null || value === void 0 ? void 0 : (_value$exportConfig4 = value.exportConfig) === null || _value$exportConfig4 === void 0 ? void 0 : _value$exportConfig4.params
|
|
@@ -17424,7 +17890,7 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17424
17890
|
datasource: (value === null || value === void 0 ? void 0 : value.columns) || [],
|
|
17425
17891
|
bsTableCode: bsTableCode,
|
|
17426
17892
|
onlyModal: true
|
|
17427
|
-
}), (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, {
|
|
17893
|
+
}), (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, {
|
|
17428
17894
|
ref: exportTableRef,
|
|
17429
17895
|
setShowColumns: setShowExportColumns,
|
|
17430
17896
|
setInitialTableInfo: setInitialTableInfo,
|
|
@@ -17435,8 +17901,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17435
17901
|
})));
|
|
17436
17902
|
});
|
|
17437
17903
|
|
|
17438
|
-
var css_248z$
|
|
17439
|
-
styleInject(css_248z$
|
|
17904
|
+
var css_248z$j = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.allFunsList {\n margin-bottom: 10px;\n}\n.isClons {\n position: relative;\n left: -8px;\n width: 30px;\n height: 36px;\n}\n.drawerWarp {\n -moz-column-count: 3;\n column-count: 3;\n}\n.allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n.searchTop {\n display: flex;\n align-items: center;\n}\n.searchTopInp {\n width: 528px;\n height: 40px;\n background: #f8f9fa;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.searchTopInp .ant-input {\n background: #f8f9fa;\n}\n.searchTopBtn {\n position: relative;\n left: -1px;\n width: 92px;\n height: 40px;\n background: #005cff;\n border-radius: 0px 4px 4px 0px;\n}\n.contentWarp {\n margin-top: 54px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005CFF;\n}\n.serachView {\n margin-top: 36px;\n margin-bottom: 32px;\n}\n.content {\n display: flex;\n flex-wrap: wrap;\n}\n.content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.content div:hover {\n cursor: pointer;\n}\n";
|
|
17905
|
+
styleInject(css_248z$j);
|
|
17440
17906
|
|
|
17441
17907
|
var cache = {};
|
|
17442
17908
|
var cacheLimit = 10000;
|
|
@@ -17517,11 +17983,11 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17517
17983
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
17518
17984
|
var resultList = [];
|
|
17519
17985
|
var newRouter = cloneDeep(router);
|
|
17520
|
-
var
|
|
17986
|
+
var deep = function deep(router) {
|
|
17521
17987
|
if (router && Array.isArray(router)) {
|
|
17522
17988
|
router.forEach(function (item) {
|
|
17523
17989
|
if (item.children && Array.isArray(item.children)) {
|
|
17524
|
-
|
|
17990
|
+
deep(item.children);
|
|
17525
17991
|
} else if (!item.hideInMenu && (name ? item.name.indexOf(name) !== -1 : true) && btnAuth.find(function (d) {
|
|
17526
17992
|
return d === item.code;
|
|
17527
17993
|
})) {
|
|
@@ -17535,10 +18001,10 @@ var searchMenuData = function searchMenuData(router, name, callBack) {
|
|
|
17535
18001
|
resultList.push(_objectSpread2({}, router));
|
|
17536
18002
|
}
|
|
17537
18003
|
};
|
|
17538
|
-
|
|
18004
|
+
deep(newRouter);
|
|
17539
18005
|
callBack([].concat(resultList));
|
|
17540
18006
|
};
|
|
17541
|
-
var
|
|
18007
|
+
var setMenuTreeData = function setMenuTreeData(routesData) {
|
|
17542
18008
|
var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
|
|
17543
18009
|
var _loop = function _loop(i) {
|
|
17544
18010
|
if (routesData[i].hideInMenu) {
|
|
@@ -17552,7 +18018,7 @@ var _setMenuTreeData = function setMenuTreeData(routesData) {
|
|
|
17552
18018
|
return 0; // continue
|
|
17553
18019
|
}
|
|
17554
18020
|
if (routesData[i].children) {
|
|
17555
|
-
|
|
18021
|
+
setMenuTreeData(routesData[i].children);
|
|
17556
18022
|
}
|
|
17557
18023
|
},
|
|
17558
18024
|
_ret;
|
|
@@ -17573,16 +18039,16 @@ var setLoginOutPath = function setLoginOutPath() {
|
|
|
17573
18039
|
};
|
|
17574
18040
|
var getBreadcrumbNameMap$1 = function getBreadcrumbNameMap(menuData) {
|
|
17575
18041
|
var routerMap = {};
|
|
17576
|
-
var
|
|
18042
|
+
var flattenMenuData = function flattenMenuData(data) {
|
|
17577
18043
|
data.forEach(function (menuItem) {
|
|
17578
18044
|
if (menuItem.children) {
|
|
17579
|
-
|
|
18045
|
+
flattenMenuData(menuItem.children);
|
|
17580
18046
|
}
|
|
17581
18047
|
// Reduce memory usage
|
|
17582
18048
|
routerMap[menuItem.path] = menuItem;
|
|
17583
18049
|
});
|
|
17584
18050
|
};
|
|
17585
|
-
|
|
18051
|
+
flattenMenuData(menuData);
|
|
17586
18052
|
return routerMap;
|
|
17587
18053
|
};
|
|
17588
18054
|
var ergodicMenuRoutes$1 = function ergodicMenuRoutes(routes) {
|
|
@@ -17692,8 +18158,8 @@ var AllFunc = function AllFunc(props) {
|
|
|
17692
18158
|
})))));
|
|
17693
18159
|
};
|
|
17694
18160
|
|
|
17695
|
-
var css_248z$
|
|
17696
|
-
styleInject(css_248z$
|
|
18161
|
+
var css_248z$k = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.warp_allfunc {\n z-index: 100;\n}\n.warp_allfunc .drawerWarp {\n -moz-column-count: 4;\n column-count: 4;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 40px;\n border: 0px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-list-header b {\n width: 100%;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.warp_allfunc .drawer_header_warp .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.warp_allfunc .drawer_header_warp .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.warp_allfunc .p {\n color: #b1bad4;\n font-weight: 400;\n font-size: 12px;\n margin-bottom: 10px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n opacity: 0.8;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: center;\n margin-left: 8px;\n}\n.warp_allfunc .btn {\n display: flex;\n align-items: center;\n height: 44px;\n color: #b1bad4;\n background: #10234c;\n border-radius: 8px;\n width: 130px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.warp_allfunc .btn:hover,\n.warp_allfunc .btnSpan1:hover,\n.warp_allfunc .btnSpan2:hover {\n cursor: pointer;\n color: #b1bad4;\n}\n.warp_allfunc .btnSpan1 {\n margin: 0 7px;\n}\n.allfunc_drawcontent .allFunsList {\n margin-bottom: 10px;\n}\n.allfunc_drawcontent .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.allfunc_drawcontent .drawerWarp_p {\n color: #8c8c8c;\n font-weight: 400;\n font-size: 14px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 20px;\n text-align: left;\n}\n";
|
|
18162
|
+
styleInject(css_248z$k);
|
|
17697
18163
|
|
|
17698
18164
|
var allfunc = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Eicon%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-20.000000%2C%20-1016.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-5%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%280.000000%2C%20900.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E6%9F%A5%E7%9C%8B%E5%85%A8%E9%83%A8%E5%8A%9F%E8%83%BD%22%20transform%3D%22translate%2810.000000%2C%2046.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22icon%22%20transform%3D%22translate%2810.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22navigation-icon-allfunctions%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22category%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%205.000000%29%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.24999999%2C12.3585414%20L2.24999999%2C14%20L0%2C14%20L0%2C12.3585414%20L2.24999999%2C12.3585414%20Z%20M18%2C12.3585414%20L18%2C14%20L3.375%2C14%20L3.375%2C12.3585414%20L18%2C12.3585414%20Z%20M2.24999999%2C6.17954431%20L2.24999999%2C7.82100286%20L0%2C7.82100286%20L0%2C6.17954431%20L2.24999999%2C6.17954431%20L2.24999999%2C6.17954431%20Z%20M18%2C6.17954431%20L18%2C7.82100286%20L3.375%2C7.82100286%20L3.375%2C6.17954431%20L18%2C6.17954431%20L18%2C6.17954431%20Z%20M2.24999999%2C0%20L2.24999999%2C1.64145855%20L0%2C1.64145855%20L0%2C0%20L2.24999999%2C0%20L2.24999999%2C0%20Z%20M18%2C0%20L18%2C1.64145855%20L3.375%2C1.64145855%20L3.375%2C0%20L18%2C0%20L18%2C0%20Z%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
17699
18165
|
|
|
@@ -17728,7 +18194,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17728
18194
|
sethomepageData(homepageDataList);
|
|
17729
18195
|
setroutesData(routesDataList);
|
|
17730
18196
|
}, []);
|
|
17731
|
-
var
|
|
18197
|
+
var renderChildItem = function renderChildItem(child) {
|
|
17732
18198
|
if (!child.hideInMenu && child.children) {
|
|
17733
18199
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
17734
18200
|
style: {
|
|
@@ -17738,7 +18204,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17738
18204
|
}, formatMessage({
|
|
17739
18205
|
id: "".concat(child.locale)
|
|
17740
18206
|
})), child.children.map(function (menuItem) {
|
|
17741
|
-
return
|
|
18207
|
+
return renderChildItem(menuItem);
|
|
17742
18208
|
}));
|
|
17743
18209
|
} else if (!child.hideInMenu && child.path) {
|
|
17744
18210
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -17773,7 +18239,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17773
18239
|
className: 'drawerWarp'
|
|
17774
18240
|
}, homepageData && homepageData.filter(function (d) {
|
|
17775
18241
|
return !d.hideInMenu;
|
|
17776
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
18242
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
17777
18243
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
17778
18244
|
dataSource: homepageData,
|
|
17779
18245
|
renderItem: function renderItem(child) {
|
|
@@ -17808,7 +18274,7 @@ var DrawContent = function DrawContent(_ref) {
|
|
|
17808
18274
|
bordered: true,
|
|
17809
18275
|
dataSource: item.children,
|
|
17810
18276
|
renderItem: function renderItem(child) {
|
|
17811
|
-
return
|
|
18277
|
+
return renderChildItem(child);
|
|
17812
18278
|
}
|
|
17813
18279
|
});
|
|
17814
18280
|
})));
|
|
@@ -17868,7 +18334,7 @@ var AllFunc$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17868
18334
|
src: allfunc
|
|
17869
18335
|
})), /*#__PURE__*/React$1.createElement("span", {
|
|
17870
18336
|
className: 'btnSpan2'
|
|
17871
|
-
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
18337
|
+
}, "\u67E5\u770B\u5168\u90E8\u529F\u80FD")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
17872
18338
|
style: {
|
|
17873
18339
|
left: isDrawer ? 140 : 0,
|
|
17874
18340
|
top: 50
|
|
@@ -17901,8 +18367,8 @@ var i18n = {
|
|
|
17901
18367
|
}
|
|
17902
18368
|
};
|
|
17903
18369
|
|
|
17904
|
-
var css_248z$
|
|
17905
|
-
styleInject(css_248z$
|
|
18370
|
+
var css_248z$l = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.rcom_right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.rcom_right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.rcom_right .action > span {\n vertical-align: middle;\n}\n.rcom_right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.rcom_right .search {\n padding: 0 12px;\n}\n.rcom_right .search:hover {\n background: transparent;\n}\n.rcom_right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.rcom_right .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_dark .action:hover {\n background: #252a3d;\n}\n.rcom_dark .action .opened {\n background: #252a3d;\n}\n.rcom_dark .ant-space-item {\n margin: 0 10px 0 0;\n}\n.rcom_imgWap {\n position: relative;\n display: flex;\n align-items: center;\n}\n.rcom_imgWap .rcom_headLine {\n width: 1px;\n height: 16px;\n margin-right: 20px;\n background: #cacaca;\n}\n.rcom_imgWap img {\n width: 22px;\n height: 22px;\n margin-right: 20px;\n}\n.rcom_userWarp {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 142px;\n height: 35px;\n margin-right: 10px;\n border: 1px solid #c8c8c8;\n border-radius: 4px;\n}\n.rcom_userWarp .rcom_l {\n margin-left: 4px;\n}\n.rcom_userWarp .rcom_l img {\n margin-right: 0;\n width: 36px;\n height: 36px;\n}\n.rcom_userWarp .rcom_c {\n display: flex;\n flex-direction: column;\n}\n.rcom_userWarp .rcom_c .rcom_ct {\n color: #000000;\n font-weight: 500;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_c .rcom_cb {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 10px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 14px;\n text-align: left;\n}\n.rcom_userWarp .rcom_r {\n margin-right: 9px;\n}\n.rcom_.userWarp:hover,\n.rcom_c:hover,\n.rcom_l:hover,\n.rcom_r:hover {\n cursor: pointer;\n}\n.userDownWarp {\n width: 217px;\n margin-top: 4px;\n background: #ffffff;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n}\n.userDownWarp .userDownTop {\n display: flex;\n flex-direction: column;\n align-items: center;\n height: 155px;\n padding: 20px 0;\n border-bottom: 1px solid #d9d9d9;\n}\n.userDownWarp .userDownTop .userDownTopT {\n width: 68px;\n height: 68px;\n border-radius: 50%;\n}\n.userDownWarp .userDownTop .userDownTopC {\n color: #000000;\n font-weight: 500;\n font-size: 14px;\n font-family: Montserrat, Montserrat-Medium;\n line-height: 26px;\n text-align: center;\n}\n.userDownWarp .userDownTop .userDownTopB {\n color: #bfbfbf;\n font-weight: 400;\n font-size: 12px;\n font-family: Montserrat, Montserrat-Regular;\n line-height: 15px;\n text-align: center;\n}\n.userDownWarp .userDownB .userDownBList,\n.userDownWarp .userDownB .userDownOut {\n display: flex;\n align-items: center;\n height: 36px;\n background: #ffffff;\n border-bottom: 1px solid #f3f3f3;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label,\n.userDownWarp .userDownB .userDownOut .rcom_label {\n margin: 0 4px 0 20px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_label img,\n.userDownWarp .userDownB .userDownOut .rcom_label img {\n width: 16px;\n height: 16px;\n}\n.userDownWarp .userDownB .userDownBList .rcom_name,\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #000000;\n font-weight: 400;\n font-size: 12px;\n font-family: PingFangSC, PingFangSC-Regular;\n line-height: 16px;\n text-align: left;\n}\n.userDownWarp .userDownB .userDownBList:hover,\n.userDownWarp .userDownB .userDownOut:hover {\n cursor: pointer;\n}\n.userDownWarp .userDownB .userDownOut {\n height: 46px;\n border-bottom: none;\n}\n.userDownWarp .userDownB .userDownOut .rcom_name {\n color: #fe0300;\n}\n";
|
|
18371
|
+
styleInject(css_248z$l);
|
|
17906
18372
|
|
|
17907
18373
|
var Morentouxiang = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2240px%22%20viewBox%3D%220%200%2040%2040%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E32%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22path-1%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2213%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%3Cfilter%20x%3D%22-40.4%25%22%20y%3D%22-40.4%25%22%20width%3D%22180.8%25%22%20height%3D%22180.8%25%22%20filterUnits%3D%22objectBoundingBox%22%20id%3D%22filter-2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeOffset%20dx%3D%220%22%20dy%3D%220%22%20in%3D%22SourceAlpha%22%20result%3D%22shadowOffsetOuter1%22%3E%3C%2FfeOffset%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeGaussianBlur%20stdDeviation%3D%223.5%22%20in%3D%22shadowOffsetOuter1%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeGaussianBlur%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeComposite%20in%3D%22shadowBlurOuter1%22%20in2%3D%22SourceAlpha%22%20operator%3D%22out%22%20result%3D%22shadowBlurOuter1%22%3E%3C%2FfeComposite%3E%20%20%20%20%20%20%20%20%20%20%20%20%3CfeColorMatrix%20values%3D%220%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%20%200%200%200%200%200.949019608%20%200%200%200%201%200%22%20type%3D%22matrix%22%20in%3D%22shadowBlurOuter1%22%3E%3C%2FfeColorMatrix%3E%20%20%20%20%20%20%20%20%3C%2Ffilter%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22-----6.1-%E9%BB%98%E8%AE%A4%E5%9B%BE%E7%89%87%2F-Default-picture%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22B-Design-%E4%BD%93%E9%AA%8C%E8%A7%84%E8%8C%83%22%20transform%3D%22translate%28-1119.000000%2C%20-988.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%2232%22%20transform%3D%22translate%281126.000000%2C%20995.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%9C%86%E5%BD%A2%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20fill%3D%22black%22%20fill-opacity%3D%221%22%20filter%3D%22url%28%23filter-2%29%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20stroke%3D%22%23FFFFFF%22%20stroke-width%3D%220.8328125%22%20stroke-linejoin%3D%22square%22%20fill%3D%22%23EDF4FF%22%20fill-rule%3D%22evenodd%22%20cx%3D%2213%22%20cy%3D%2213%22%20r%3D%2212.5835938%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15.644709%2C13.6190476%20L18.9119048%2C15.0892857%20L18.9119048%2C19.5%20L7.15%2C19.5%20L7.15%2C15.0892857%20L10.4171958%2C13.6190476%20L15.644709%2C13.6190476%20Z%20M16.1261905%2C16.4047619%20L13.65%2C16.4047619%20L13.65%2C17.6428571%20L16.1261905%2C17.6428571%20L16.1261905%2C16.4047619%20Z%20M13.1857143%2C6.5%20C14.9806397%2C6.5%2016.4357143%2C7.95507456%2016.4357143%2C9.75%20C16.4357143%2C11.5449254%2014.9806397%2C13%2013.1857143%2C13%20C11.3907888%2C13%209.93571429%2C11.5449254%209.93571429%2C9.75%20C9.93571429%2C7.95507456%2011.3907888%2C6.5%2013.1857143%2C6.5%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20fill%3D%22%239AC4FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
17908
18374
|
|
|
@@ -17914,7 +18380,7 @@ function outLogin(_x) {
|
|
|
17914
18380
|
return _outLogin.apply(this, arguments);
|
|
17915
18381
|
}
|
|
17916
18382
|
function _outLogin() {
|
|
17917
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18383
|
+
_outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
17918
18384
|
var res;
|
|
17919
18385
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17920
18386
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18056,7 +18522,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18056
18522
|
});
|
|
18057
18523
|
};
|
|
18058
18524
|
var loginOut = /*#__PURE__*/function () {
|
|
18059
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18525
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
18060
18526
|
var sessionId;
|
|
18061
18527
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18062
18528
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18160,7 +18626,7 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
18160
18626
|
marginRight: '0px'
|
|
18161
18627
|
},
|
|
18162
18628
|
src: './xialajiantou-new.svg'
|
|
18163
|
-
}))))), loginModalParams.visible && (/*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18629
|
+
}))))), loginModalParams.visible && ( /*#__PURE__*/React$1.createElement(LoginModal, _objectSpread2({}, loginModalParams))));
|
|
18164
18630
|
};
|
|
18165
18631
|
|
|
18166
18632
|
// -- 查询店铺 --
|
|
@@ -18168,7 +18634,7 @@ function getStoreByName(_x) {
|
|
|
18168
18634
|
return _getStoreByName.apply(this, arguments);
|
|
18169
18635
|
}
|
|
18170
18636
|
function _getStoreByName() {
|
|
18171
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18637
|
+
_getStoreByName = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
18172
18638
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18173
18639
|
while (1) switch (_context.prev = _context.next) {
|
|
18174
18640
|
case 0:
|
|
@@ -18236,7 +18702,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18236
18702
|
return _fetchUserList.apply(this, arguments);
|
|
18237
18703
|
}
|
|
18238
18704
|
function _fetchUserList() {
|
|
18239
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18705
|
+
_fetchUserList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
|
|
18240
18706
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
18241
18707
|
while (1) switch (_context3.prev = _context3.next) {
|
|
18242
18708
|
case 0:
|
|
@@ -18284,7 +18750,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18284
18750
|
return debounce$1(loadOptions, debounceTimeout);
|
|
18285
18751
|
}, [debounceTimeout, key]);
|
|
18286
18752
|
var changeInput = /*#__PURE__*/function () {
|
|
18287
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18753
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
|
|
18288
18754
|
var res;
|
|
18289
18755
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18290
18756
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -18306,7 +18772,7 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18306
18772
|
};
|
|
18307
18773
|
}();
|
|
18308
18774
|
useEffect(function () {
|
|
18309
|
-
_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18775
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
18310
18776
|
var res;
|
|
18311
18777
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
18312
18778
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -18432,8 +18898,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
18432
18898
|
}))))));
|
|
18433
18899
|
};
|
|
18434
18900
|
|
|
18435
|
-
var css_248z$
|
|
18436
|
-
styleInject(css_248z$
|
|
18901
|
+
var css_248z$m = ".headerContent {\n position: relative;\n display: flex;\n align-items: center;\n height: 100%;\n background: #F3F3F3;\n box-shadow: 0 1px 4px #EBECEC;\n padding-left: 47px;\n}\n.navigationBtn {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 5px;\n margin-right: 15px;\n padding: 0 10px;\n background-color: #F4F6F7;\n cursor: pointer;\n color: rgba(0, 0, 0, 0.5);\n}\n.navigationBtn:hover {\n border-color: #297eff;\n border-right-width: 1px;\n z-index: 1;\n}\n.headerContent {\n background-color: #ffffff;\n}\n.headerContent .ant-input-affix-wrapper,\n.headerContent .ant-input {\n color: rgba(0, 0, 0, 0.5);\n}\n.searchPanel {\n position: absolute;\n top: 36;\n left: 0;\n min-width: 268px;\n height: 220px;\n box-shadow: 0 1px 4px #EBECEC;\n background-color: #FFFFFF;\n overflow-y: auto;\n box-shadow: 0px 2px 4px 0px rgba(185, 185, 185, 0.5);\n padding: 0 10px;\n}\n.searchTitle {\n margin-top: 20px;\n font-size: 14px;\n font-weight: 400;\n text-align: left;\n color: #8c8c8c;\n}\n.themeColor {\n color: #005cff;\n}\n.itemPath {\n height: 30px;\n line-height: 30px;\n width: 100%;\n cursor: pointer;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.itemPath:hover {\n background-color: #E6EEFF;\n}\n";
|
|
18902
|
+
styleInject(css_248z$m);
|
|
18437
18903
|
|
|
18438
18904
|
var judgeIsEmpty$2 = function judgeIsEmpty(value) {
|
|
18439
18905
|
if (value == null || value == undefined || String(value).trim() == '') {
|
|
@@ -18471,7 +18937,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18471
18937
|
var resultList = [];
|
|
18472
18938
|
var newRouter = cloneDeep$1(router);
|
|
18473
18939
|
var btnAuth = JSON.parse(localStorage.getItem(getMenuAuthDataKey()) || '[]');
|
|
18474
|
-
var
|
|
18940
|
+
var deep = function deep(router) {
|
|
18475
18941
|
if (router && Array.isArray(router)) {
|
|
18476
18942
|
router.forEach(function (item) {
|
|
18477
18943
|
if (item.routes && Array.isArray(item.routes)) {
|
|
@@ -18481,7 +18947,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18481
18947
|
d.nameEdit = true;
|
|
18482
18948
|
}
|
|
18483
18949
|
});
|
|
18484
|
-
|
|
18950
|
+
deep(item.routes);
|
|
18485
18951
|
} else if (!item.hideInMenu && (name ? formatMessage({
|
|
18486
18952
|
id: "menu.".concat(item.name)
|
|
18487
18953
|
}).indexOf(name) !== -1 : true)) {
|
|
@@ -18500,7 +18966,7 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18500
18966
|
}));
|
|
18501
18967
|
}
|
|
18502
18968
|
};
|
|
18503
|
-
|
|
18969
|
+
deep(newRouter);
|
|
18504
18970
|
setroutesData([].concat(resultList));
|
|
18505
18971
|
};
|
|
18506
18972
|
var renderLineStyl = function renderLineStyl(name) {
|
|
@@ -18582,22 +19048,22 @@ var GlobalHeaderCom = function GlobalHeaderCom(props) {
|
|
|
18582
19048
|
},
|
|
18583
19049
|
title: item.fullPathName
|
|
18584
19050
|
}, renderLineStyl(item.fullPathName));
|
|
18585
|
-
}))))), showSelectStore && (/*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
19051
|
+
}))))), showSelectStore && ( /*#__PURE__*/React$1.createElement(ChooseStore, {
|
|
18586
19052
|
employeeCode: employeeCode
|
|
18587
19053
|
})), /*#__PURE__*/React$1.createElement(GlobalHeaderRight, null));
|
|
18588
19054
|
};
|
|
18589
19055
|
|
|
18590
19056
|
var addIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2014%401x%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E5%B7%A6%E4%BE%A7%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-21.000000%2C%20-71.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%280.000000%2C%2060.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-15%22%20transform%3D%22translate%2821.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-14%22%20transform%3D%22translate%280.000000%2C%201.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%22%20transform%3D%22translate%284.000000%2C%204.000000%29%22%20fill%3D%22%23B1BAD4%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M8%2C0%20C12.4183529%2C0%2016%2C3.58164706%2016%2C8%20C16%2C12.4183529%2012.4183529%2C16%208%2C16%20C3.58164706%2C16%200%2C12.4183529%200%2C8%20C0%2C3.58164706%203.58164706%2C0%208%2C0%20Z%20M8%2C1.4117647%20C4.36141178%2C1.4117647%201.4117647%2C4.36141175%201.4117647%2C8%20C1.4117647%2C11.6385882%204.36141175%2C14.5882353%208%2C14.5882353%20C11.6385882%2C14.5882353%2014.5882353%2C11.6385882%2014.5882353%2C8%20C14.5882353%2C4.36141175%2011.6385882%2C1.4117647%208%2C1.4117647%20Z%20M8.70588235%2C3.76470589%20L8.70588235%2C7.29411765%20L12.2352941%2C7.29411765%20L12.2352941%2C8.70588235%20L8.70588235%2C8.70588235%20L8.70588235%2C12.2352941%20L7.29411765%2C12.2352941%20L7.29411765%2C8.70541177%20L3.76470589%2C8.70588235%20L3.76470589%2C7.29411765%20L7.29411765%2C7.29364707%20L7.29411765%2C3.76470589%20L8.70588235%2C3.76470589%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
18591
19057
|
|
|
18592
|
-
var css_248z$
|
|
18593
|
-
styleInject(css_248z$
|
|
19058
|
+
var css_248z$n = ".setting_content > div {\n width: 50%;\n box-sizing: border-box;\n margin: 0 10px;\n}\n.setting_content {\n display: flex;\n}\n.tree_title {\n height: 50px;\n}\n.tree_content {\n height: 400px;\n overflow: auto;\n border: 1px solid #d9d9d9;\n padding: 5px;\n}\n.setting_content::after {\n clear: both;\n display: block;\n content: '';\n}\n.choosed_label_color {\n color: #f50;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n flex-grow: 1;\n}\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper .ant-tree-title {\n width: 100%;\n}\n.left_tree_content .ant-tree .ant-tree-treenode {\n width: 100%;\n}\n.right_tree_content .ant-tree .ant-tree-node-content-wrapper,\n.left_tree_content .ant-tree .ant-tree-node-content-wrapper {\n display: flex;\n margin-left: -3px;\n}\n.right_tree_content .ant-tree-checkbox,\n.left_tree_content .ant-tree-checkbox {\n top: auto;\n top: initial;\n}\n.node_title_content:hover .right_arrow {\n display: block !important;\n}\n.right_arrow {\n float: right;\n display: none;\n color: #999999;\n margin-right: 10px;\n}\n.right_tree_content .ant-tree-title {\n width: 100%;\n display: inline-block;\n padding-right: 10px;\n}\n.right_tree_content .ant-dropdown-trigger {\n color: gray !important;\n}\n.right_tree_content .tree_node_title {\n font-size: 20px;\n color: #d9d9d9;\n float: right;\n}\n.right_tree_content .tree_node_title span {\n margin-right: 5px;\n}\n";
|
|
19059
|
+
styleInject(css_248z$n);
|
|
18594
19060
|
|
|
18595
19061
|
var arrowRight = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%20186%E5%A4%87%E4%BB%BD%203%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%85%A8%E5%B1%80%E5%AF%BC%E8%88%AA%E7%9B%B8%E5%85%B3%E5%8A%9F%E8%83%BD%E9%9C%80%E6%B1%82%E8%AE%BE%E8%AE%A1%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%22%20transform%3D%22translate%28-949.000000%2C%20-484.000000%29%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%28534.000000%2C%20180.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%B1%BB%E7%9B%AE%E4%B8%80%E5%A4%87%E4%BB%BD-101%22%20transform%3D%22translate%2831.000000%2C%20298.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-186%E5%A4%87%E4%BB%BD-2%22%20transform%3D%22translate%28384.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-132%E5%A4%87%E4%BB%BD-85%22%20opacity%3D%220%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M24%2C0%20L24%2C24%20L0%2C24%20L0%2C0%20L24%2C0%20Z%20M23.765625%2C0.234375%20L0.234375%2C0.234375%20L0.234375%2C23.765625%20L23.765625%2C23.765625%20L23.765625%2C0.234375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-235%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21.39%2C2.64%20L21.39%2C21.39%20L2.64%2C21.39%20L2.64%2C2.64%20L21.39%2C2.64%20Z%20M21.155625%2C2.874375%20L2.874375%2C2.874375%20L2.874375%2C21.155625%20L21.155625%2C21.155625%20L21.155625%2C2.874375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-236%22%20fill%3D%22%23979797%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M20.22%2C1.56%20L20.22%2C22.56%20L3.72%2C22.56%20L3.72%2C1.56%20L20.22%2C1.56%20Z%20M19.985625%2C1.794375%20L3.954375%2C1.794375%20L3.954375%2C22.325625%20L19.985625%2C22.325625%20L19.985625%2C1.794375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-237%22%20fill%3D%22%23FA6400%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M22.56%2C3.72%20L22.56%2C20.22%20L1.56%2C20.22%20L1.56%2C3.72%20L22.56%2C3.72%20Z%20M22.325625%2C3.954375%20L1.794375%2C3.954375%20L1.794375%2C19.985625%20L22.325625%2C19.985625%20L22.325625%2C3.954375%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-238%22%20fill%3D%22%2344D7B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.06%2C1.56%20C17.8589899%2C1.56%2022.56%2C6.26101013%2022.56%2C12.06%20C22.56%2C17.8589899%2017.8589899%2C22.56%2012.06%2C22.56%20C6.26101013%2C22.56%201.56%2C17.8589899%201.56%2C12.06%20C1.56%2C6.26101013%206.26101013%2C1.56%2012.06%2C1.56%20Z%20M12.06%2C1.794375%20C6.39045187%2C1.794375%201.794375%2C6.39045187%201.794375%2C12.06%20C1.794375%2C17.7295481%206.39045187%2C22.325625%2012.06%2C22.325625%20C17.7295481%2C22.325625%2022.325625%2C17.7295481%2022.325625%2C12.06%20C22.325625%2C6.39045187%2017.7295481%2C1.794375%2012.06%2C1.794375%20Z%22%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%E5%A4%87%E4%BB%BD-59%22%20fill%3D%22%23F7B500%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84%E5%A4%87%E4%BB%BD-43%22%20transform%3D%22translate%281.560000%2C%201.680000%29%22%20fill%3D%22%23999999%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10.44%2C0%20C16.2059506%2C0%2020.88%2C4.67404941%2020.88%2C10.44%20C20.88%2C16.2059506%2016.2059506%2C20.88%2010.44%2C20.88%20C4.67404941%2C20.88%200%2C16.2059506%200%2C10.44%20C0%2C4.67404941%204.67404941%2C0%2010.44%2C0%20Z%20M10.44%2C1.84235294%20C5.69164237%2C1.84235294%201.84235294%2C5.69164234%201.84235294%2C10.44%20C1.84235294%2C15.1883577%205.69164234%2C19.0376471%2010.44%2C19.0376471%20C15.1883577%2C19.0376471%2019.0376471%2C15.1883577%2019.0376471%2C10.44%20C19.0376471%2C5.69164234%2015.1883577%2C1.84235294%2010.44%2C1.84235294%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E5%BD%A2%E7%8A%B6%22%20points%3D%2210.4408066%206.32%2014.3966662%2010.2757133%2010.4408066%2014.2314265%209.2540487%2013.0447125%2011.1949264%2011.1039067%206%2011.1033618%206%209.42518043%2011.1725861%209.42518043%209.25459358%207.50671398%2010.4408066%206.32%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
18596
19062
|
|
|
18597
19063
|
var TreeNode = Tree.TreeNode;
|
|
18598
19064
|
var Search$2 = Input.Search;
|
|
18599
19065
|
var dataList = [];
|
|
18600
|
-
var
|
|
19066
|
+
var generateList = function generateList(data) {
|
|
18601
19067
|
for (var i = 0; i < data.length; i++) {
|
|
18602
19068
|
var node = data[i];
|
|
18603
19069
|
var path = node.path,
|
|
@@ -18607,11 +19073,11 @@ var _generateList = function generateList(data) {
|
|
|
18607
19073
|
name: name
|
|
18608
19074
|
});
|
|
18609
19075
|
if (node.children) {
|
|
18610
|
-
|
|
19076
|
+
generateList(node.children);
|
|
18611
19077
|
}
|
|
18612
19078
|
}
|
|
18613
19079
|
};
|
|
18614
|
-
var
|
|
19080
|
+
var getParentKey = function getParentKey(path, tree) {
|
|
18615
19081
|
var parentKey;
|
|
18616
19082
|
for (var i = 0; i < tree.length; i++) {
|
|
18617
19083
|
var node = tree[i];
|
|
@@ -18620,8 +19086,8 @@ var _getParentKey = function getParentKey(path, tree) {
|
|
|
18620
19086
|
return item.path === path;
|
|
18621
19087
|
})) {
|
|
18622
19088
|
parentKey = node.path;
|
|
18623
|
-
} else if (
|
|
18624
|
-
parentKey =
|
|
19089
|
+
} else if (getParentKey(path, node.children)) {
|
|
19090
|
+
parentKey = getParentKey(path, node.children);
|
|
18625
19091
|
}
|
|
18626
19092
|
}
|
|
18627
19093
|
}
|
|
@@ -18652,7 +19118,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18652
19118
|
var treeData = _this.state.treeData;
|
|
18653
19119
|
var expandedKeys = dataList.map(function (item) {
|
|
18654
19120
|
if (item.name.indexOf(value) > -1) {
|
|
18655
|
-
return
|
|
19121
|
+
return getParentKey(item.path, treeData);
|
|
18656
19122
|
}
|
|
18657
19123
|
return null;
|
|
18658
19124
|
}).filter(function (item, i, self) {
|
|
@@ -18666,22 +19132,22 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18666
19132
|
};
|
|
18667
19133
|
_this.getPathList = function (originData) {
|
|
18668
19134
|
var pathList = [];
|
|
18669
|
-
var
|
|
19135
|
+
var getList = function getList(data) {
|
|
18670
19136
|
if (Array.isArray(data)) {
|
|
18671
19137
|
data.forEach(function (item) {
|
|
18672
19138
|
pathList.push(item.path);
|
|
18673
19139
|
if (item.children) {
|
|
18674
|
-
|
|
19140
|
+
getList(item.children);
|
|
18675
19141
|
}
|
|
18676
19142
|
});
|
|
18677
19143
|
} else {
|
|
18678
19144
|
pathList.push(data.path);
|
|
18679
19145
|
if (data.children) {
|
|
18680
|
-
|
|
19146
|
+
getList(data.children);
|
|
18681
19147
|
}
|
|
18682
19148
|
}
|
|
18683
19149
|
};
|
|
18684
|
-
|
|
19150
|
+
getList(originData);
|
|
18685
19151
|
return pathList;
|
|
18686
19152
|
};
|
|
18687
19153
|
_this.handleAdd2Menu = function (path) {
|
|
@@ -18690,18 +19156,18 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18690
19156
|
customerMenuData = _this$props.customerMenuData,
|
|
18691
19157
|
setCustomerMenuData = _this$props.setCustomerMenuData;
|
|
18692
19158
|
var filterItem;
|
|
18693
|
-
var
|
|
19159
|
+
var filterMenuItem = function filterMenuItem(menuData) {
|
|
18694
19160
|
menuData.forEach(function (item) {
|
|
18695
19161
|
if (item.path === path) {
|
|
18696
19162
|
filterItem = _objectSpread2({}, item);
|
|
18697
19163
|
return;
|
|
18698
19164
|
}
|
|
18699
19165
|
if (item.children) {
|
|
18700
|
-
|
|
19166
|
+
filterMenuItem(item.children);
|
|
18701
19167
|
}
|
|
18702
19168
|
});
|
|
18703
19169
|
};
|
|
18704
|
-
|
|
19170
|
+
filterMenuItem(treeData);
|
|
18705
19171
|
var addPathList = _this.getPathList(filterItem);
|
|
18706
19172
|
var oldPathList = _this.getPathList(customerMenuData);
|
|
18707
19173
|
var isRepet = false;
|
|
@@ -18731,8 +19197,8 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18731
19197
|
return item.path === '/';
|
|
18732
19198
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
18733
19199
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
18734
|
-
|
|
18735
|
-
|
|
19200
|
+
setMenuTreeData(routesData);
|
|
19201
|
+
generateList(routesData);
|
|
18736
19202
|
this.setState({
|
|
18737
19203
|
treeData: routesData
|
|
18738
19204
|
});
|
|
@@ -18746,16 +19212,16 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18746
19212
|
expandedKeys = _this$state.expandedKeys,
|
|
18747
19213
|
autoExpandParent = _this$state.autoExpandParent,
|
|
18748
19214
|
treeData = _this$state.treeData;
|
|
18749
|
-
var
|
|
19215
|
+
var loop = function loop(data) {
|
|
18750
19216
|
return data.map(function (item) {
|
|
18751
19217
|
var index = item.name.indexOf(searchValue);
|
|
18752
19218
|
var beforeStr = item.name.substr(0, index);
|
|
18753
19219
|
var afterStr = item.name.substr(index + searchValue.length);
|
|
18754
|
-
var name = index > -1 ? (/*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
19220
|
+
var name = index > -1 ? ( /*#__PURE__*/React$1.createElement("span", null, beforeStr, /*#__PURE__*/React$1.createElement("span", {
|
|
18755
19221
|
style: {
|
|
18756
19222
|
color: '#f50'
|
|
18757
19223
|
}
|
|
18758
|
-
}, searchValue), afterStr)) : (/*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
19224
|
+
}, searchValue), afterStr)) : ( /*#__PURE__*/React$1.createElement("span", null, item.name));
|
|
18759
19225
|
if (item.children && item.children.length) {
|
|
18760
19226
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18761
19227
|
path: item.path,
|
|
@@ -18777,7 +19243,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18777
19243
|
width: 18,
|
|
18778
19244
|
src: arrowRight
|
|
18779
19245
|
}))))
|
|
18780
|
-
},
|
|
19246
|
+
}, loop(item.children));
|
|
18781
19247
|
}
|
|
18782
19248
|
return /*#__PURE__*/React$1.createElement(TreeNode, {
|
|
18783
19249
|
path: item.path,
|
|
@@ -18827,7 +19293,7 @@ var LeftTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18827
19293
|
onExpand: this.onExpand,
|
|
18828
19294
|
expandedKeys: expandedKeys,
|
|
18829
19295
|
autoExpandParent: autoExpandParent
|
|
18830
|
-
},
|
|
19296
|
+
}, loop(treeData))));
|
|
18831
19297
|
}
|
|
18832
19298
|
}]);
|
|
18833
19299
|
}(React$1.Component);
|
|
@@ -18860,24 +19326,24 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18860
19326
|
var dropPosition = info.dropPosition - Number(dropPos[dropPos.length - 1]);
|
|
18861
19327
|
var dragObj;
|
|
18862
19328
|
var finalDropItem;
|
|
18863
|
-
var
|
|
19329
|
+
var loop = function loop(data, path, callback) {
|
|
18864
19330
|
for (var i = 0; i < data.length; i++) {
|
|
18865
19331
|
if (data[i].path === path) {
|
|
18866
19332
|
return callback(data[i], i, data);
|
|
18867
19333
|
}
|
|
18868
19334
|
if (data[i].children) {
|
|
18869
|
-
|
|
19335
|
+
loop(data[i].children, path, callback);
|
|
18870
19336
|
}
|
|
18871
19337
|
}
|
|
18872
19338
|
};
|
|
18873
19339
|
var data = JSON.parse(JSON.stringify(_this.props.customerMenuData));
|
|
18874
|
-
|
|
19340
|
+
loop(data, dragKey, function (item, index, arr) {
|
|
18875
19341
|
arr.splice(index, 1);
|
|
18876
19342
|
dragObj = item;
|
|
18877
19343
|
});
|
|
18878
19344
|
if (!info.dropToGap) {
|
|
18879
19345
|
// Drop on the content
|
|
18880
|
-
|
|
19346
|
+
loop(data, dropKey, function (item) {
|
|
18881
19347
|
item.children = item.children || [];
|
|
18882
19348
|
item.children.unshift(dragObj);
|
|
18883
19349
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18888,7 +19354,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18888
19354
|
// Is expanded
|
|
18889
19355
|
dropPosition === 1 // On the bottom gap
|
|
18890
19356
|
) {
|
|
18891
|
-
|
|
19357
|
+
loop(data, dropKey, function (item) {
|
|
18892
19358
|
item.children = item.children || [];
|
|
18893
19359
|
item.children.unshift(dragObj);
|
|
18894
19360
|
finalDropItem = _objectSpread2({}, item);
|
|
@@ -18896,7 +19362,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18896
19362
|
} else {
|
|
18897
19363
|
var ar;
|
|
18898
19364
|
var i;
|
|
18899
|
-
|
|
19365
|
+
loop(data, dropKey, function (item, index, arr) {
|
|
18900
19366
|
ar = arr;
|
|
18901
19367
|
i = index;
|
|
18902
19368
|
});
|
|
@@ -18935,17 +19401,17 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18935
19401
|
title: '编辑名称',
|
|
18936
19402
|
callBack: function callBack(newName) {
|
|
18937
19403
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18938
|
-
var
|
|
19404
|
+
var editTreeDataName = function editTreeDataName(oldTreeData) {
|
|
18939
19405
|
oldTreeData.forEach(function (treeItem) {
|
|
18940
19406
|
if (treeItem.path === item.path) {
|
|
18941
19407
|
treeItem.name = newName;
|
|
18942
19408
|
}
|
|
18943
19409
|
if (treeItem.children) {
|
|
18944
|
-
|
|
19410
|
+
editTreeDataName(treeItem.children);
|
|
18945
19411
|
}
|
|
18946
19412
|
});
|
|
18947
19413
|
};
|
|
18948
|
-
|
|
19414
|
+
editTreeDataName(oldTreeData);
|
|
18949
19415
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
18950
19416
|
_this.setState({
|
|
18951
19417
|
modalInfo: {
|
|
@@ -18990,7 +19456,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
18990
19456
|
title: '新增子目录',
|
|
18991
19457
|
callBack: function callBack(newName) {
|
|
18992
19458
|
var oldTreeData = JSON.parse(JSON.stringify(customerMenuData));
|
|
18993
|
-
var
|
|
19459
|
+
var addChildFolder = function addChildFolder(oldTreeData) {
|
|
18994
19460
|
oldTreeData.forEach(function (treeItem) {
|
|
18995
19461
|
if (treeItem.path === item.path) {
|
|
18996
19462
|
treeItem.children ? treeItem.children.push({
|
|
@@ -19002,11 +19468,11 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19002
19468
|
}];
|
|
19003
19469
|
}
|
|
19004
19470
|
if (treeItem.children) {
|
|
19005
|
-
|
|
19471
|
+
addChildFolder(treeItem.children);
|
|
19006
19472
|
}
|
|
19007
19473
|
});
|
|
19008
19474
|
};
|
|
19009
|
-
|
|
19475
|
+
addChildFolder(oldTreeData);
|
|
19010
19476
|
_this.props.setCustomerMenuData(_toConsumableArray(oldTreeData));
|
|
19011
19477
|
_this.setState({
|
|
19012
19478
|
modalInfo: {
|
|
@@ -19065,7 +19531,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19065
19531
|
var _this$state = this.state,
|
|
19066
19532
|
modalInfo = _this$state.modalInfo,
|
|
19067
19533
|
checkedKeys = _this$state.checkedKeys;
|
|
19068
|
-
var
|
|
19534
|
+
var loop = function loop(data) {
|
|
19069
19535
|
return data.map(function (item) {
|
|
19070
19536
|
if (item.children && item.children.length) {
|
|
19071
19537
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
@@ -19082,7 +19548,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19082
19548
|
e.stopPropagation();
|
|
19083
19549
|
}
|
|
19084
19550
|
}, /*#__PURE__*/React$1.createElement(Space, null, /*#__PURE__*/React$1.createElement(EllipsisOutlined, null))))))
|
|
19085
|
-
},
|
|
19551
|
+
}, loop(item.children));
|
|
19086
19552
|
}
|
|
19087
19553
|
return /*#__PURE__*/React$1.createElement(TreeNode$1, {
|
|
19088
19554
|
path: item.path,
|
|
@@ -19161,7 +19627,7 @@ var rightTree = /*#__PURE__*/function (_React$Component) {
|
|
|
19161
19627
|
children: 'children'
|
|
19162
19628
|
},
|
|
19163
19629
|
onDrop: this.onDrop
|
|
19164
|
-
},
|
|
19630
|
+
}, loop(this.props.customerMenuData))), /*#__PURE__*/React$1.createElement(Modal, {
|
|
19165
19631
|
width: 600,
|
|
19166
19632
|
bodyStyle: {
|
|
19167
19633
|
paddingTop: '32px',
|
|
@@ -19217,8 +19683,8 @@ var MenuSetting = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19217
19683
|
}));
|
|
19218
19684
|
});
|
|
19219
19685
|
|
|
19220
|
-
var css_248z$
|
|
19221
|
-
styleInject(css_248z$
|
|
19686
|
+
var css_248z$o = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 45px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.customer_menu_content .ant-drawer-body {\n padding: 10px !important;\n}\n.menu_drawer_header_warp .ant-drawer-body {\n background-color: #F8F9FA;\n padding: 10px 0 0 0 !important;\n}\n.menu_title_line {\n font-size: 16px;\n font-weight: bold;\n color: #b1bad4;\n text-align: center;\n margin-bottom: 10px;\n}\n.menu_item {\n line-height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #E4E7ED;\n cursor: pointer;\n}\n.header_style {\n height: 50px;\n position: fixed;\n top: 0;\n left: 0;\n padding: 0;\n display: flex;\n align-items: center;\n background-color: #ffffff;\n}\n.global_menu_draw .ant-drawer-body {\n padding: 10px !important;\n}\n";
|
|
19687
|
+
styleInject(css_248z$o);
|
|
19222
19688
|
|
|
19223
19689
|
var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
19224
19690
|
var isCollapse = _ref.isCollapse,
|
|
@@ -19274,7 +19740,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19274
19740
|
pathname: item.path
|
|
19275
19741
|
});
|
|
19276
19742
|
};
|
|
19277
|
-
var
|
|
19743
|
+
var getMenuDom = function getMenuDom(menuData) {
|
|
19278
19744
|
return menuData.map(function (item) {
|
|
19279
19745
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
19280
19746
|
style: {
|
|
@@ -19289,7 +19755,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19289
19755
|
fontWeight: item.children || !item.component ? 'bolder' : '400',
|
|
19290
19756
|
paddingLeft: '4px'
|
|
19291
19757
|
}
|
|
19292
|
-
}, item.name), !!item.children && !!item.children.length &&
|
|
19758
|
+
}, item.name), !!item.children && !!item.children.length && getMenuDom(item.children));
|
|
19293
19759
|
});
|
|
19294
19760
|
};
|
|
19295
19761
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19315,7 +19781,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19315
19781
|
style: {
|
|
19316
19782
|
paddingLeft: '5px'
|
|
19317
19783
|
}
|
|
19318
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && (/*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19784
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355")), !isCollapse && ( /*#__PURE__*/React$1.createElement(Drawer$1, {
|
|
19319
19785
|
style: {
|
|
19320
19786
|
left: isDrawer ? 140 : 0
|
|
19321
19787
|
},
|
|
@@ -19336,7 +19802,7 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19336
19802
|
visible: isDrawer
|
|
19337
19803
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("p", {
|
|
19338
19804
|
className: 'menu_title_line'
|
|
19339
|
-
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"),
|
|
19805
|
+
}, "\u81EA\u5B9A\u4E49\u83DC\u5355"), getMenuDom(menuData)))), /*#__PURE__*/React$1.createElement(Modal, _objectSpread2({
|
|
19340
19806
|
title: /*#__PURE__*/React$1.createElement("span", {
|
|
19341
19807
|
style: {
|
|
19342
19808
|
fontWeight: '600',
|
|
@@ -19354,8 +19820,8 @@ var CustomerMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
19354
19820
|
})));
|
|
19355
19821
|
});
|
|
19356
19822
|
|
|
19357
|
-
var css_248z$
|
|
19358
|
-
styleInject(css_248z$
|
|
19823
|
+
var css_248z$p = ".menu .anticon {\n margin-right: 8px;\n}\n.menu .ant-dropdown-menu-item {\n min-width: 160px;\n}\n.right {\n display: flex;\n float: right;\n height: 48px;\n margin-left: auto;\n overflow: hidden;\n}\n.right .action {\n display: flex;\n align-items: center;\n height: 48px;\n padding: 0 12px;\n cursor: pointer;\n transition: all 0.3s;\n}\n.right .action > span {\n vertical-align: middle;\n}\n.right .action:hover {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .action .opened {\n background: rgba(0, 0, 0, 0.025);\n}\n.right .search {\n padding: 0 12px;\n}\n.right .search:hover {\n background: transparent;\n}\n.right .account .avatar {\n margin-right: 8px;\n color: #005cff;\n vertical-align: top;\n background: rgba(255, 255, 255, 0.85);\n}\n.dark .action:hover {\n background: #252a3d;\n}\n.dark .action .opened {\n background: #252a3d;\n}\n.global_menu_draw_content {\n display: flex;\n height: 100%;\n}\n.global_menu_draw_content .allFunsList {\n margin-bottom: 10px;\n}\n.global_menu_draw_content .drawerWarp_left {\n width: 150px;\n height: 100%;\n flex-shrink: 0;\n border-right: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_left .left_item_title {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 12px;\n color: #8c8c8c;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item {\n font-family: PingFangSC-Regular;\n font-weight: 400;\n font-size: 14px;\n color: #000000;\n letter-spacing: 0;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n margin: 20px 0px;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_left .left_item:hover {\n color: #005cff !important;\n}\n.global_menu_draw_content .drawerWarp_right {\n -moz-column-count: 4;\n column-count: 4;\n flex-grow: 1;\n padding-left: 10px;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header {\n padding: 0 0 0 10px !important;\n line-height: 30px;\n border: 0px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-header b {\n width: 100%;\n box-sizing: border-box;\n display: inline-block;\n border-bottom: 1px solid #f0f0f0;\n}\n.global_menu_draw_content .drawerWarp_right .ant-list-item {\n padding: 0 0 0 10px !important;\n line-height: 30px !important;\n}\n.global_menu_draw_content .drawerWarp_right .ant-drawer-close {\n position: absolute;\n right: 0;\n}\n.global_menu_draw_content .search_menu_content {\n flex-grow: 1;\n display: flex;\n flex-wrap: wrap;\n background-color: #ffffff;\n}\n.global_menu_draw_content .search_menu_content div {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 8px 20px;\n font-size: 14px;\n font-weight: 400;\n color: #000000;\n background: #f8f9fa;\n border-radius: 100px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n.global_menu_draw_content .search_menu_content div:hover {\n cursor: pointer;\n}\n.global_menu_draw_content .allFunsListWarp {\n width: 200px;\n margin-right: 10px;\n border-radius: 4px;\n -moz-column-break-inside: avoid;\n break-inside: avoid;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header {\n background-color: #005CFF;\n opacity: 0.8;\n}\n.global_menu_draw_content .choosedStyle .ant-list-header b {\n border-bottom: 1px solid #005CFF;\n}\n";
|
|
19824
|
+
styleInject(css_248z$p);
|
|
19359
19825
|
|
|
19360
19826
|
var closeicon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAiZJREFUSEvFll1LVFEUhh/1QqjAxALrot+ggR9RQWh1UZl9kNCtv8ALf0Q3/YVuiyIqLKOUyI80RP0VXVSU+UGKF2W88q7hzPacOY4QHhiGmVn7fdZe691rTwP/+WlI9Bv9eQfQq55HWqH3NxamgOz3+q0SWEJSYpFQVWIBUIDE+oARYBj4ATQBf0rEI+Yk8Ah4CHwEdjUDoHeRnwN3gBngJrBaAgnxVmAMOA88A4aKAAp8A5wzZABYK4Dkic8CWqPEdpPO9iB20Qa8BnqBae9EkCijKhbixx2rzOeAG8CvEFdg2uRYKIh20mOIslo3RGvUlxaLXwDmgesWr+pbnovyIFPe+oYbLnHV/CLw2eIreaUssmlATngn3YAg17yL8f2I55Uo68is/VSuLuC9AZeBBQN/1nJa0Q4ClHVKuEu/fXJZihxWSbQMEM5pBlQWHUQ9E+7JduKuPWeyFiDEj7mhl2xFrdE5+WAL/64FKQJkxV858yXgqq09CXQAer8FFELyAFnxl0A/sOiaf3cN2u2usy7X7SJI3rjW0DsKSFxuUeY6RN/sFjF00ARRXzrtLkE203LljQqJvwCuAMu2YojHZA13nTJE5XrnQSlIjJ3KqIgvjlhctZa4Mv9aMuxOu1yCvAXuAlvpsAvAU+DePsTTc5KFPAHup+M6GjsIjDrgS50XzhngMfDAtq66cNIRoUYf5MqUaNUNeCiXfsUB9fylcOyetf8AAkCfGYuSNSEAAAAASUVORK5CYII=";
|
|
19361
19827
|
|
|
@@ -19410,7 +19876,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19410
19876
|
return item.path === '/';
|
|
19411
19877
|
})) === null || _originRoutes$find === void 0 ? void 0 : _originRoutes$find.routes) || [];
|
|
19412
19878
|
var routesData = JSON.parse(JSON.stringify(memoizeOneFormatter(showMenu, '')));
|
|
19413
|
-
|
|
19879
|
+
setMenuTreeData(routesData);
|
|
19414
19880
|
routesData.forEach(function (item) {
|
|
19415
19881
|
if (item.children) {
|
|
19416
19882
|
routesDataList.push(item);
|
|
@@ -19440,7 +19906,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19440
19906
|
setHeight(clientHeight - 190);
|
|
19441
19907
|
setDrawHeight(clientHeight - 70);
|
|
19442
19908
|
};
|
|
19443
|
-
var
|
|
19909
|
+
var renderChildItem = function renderChildItem(child) {
|
|
19444
19910
|
if (!child.hideInMenu && child.children) {
|
|
19445
19911
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(List.Item, {
|
|
19446
19912
|
style: {
|
|
@@ -19450,7 +19916,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19450
19916
|
}, formatMessage({
|
|
19451
19917
|
id: "".concat(child.locale)
|
|
19452
19918
|
})), child.children.map(function (menuItem) {
|
|
19453
|
-
return
|
|
19919
|
+
return renderChildItem(menuItem);
|
|
19454
19920
|
}));
|
|
19455
19921
|
} else if (!child.hideInMenu && child.path) {
|
|
19456
19922
|
return /*#__PURE__*/React$1.createElement(List.Item, {
|
|
@@ -19592,7 +20058,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19592
20058
|
onMenuClick(e, item);
|
|
19593
20059
|
}
|
|
19594
20060
|
}, item.name);
|
|
19595
|
-
}))), !!SearhData.length ? (/*#__PURE__*/React$1.createElement("div", {
|
|
20061
|
+
}))), !!SearhData.length ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
19596
20062
|
className: 'search_menu_content'
|
|
19597
20063
|
}, SearhData.map(function (item) {
|
|
19598
20064
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19601,7 +20067,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19601
20067
|
},
|
|
19602
20068
|
key: item.path
|
|
19603
20069
|
}, item.name);
|
|
19604
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
20070
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement("div", {
|
|
19605
20071
|
style: {
|
|
19606
20072
|
height: "".concat(rightMenuHeight, "px"),
|
|
19607
20073
|
overflowY: 'scroll',
|
|
@@ -19613,7 +20079,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19613
20079
|
className: 'drawerWarp_right'
|
|
19614
20080
|
}, homepageData && homepageData.filter(function (d) {
|
|
19615
20081
|
return !d.hideInMenu;
|
|
19616
|
-
}).length > 0 && (/*#__PURE__*/React$1.createElement(List, {
|
|
20082
|
+
}).length > 0 && ( /*#__PURE__*/React$1.createElement(List, {
|
|
19617
20083
|
className: classNames('allFunsList', 'allFunsListWarp'),
|
|
19618
20084
|
dataSource: homepageData,
|
|
19619
20085
|
renderItem: function renderItem(child) {
|
|
@@ -19654,7 +20120,7 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
19654
20120
|
bordered: true,
|
|
19655
20121
|
dataSource: item.children,
|
|
19656
20122
|
renderItem: function renderItem(child) {
|
|
19657
|
-
return
|
|
20123
|
+
return renderChildItem(child);
|
|
19658
20124
|
}
|
|
19659
20125
|
});
|
|
19660
20126
|
})), /*#__PURE__*/React$1.createElement("div", {
|
|
@@ -19770,8 +20236,8 @@ var CustomerMenuHeader = function CustomerMenuHeader(_ref) {
|
|
|
19770
20236
|
})));
|
|
19771
20237
|
};
|
|
19772
20238
|
|
|
19773
|
-
var css_248z$
|
|
19774
|
-
styleInject(css_248z$
|
|
20239
|
+
var css_248z$q = ".customer_menu_content {\n color: #b1bad4;\n background: #141620;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n height: 40px;\n border-bottom: 1px solid #3d4047;\n}\n.customer_menu_content .ant-btn-link {\n color: #b1bad4 !important;\n font-size: 16px;\n height: 36px;\n}\n.menu_item {\n line-height: 30px;\n height: 30px;\n color: rgba(44, 47, 46);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.link_style:hover {\n background-color: #e4e7ed;\n cursor: pointer;\n color: #005cff;\n}\n.sub_menu_content {\n box-shadow: 2px 0px 4px 0px rgba(185, 185, 185, 0.5);\n position: fixed;\n top: 50px;\n left: 140px;\n width: 200px;\n height: 100%;\n background-color: #fff;\n padding-top: 10px;\n z-index: 9999;\n}\n.tab_left_operate {\n display: flex;\n height: 28px;\n align-items: center;\n}\n.tab_left_operate > div {\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n cursor: pointer;\n}\n.tab_left_operate > div:last-child {\n box-shadow: 2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n}\n.tab_right_operate {\n height: 28px;\n width: 28px;\n font-size: 12px;\n color: #2C2F2ECC;\n display: flex;\n align-items: center;\n justify-content: center;\n border-right: 1px solid #E4E4E4;\n background-color: #fff;\n box-shadow: -2px -2px 4px 0px rgba(185, 185, 185, 0.9);\n z-index: 99;\n cursor: pointer;\n position: relative;\n}\n";
|
|
20240
|
+
styleInject(css_248z$q);
|
|
19775
20241
|
|
|
19776
20242
|
/*
|
|
19777
20243
|
* @Date: 2022-04-01 15:42:51
|
|
@@ -19794,7 +20260,7 @@ var NoFoundPage = function NoFoundPage(props) {
|
|
|
19794
20260
|
}));
|
|
19795
20261
|
};
|
|
19796
20262
|
|
|
19797
|
-
var _excluded$
|
|
20263
|
+
var _excluded$i = ["route"];
|
|
19798
20264
|
var TabPane = Tabs.TabPane;
|
|
19799
20265
|
var getId = function getId(str) {
|
|
19800
20266
|
// 找到最后一个 / 的位置
|
|
@@ -19812,10 +20278,10 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19812
20278
|
var limitedMenuData = localStorage.getItem(getLimitMenuDataKey()) ? JSON.parse(localStorage.getItem(getLimitMenuDataKey())) : [];
|
|
19813
20279
|
var menuKeys = [];
|
|
19814
20280
|
var docsId = [];
|
|
19815
|
-
var
|
|
20281
|
+
var getLimitedMenuKeys = function getLimitedMenuKeys(data) {
|
|
19816
20282
|
data.forEach(function (item) {
|
|
19817
20283
|
if (item.children && item.children.length > 0) {
|
|
19818
|
-
|
|
20284
|
+
getLimitedMenuKeys(item.children);
|
|
19819
20285
|
} else {
|
|
19820
20286
|
var originPath = item.path.replace(/^\/\w+\//, '/');
|
|
19821
20287
|
menuKeys.push(originPath);
|
|
@@ -19826,7 +20292,7 @@ var getAuthMenuPathAndDocsId = function getAuthMenuPathAndDocsId(pathToRegexp) {
|
|
|
19826
20292
|
});
|
|
19827
20293
|
};
|
|
19828
20294
|
try {
|
|
19829
|
-
|
|
20295
|
+
getLimitedMenuKeys(limitedMenuData);
|
|
19830
20296
|
} catch (e) {}
|
|
19831
20297
|
return {
|
|
19832
20298
|
menuKeys: menuKeys,
|
|
@@ -20060,10 +20526,10 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20060
20526
|
return (node.path || '').includes('all-general-documents');
|
|
20061
20527
|
};
|
|
20062
20528
|
// 递归获取树列表
|
|
20063
|
-
var
|
|
20529
|
+
var getTreeList = function getTreeList(data) {
|
|
20064
20530
|
data.forEach(function (node) {
|
|
20065
20531
|
if (node.routes && node.routes.length > 0) {
|
|
20066
|
-
|
|
20532
|
+
getTreeList(node.routes);
|
|
20067
20533
|
return;
|
|
20068
20534
|
}
|
|
20069
20535
|
// todo:暂时处理非wujie环境不做404管控
|
|
@@ -20094,7 +20560,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20094
20560
|
}
|
|
20095
20561
|
});
|
|
20096
20562
|
};
|
|
20097
|
-
|
|
20563
|
+
getTreeList(treeData);
|
|
20098
20564
|
return treeList;
|
|
20099
20565
|
};
|
|
20100
20566
|
_this.getDictionarySource = function (dicCode) {
|
|
@@ -20723,7 +21189,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20723
21189
|
updateState = _ref8.updateState;
|
|
20724
21190
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
20725
21191
|
className: "tab_title_content"
|
|
20726
|
-
}, item.tab, item.key !== '/' && (/*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
21192
|
+
}, item.tab, item.key !== '/' && ( /*#__PURE__*/React$1.createElement(ItemMenu, {
|
|
20727
21193
|
info: item,
|
|
20728
21194
|
operateFun: _this3.operateFun,
|
|
20729
21195
|
listenRouterState: listenRouterState
|
|
@@ -20735,7 +21201,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20735
21201
|
}); // 添加数据大屏
|
|
20736
21202
|
var _this$props3 = this.props,
|
|
20737
21203
|
route = _this$props3.route,
|
|
20738
|
-
restPrpos = _objectWithoutProperties(_this$props3, _excluded$
|
|
21204
|
+
restPrpos = _objectWithoutProperties(_this$props3, _excluded$i);
|
|
20739
21205
|
var exist = route.routes.find(function (route) {
|
|
20740
21206
|
return route.path === '/homePage/data-show';
|
|
20741
21207
|
});
|
|
@@ -20859,7 +21325,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20859
21325
|
};
|
|
20860
21326
|
}
|
|
20861
21327
|
var OperationsSlot = {
|
|
20862
|
-
left: (/*#__PURE__*/React$1.createElement("div", {
|
|
21328
|
+
left: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20863
21329
|
className: 'tab_left_operate'
|
|
20864
21330
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
20865
21331
|
onClick: function onClick() {
|
|
@@ -20875,7 +21341,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20875
21341
|
_this3.setTabNavTransLate(-100);
|
|
20876
21342
|
}
|
|
20877
21343
|
}, /*#__PURE__*/React$1.createElement(DoubleLeftOutlined, null)))),
|
|
20878
|
-
right: (/*#__PURE__*/React$1.createElement("div", {
|
|
21344
|
+
right: ( /*#__PURE__*/React$1.createElement("div", {
|
|
20879
21345
|
style: {
|
|
20880
21346
|
opacity: this.state.isSlider ? 1 : 0.5
|
|
20881
21347
|
},
|
|
@@ -20973,7 +21439,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20973
21439
|
onMouseLeave: function onMouseLeave() {
|
|
20974
21440
|
_this3.setShowMenu(false);
|
|
20975
21441
|
}
|
|
20976
|
-
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && (/*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
21442
|
+
}, defaultDom, showSubMenu && currentSubPath === menuItemProps.path && !collapse && ( /*#__PURE__*/React$1.createElement(CaretLeftOutlined, {
|
|
20977
21443
|
style: {
|
|
20978
21444
|
position: 'absolute',
|
|
20979
21445
|
top: '14px',
|
|
@@ -20992,7 +21458,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20992
21458
|
postMenuData: function postMenuData(menus) {
|
|
20993
21459
|
return _toConsumableArray(filterByMenuDate(menus || [], _this3.state.keyWord));
|
|
20994
21460
|
},
|
|
20995
|
-
links: [!this.state.collapse ? (/*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
21461
|
+
links: [!this.state.collapse ? ( /*#__PURE__*/React$1.createElement(AllFunc$1, {
|
|
20996
21462
|
ref: this.allFunc,
|
|
20997
21463
|
itemPath: itemPath,
|
|
20998
21464
|
handleClose: this.handleClose,
|
|
@@ -21010,7 +21476,7 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21010
21476
|
},
|
|
21011
21477
|
menu: {
|
|
21012
21478
|
request: function () {
|
|
21013
|
-
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21479
|
+
var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21014
21480
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21015
21481
|
while (1) switch (_context.prev = _context.next) {
|
|
21016
21482
|
case 0:
|
|
@@ -21145,7 +21611,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
21145
21611
|
getDictionaryTextByValue = _this$props4.getDictionaryTextByValue,
|
|
21146
21612
|
timeFormat = _this$props4.timeFormat,
|
|
21147
21613
|
transparentProps = _this$props4.transparentProps;
|
|
21148
|
-
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({
|
|
21614
|
+
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({
|
|
21149
21615
|
getDictionarySource: getDictionarySource,
|
|
21150
21616
|
getDictionaryTextByValue: getDictionaryTextByValue,
|
|
21151
21617
|
timeFormat: timeFormat
|
|
@@ -21169,12 +21635,12 @@ var index$5 = (function (props) {
|
|
|
21169
21635
|
});
|
|
21170
21636
|
|
|
21171
21637
|
// @ts-nocheck
|
|
21172
|
-
var
|
|
21638
|
+
var getAllColumns = function getAllColumns(columns) {
|
|
21173
21639
|
var result = [];
|
|
21174
21640
|
columns.forEach(function (column) {
|
|
21175
21641
|
if (column.children) {
|
|
21176
21642
|
result.push(column);
|
|
21177
|
-
result.push.apply(result,
|
|
21643
|
+
result.push.apply(result, getAllColumns(column.children));
|
|
21178
21644
|
} else {
|
|
21179
21645
|
result.push(column);
|
|
21180
21646
|
}
|
|
@@ -21183,7 +21649,7 @@ var _getAllColumns = function getAllColumns(columns) {
|
|
|
21183
21649
|
};
|
|
21184
21650
|
var convertToRows = function convertToRows(originColumns) {
|
|
21185
21651
|
var maxLevel = 1;
|
|
21186
|
-
var
|
|
21652
|
+
var traverse = function traverse(column, parent) {
|
|
21187
21653
|
if (parent) {
|
|
21188
21654
|
column.level = parent.level + 1;
|
|
21189
21655
|
if (maxLevel < column.level) {
|
|
@@ -21193,7 +21659,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21193
21659
|
if (column.children) {
|
|
21194
21660
|
var colSpan = 0;
|
|
21195
21661
|
column.children.forEach(function (subColumn) {
|
|
21196
|
-
|
|
21662
|
+
traverse(subColumn, column);
|
|
21197
21663
|
colSpan += subColumn.colSpan;
|
|
21198
21664
|
});
|
|
21199
21665
|
column.colSpan = colSpan;
|
|
@@ -21203,13 +21669,13 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21203
21669
|
};
|
|
21204
21670
|
originColumns.forEach(function (column) {
|
|
21205
21671
|
column.level = 1;
|
|
21206
|
-
|
|
21672
|
+
traverse(column);
|
|
21207
21673
|
});
|
|
21208
21674
|
var rows = [];
|
|
21209
21675
|
for (var i = 0; i < maxLevel; i++) {
|
|
21210
21676
|
rows.push([]);
|
|
21211
21677
|
}
|
|
21212
|
-
var allColumns =
|
|
21678
|
+
var allColumns = getAllColumns(originColumns);
|
|
21213
21679
|
allColumns.forEach(function (column) {
|
|
21214
21680
|
if (!column.children) {
|
|
21215
21681
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21249,7 +21715,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
21249
21715
|
};
|
|
21250
21716
|
var headersToRows = function headersToRows(originColumns) {
|
|
21251
21717
|
var maxLevel = 1;
|
|
21252
|
-
var
|
|
21718
|
+
var traverse = function traverse(column, parent) {
|
|
21253
21719
|
if (parent) {
|
|
21254
21720
|
//计算当前元素属于第几个层级
|
|
21255
21721
|
column.level = parent.level + 1;
|
|
@@ -21262,7 +21728,7 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21262
21728
|
var colSpan = 0;
|
|
21263
21729
|
column.children.forEach(function (subColumn) {
|
|
21264
21730
|
//进行递归
|
|
21265
|
-
|
|
21731
|
+
traverse(subColumn, column);
|
|
21266
21732
|
colSpan += subColumn.colSpan;
|
|
21267
21733
|
});
|
|
21268
21734
|
column.colSpan = colSpan;
|
|
@@ -21272,14 +21738,14 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21272
21738
|
};
|
|
21273
21739
|
originColumns.forEach(function (column) {
|
|
21274
21740
|
column.level = 1;
|
|
21275
|
-
|
|
21741
|
+
traverse(column);
|
|
21276
21742
|
});
|
|
21277
21743
|
var rows = [];
|
|
21278
21744
|
var lastData = [];
|
|
21279
21745
|
for (var i = 0; i < maxLevel; i++) {
|
|
21280
21746
|
rows.push([]);
|
|
21281
21747
|
}
|
|
21282
|
-
var allColumns =
|
|
21748
|
+
var allColumns = getAllColumns(originColumns);
|
|
21283
21749
|
allColumns.forEach(function (column) {
|
|
21284
21750
|
if (!column.children) {
|
|
21285
21751
|
column.rowSpan = maxLevel - column.level + 1;
|
|
@@ -21295,8 +21761,8 @@ var headersToRows = function headersToRows(originColumns) {
|
|
|
21295
21761
|
};
|
|
21296
21762
|
};
|
|
21297
21763
|
|
|
21298
|
-
var css_248z$
|
|
21299
|
-
styleInject(css_248z$
|
|
21764
|
+
var css_248z$r = ".editTableWrapper {\n width: 1000px;\n height: 500px;\n overflow: auto;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.editTableWrapper table {\n table-layout: fixed;\n}\n.editTableWrapper .editTable {\n position: relative;\n overflow: hidden;\n border-top: 0;\n background: #fff;\n}\n.editTableWrapper .north__west {\n position: sticky;\n background-color: #f7f8fb;\n left: 0px;\n top: 0px;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .north__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 5;\n}\n.editTableWrapper .south__west {\n z-index: 4;\n position: absolute;\n left: 0px;\n top: 0;\n}\n.editTableWrapper .south__west th {\n background: #fff;\n font-size: 14px;\n color: #606266;\n z-index: 4;\n}\n.editTableWrapper .south__west td {\n font-size: 12px;\n background: #fff;\n color: #6a6a6a;\n}\n.editTableWrapper .south__west td svg {\n width: 20px;\n height: 20px;\n vertical-align: middle;\n}\n.editTableWrapper .editTable__block {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n position: absolute;\n border-collapse: collapse;\n padding: 0;\n}\n.editTableWrapper .editTable__block th,\n.editTableWrapper .editTable__block td {\n box-sizing: border-box;\n font-size: 11px;\n color: #6a6a6a;\n}\n.editTableWrapper .value_table table {\n table-layout: fixed;\n min-width: 100%;\n}\n.editTableWrapper .table_border_style {\n border-collapse: separate;\n border-spacing: 0;\n border-left: 1px solid #f0f0f0;\n border-top: 1px solid #f0f0f0;\n}\n.editTableWrapper .table_border_style td {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n box-sizing: border-box;\n border-right: 1px solid #f0f0f0;\n border-bottom: 1px solid #f0f0f0;\n padding: 0 10px;\n font-size: 14px;\n line-height: 28px;\n}\n";
|
|
21765
|
+
styleInject(css_248z$r);
|
|
21300
21766
|
|
|
21301
21767
|
var useSticky = function useSticky(sticky) {
|
|
21302
21768
|
var _ref = _typeof(sticky) === 'object' ? sticky : {},
|
|
@@ -21708,10 +22174,10 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
21708
22174
|
}))))));
|
|
21709
22175
|
});
|
|
21710
22176
|
|
|
21711
|
-
var _excluded$
|
|
22177
|
+
var _excluded$j = ["children"];
|
|
21712
22178
|
var Drawer = (function (props) {
|
|
21713
22179
|
var children = props.children,
|
|
21714
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
22180
|
+
restProps = _objectWithoutProperties(props, _excluded$j);
|
|
21715
22181
|
return /*#__PURE__*/React$1.createElement(Drawer$1, _objectSpread2({
|
|
21716
22182
|
mask: true,
|
|
21717
22183
|
closable: false,
|
|
@@ -27296,7 +27762,7 @@ var isHightLight = function isHightLight(hightLightData, highLightLine) {
|
|
|
27296
27762
|
}
|
|
27297
27763
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
27298
27764
|
};
|
|
27299
|
-
var
|
|
27765
|
+
var hasHighLightChildren = function hasHighLightChildren() {
|
|
27300
27766
|
var hightLightData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27301
27767
|
var highLightLine = arguments.length > 1 ? arguments[1] : undefined;
|
|
27302
27768
|
var children = hightLightData.children,
|
|
@@ -27307,7 +27773,7 @@ var _hasHighLightChildren = function hasHighLightChildren() {
|
|
|
27307
27773
|
lineEnd = _loc2[2];
|
|
27308
27774
|
if (children) {
|
|
27309
27775
|
return isActiveObj(highLightLine, lineStart, lineEnd) || children.some(function (v) {
|
|
27310
|
-
return
|
|
27776
|
+
return hasHighLightChildren(v, highLightLine);
|
|
27311
27777
|
});
|
|
27312
27778
|
}
|
|
27313
27779
|
return lineStart <= highLightLine && lineEnd >= highLightLine;
|
|
@@ -27319,7 +27785,7 @@ function createHighLightTreeData(treeData, highLightLine) {
|
|
|
27319
27785
|
var data = Array.isArray(treeData) ? _toConsumableArray(treeData) : [treeData];
|
|
27320
27786
|
data.forEach(function (node) {
|
|
27321
27787
|
if (!node) return;
|
|
27322
|
-
node.toggled =
|
|
27788
|
+
node.toggled = hasHighLightChildren(node, highLightLine);
|
|
27323
27789
|
node.active = isHightLight(node, highLightLine);
|
|
27324
27790
|
if (node.children) {
|
|
27325
27791
|
if (node.active) {
|
|
@@ -27531,8 +27997,8 @@ var nameRender = (function (data) {
|
|
|
27531
27997
|
}, " ");
|
|
27532
27998
|
});
|
|
27533
27999
|
|
|
27534
|
-
var css_248z$
|
|
27535
|
-
styleInject(css_248z$
|
|
28000
|
+
var css_248z$s = ".si-tree {\n font-size: 14px;\n}\n.si-tree-node-block {\n display: flex;\n align-items: center;\n padding: 2px 4px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.si-tree-node-block:hover {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-block-actived {\n background-color: #1990ffab;\n color: #fff;\n}\n.si-tree-node-switcher {\n margin-right: 2px;\n}\n.si-tree-node-icon {\n margin-right: 4px;\n display: flex;\n}\n.tree-compact {\n margin-left: 4px;\n font-size: 13px;\n font-style: italic;\n color: #49aa19;\n}\n";
|
|
28001
|
+
styleInject(css_248z$s);
|
|
27536
28002
|
|
|
27537
28003
|
function parseData(data) {
|
|
27538
28004
|
var res;
|
|
@@ -27743,8 +28209,8 @@ function registerSuggestions(monaco) {
|
|
|
27743
28209
|
});
|
|
27744
28210
|
}
|
|
27745
28211
|
|
|
27746
|
-
var css_248z$
|
|
27747
|
-
styleInject(css_248z$
|
|
28212
|
+
var css_248z$t = ":global .si-editor-highlight {\n background: #1990ffab;\n}\n.title {\n color: #005cff;\n padding: 12px;\n font-weight: bold;\n}\n.editorWrapper {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n padding: 24px;\n background-color: #fff;\n z-index: 10000;\n}\n";
|
|
28213
|
+
styleInject(css_248z$t);
|
|
27748
28214
|
|
|
27749
28215
|
var Title = Typography.Title;
|
|
27750
28216
|
var STRTEMP = 'const config = ';
|
|
@@ -27938,7 +28404,7 @@ var Editor = (function (props) {
|
|
|
27938
28404
|
}, [shallowHeight]);
|
|
27939
28405
|
var hasConfigTree = type !== 'editor';
|
|
27940
28406
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
27941
|
-
className: isFull ? css_248z$
|
|
28407
|
+
className: isFull ? css_248z$t.editorWrapper : ''
|
|
27942
28408
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
27943
28409
|
style: {
|
|
27944
28410
|
overflow: 'hidden'
|
|
@@ -28006,7 +28472,7 @@ var Editor = (function (props) {
|
|
|
28006
28472
|
})), hasConfigTree && /*#__PURE__*/React$1.createElement(Col, {
|
|
28007
28473
|
span: 8
|
|
28008
28474
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
28009
|
-
className: css_248z$
|
|
28475
|
+
className: css_248z$t.title
|
|
28010
28476
|
}, "\u5C5E\u6027\u8282\u70B9\u6811"), /*#__PURE__*/React$1.createElement(ConfigTree, {
|
|
28011
28477
|
style: {
|
|
28012
28478
|
height: 'calc(100vh - 300px)',
|
|
@@ -28750,7 +29216,7 @@ var valueType = {
|
|
|
28750
29216
|
};
|
|
28751
29217
|
|
|
28752
29218
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
28753
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
29219
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
|
|
28754
29220
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28755
29221
|
while (1) switch (_context.prev = _context.next) {
|
|
28756
29222
|
case 0:
|
|
@@ -28818,7 +29284,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28818
29284
|
value: false
|
|
28819
29285
|
}];
|
|
28820
29286
|
var ref = useRef();
|
|
28821
|
-
useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29287
|
+
useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
28822
29288
|
var _ref$current, source;
|
|
28823
29289
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28824
29290
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -28932,7 +29398,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
28932
29398
|
source: {
|
|
28933
29399
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
28934
29400
|
type: function () {
|
|
28935
|
-
var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
29401
|
+
var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
|
|
28936
29402
|
var form, values, name, relates, source;
|
|
28937
29403
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28938
29404
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -29412,7 +29878,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29412
29878
|
source: {
|
|
29413
29879
|
relates: ['choiceType', 'inputType'],
|
|
29414
29880
|
type: function () {
|
|
29415
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29881
|
+
var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
|
|
29416
29882
|
var values, name, form, source;
|
|
29417
29883
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
29418
29884
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -29634,7 +30100,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29634
30100
|
width: 900,
|
|
29635
30101
|
maskClosable: false,
|
|
29636
30102
|
onOk: function () {
|
|
29637
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
30103
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
29638
30104
|
var _ref$current4, _res$editableStatus;
|
|
29639
30105
|
var res, _res$defaultValue;
|
|
29640
30106
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -29706,7 +30172,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
29706
30172
|
}()
|
|
29707
30173
|
}), /*#__PURE__*/React$1.createElement(Form$1, _objectSpread2(_objectSpread2({}, formConfig), {}, {
|
|
29708
30174
|
ref: ref
|
|
29709
|
-
})), maintainOptionsModal.visible && (/*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
30175
|
+
})), maintainOptionsModal.visible && ( /*#__PURE__*/React$1.createElement(MaintainOptions, _objectSpread2({}, maintainOptionsModal))));
|
|
29710
30176
|
};
|
|
29711
30177
|
|
|
29712
30178
|
// @ts-nocheck
|
|
@@ -29887,8 +30353,8 @@ var FieldsSettingsTable = (function (props) {
|
|
|
29887
30353
|
})), fieldsModify.visible && /*#__PURE__*/React$1.createElement(FieldsModifyModal, _objectSpread2({}, fieldsModify)));
|
|
29888
30354
|
});
|
|
29889
30355
|
|
|
29890
|
-
var css_248z$
|
|
29891
|
-
styleInject(css_248z$
|
|
30356
|
+
var css_248z$u = ".customFieldsDrawer .ant-col-8 {\n flex: 0 0 100%!important;\n max-width: 100%!important;\n}\n.customFieldsDrawer .ant-form-item {\n margin-bottom: 0!important;\n}\n.customFieldsDrawer .ant-form {\n margin-bottom: 15px;\n}\n.customFieldsDrawer .sula-template-query-table-fields-wrapper {\n align-items: center;\n}\n";
|
|
30357
|
+
styleInject(css_248z$u);
|
|
29892
30358
|
|
|
29893
30359
|
function iterFileds(fields) {
|
|
29894
30360
|
var filedsValue = [];
|
|
@@ -30320,7 +30786,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30320
30786
|
return setVisible(false);
|
|
30321
30787
|
},
|
|
30322
30788
|
className: 'customFieldsDrawer'
|
|
30323
|
-
}, detailTablesSetting.length == 0 && (/*#__PURE__*/React$1.createElement("div", {
|
|
30789
|
+
}, detailTablesSetting.length == 0 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
30324
30790
|
style: {
|
|
30325
30791
|
display: 'flex'
|
|
30326
30792
|
}
|
|
@@ -30329,13 +30795,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30329
30795
|
flex: 1,
|
|
30330
30796
|
width: 500
|
|
30331
30797
|
}
|
|
30332
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30798
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30333
30799
|
style: {
|
|
30334
30800
|
padding: "10px 0",
|
|
30335
30801
|
fontSize: "16px",
|
|
30336
30802
|
fontWeight: "bolder"
|
|
30337
30803
|
}
|
|
30338
|
-
}, "\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", {
|
|
30804
|
+
}, "\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", {
|
|
30339
30805
|
style: {
|
|
30340
30806
|
flex: 1
|
|
30341
30807
|
}
|
|
@@ -30344,7 +30810,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30344
30810
|
onRun: onClickRun,
|
|
30345
30811
|
value: jsonEditorVal,
|
|
30346
30812
|
shallowHeight: height
|
|
30347
|
-
})))), detailTablesSetting.length > 0 && (/*#__PURE__*/React$1.createElement(Tabs, {
|
|
30813
|
+
})))), detailTablesSetting.length > 0 && ( /*#__PURE__*/React$1.createElement(Tabs, {
|
|
30348
30814
|
defaultActiveKey: activeKey,
|
|
30349
30815
|
onChange: function onChange(v) {
|
|
30350
30816
|
return setActiveKey(v);
|
|
@@ -30361,13 +30827,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30361
30827
|
flex: 1,
|
|
30362
30828
|
width: 500
|
|
30363
30829
|
}
|
|
30364
|
-
}, isEmpty(moduleParams) ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30830
|
+
}, isEmpty(moduleParams) ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30365
30831
|
style: {
|
|
30366
30832
|
padding: "10px 0",
|
|
30367
30833
|
fontSize: "16px",
|
|
30368
30834
|
fontWeight: "bolder"
|
|
30369
30835
|
}
|
|
30370
|
-
}, "\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", {
|
|
30836
|
+
}, "\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", {
|
|
30371
30837
|
style: {
|
|
30372
30838
|
flex: 1
|
|
30373
30839
|
}
|
|
@@ -30389,13 +30855,13 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
|
|
|
30389
30855
|
flex: 1,
|
|
30390
30856
|
width: 500
|
|
30391
30857
|
}
|
|
30392
|
-
}, !tablesConfigParams[k.tableCode] ? (/*#__PURE__*/React$1.createElement("div", {
|
|
30858
|
+
}, !tablesConfigParams[k.tableCode] ? ( /*#__PURE__*/React$1.createElement("div", {
|
|
30393
30859
|
style: {
|
|
30394
30860
|
padding: "10px 0",
|
|
30395
30861
|
fontSize: "16px",
|
|
30396
30862
|
fontWeight: "bolder"
|
|
30397
30863
|
}
|
|
30398
|
-
}, "\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", {
|
|
30864
|
+
}, "\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", {
|
|
30399
30865
|
style: {
|
|
30400
30866
|
flex: 1
|
|
30401
30867
|
}
|
|
@@ -30490,7 +30956,7 @@ var formatListName = function formatListName(list, columns) {
|
|
|
30490
30956
|
});
|
|
30491
30957
|
};
|
|
30492
30958
|
|
|
30493
|
-
var _excluded$
|
|
30959
|
+
var _excluded$k = ["sorter"];
|
|
30494
30960
|
/**
|
|
30495
30961
|
* 删掉查询条件的qp- 和 -eq等
|
|
30496
30962
|
* @param {object} data
|
|
@@ -30541,7 +31007,7 @@ function getMetaData(_x) {
|
|
|
30541
31007
|
|
|
30542
31008
|
// 获取数据
|
|
30543
31009
|
function _getMetaData() {
|
|
30544
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
31010
|
+
_getMetaData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
|
|
30545
31011
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
30546
31012
|
while (1) switch (_context.prev = _context.next) {
|
|
30547
31013
|
case 0:
|
|
@@ -30573,7 +31039,7 @@ var remoteFetch = function remoteFetch(requestConfig, coloumns) {
|
|
|
30573
31039
|
var _requestConfig$method;
|
|
30574
31040
|
var params = _ref.params;
|
|
30575
31041
|
var sorter = params.sorter,
|
|
30576
|
-
paramsTemp = _objectWithoutProperties(params, _excluded$
|
|
31042
|
+
paramsTemp = _objectWithoutProperties(params, _excluded$k);
|
|
30577
31043
|
var queryParams = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, requestConfig.params), requestConfig.body), _.omit(paramsTemp, ['filters', 'current'])), (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.filters) || {}), {
|
|
30578
31044
|
currentPage: (paramsTemp === null || paramsTemp === void 0 ? void 0 : paramsTemp.currentPage) || paramsTemp.current || 1
|
|
30579
31045
|
});
|
|
@@ -30763,7 +31229,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
30763
31229
|
tableState = _useState4[0],
|
|
30764
31230
|
setTableState = _useState4[1];
|
|
30765
31231
|
var handleOpen = /*#__PURE__*/function () {
|
|
30766
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31232
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
30767
31233
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
30768
31234
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
30769
31235
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -31082,7 +31548,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
31082
31548
|
destroyOnClose: true
|
|
31083
31549
|
}, config && /*#__PURE__*/React$1.createElement(QueryTable, _objectSpread2({
|
|
31084
31550
|
ref: queryTableRef
|
|
31085
|
-
}, 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, {
|
|
31551
|
+
}, 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, {
|
|
31086
31552
|
justify: "center",
|
|
31087
31553
|
style: {
|
|
31088
31554
|
marginBottom: 30,
|
|
@@ -31198,7 +31664,7 @@ var CustomSelector = (function (props) {
|
|
|
31198
31664
|
var _props$ctx7;
|
|
31199
31665
|
return setFieldValue((_props$ctx7 = props.ctx) === null || _props$ctx7 === void 0 ? void 0 : _props$ctx7.name, multipleForQuery ? [] : '', fieldSource);
|
|
31200
31666
|
}
|
|
31201
|
-
})), showType === 'modalTable' && (/*#__PURE__*/React$1.createElement(Button, {
|
|
31667
|
+
})), showType === 'modalTable' && ( /*#__PURE__*/React$1.createElement(Button, {
|
|
31202
31668
|
type: "primary",
|
|
31203
31669
|
style: {
|
|
31204
31670
|
width: '30px',
|
|
@@ -31284,7 +31750,7 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31284
31750
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31285
31751
|
handSource = _useState2[0],
|
|
31286
31752
|
setHandSource = _useState2[1];
|
|
31287
|
-
useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31753
|
+
useEffect( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
31288
31754
|
var resData, data;
|
|
31289
31755
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31290
31756
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -31428,15 +31894,15 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
31428
31894
|
});
|
|
31429
31895
|
};
|
|
31430
31896
|
|
|
31431
|
-
var css_248z$
|
|
31432
|
-
styleInject(css_248z$
|
|
31897
|
+
var css_248z$v = ".base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n min-height: 80px;\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n height: 40px;\n}\n.base_rule .base_rule_line_title .rule_title {\n height: 35px;\n padding: 0 10px;\n font-weight: bold;\n font-size: 16px;\n line-height: 35px;\n}\n.base_rule .base_rule_line_title .base_rule_btn_style {\n position: absolute;\n right: 0px;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link {\n color: #008fe0;\n font-weight: bold;\n border: 0px !important;\n}\n.base_rule .base_rule_line_title :global .ant-btn-link:hover,\n.base_rule .base_rule_line_title :global .ant-btn-link:focus {\n color: #008fe0;\n background-color: transparent;\n border: 0px;\n border-color: #008fe0;\n}\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):hover,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):active,\n.base_rule .base_rule_line_title :global .ant-btn:not(.ant-btn-primary .ant-btn-danger):focus {\n color: #008fe0;\n}\n.base_rule .base_rule_line_content {\n display: flex;\n padding: 15px;\n overflow-x: auto;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn {\n margin-right: 10px;\n color: #89b9cf;\n font-size: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn:hover {\n cursor: pointer;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc_content {\n height: 45px;\n line-height: 45px;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc {\n margin-right: 15px;\n}\n.base_rule .base_rule_line_content .base_rule_item1 {\n align-items: center;\n width: 120px;\n color: #f8ab3c;\n font-size: 16px;\n}\n.base_rule .base_rule_line_content .base_rule_item2 {\n width: 75%;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n justify-content: space-around;\n margin-top: -20px;\n padding-left: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 .rule_action_return_border {\n margin-bottom: 10px;\n padding: 0px 10px 0px 10px;\n border: 1px dashed #d9d9d9;\n}\n.base_rule .base_rule_line_content .base_rule_item3 .rule_action_return_border .rule_border_title {\n position: relative;\n top: -10px;\n left: 20px;\n width: 90px;\n text-align: center;\n background: #fff;\n}\n.base_rule .base_rule_line_content .base_rule_item3 .rule_action_return_border .rule_action_item {\n display: flex;\n justify-content: space-between;\n}\n.base_rule .base_rule_line_content .line_color_red {\n color: #ed869b;\n}\n.base_rule .base_rule_line_content .base_rule_item4 {\n width: 80px;\n}\n.base_rule .footer_line > span {\n color: #008fe0;\n font-weight: bold;\n font-size: 16px;\n}\n.rule_name_title {\n display: inline-block;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n padding-left: 10px;\n color: #f8ab3c;\n font-size: 16px;\n line-height: 30px;\n}\n.logical_operate_content {\n position: relative;\n}\n.logical_operate_content .top_line {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content .bottom_line {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content::before {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 998;\n width: 2px;\n height: 100%;\n overflow: hidden;\n background: #d6efe8;\n content: ' ';\n}\n.logical_item_btn {\n position: absolute !important;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex !important;\n align-items: center;\n width: 50px;\n height: 30px !important;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px !important;\n color: #008fe0 !important;\n line-height: 30px !important;\n text-align: center !important;\n background-color: #ffffff !important;\n cursor: pointer !important;\n}\n.logical_item_btn1 {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-left: -15px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.rule_field_style {\n display: inline-block;\n}\n.icon_btn_style {\n margin-right: 10px;\n font-size: 20px;\n}\n.choose_logical_type {\n height: 25px;\n margin: 0px;\n padding: 0 10px;\n line-height: 25px;\n cursor: pointer;\n}\n.choose_logical_type:first-child {\n border-bottom: 1px solid #d9d9d9;\n}\n.choose_logical_type:hover {\n color: white;\n background-color: #008fe0;\n}\n.action_list_item {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n padding: 10px;\n border: 1px solid #e1e1f0;\n border-radius: 2px;\n cursor: pointer;\n}\n:global .ant-popover-inner-content {\n padding: 0px;\n}\n";
|
|
31898
|
+
styleInject(css_248z$v);
|
|
31433
31899
|
|
|
31434
31900
|
// 查询规则对象属性thresholdList
|
|
31435
31901
|
function getRegularThresholdRange(_x) {
|
|
31436
31902
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
31437
31903
|
}
|
|
31438
31904
|
function _getRegularThresholdRange() {
|
|
31439
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31905
|
+
_getRegularThresholdRange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
|
|
31440
31906
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31441
31907
|
while (1) switch (_context.prev = _context.next) {
|
|
31442
31908
|
case 0:
|
|
@@ -31590,7 +32056,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
31590
32056
|
};
|
|
31591
32057
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
31592
32058
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
31593
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
32059
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
31594
32060
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
31595
32061
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31596
32062
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -32535,7 +33001,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32535
33001
|
isAll: true,
|
|
32536
33002
|
needNameAndCode: true,
|
|
32537
33003
|
notChangeOnSelect: true,
|
|
32538
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
33004
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
32539
33005
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
32540
33006
|
while (1) switch (_context2.prev = _context2.next) {
|
|
32541
33007
|
case 0:
|
|
@@ -32584,7 +33050,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32584
33050
|
isAll: true,
|
|
32585
33051
|
needNameAndCode: true,
|
|
32586
33052
|
notChangeOnSelect: true,
|
|
32587
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
33053
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
32588
33054
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
32589
33055
|
while (1) switch (_context3.prev = _context3.next) {
|
|
32590
33056
|
case 0:
|
|
@@ -32635,7 +33101,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
32635
33101
|
isAll: true,
|
|
32636
33102
|
needNameAndCode: true,
|
|
32637
33103
|
notChangeOnSelect: true,
|
|
32638
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
33104
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
32639
33105
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
32640
33106
|
while (1) switch (_context4.prev = _context4.next) {
|
|
32641
33107
|
case 0:
|
|
@@ -34334,7 +34800,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34334
34800
|
style: {
|
|
34335
34801
|
marginLeft: '10px'
|
|
34336
34802
|
},
|
|
34337
|
-
className: css_248z$
|
|
34803
|
+
className: css_248z$v.rule_field_style
|
|
34338
34804
|
}, this.renderConditionField());
|
|
34339
34805
|
}
|
|
34340
34806
|
}]);
|
|
@@ -34599,7 +35065,7 @@ var App$1 = function App(_ref) {
|
|
|
34599
35065
|
borderRadius: '5px',
|
|
34600
35066
|
cursor: 'pointer'
|
|
34601
35067
|
}
|
|
34602
|
-
}, isStaticNumber ? (/*#__PURE__*/React$1.createElement(Input, {
|
|
35068
|
+
}, isStaticNumber ? ( /*#__PURE__*/React$1.createElement(Input, {
|
|
34603
35069
|
autoFocus: true,
|
|
34604
35070
|
onClick: function onClick(e) {
|
|
34605
35071
|
return e.stopPropagation();
|
|
@@ -34775,7 +35241,7 @@ var RuleField$1 = /*#__PURE__*/function (_Component) {
|
|
|
34775
35241
|
disabled = _this$props.disabled;
|
|
34776
35242
|
return /*#__PURE__*/React$1.createElement("div", null, ruleTypeData.map(function (i) {
|
|
34777
35243
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
34778
|
-
className: css_248z$
|
|
35244
|
+
className: css_248z$v.action_list_item
|
|
34779
35245
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
34780
35246
|
onClick: function onClick() {
|
|
34781
35247
|
return handleOperatingAction(i.code, 'view');
|
|
@@ -34886,7 +35352,7 @@ function RenderCompItem(props) {
|
|
|
34886
35352
|
dictData = _useState2[0],
|
|
34887
35353
|
setDictData = _useState2[1];
|
|
34888
35354
|
var getDictData = /*#__PURE__*/function () {
|
|
34889
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
35355
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34890
35356
|
var _data$map;
|
|
34891
35357
|
var data;
|
|
34892
35358
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -34928,7 +35394,7 @@ function RenderCompItem(props) {
|
|
|
34928
35394
|
var style2 = {
|
|
34929
35395
|
width: '100px'
|
|
34930
35396
|
};
|
|
34931
|
-
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, {
|
|
35397
|
+
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, {
|
|
34932
35398
|
disabled: disabled,
|
|
34933
35399
|
allowClear: true,
|
|
34934
35400
|
onClear: function onClear() {
|
|
@@ -34939,7 +35405,7 @@ function RenderCompItem(props) {
|
|
|
34939
35405
|
onBlur: function onBlur(e) {
|
|
34940
35406
|
handleEdit(ites.code, String(e.target.value).trim() == '' ? undefined : e.target.value);
|
|
34941
35407
|
}
|
|
34942
|
-
})) || 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, {
|
|
35408
|
+
})) || 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, {
|
|
34943
35409
|
disabled: disabled,
|
|
34944
35410
|
// max={Number.MAX_SAFE_INTEGER}
|
|
34945
35411
|
max: judgeIsEmpty(ites === null || ites === void 0 ? void 0 : ites.maxValue) ? Number.MAX_SAFE_INTEGER : ites.maxValue,
|
|
@@ -34952,7 +35418,7 @@ function RenderCompItem(props) {
|
|
|
34952
35418
|
onChange: function onChange(value) {
|
|
34953
35419
|
handleEdit(ites.code, value);
|
|
34954
35420
|
}
|
|
34955
|
-
})) || 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, {
|
|
35421
|
+
})) || 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, {
|
|
34956
35422
|
showTime: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 32,
|
|
34957
35423
|
format: (ites === null || ites === void 0 ? void 0 : ites.valueType) == 41 ? dateFormat : fullDateFormat,
|
|
34958
35424
|
disabled: disabled,
|
|
@@ -34962,7 +35428,7 @@ function RenderCompItem(props) {
|
|
|
34962
35428
|
onChange: function onChange(value, dateString) {
|
|
34963
35429
|
handleEdit(ites.code, dateString);
|
|
34964
35430
|
}
|
|
34965
|
-
})) || 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, {
|
|
35431
|
+
})) || 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, {
|
|
34966
35432
|
showTime: true,
|
|
34967
35433
|
disabled: disabled,
|
|
34968
35434
|
defaultValue: ites.defaultValue,
|
|
@@ -34971,7 +35437,7 @@ function RenderCompItem(props) {
|
|
|
34971
35437
|
onChange: function onChange(value, timeString) {
|
|
34972
35438
|
handleEdit(ites.code, timeString);
|
|
34973
35439
|
}
|
|
34974
|
-
})) || 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, {
|
|
35440
|
+
})) || 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, {
|
|
34975
35441
|
disabled: disabled,
|
|
34976
35442
|
defaultChecked: !!ites.defaultValue,
|
|
34977
35443
|
style: style2,
|
|
@@ -34979,7 +35445,7 @@ function RenderCompItem(props) {
|
|
|
34979
35445
|
onChange: function onChange(value) {
|
|
34980
35446
|
handleEdit(ites.code, value);
|
|
34981
35447
|
}
|
|
34982
|
-
})) || 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({
|
|
35448
|
+
})) || 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({
|
|
34983
35449
|
disabled: disabled,
|
|
34984
35450
|
allowClear: true,
|
|
34985
35451
|
showArrow: true
|
|
@@ -34997,7 +35463,7 @@ function RenderCompItem(props) {
|
|
|
34997
35463
|
key: it,
|
|
34998
35464
|
value: it
|
|
34999
35465
|
}, ites.enumeration[it]);
|
|
35000
|
-
}))) || 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, {
|
|
35466
|
+
}))) || 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, {
|
|
35001
35467
|
disabled: disabled,
|
|
35002
35468
|
inputType: ites === null || ites === void 0 ? void 0 : ites.inputType,
|
|
35003
35469
|
defaultValue: ites.defaultValue,
|
|
@@ -35007,7 +35473,7 @@ function RenderCompItem(props) {
|
|
|
35007
35473
|
handleEdit(ites.code, value);
|
|
35008
35474
|
},
|
|
35009
35475
|
dictionaryCode: ites.dictionaryCode
|
|
35010
|
-
})) || 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, {
|
|
35476
|
+
})) || 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, {
|
|
35011
35477
|
selectBusinessType: "physicalWarehouse",
|
|
35012
35478
|
selectProps: _objectSpread2({
|
|
35013
35479
|
style: styleCommon,
|
|
@@ -35029,7 +35495,7 @@ function RenderCompItem(props) {
|
|
|
35029
35495
|
getPopupContainer: function getPopupContainer() {
|
|
35030
35496
|
return document.body;
|
|
35031
35497
|
}
|
|
35032
|
-
})) || 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, {
|
|
35498
|
+
})) || 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, {
|
|
35033
35499
|
selectBusinessType: "realWarehouse",
|
|
35034
35500
|
selectProps: _objectSpread2({
|
|
35035
35501
|
style: styleCommon,
|
|
@@ -35051,7 +35517,7 @@ function RenderCompItem(props) {
|
|
|
35051
35517
|
getPopupContainer: function getPopupContainer() {
|
|
35052
35518
|
return document.body;
|
|
35053
35519
|
}
|
|
35054
|
-
})) || 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, {
|
|
35520
|
+
})) || 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, {
|
|
35055
35521
|
selectBusinessType: "virtualWarehouse",
|
|
35056
35522
|
selectProps: _objectSpread2({
|
|
35057
35523
|
style: styleCommon,
|
|
@@ -35073,7 +35539,7 @@ function RenderCompItem(props) {
|
|
|
35073
35539
|
getPopupContainer: function getPopupContainer() {
|
|
35074
35540
|
return document.body;
|
|
35075
35541
|
}
|
|
35076
|
-
})) || 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, {
|
|
35542
|
+
})) || 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, {
|
|
35077
35543
|
selectBusinessType: "channelWarehouse",
|
|
35078
35544
|
selectProps: _objectSpread2({
|
|
35079
35545
|
style: styleCommon,
|
|
@@ -35095,7 +35561,7 @@ function RenderCompItem(props) {
|
|
|
35095
35561
|
getPopupContainer: function getPopupContainer() {
|
|
35096
35562
|
return document.body;
|
|
35097
35563
|
}
|
|
35098
|
-
})) || 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, {
|
|
35564
|
+
})) || 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, {
|
|
35099
35565
|
selectBusinessType: "spuCommodity",
|
|
35100
35566
|
selectProps: _objectSpread2({
|
|
35101
35567
|
style: styleCommon,
|
|
@@ -35116,7 +35582,7 @@ function RenderCompItem(props) {
|
|
|
35116
35582
|
getPopupContainer: function getPopupContainer() {
|
|
35117
35583
|
return document.body;
|
|
35118
35584
|
}
|
|
35119
|
-
})) || 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, {
|
|
35585
|
+
})) || 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, {
|
|
35120
35586
|
selectBusinessType: "skuCommodity",
|
|
35121
35587
|
selectProps: _objectSpread2({
|
|
35122
35588
|
style: styleCommon,
|
|
@@ -35137,13 +35603,13 @@ function RenderCompItem(props) {
|
|
|
35137
35603
|
getPopupContainer: function getPopupContainer() {
|
|
35138
35604
|
return document.body;
|
|
35139
35605
|
}
|
|
35140
|
-
})) || 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, {
|
|
35606
|
+
})) || 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, {
|
|
35141
35607
|
disabled: disabled,
|
|
35142
35608
|
isAll: true,
|
|
35143
35609
|
needNameAndCode: true,
|
|
35144
35610
|
notChangeOnSelect: true,
|
|
35145
35611
|
initRequestSource: function () {
|
|
35146
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35612
|
+
var _initRequestSource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
35147
35613
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
35148
35614
|
while (1) switch (_context2.prev = _context2.next) {
|
|
35149
35615
|
case 0:
|
|
@@ -35185,7 +35651,7 @@ function RenderCompItem(props) {
|
|
|
35185
35651
|
getPopupContainer: function getPopupContainer() {
|
|
35186
35652
|
return document.body;
|
|
35187
35653
|
}
|
|
35188
|
-
})) || 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, {
|
|
35654
|
+
})) || 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, {
|
|
35189
35655
|
disabled: disabled,
|
|
35190
35656
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35191
35657
|
businessType: "department",
|
|
@@ -35198,7 +35664,7 @@ function RenderCompItem(props) {
|
|
|
35198
35664
|
getPopupContainer: function getPopupContainer() {
|
|
35199
35665
|
return document.body;
|
|
35200
35666
|
}
|
|
35201
|
-
})) || 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, {
|
|
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) === 220 && ( /*#__PURE__*/React$1.createElement(BusinessTreeSearchSelect$1, {
|
|
35202
35668
|
disabled: disabled,
|
|
35203
35669
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35204
35670
|
businessType: "purchase-organization",
|
|
@@ -35211,7 +35677,7 @@ function RenderCompItem(props) {
|
|
|
35211
35677
|
getPopupContainer: function getPopupContainer() {
|
|
35212
35678
|
return document.body;
|
|
35213
35679
|
}
|
|
35214
|
-
})) || 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, {
|
|
35680
|
+
})) || 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, {
|
|
35215
35681
|
disabled: disabled,
|
|
35216
35682
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35217
35683
|
businessType: "sales-organization",
|
|
@@ -35224,7 +35690,7 @@ function RenderCompItem(props) {
|
|
|
35224
35690
|
getPopupContainer: function getPopupContainer() {
|
|
35225
35691
|
return document.body;
|
|
35226
35692
|
}
|
|
35227
|
-
})) || 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, {
|
|
35693
|
+
})) || 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, {
|
|
35228
35694
|
selectBusinessType: "supplier2",
|
|
35229
35695
|
selectProps: _objectSpread2({
|
|
35230
35696
|
style: styleCommon,
|
|
@@ -35245,7 +35711,7 @@ function RenderCompItem(props) {
|
|
|
35245
35711
|
getPopupContainer: function getPopupContainer() {
|
|
35246
35712
|
return document.body;
|
|
35247
35713
|
}
|
|
35248
|
-
})) || 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, {
|
|
35714
|
+
})) || 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, {
|
|
35249
35715
|
selectBusinessType: "customer2",
|
|
35250
35716
|
selectProps: _objectSpread2({
|
|
35251
35717
|
style: styleCommon,
|
|
@@ -35266,7 +35732,7 @@ function RenderCompItem(props) {
|
|
|
35266
35732
|
getPopupContainer: function getPopupContainer() {
|
|
35267
35733
|
return document.body;
|
|
35268
35734
|
}
|
|
35269
|
-
})) || 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, {
|
|
35735
|
+
})) || 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, {
|
|
35270
35736
|
selectBusinessType: "shopFile2",
|
|
35271
35737
|
selectProps: _objectSpread2({
|
|
35272
35738
|
style: styleCommon,
|
|
@@ -35287,7 +35753,7 @@ function RenderCompItem(props) {
|
|
|
35287
35753
|
getPopupContainer: function getPopupContainer() {
|
|
35288
35754
|
return document.body;
|
|
35289
35755
|
}
|
|
35290
|
-
})) || 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, {
|
|
35756
|
+
})) || 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, {
|
|
35291
35757
|
selectBusinessType: "employee2",
|
|
35292
35758
|
selectProps: _objectSpread2({
|
|
35293
35759
|
style: styleCommon,
|
|
@@ -35308,7 +35774,7 @@ function RenderCompItem(props) {
|
|
|
35308
35774
|
getPopupContainer: function getPopupContainer() {
|
|
35309
35775
|
return document.body;
|
|
35310
35776
|
}
|
|
35311
|
-
})) || 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, {
|
|
35777
|
+
})) || 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, {
|
|
35312
35778
|
disabled: disabled,
|
|
35313
35779
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35314
35780
|
businessType: "stock-organization",
|
|
@@ -35321,7 +35787,7 @@ function RenderCompItem(props) {
|
|
|
35321
35787
|
getPopupContainer: function getPopupContainer() {
|
|
35322
35788
|
return document.body;
|
|
35323
35789
|
}
|
|
35324
|
-
})) || 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, {
|
|
35790
|
+
})) || 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, {
|
|
35325
35791
|
disabled: disabled,
|
|
35326
35792
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35327
35793
|
businessType: "settle-organization",
|
|
@@ -35334,7 +35800,7 @@ function RenderCompItem(props) {
|
|
|
35334
35800
|
getPopupContainer: function getPopupContainer() {
|
|
35335
35801
|
return document.body;
|
|
35336
35802
|
}
|
|
35337
|
-
})) || 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, {
|
|
35803
|
+
})) || 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, {
|
|
35338
35804
|
selectBusinessType: "deliveryMode",
|
|
35339
35805
|
selectProps: _objectSpread2({
|
|
35340
35806
|
style: styleCommon,
|
|
@@ -35355,7 +35821,7 @@ function RenderCompItem(props) {
|
|
|
35355
35821
|
getPopupContainer: function getPopupContainer() {
|
|
35356
35822
|
return document.body;
|
|
35357
35823
|
}
|
|
35358
|
-
})) || 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, {
|
|
35824
|
+
})) || 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, {
|
|
35359
35825
|
selectBusinessType: "role",
|
|
35360
35826
|
selectProps: _objectSpread2({
|
|
35361
35827
|
style: styleCommon,
|
|
@@ -35376,7 +35842,7 @@ function RenderCompItem(props) {
|
|
|
35376
35842
|
getPopupContainer: function getPopupContainer() {
|
|
35377
35843
|
return document.body;
|
|
35378
35844
|
}
|
|
35379
|
-
})) || 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, {
|
|
35845
|
+
})) || 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, {
|
|
35380
35846
|
selectBusinessType: "brand",
|
|
35381
35847
|
selectProps: _objectSpread2({
|
|
35382
35848
|
style: styleCommon,
|
|
@@ -35397,7 +35863,7 @@ function RenderCompItem(props) {
|
|
|
35397
35863
|
getPopupContainer: function getPopupContainer() {
|
|
35398
35864
|
return document.body;
|
|
35399
35865
|
}
|
|
35400
|
-
})) || 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, {
|
|
35866
|
+
})) || 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, {
|
|
35401
35867
|
disabled: disabled,
|
|
35402
35868
|
treeCheckable: (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30,
|
|
35403
35869
|
businessType: "background-category",
|
|
@@ -35410,7 +35876,7 @@ function RenderCompItem(props) {
|
|
|
35410
35876
|
getPopupContainer: function getPopupContainer() {
|
|
35411
35877
|
return document.body;
|
|
35412
35878
|
}
|
|
35413
|
-
})) || 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, {
|
|
35879
|
+
})) || 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, {
|
|
35414
35880
|
selectProps: _objectSpread2(_objectSpread2({
|
|
35415
35881
|
style: styleCommon,
|
|
35416
35882
|
placeholder: '请选择'
|
|
@@ -35433,7 +35899,7 @@ function RenderCompItem(props) {
|
|
|
35433
35899
|
onChange: function onChange(value) {
|
|
35434
35900
|
handleEdit(ites.code, value);
|
|
35435
35901
|
}
|
|
35436
|
-
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && (/*#__PURE__*/React$1.createElement("div", {
|
|
35902
|
+
})) || null, (ites === null || ites === void 0 ? void 0 : ites.inputType) === 40 && ( /*#__PURE__*/React$1.createElement("div", {
|
|
35437
35903
|
style: {
|
|
35438
35904
|
display: 'flex'
|
|
35439
35905
|
}
|
|
@@ -35945,7 +36411,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
35945
36411
|
queryIdentify = _this.dynamicDictCodeToRangeIdMap["".concat(itemDetail.metaObjectCode, ".").concat(itemDetail.propertyPath)];
|
|
35946
36412
|
queryIdentifyType = 'dynamicDictCodeIdentify';
|
|
35947
36413
|
}
|
|
35948
|
-
var parallelTreeData =
|
|
36414
|
+
var parallelTreeData = coverToParallel(ruleTreeData, []) || [];
|
|
35949
36415
|
var currentTreeItem = (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.elementId) && parallelTreeData.find(function (i) {
|
|
35950
36416
|
var _i$key;
|
|
35951
36417
|
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);
|
|
@@ -36722,8 +37188,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
36722
37188
|
}]);
|
|
36723
37189
|
}(Component);
|
|
36724
37190
|
|
|
36725
|
-
var css_248z$
|
|
36726
|
-
styleInject(css_248z$
|
|
37191
|
+
var css_248z$w = ".goBack_btn_content {\n position: relative;\n overflow: auto;\n}\n.goBack_btn_content .goback_btn {\n float: right;\n}\n.base_rule p {\n margin: 0;\n}\n.base_rule .base_rule_content {\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title {\n position: relative;\n margin-bottom: 20px;\n}\n.base_rule .base_rule_line_title .rule_title {\n height: 35px;\n padding: 0 10px;\n font-weight: bold;\n font-size: 16px;\n line-height: 35px;\n}\n.base_rule .base_rule_line_title .base_rule_btn_style {\n position: absolute;\n right: 0px;\n}\n.base_rule .base_rule_line_content {\n display: flex;\n padding: 14px 10px 10px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn {\n margin-right: 10px;\n color: #89b9cf;\n font-size: 20px;\n}\n.base_rule .base_rule_line_content .base_rule_icon_btn:hover {\n cursor: pointer;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc_content {\n height: 45px;\n line-height: 45px;\n}\n.base_rule .base_rule_line_content .base_rule_item_desc {\n margin-right: 15px;\n}\n.base_rule .base_rule_line_content .base_rule_item1 {\n align-items: center;\n width: 120px;\n color: #f8ab3c;\n font-size: 16px;\n}\n.base_rule .base_rule_line_content .base_rule_item2 {\n width: 1200px;\n}\n.base_rule .base_rule_line_content .base_rule_item3 {\n display: flex;\n align-items: center;\n justify-content: space-around;\n width: calc(100% - 600px);\n}\n.base_rule .base_rule_line_content .line_color_red {\n color: #ed869b;\n}\n.base_rule .base_rule_line_content .base_rule_item4 {\n width: 80px;\n}\n.base_rule .footer_line > span {\n color: #008fe0;\n font-weight: bold;\n font-size: 16px;\n}\n.rule_name_title {\n display: inline-block;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n padding-left: 10px;\n color: #f8ab3c;\n font-size: 16px;\n line-height: 30px;\n}\n.logical_operate_content {\n position: relative;\n}\n.logical_operate_content .top_line {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content .bottom_line {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n width: 15px;\n height: 2px;\n background-color: #d6efe8;\n}\n.logical_operate_content::before {\n position: absolute;\n top: 0;\n left: 50%;\n z-index: 998;\n width: 2px;\n height: 100%;\n overflow: hidden;\n background: #d6efe8;\n content: ' ';\n}\n.logical_item_btn {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: 999;\n display: flex;\n align-items: center;\n width: 50px;\n height: 30px;\n margin-top: -15px;\n margin-left: -25px;\n padding: 0px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.logical_item_btn1 {\n position: absolute;\n bottom: 0;\n left: 50%;\n z-index: 999;\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-left: -15px;\n color: #008fe0;\n line-height: 30px;\n text-align: center;\n background-color: #ffffff;\n cursor: pointer;\n}\n.rule_field_style {\n display: inline-block;\n}\n.icon_btn_style {\n margin-right: 10px;\n font-size: 20px;\n}\n.choose_logical_type {\n height: 25px;\n margin: 0px;\n padding: 0 10px;\n line-height: 25px;\n cursor: pointer;\n}\n.choose_logical_type:first-child {\n border-bottom: 1px solid #d9d9d9;\n}\n.choose_logical_type:hover {\n color: white;\n background-color: #008fe0;\n}\n";
|
|
37192
|
+
styleInject(css_248z$w);
|
|
36727
37193
|
|
|
36728
37194
|
var formatOperationList = function formatOperationList(data) {
|
|
36729
37195
|
var _result$find;
|
|
@@ -36872,13 +37338,13 @@ var handleRuleRequireCheck = function handleRuleRequireCheck(saveData, ruleActio
|
|
|
36872
37338
|
var checkInfo = []; // 没有选必填执行动作(暂不考虑);执行动作下的对象未选
|
|
36873
37339
|
// 处理对象-设置了必填-规则实例保存时数据必填校验
|
|
36874
37340
|
if (isInstance && (regularDataList === null || regularDataList === void 0 ? void 0 : regularDataList.length) && (saveData === null || saveData === void 0 ? void 0 : saveData.length)) {
|
|
36875
|
-
var list =
|
|
37341
|
+
var list = coverToParallel(regularDataList, [], 'propertyList'); // 平铺对象树
|
|
36876
37342
|
var requiredList = list.filter(function (c) {
|
|
36877
37343
|
return c.required == 1;
|
|
36878
37344
|
}) || []; // 获取对象属性为true的集合
|
|
36879
37345
|
(requiredList === null || requiredList === void 0 ? void 0 : requiredList.length) && saveData.forEach(function (s, index) {
|
|
36880
37346
|
var _s$expression, _s$expression$subExpr, _s$expression2, _coverExpressionTree$;
|
|
36881
|
-
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) ?
|
|
37347
|
+
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];
|
|
36882
37348
|
(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) {
|
|
36883
37349
|
if (requiredList.some(function (r) {
|
|
36884
37350
|
return r.id === e.elementId;
|
|
@@ -37456,18 +37922,18 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37456
37922
|
return /*#__PURE__*/React$1.createElement(Spin, {
|
|
37457
37923
|
spinning: loading
|
|
37458
37924
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
37459
|
-
className: css_248z$
|
|
37925
|
+
className: css_248z$w.base_rule
|
|
37460
37926
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
37461
|
-
className: css_248z$
|
|
37927
|
+
className: css_248z$w.base_rule_content
|
|
37462
37928
|
}, /*#__PURE__*/React$1.createElement("p", {
|
|
37463
|
-
className: css_248z$
|
|
37929
|
+
className: css_248z$w.base_rule_line_title
|
|
37464
37930
|
}, /*#__PURE__*/React$1.createElement("span", {
|
|
37465
|
-
className: css_248z$
|
|
37931
|
+
className: css_248z$w.rule_title
|
|
37466
37932
|
}, (_handleDiff = handleDiff()) === null || _handleDiff === void 0 ? void 0 : _handleDiff.title), /*#__PURE__*/React$1.createElement("p", {
|
|
37467
37933
|
style: {
|
|
37468
37934
|
float: 'right'
|
|
37469
37935
|
}
|
|
37470
|
-
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? (/*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37936
|
+
})), /*#__PURE__*/React$1.createElement("div", null, sceneId ? ( /*#__PURE__*/React$1.createElement(RuleObjectComponent, _objectSpread2(_objectSpread2({}, props === null || props === void 0 ? void 0 : props.RuleObjectComponentProps), {}, {
|
|
37471
37937
|
onlyOneRule: (_handleDiff2 = handleDiff()) === null || _handleDiff2 === void 0 ? void 0 : _handleDiff2.onlyOneRule,
|
|
37472
37938
|
ruleGroupInfo: {
|
|
37473
37939
|
ruleGroupList: ruleGroupList,
|
|
@@ -37485,7 +37951,7 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37485
37951
|
callBack: function callBack(newData) {
|
|
37486
37952
|
upDateData(newData);
|
|
37487
37953
|
}
|
|
37488
|
-
}))) : (/*#__PURE__*/React$1.createElement("div", {
|
|
37954
|
+
}))) : ( /*#__PURE__*/React$1.createElement("div", {
|
|
37489
37955
|
style: {
|
|
37490
37956
|
padding: 20
|
|
37491
37957
|
}
|
|
@@ -37712,17 +38178,17 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
37712
38178
|
})));
|
|
37713
38179
|
});
|
|
37714
38180
|
|
|
37715
|
-
var css_248z$
|
|
37716
|
-
styleInject(css_248z$
|
|
38181
|
+
var css_248z$x = ".bs-collapse-wrap {\n border-radius: 4px;\n overflow: hidden;\n}\n.bs-collapse-wrap .bs-collapse-header-wrap {\n background: #fff;\n}\n.bs-collapse-wrap .bs-collapse-icon {\n color: #b6b6b6;\n transition: transform 0.3s;\n}\n.bs-collapse-wrap .bs-guidewrap-icon-toogle {\n transform: rotate(180deg);\n}\n.bs-collapse-wrap .bs-collapse-header-title {\n font-weight: 500;\n font-size: 14px;\n color: #000000;\n}\n.bs-collapse-wrap .bs-collapse-header-divider {\n width: 3px;\n height: 20px;\n background: #005cff;\n}\n.bs-collapse-header-boder .ant-collapse .ant-collapse-item > .ant-collapse-header {\n border-bottom: 1px solid #f0f0f0;\n padding: 8px 16px;\n}\n";
|
|
38182
|
+
styleInject(css_248z$x);
|
|
37717
38183
|
|
|
37718
|
-
var _excluded$
|
|
38184
|
+
var _excluded$l = ["titleExtra", "header", "showArrow"];
|
|
37719
38185
|
var Panel = Collapse.Panel;
|
|
37720
38186
|
var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
37721
38187
|
var titleExtra = _ref.titleExtra,
|
|
37722
38188
|
header = _ref.header,
|
|
37723
38189
|
_ref$showArrow = _ref.showArrow,
|
|
37724
38190
|
showArrow = _ref$showArrow === void 0 ? false : _ref$showArrow,
|
|
37725
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
38191
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
37726
38192
|
var renderHeader = function renderHeader() {
|
|
37727
38193
|
return /*#__PURE__*/React$1.createElement(Space, {
|
|
37728
38194
|
align: "center"
|
|
@@ -37746,11 +38212,11 @@ var ExtendedPanel = function ExtendedPanel(_ref) {
|
|
|
37746
38212
|
}), props.children);
|
|
37747
38213
|
};
|
|
37748
38214
|
|
|
37749
|
-
var _excluded$
|
|
38215
|
+
var _excluded$m = ["children", "bordered"];
|
|
37750
38216
|
var ExtendedCollapse = function ExtendedCollapse(props) {
|
|
37751
38217
|
var children = props.children,
|
|
37752
38218
|
bordered = props.bordered,
|
|
37753
|
-
restProps = _objectWithoutProperties(props, _excluded$
|
|
38219
|
+
restProps = _objectWithoutProperties(props, _excluded$m);
|
|
37754
38220
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
37755
38221
|
className: classNames({
|
|
37756
38222
|
'bs-collapse-wrap': true,
|
|
@@ -37764,9 +38230,9 @@ var index$8 = Object.assign(ExtendedCollapse, {
|
|
|
37764
38230
|
Board: ExtendedPanel
|
|
37765
38231
|
});
|
|
37766
38232
|
|
|
37767
|
-
var css_248z$
|
|
38233
|
+
var css_248z$y = ".index-module_paragraphCopyWrapper__3rGOI {\n display: flex;\n margin-bottom: 4px;\n}\n.index-module_paragraphCopyWrapper__3rGOI .index-module_paragraphCopyLabel__1Qb8u {\n color: #8c8e91;\n font-size: 12px;\n white-space: nowrap;\n}\n.index-module_paragraphCopyWrapper__3rGOI .index-module_paragraphCopy__1y7Jo {\n min-width: 100px;\n margin-bottom: 0;\n font-size: 12px;\n flex: 1;\n}\n";
|
|
37768
38234
|
var styles = {"paragraphCopyWrapper":"index-module_paragraphCopyWrapper__3rGOI","paragraphCopyLabel":"index-module_paragraphCopyLabel__1Qb8u","paragraphCopy":"index-module_paragraphCopy__1y7Jo"};
|
|
37769
|
-
styleInject(css_248z$
|
|
38235
|
+
styleInject(css_248z$y);
|
|
37770
38236
|
|
|
37771
38237
|
var Paragraph = Typography.Paragraph;
|
|
37772
38238
|
var Section = function Section(_ref) {
|
|
@@ -37860,4 +38326,4 @@ var ParagraphCopier = function ParagraphCopier(props) {
|
|
|
37860
38326
|
}, children));
|
|
37861
38327
|
};
|
|
37862
38328
|
|
|
37863
|
-
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, QueryMutipleInput, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy,
|
|
38329
|
+
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 };
|