@bit-sun/business-component 2.3.2 → 2.3.4
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/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
- package/dist/components/Business/BsLayouts/index.d.ts +2 -2
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
- package/dist/components/Business/TreeSearchSelect/utils.d.ts +3 -1
- package/dist/components/Functional/BsAntdSula/BsCascader/index.d.ts +1 -1
- package/dist/index.esm.js +93 -114
- package/dist/index.js +99 -120
- package/dist/utils/TableUtils.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/Business/TreeSearchSelect/index.tsx +1 -2
- package/src/components/Business/TreeSearchSelect/utils.ts +7 -1
- package/src/components/Functional/SearchSelect/index.tsx +9 -13
- package/src/components/Functional/TreeSearchSelect/index.tsx +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './home.less';
|
|
3
|
-
export type SiderTheme = 'light' | 'dark';
|
|
4
|
-
export type GlobalHeaderRightProps = {
|
|
3
|
+
export declare type SiderTheme = 'light' | 'dark';
|
|
4
|
+
export declare type GlobalHeaderRightProps = {
|
|
5
5
|
menu?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const GlobalHeaderRight: React.FC<GlobalHeaderRightProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
export type SiderTheme = 'light' | 'dark';
|
|
4
|
-
export type GlobalHeaderRightProps = {
|
|
3
|
+
export declare type SiderTheme = 'light' | 'dark';
|
|
4
|
+
export declare type GlobalHeaderRightProps = {
|
|
5
5
|
menu?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const AllFunc: React.FC<GlobalHeaderRightProps>;
|
|
@@ -2,14 +2,14 @@ import type { MenuDataItem, BasicLayoutProps as ProLayoutProps, Settings } from
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export declare const RouterContext: React.Context<{}>;
|
|
5
|
-
export type BasicLayoutProps = {
|
|
5
|
+
export declare type BasicLayoutProps = {
|
|
6
6
|
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
7
7
|
route: ProLayoutProps['route'] & {
|
|
8
8
|
authority: string[];
|
|
9
9
|
};
|
|
10
10
|
settings: Settings;
|
|
11
11
|
} & ProLayoutProps;
|
|
12
|
-
export type BasicLayoutContext = {
|
|
12
|
+
export declare type BasicLayoutContext = {
|
|
13
13
|
[K in 'location']: BasicLayoutProps[K];
|
|
14
14
|
} & {
|
|
15
15
|
breadcrumbNameMap: Record<string, MenuDataItem>;
|
|
@@ -46,13 +46,13 @@ export declare const handleTextLineFeed: (text: string | undefined, width?: numb
|
|
|
46
46
|
export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
|
|
47
47
|
export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
48
48
|
export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
|
|
49
|
-
type tableColumnsImageType = {
|
|
49
|
+
declare type tableColumnsImageType = {
|
|
50
50
|
width?: number | string;
|
|
51
51
|
height?: number | string;
|
|
52
52
|
[key: string]: any;
|
|
53
53
|
};
|
|
54
54
|
export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
|
|
55
|
-
type UserColumnsType = {
|
|
55
|
+
declare type UserColumnsType = {
|
|
56
56
|
name: string;
|
|
57
57
|
department?: string;
|
|
58
58
|
position?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import axios from 'axios';
|
|
|
2
2
|
import { message as message$1, Popover, Card, Avatar, Tooltip, Image, Menu, Space, Dropdown, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix, Cascader, DatePicker, TimePicker, Switch } from 'antd';
|
|
3
3
|
import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
|
|
4
4
|
import { history, formatMessage, useLocation, Link, useModel, useIntl } from 'umi';
|
|
5
|
-
import isEqual
|
|
5
|
+
import isEqual from 'lodash/isEqual';
|
|
6
6
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
|
|
7
7
|
import moment$1 from 'moment';
|
|
8
8
|
import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined, EditOutlined, MinusCircleOutlined, PlusCircleOutlined } from '@ant-design/icons';
|
|
@@ -136,33 +136,6 @@ axios.interceptors.request.use(function (config) {
|
|
|
136
136
|
return config;
|
|
137
137
|
});
|
|
138
138
|
|
|
139
|
-
function _iterableToArrayLimit(arr, i) {
|
|
140
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
141
|
-
if (null != _i) {
|
|
142
|
-
var _s,
|
|
143
|
-
_e,
|
|
144
|
-
_x,
|
|
145
|
-
_r,
|
|
146
|
-
_arr = [],
|
|
147
|
-
_n = !0,
|
|
148
|
-
_d = !1;
|
|
149
|
-
try {
|
|
150
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
151
|
-
if (Object(_i) !== _i) return;
|
|
152
|
-
_n = !1;
|
|
153
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
154
|
-
} catch (err) {
|
|
155
|
-
_d = !0, _e = err;
|
|
156
|
-
} finally {
|
|
157
|
-
try {
|
|
158
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
159
|
-
} finally {
|
|
160
|
-
if (_d) throw _e;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return _arr;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
139
|
function ownKeys(object, enumerableOnly) {
|
|
167
140
|
var keys = Object.keys(object);
|
|
168
141
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -319,9 +292,14 @@ function _regeneratorRuntime() {
|
|
|
319
292
|
};
|
|
320
293
|
}
|
|
321
294
|
function maybeInvokeDelegate(delegate, context) {
|
|
322
|
-
var
|
|
323
|
-
|
|
324
|
-
|
|
295
|
+
var method = delegate.iterator[context.method];
|
|
296
|
+
if (undefined === method) {
|
|
297
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
298
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
299
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
300
|
+
}
|
|
301
|
+
return ContinueSentinel;
|
|
302
|
+
}
|
|
325
303
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
326
304
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
327
305
|
var info = record.arg;
|
|
@@ -535,7 +513,7 @@ function _defineProperties(target, props) {
|
|
|
535
513
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
536
514
|
descriptor.configurable = true;
|
|
537
515
|
if ("value" in descriptor) descriptor.writable = true;
|
|
538
|
-
Object.defineProperty(target,
|
|
516
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
539
517
|
}
|
|
540
518
|
}
|
|
541
519
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -547,7 +525,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
547
525
|
return Constructor;
|
|
548
526
|
}
|
|
549
527
|
function _defineProperty(obj, key, value) {
|
|
550
|
-
key = _toPropertyKey(key);
|
|
551
528
|
if (key in obj) {
|
|
552
529
|
Object.defineProperty(obj, key, {
|
|
553
530
|
value: value,
|
|
@@ -690,6 +667,30 @@ function _arrayWithHoles(arr) {
|
|
|
690
667
|
function _iterableToArray(iter) {
|
|
691
668
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
692
669
|
}
|
|
670
|
+
function _iterableToArrayLimit(arr, i) {
|
|
671
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
672
|
+
if (_i == null) return;
|
|
673
|
+
var _arr = [];
|
|
674
|
+
var _n = true;
|
|
675
|
+
var _d = false;
|
|
676
|
+
var _s, _e;
|
|
677
|
+
try {
|
|
678
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
679
|
+
_arr.push(_s.value);
|
|
680
|
+
if (i && _arr.length === i) break;
|
|
681
|
+
}
|
|
682
|
+
} catch (err) {
|
|
683
|
+
_d = true;
|
|
684
|
+
_e = err;
|
|
685
|
+
} finally {
|
|
686
|
+
try {
|
|
687
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
688
|
+
} finally {
|
|
689
|
+
if (_d) throw _e;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
return _arr;
|
|
693
|
+
}
|
|
693
694
|
function _unsupportedIterableToArray(o, minLen) {
|
|
694
695
|
if (!o) return;
|
|
695
696
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -709,20 +710,6 @@ function _nonIterableSpread() {
|
|
|
709
710
|
function _nonIterableRest() {
|
|
710
711
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
711
712
|
}
|
|
712
|
-
function _toPrimitive(input, hint) {
|
|
713
|
-
if (typeof input !== "object" || input === null) return input;
|
|
714
|
-
var prim = input[Symbol.toPrimitive];
|
|
715
|
-
if (prim !== undefined) {
|
|
716
|
-
var res = prim.call(input, hint || "default");
|
|
717
|
-
if (typeof res !== "object") return res;
|
|
718
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
719
|
-
}
|
|
720
|
-
return (hint === "string" ? String : Number)(input);
|
|
721
|
-
}
|
|
722
|
-
function _toPropertyKey(arg) {
|
|
723
|
-
var key = _toPrimitive(arg, "string");
|
|
724
|
-
return typeof key === "symbol" ? key : String(key);
|
|
725
|
-
}
|
|
726
713
|
|
|
727
714
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
728
715
|
var errorMessage = _objectSpread2({
|
|
@@ -762,52 +749,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
762
749
|
return '';
|
|
763
750
|
};
|
|
764
751
|
|
|
765
|
-
var
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
function
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
752
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
753
|
+
return a === b;
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
function index$1 (resultFn, isEqual) {
|
|
757
|
+
if (isEqual === void 0) {
|
|
758
|
+
isEqual = simpleIsEqual;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
var lastThis;
|
|
762
|
+
var lastArgs = [];
|
|
763
|
+
var lastResult;
|
|
764
|
+
var calledOnce = false;
|
|
765
|
+
|
|
766
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
767
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
var result = function result() {
|
|
771
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
772
|
+
newArgs[_key] = arguments[_key];
|
|
781
773
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
}
|
|
774
|
+
|
|
775
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
776
|
+
return lastResult;
|
|
786
777
|
}
|
|
787
|
-
return true;
|
|
788
|
-
}
|
|
789
778
|
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
799
|
-
newArgs[_i] = arguments[_i];
|
|
800
|
-
}
|
|
801
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
802
|
-
return lastResult;
|
|
803
|
-
}
|
|
804
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
805
|
-
calledOnce = true;
|
|
806
|
-
lastThis = this;
|
|
807
|
-
lastArgs = newArgs;
|
|
808
|
-
return lastResult;
|
|
809
|
-
}
|
|
810
|
-
return memoized;
|
|
779
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
780
|
+
calledOnce = true;
|
|
781
|
+
lastThis = this;
|
|
782
|
+
lastArgs = newArgs;
|
|
783
|
+
return lastResult;
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
return result;
|
|
811
787
|
}
|
|
812
788
|
|
|
813
789
|
function styleInject(css, ref) {
|
|
@@ -1118,7 +1094,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1118
1094
|
return item;
|
|
1119
1095
|
});
|
|
1120
1096
|
};
|
|
1121
|
-
var memoizeOneFormatter =
|
|
1097
|
+
var memoizeOneFormatter = index$1(formatter, isEqual);
|
|
1122
1098
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1123
1099
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1124
1100
|
history.goBack();
|
|
@@ -2778,9 +2754,13 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
2778
2754
|
// 解决依赖项在弹窗中回显/更改(如果不能更改,传参fixedparamsDisabled为true即可)
|
|
2779
2755
|
if (type == 2 || type == 3) {
|
|
2780
2756
|
var fixedChangeParamVal = form.getFieldValue(item);
|
|
2757
|
+
var isDependenceValueChange = false;
|
|
2758
|
+
var dependenceValue = fixedParamVal;
|
|
2781
2759
|
// 依赖项在弹窗form中更改--①更换依赖值;②去掉依赖值
|
|
2782
|
-
|
|
2783
|
-
|
|
2760
|
+
if (!fixedparamsDisabled) {
|
|
2761
|
+
isDependenceValueChange = fixedChangeParamVal && fixedChangeParamVal !== fixedParamVal || type == 2 && !fixedChangeParamVal;
|
|
2762
|
+
dependenceValue = isDependenceValueChange ? fixedChangeParamVal : fixedParamVal;
|
|
2763
|
+
}
|
|
2784
2764
|
fixedParam[item] = dependenceValue;
|
|
2785
2765
|
form.setFieldsValue(_objectSpread2(_objectSpread2({}, form === null || form === void 0 ? void 0 : form.getFieldsValue()), {}, _defineProperty({}, item, dependenceValue)));
|
|
2786
2766
|
if (isDependenceValueChange) {
|
|
@@ -3121,17 +3101,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
3121
3101
|
};
|
|
3122
3102
|
var onResetTable = function onResetTable() {
|
|
3123
3103
|
form.resetFields();
|
|
3124
|
-
|
|
3125
|
-
var fixedParam = {};
|
|
3126
|
-
if (fixedparamsDisabled) {
|
|
3127
|
-
if (fixedparameter && fieldValToParam && ctx) {
|
|
3128
|
-
fixedparameter.forEach(function (item, index) {
|
|
3129
|
-
fixedParam[item] = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
3130
|
-
});
|
|
3131
|
-
}
|
|
3132
|
-
form.setFieldsValue(_objectSpread2({}, fixedParam));
|
|
3133
|
-
}
|
|
3134
|
-
setTableFormParams(_objectSpread2({}, fixedParam));
|
|
3104
|
+
setTableFormParams({});
|
|
3135
3105
|
getData({
|
|
3136
3106
|
pageSize: tableInitPageSize,
|
|
3137
3107
|
currentPage: 1
|
|
@@ -9611,7 +9581,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9611
9581
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9612
9582
|
* @LastEditors: rodchen
|
|
9613
9583
|
*/
|
|
9614
|
-
var index$
|
|
9584
|
+
var index$2 = (function (storageKeyString) {
|
|
9615
9585
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9616
9586
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9617
9587
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9694,6 +9664,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9694
9664
|
disabled = props.disabled,
|
|
9695
9665
|
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
9696
9666
|
var url = remoteSource.url,
|
|
9667
|
+
headers = remoteSource.headers,
|
|
9697
9668
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
9698
9669
|
paramsKey = _remoteSource$paramsK === void 0 ? 'qp-name-like' : _remoteSource$paramsK,
|
|
9699
9670
|
_remoteSource$resKeyV = remoteSource.resKeyValue,
|
|
@@ -9724,7 +9695,9 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9724
9695
|
/* 实时查询 但是目前用的直接是完整数据源, 所以没有使用 */
|
|
9725
9696
|
var handleSearch = function handleSearch(q) {
|
|
9726
9697
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
9727
|
-
axios.get("".concat(url, "?").concat(stringify(paramsData))
|
|
9698
|
+
axios.get("".concat(url, "?").concat(stringify(paramsData)), {
|
|
9699
|
+
headers: headers
|
|
9700
|
+
}).then( /*#__PURE__*/function () {
|
|
9728
9701
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
9729
9702
|
var _ctx$form;
|
|
9730
9703
|
var resData, coverData, data, dataList;
|
|
@@ -9864,7 +9837,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9864
9837
|
})));
|
|
9865
9838
|
};
|
|
9866
9839
|
|
|
9867
|
-
var handleDefaultProps = function handleDefaultProps(type) {
|
|
9840
|
+
var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
9868
9841
|
var result = {};
|
|
9869
9842
|
switch (type) {
|
|
9870
9843
|
case 'department':
|
|
@@ -9873,6 +9846,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9873
9846
|
isChoose: true,
|
|
9874
9847
|
remoteSource: {
|
|
9875
9848
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9849
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9876
9850
|
initialParams: {
|
|
9877
9851
|
'orgViewCode': 'administrative-organization-view'
|
|
9878
9852
|
},
|
|
@@ -9885,6 +9859,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9885
9859
|
isChoose: true,
|
|
9886
9860
|
remoteSource: {
|
|
9887
9861
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9862
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9888
9863
|
initialParams: {
|
|
9889
9864
|
'orgViewCode': 'sales-organizational-view',
|
|
9890
9865
|
'qp-status-eq': 10
|
|
@@ -9898,6 +9873,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9898
9873
|
isChoose: true,
|
|
9899
9874
|
remoteSource: {
|
|
9900
9875
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9876
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9901
9877
|
initialParams: {
|
|
9902
9878
|
'orgViewCode': 'purchase-organizational-view',
|
|
9903
9879
|
'qp-status-eq': 10
|
|
@@ -9911,6 +9887,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9911
9887
|
isChoose: true,
|
|
9912
9888
|
remoteSource: {
|
|
9913
9889
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9890
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9914
9891
|
initialParams: {
|
|
9915
9892
|
'orgViewCode': 'stock-organizational-view',
|
|
9916
9893
|
'qp-status-eq': 10
|
|
@@ -9924,6 +9901,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9924
9901
|
isChoose: true,
|
|
9925
9902
|
remoteSource: {
|
|
9926
9903
|
url: "/channel-manage/tagNode/getTree/10",
|
|
9904
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9927
9905
|
resKeyValue: ['code', 'name']
|
|
9928
9906
|
}
|
|
9929
9907
|
};
|
|
@@ -9934,6 +9912,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9934
9912
|
isChoose: true,
|
|
9935
9913
|
remoteSource: {
|
|
9936
9914
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9915
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9937
9916
|
initialParams: {
|
|
9938
9917
|
'orgViewCode': 'administrative-organization-view'
|
|
9939
9918
|
},
|
|
@@ -9948,7 +9927,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9948
9927
|
var MemoTreeSearchSelect = /*#__PURE__*/React.memo(TreeSearchSelect);
|
|
9949
9928
|
var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
9950
9929
|
var businessType = (props === null || props === void 0 ? void 0 : props.businessType) || 'department';
|
|
9951
|
-
var handleBusinessProps = handleDefaultProps(businessType);
|
|
9930
|
+
var handleBusinessProps = handleDefaultProps(businessType, props === null || props === void 0 ? void 0 : props.requestConfig);
|
|
9952
9931
|
var currentProps = useMemo(function () {
|
|
9953
9932
|
return _objectSpread2(_objectSpread2({}, handleBusinessProps), props);
|
|
9954
9933
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
@@ -9967,7 +9946,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React.memo(BusinessTreeSearchSelec
|
|
|
9967
9946
|
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.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: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.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.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
9968
9947
|
styleInject(css_248z$8);
|
|
9969
9948
|
|
|
9970
|
-
var index$
|
|
9949
|
+
var index$3 = (function (props) {
|
|
9971
9950
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
9972
9951
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
9973
9952
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -11391,7 +11370,7 @@ var iconMap = {
|
|
|
11391
11370
|
src: moreIcon
|
|
11392
11371
|
})
|
|
11393
11372
|
};
|
|
11394
|
-
var index$
|
|
11373
|
+
var index$4 = (function (props) {
|
|
11395
11374
|
var _useLocation = useLocation(),
|
|
11396
11375
|
pathname = _useLocation.pathname;
|
|
11397
11376
|
var _useState = useState(pathname + 'id'),
|
|
@@ -11608,7 +11587,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11608
11587
|
styleInject(css_248z$d);
|
|
11609
11588
|
|
|
11610
11589
|
var _excluded$c = ["children"];
|
|
11611
|
-
var index$
|
|
11590
|
+
var index$5 = (function (props) {
|
|
11612
11591
|
var _useLocation = useLocation(),
|
|
11613
11592
|
pathname = _useLocation.pathname;
|
|
11614
11593
|
var _useState = useState(pathname + 'id'),
|
|
@@ -16704,7 +16683,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16704
16683
|
}]);
|
|
16705
16684
|
return WrapperComponent;
|
|
16706
16685
|
}(React.Component);
|
|
16707
|
-
var index$
|
|
16686
|
+
var index$6 = (function (props) {
|
|
16708
16687
|
var _useModel = useModel('@@initialState'),
|
|
16709
16688
|
_useModel$initialStat = _useModel.initialState,
|
|
16710
16689
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -16945,7 +16924,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
16945
16924
|
};
|
|
16946
16925
|
var FixedScrollBar$1 = /*#__PURE__*/React.forwardRef(FixedScrollBar);
|
|
16947
16926
|
|
|
16948
|
-
var index$
|
|
16927
|
+
var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
16949
16928
|
var _useState = useState(false),
|
|
16950
16929
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16951
16930
|
show = _useState2[0],
|
|
@@ -30353,4 +30332,4 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
|
|
|
30353
30332
|
return RuleObjectComponent;
|
|
30354
30333
|
}(Component);
|
|
30355
30334
|
|
|
30356
|
-
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$
|
|
30335
|
+
export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, BillEntry, BsCascader, index$6 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$2 as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$4 as DetailPageWrapper, EllipsisTooltip, ExportIcon, GuideWrapper, index$5 as HomePageWrapper, JsonQueryTable, index$7 as MoreTreeTable, QueryMutipleInput, RuleObjectComponent as RuleComponent, SearchSelect, index$3 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var axios = require('axios');
|
|
|
6
6
|
var antd = require('antd');
|
|
7
7
|
var _ = require('lodash');
|
|
8
8
|
var umi = require('umi');
|
|
9
|
-
var isEqual
|
|
9
|
+
var isEqual = require('lodash/isEqual');
|
|
10
10
|
var React = require('react');
|
|
11
11
|
var moment$1 = require('moment');
|
|
12
12
|
var icons = require('@ant-design/icons');
|
|
@@ -33,7 +33,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
33
33
|
|
|
34
34
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
35
35
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
36
|
-
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual
|
|
36
|
+
var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
|
|
37
37
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
38
38
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment$1);
|
|
39
39
|
var ProLayout__default = /*#__PURE__*/_interopDefaultLegacy(ProLayout);
|
|
@@ -155,33 +155,6 @@ axios__default['default'].interceptors.request.use(function (config) {
|
|
|
155
155
|
return config;
|
|
156
156
|
});
|
|
157
157
|
|
|
158
|
-
function _iterableToArrayLimit(arr, i) {
|
|
159
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
160
|
-
if (null != _i) {
|
|
161
|
-
var _s,
|
|
162
|
-
_e,
|
|
163
|
-
_x,
|
|
164
|
-
_r,
|
|
165
|
-
_arr = [],
|
|
166
|
-
_n = !0,
|
|
167
|
-
_d = !1;
|
|
168
|
-
try {
|
|
169
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
170
|
-
if (Object(_i) !== _i) return;
|
|
171
|
-
_n = !1;
|
|
172
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
173
|
-
} catch (err) {
|
|
174
|
-
_d = !0, _e = err;
|
|
175
|
-
} finally {
|
|
176
|
-
try {
|
|
177
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
178
|
-
} finally {
|
|
179
|
-
if (_d) throw _e;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
return _arr;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
158
|
function ownKeys(object, enumerableOnly) {
|
|
186
159
|
var keys = Object.keys(object);
|
|
187
160
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -338,9 +311,14 @@ function _regeneratorRuntime() {
|
|
|
338
311
|
};
|
|
339
312
|
}
|
|
340
313
|
function maybeInvokeDelegate(delegate, context) {
|
|
341
|
-
var
|
|
342
|
-
|
|
343
|
-
|
|
314
|
+
var method = delegate.iterator[context.method];
|
|
315
|
+
if (undefined === method) {
|
|
316
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
317
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
318
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
319
|
+
}
|
|
320
|
+
return ContinueSentinel;
|
|
321
|
+
}
|
|
344
322
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
345
323
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
346
324
|
var info = record.arg;
|
|
@@ -554,7 +532,7 @@ function _defineProperties(target, props) {
|
|
|
554
532
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
555
533
|
descriptor.configurable = true;
|
|
556
534
|
if ("value" in descriptor) descriptor.writable = true;
|
|
557
|
-
Object.defineProperty(target,
|
|
535
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
558
536
|
}
|
|
559
537
|
}
|
|
560
538
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -566,7 +544,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
566
544
|
return Constructor;
|
|
567
545
|
}
|
|
568
546
|
function _defineProperty(obj, key, value) {
|
|
569
|
-
key = _toPropertyKey(key);
|
|
570
547
|
if (key in obj) {
|
|
571
548
|
Object.defineProperty(obj, key, {
|
|
572
549
|
value: value,
|
|
@@ -709,6 +686,30 @@ function _arrayWithHoles(arr) {
|
|
|
709
686
|
function _iterableToArray(iter) {
|
|
710
687
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
711
688
|
}
|
|
689
|
+
function _iterableToArrayLimit(arr, i) {
|
|
690
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
691
|
+
if (_i == null) return;
|
|
692
|
+
var _arr = [];
|
|
693
|
+
var _n = true;
|
|
694
|
+
var _d = false;
|
|
695
|
+
var _s, _e;
|
|
696
|
+
try {
|
|
697
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
698
|
+
_arr.push(_s.value);
|
|
699
|
+
if (i && _arr.length === i) break;
|
|
700
|
+
}
|
|
701
|
+
} catch (err) {
|
|
702
|
+
_d = true;
|
|
703
|
+
_e = err;
|
|
704
|
+
} finally {
|
|
705
|
+
try {
|
|
706
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
707
|
+
} finally {
|
|
708
|
+
if (_d) throw _e;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
return _arr;
|
|
712
|
+
}
|
|
712
713
|
function _unsupportedIterableToArray(o, minLen) {
|
|
713
714
|
if (!o) return;
|
|
714
715
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -728,20 +729,6 @@ function _nonIterableSpread() {
|
|
|
728
729
|
function _nonIterableRest() {
|
|
729
730
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
730
731
|
}
|
|
731
|
-
function _toPrimitive(input, hint) {
|
|
732
|
-
if (typeof input !== "object" || input === null) return input;
|
|
733
|
-
var prim = input[Symbol.toPrimitive];
|
|
734
|
-
if (prim !== undefined) {
|
|
735
|
-
var res = prim.call(input, hint || "default");
|
|
736
|
-
if (typeof res !== "object") return res;
|
|
737
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
738
|
-
}
|
|
739
|
-
return (hint === "string" ? String : Number)(input);
|
|
740
|
-
}
|
|
741
|
-
function _toPropertyKey(arg) {
|
|
742
|
-
var key = _toPrimitive(arg, "string");
|
|
743
|
-
return typeof key === "symbol" ? key : String(key);
|
|
744
|
-
}
|
|
745
732
|
|
|
746
733
|
var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
|
|
747
734
|
var errorMessage = _objectSpread2({
|
|
@@ -781,52 +768,41 @@ var precisionQuantity = function precisionQuantity(num, accuracy) {
|
|
|
781
768
|
return '';
|
|
782
769
|
};
|
|
783
770
|
|
|
784
|
-
var
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
function
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
771
|
+
var simpleIsEqual = function simpleIsEqual(a, b) {
|
|
772
|
+
return a === b;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
function index$1 (resultFn, isEqual) {
|
|
776
|
+
if (isEqual === void 0) {
|
|
777
|
+
isEqual = simpleIsEqual;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
var lastThis;
|
|
781
|
+
var lastArgs = [];
|
|
782
|
+
var lastResult;
|
|
783
|
+
var calledOnce = false;
|
|
784
|
+
|
|
785
|
+
var isNewArgEqualToLast = function isNewArgEqualToLast(newArg, index) {
|
|
786
|
+
return isEqual(newArg, lastArgs[index], index);
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
var result = function result() {
|
|
790
|
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
791
|
+
newArgs[_key] = arguments[_key];
|
|
800
792
|
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
793
|
+
|
|
794
|
+
if (calledOnce && lastThis === this && newArgs.length === lastArgs.length && newArgs.every(isNewArgEqualToLast)) {
|
|
795
|
+
return lastResult;
|
|
805
796
|
}
|
|
806
|
-
return true;
|
|
807
|
-
}
|
|
808
797
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
818
|
-
newArgs[_i] = arguments[_i];
|
|
819
|
-
}
|
|
820
|
-
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
|
821
|
-
return lastResult;
|
|
822
|
-
}
|
|
823
|
-
lastResult = resultFn.apply(this, newArgs);
|
|
824
|
-
calledOnce = true;
|
|
825
|
-
lastThis = this;
|
|
826
|
-
lastArgs = newArgs;
|
|
827
|
-
return lastResult;
|
|
828
|
-
}
|
|
829
|
-
return memoized;
|
|
798
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
799
|
+
calledOnce = true;
|
|
800
|
+
lastThis = this;
|
|
801
|
+
lastArgs = newArgs;
|
|
802
|
+
return lastResult;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
return result;
|
|
830
806
|
}
|
|
831
807
|
|
|
832
808
|
function styleInject(css, ref) {
|
|
@@ -1137,7 +1113,7 @@ var formatter = function formatter(data, parentAuthority, parentName) {
|
|
|
1137
1113
|
return item;
|
|
1138
1114
|
});
|
|
1139
1115
|
};
|
|
1140
|
-
var memoizeOneFormatter =
|
|
1116
|
+
var memoizeOneFormatter = index$1(formatter, isEqual__default['default']);
|
|
1141
1117
|
var go2BackAndClose = function go2BackAndClose() {
|
|
1142
1118
|
localStorage.setItem(ENUM.BROWSER_CACHE.CHILD_APP_BACK, 1);
|
|
1143
1119
|
umi.history.goBack();
|
|
@@ -2797,9 +2773,13 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
2797
2773
|
// 解决依赖项在弹窗中回显/更改(如果不能更改,传参fixedparamsDisabled为true即可)
|
|
2798
2774
|
if (type == 2 || type == 3) {
|
|
2799
2775
|
var fixedChangeParamVal = form.getFieldValue(item);
|
|
2776
|
+
var isDependenceValueChange = false;
|
|
2777
|
+
var dependenceValue = fixedParamVal;
|
|
2800
2778
|
// 依赖项在弹窗form中更改--①更换依赖值;②去掉依赖值
|
|
2801
|
-
|
|
2802
|
-
|
|
2779
|
+
if (!fixedparamsDisabled) {
|
|
2780
|
+
isDependenceValueChange = fixedChangeParamVal && fixedChangeParamVal !== fixedParamVal || type == 2 && !fixedChangeParamVal;
|
|
2781
|
+
dependenceValue = isDependenceValueChange ? fixedChangeParamVal : fixedParamVal;
|
|
2782
|
+
}
|
|
2803
2783
|
fixedParam[item] = dependenceValue;
|
|
2804
2784
|
form.setFieldsValue(_objectSpread2(_objectSpread2({}, form === null || form === void 0 ? void 0 : form.getFieldsValue()), {}, _defineProperty({}, item, dependenceValue)));
|
|
2805
2785
|
if (isDependenceValueChange) {
|
|
@@ -3140,17 +3120,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
3140
3120
|
};
|
|
3141
3121
|
var onResetTable = function onResetTable() {
|
|
3142
3122
|
form.resetFields();
|
|
3143
|
-
|
|
3144
|
-
var fixedParam = {};
|
|
3145
|
-
if (fixedparamsDisabled) {
|
|
3146
|
-
if (fixedparameter && fieldValToParam && ctx) {
|
|
3147
|
-
fixedparameter.forEach(function (item, index) {
|
|
3148
|
-
fixedParam[item] = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
3149
|
-
});
|
|
3150
|
-
}
|
|
3151
|
-
form.setFieldsValue(_objectSpread2({}, fixedParam));
|
|
3152
|
-
}
|
|
3153
|
-
setTableFormParams(_objectSpread2({}, fixedParam));
|
|
3123
|
+
setTableFormParams({});
|
|
3154
3124
|
getData({
|
|
3155
3125
|
pageSize: tableInitPageSize,
|
|
3156
3126
|
currentPage: 1
|
|
@@ -9630,7 +9600,7 @@ var CommodityEntry = function CommodityEntry(props) {
|
|
|
9630
9600
|
* @LastEditTime: 2022-01-14 17:17:26
|
|
9631
9601
|
* @LastEditors: rodchen
|
|
9632
9602
|
*/
|
|
9633
|
-
var index$
|
|
9603
|
+
var index$2 = (function (storageKeyString) {
|
|
9634
9604
|
var seconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
9635
9605
|
var tipsCallFunction = arguments.length > 2 ? arguments[2] : undefined;
|
|
9636
9606
|
if (typeof seconds !== 'number') throw new Error('seconds should be number');
|
|
@@ -9713,6 +9683,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9713
9683
|
disabled = props.disabled,
|
|
9714
9684
|
restProps = _objectWithoutProperties(props, _excluded$5);
|
|
9715
9685
|
var url = remoteSource.url,
|
|
9686
|
+
headers = remoteSource.headers,
|
|
9716
9687
|
_remoteSource$paramsK = remoteSource.paramsKey,
|
|
9717
9688
|
paramsKey = _remoteSource$paramsK === void 0 ? 'qp-name-like' : _remoteSource$paramsK,
|
|
9718
9689
|
_remoteSource$resKeyV = remoteSource.resKeyValue,
|
|
@@ -9743,7 +9714,9 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9743
9714
|
/* 实时查询 但是目前用的直接是完整数据源, 所以没有使用 */
|
|
9744
9715
|
var handleSearch = function handleSearch(q) {
|
|
9745
9716
|
var paramsData = _objectSpread2(_defineProperty({}, "".concat(paramsKey), q), initialParams);
|
|
9746
|
-
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(paramsData))
|
|
9717
|
+
axios__default['default'].get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
9718
|
+
headers: headers
|
|
9719
|
+
}).then( /*#__PURE__*/function () {
|
|
9747
9720
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
|
|
9748
9721
|
var _ctx$form;
|
|
9749
9722
|
var resData, coverData, data, dataList;
|
|
@@ -9883,7 +9856,7 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
9883
9856
|
})));
|
|
9884
9857
|
};
|
|
9885
9858
|
|
|
9886
|
-
var handleDefaultProps = function handleDefaultProps(type) {
|
|
9859
|
+
var handleDefaultProps = function handleDefaultProps(type, otherRequestConfig) {
|
|
9887
9860
|
var result = {};
|
|
9888
9861
|
switch (type) {
|
|
9889
9862
|
case 'department':
|
|
@@ -9892,6 +9865,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9892
9865
|
isChoose: true,
|
|
9893
9866
|
remoteSource: {
|
|
9894
9867
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9868
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9895
9869
|
initialParams: {
|
|
9896
9870
|
'orgViewCode': 'administrative-organization-view'
|
|
9897
9871
|
},
|
|
@@ -9904,6 +9878,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9904
9878
|
isChoose: true,
|
|
9905
9879
|
remoteSource: {
|
|
9906
9880
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9881
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9907
9882
|
initialParams: {
|
|
9908
9883
|
'orgViewCode': 'sales-organizational-view',
|
|
9909
9884
|
'qp-status-eq': 10
|
|
@@ -9917,6 +9892,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9917
9892
|
isChoose: true,
|
|
9918
9893
|
remoteSource: {
|
|
9919
9894
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9895
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9920
9896
|
initialParams: {
|
|
9921
9897
|
'orgViewCode': 'purchase-organizational-view',
|
|
9922
9898
|
'qp-status-eq': 10
|
|
@@ -9930,6 +9906,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9930
9906
|
isChoose: true,
|
|
9931
9907
|
remoteSource: {
|
|
9932
9908
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9909
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9933
9910
|
initialParams: {
|
|
9934
9911
|
'orgViewCode': 'stock-organizational-view',
|
|
9935
9912
|
'qp-status-eq': 10
|
|
@@ -9943,6 +9920,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9943
9920
|
isChoose: true,
|
|
9944
9921
|
remoteSource: {
|
|
9945
9922
|
url: "/channel-manage/tagNode/getTree/10",
|
|
9923
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9946
9924
|
resKeyValue: ['code', 'name']
|
|
9947
9925
|
}
|
|
9948
9926
|
};
|
|
@@ -9953,6 +9931,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9953
9931
|
isChoose: true,
|
|
9954
9932
|
remoteSource: {
|
|
9955
9933
|
url: "/user/orgViewNode/common/getTreeForOrgViewAndTenant",
|
|
9934
|
+
headers: otherRequestConfig === null || otherRequestConfig === void 0 ? void 0 : otherRequestConfig.extralHeaders,
|
|
9956
9935
|
initialParams: {
|
|
9957
9936
|
'orgViewCode': 'administrative-organization-view'
|
|
9958
9937
|
},
|
|
@@ -9967,7 +9946,7 @@ var handleDefaultProps = function handleDefaultProps(type) {
|
|
|
9967
9946
|
var MemoTreeSearchSelect = /*#__PURE__*/React__default['default'].memo(TreeSearchSelect);
|
|
9968
9947
|
var BusinessTreeSearchSelect = function BusinessTreeSearchSelect(props) {
|
|
9969
9948
|
var businessType = (props === null || props === void 0 ? void 0 : props.businessType) || 'department';
|
|
9970
|
-
var handleBusinessProps = handleDefaultProps(businessType);
|
|
9949
|
+
var handleBusinessProps = handleDefaultProps(businessType, props === null || props === void 0 ? void 0 : props.requestConfig);
|
|
9971
9950
|
var currentProps = React.useMemo(function () {
|
|
9972
9951
|
return _objectSpread2(_objectSpread2({}, handleBusinessProps), props);
|
|
9973
9952
|
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
@@ -9986,7 +9965,7 @@ var BusinessTreeSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Bus
|
|
|
9986
9965
|
var css_248z$8 = ".form-status-label {\n height: 48px;\n margin-right: 12px;\n display: inline-block;\n position: relative;\n background-color: #B0B4B7;\n align-items: center;\n}\n.choosed-status-label.form-status-label {\n background-color: #005CFF;\n}\n.form-status-label:last-child {\n margin-right: 0px;\n}\n.form-status-label:first-child::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.choosed-status-label.form-status-label::after {\n border-left: 12px solid #005CFF;\n}\n.choosed-status-label.form-status-label:not(:first-child):not(:last-child)::after {\n border-left: 12px solid #005CFF;\n}\n.form-status-label:last-child::after {\n position: absolute;\n display: block;\n content: '';\n left: 0;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.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: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #ffffff;\n}\n.form-status-label:not(:first-child):not(:last-child)::after {\n position: absolute;\n display: block;\n content: '';\n right: -48px;\n top: 0;\n width: 48px;\n height: 48px;\n border: 24px solid;\n border-color: transparent transparent transparent transparent;\n border-left: 12px solid #B0B4B7;\n}\n.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.status-label-key {\n width: 50px;\n height: 100%;\n display: inline-flex;\n float: left;\n align-items: center;\n justify-content: center;\n}\n.status-label-operate {\n float: left;\n width: calc(100% - 50px);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 100%;\n margin: 4px 0;\n}\n.status-label-operate > div {\n font-size: 12px;\n height: 20px;\n line-height: 20px;\n color: #FFFFFF;\n font-family: PingFangSC;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status-label-operate > div:first-child {\n font-size: 14px;\n font-weight: 600;\n}\n.only-one-child.form-status-label::after,\n.only-one-child.form-status-label::before {\n border-left: 0px;\n}\n";
|
|
9987
9966
|
styleInject(css_248z$8);
|
|
9988
9967
|
|
|
9989
|
-
var index$
|
|
9968
|
+
var index$3 = (function (props) {
|
|
9990
9969
|
var _props$formStatusMapp = props.formStatusMapping,
|
|
9991
9970
|
formStatusMapping = _props$formStatusMapp === void 0 ? [] : _props$formStatusMapp;
|
|
9992
9971
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -11410,7 +11389,7 @@ var iconMap = {
|
|
|
11410
11389
|
src: moreIcon
|
|
11411
11390
|
})
|
|
11412
11391
|
};
|
|
11413
|
-
var index$
|
|
11392
|
+
var index$4 = (function (props) {
|
|
11414
11393
|
var _useLocation = umi.useLocation(),
|
|
11415
11394
|
pathname = _useLocation.pathname;
|
|
11416
11395
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -11627,7 +11606,7 @@ var css_248z$d = ".home_page_head {\n height: 54px;\n display: flex;\n justif
|
|
|
11627
11606
|
styleInject(css_248z$d);
|
|
11628
11607
|
|
|
11629
11608
|
var _excluded$c = ["children"];
|
|
11630
|
-
var index$
|
|
11609
|
+
var index$5 = (function (props) {
|
|
11631
11610
|
var _useLocation = umi.useLocation(),
|
|
11632
11611
|
pathname = _useLocation.pathname;
|
|
11633
11612
|
var _useState = React.useState(pathname + 'id'),
|
|
@@ -16723,7 +16702,7 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
16723
16702
|
}]);
|
|
16724
16703
|
return WrapperComponent;
|
|
16725
16704
|
}(React__default['default'].Component);
|
|
16726
|
-
var index$
|
|
16705
|
+
var index$6 = (function (props) {
|
|
16727
16706
|
var _useModel = umi.useModel('@@initialState'),
|
|
16728
16707
|
_useModel$initialStat = _useModel.initialState,
|
|
16729
16708
|
initialState = _useModel$initialStat === void 0 ? {} : _useModel$initialStat;
|
|
@@ -16964,7 +16943,7 @@ var FixedScrollBar = function FixedScrollBar(_ref, ref) {
|
|
|
16964
16943
|
};
|
|
16965
16944
|
var FixedScrollBar$1 = /*#__PURE__*/React__default['default'].forwardRef(FixedScrollBar);
|
|
16966
16945
|
|
|
16967
|
-
var index$
|
|
16946
|
+
var index$7 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16968
16947
|
var _useState = React.useState(false),
|
|
16969
16948
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16970
16949
|
show = _useState2[0],
|
|
@@ -30378,26 +30357,26 @@ exports.AddSkuSelect = AddSkuSelect;
|
|
|
30378
30357
|
exports.AddSpuSelect = AddSpuSelect;
|
|
30379
30358
|
exports.BillEntry = BillEntry;
|
|
30380
30359
|
exports.BsCascader = BsCascader;
|
|
30381
|
-
exports.BsLayout = index$
|
|
30360
|
+
exports.BsLayout = index$6;
|
|
30382
30361
|
exports.BsSulaQueryTable = BsSulaQueryTable;
|
|
30383
30362
|
exports.BusinessSearchSelect = BusinessSearchSelect$1;
|
|
30384
30363
|
exports.BusinessTreeSearchSelect = BusinessTreeSearchSelect$1;
|
|
30385
|
-
exports.CheckOneUser = index$
|
|
30364
|
+
exports.CheckOneUser = index$2;
|
|
30386
30365
|
exports.ColumnSettingTable = ColumnSettingTable;
|
|
30387
30366
|
exports.CommodityEntry = CommodityEntry;
|
|
30388
30367
|
exports.DataImport = DataImport;
|
|
30389
30368
|
exports.DataValidation = DataValidation;
|
|
30390
|
-
exports.DetailPageWrapper = index$
|
|
30369
|
+
exports.DetailPageWrapper = index$4;
|
|
30391
30370
|
exports.EllipsisTooltip = EllipsisTooltip;
|
|
30392
30371
|
exports.ExportIcon = ExportIcon;
|
|
30393
30372
|
exports.GuideWrapper = GuideWrapper;
|
|
30394
|
-
exports.HomePageWrapper = index$
|
|
30373
|
+
exports.HomePageWrapper = index$5;
|
|
30395
30374
|
exports.JsonQueryTable = JsonQueryTable;
|
|
30396
|
-
exports.MoreTreeTable = index$
|
|
30375
|
+
exports.MoreTreeTable = index$7;
|
|
30397
30376
|
exports.QueryMutipleInput = QueryMutipleInput;
|
|
30398
30377
|
exports.RuleComponent = RuleObjectComponent;
|
|
30399
30378
|
exports.SearchSelect = SearchSelect;
|
|
30400
|
-
exports.StateFlow = index$
|
|
30379
|
+
exports.StateFlow = index$3;
|
|
30401
30380
|
exports.SulaColumnSettingTable = ColumnSettingSulaTable;
|
|
30402
30381
|
exports.TableColumnSetting = TableColumnSetting;
|
|
30403
30382
|
exports.TreeSearchSelect = TreeSearchSelect;
|
package/package.json
CHANGED
|
@@ -7,8 +7,7 @@ const MemoTreeSearchSelect = React.memo(TreeSearchSelect)
|
|
|
7
7
|
const BusinessTreeSearchSelect = (props: any) => {
|
|
8
8
|
const businessType = props?.businessType || 'department';
|
|
9
9
|
|
|
10
|
-
const handleBusinessProps = handleDefaultProps(businessType);
|
|
11
|
-
|
|
10
|
+
const handleBusinessProps = handleDefaultProps(businessType, props?.requestConfig);
|
|
12
11
|
const currentProps = useMemo(() => {
|
|
13
12
|
return {
|
|
14
13
|
...handleBusinessProps,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const handleDefaultProps = (type: string) => {
|
|
1
|
+
const handleDefaultProps = (type: string, otherRequestConfig: {extralHeaders?: string}|undefined) => {
|
|
2
2
|
let result = {};
|
|
3
3
|
switch (type){
|
|
4
4
|
case 'department':
|
|
@@ -7,6 +7,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
7
7
|
isChoose: true,
|
|
8
8
|
remoteSource: {
|
|
9
9
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
10
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
10
11
|
initialParams: { 'orgViewCode': 'administrative-organization-view' },
|
|
11
12
|
resKeyValue: ['code', 'name'],
|
|
12
13
|
},
|
|
@@ -17,6 +18,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
17
18
|
isChoose: true,
|
|
18
19
|
remoteSource: {
|
|
19
20
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
21
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
20
22
|
initialParams: { 'orgViewCode': 'sales-organizational-view', 'qp-status-eq': 10 }, // status: 10启用 20禁用
|
|
21
23
|
resKeyValue: ['code', 'name'],
|
|
22
24
|
},
|
|
@@ -27,6 +29,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
27
29
|
isChoose: true,
|
|
28
30
|
remoteSource: {
|
|
29
31
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
32
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
30
33
|
initialParams: { 'orgViewCode': 'purchase-organizational-view', 'qp-status-eq': 10 },
|
|
31
34
|
resKeyValue: ['code', 'name'],
|
|
32
35
|
},
|
|
@@ -37,6 +40,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
37
40
|
isChoose: true,
|
|
38
41
|
remoteSource: {
|
|
39
42
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
43
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
40
44
|
initialParams: { 'orgViewCode': 'stock-organizational-view', 'qp-status-eq': 10 },
|
|
41
45
|
resKeyValue: ['code', 'name'],
|
|
42
46
|
},
|
|
@@ -47,6 +51,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
47
51
|
isChoose: true,
|
|
48
52
|
remoteSource: {
|
|
49
53
|
url: `/channel-manage/tagNode/getTree/10`,
|
|
54
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
50
55
|
resKeyValue: ['code', 'name'],
|
|
51
56
|
},
|
|
52
57
|
};
|
|
@@ -57,6 +62,7 @@ const handleDefaultProps = (type: string) => {
|
|
|
57
62
|
isChoose: true,
|
|
58
63
|
remoteSource: {
|
|
59
64
|
url: `/user/orgViewNode/common/getTreeForOrgViewAndTenant`,
|
|
65
|
+
headers: otherRequestConfig?.extralHeaders,
|
|
60
66
|
initialParams: { 'orgViewCode': 'administrative-organization-view' },
|
|
61
67
|
resKeyValue: ['code', 'name'],
|
|
62
68
|
},
|
|
@@ -151,9 +151,15 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
151
151
|
// 解决依赖项在弹窗中回显/更改(如果不能更改,传参fixedparamsDisabled为true即可)
|
|
152
152
|
if(type == 2 || type == 3) {
|
|
153
153
|
const fixedChangeParamVal = form.getFieldValue(item);
|
|
154
|
+
let isDependenceValueChange = false;
|
|
155
|
+
let dependenceValue = fixedParamVal;
|
|
154
156
|
// 依赖项在弹窗form中更改--①更换依赖值;②去掉依赖值
|
|
155
|
-
|
|
156
|
-
|
|
157
|
+
if(!fixedparamsDisabled) {
|
|
158
|
+
isDependenceValueChange =
|
|
159
|
+
(fixedChangeParamVal && fixedChangeParamVal !== fixedParamVal)
|
|
160
|
+
|| (type == 2 && !fixedChangeParamVal);
|
|
161
|
+
dependenceValue = isDependenceValueChange ? fixedChangeParamVal : fixedParamVal;
|
|
162
|
+
}
|
|
157
163
|
fixedParam[item] = dependenceValue;
|
|
158
164
|
form.setFieldsValue({ ...form?.getFieldsValue(), [item]: dependenceValue })
|
|
159
165
|
if(isDependenceValueChange) {
|
|
@@ -493,17 +499,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
493
499
|
|
|
494
500
|
const onResetTable = () => {
|
|
495
501
|
form.resetFields();
|
|
496
|
-
|
|
497
|
-
const fixedParam = {};
|
|
498
|
-
if (fixedparamsDisabled) {
|
|
499
|
-
if (fixedparameter && fieldValToParam && ctx) {
|
|
500
|
-
fixedparameter.forEach((item: any, index: any) => {
|
|
501
|
-
fixedParam[item] = ctx.form.getFieldValue(fieldValToParam[index]);
|
|
502
|
-
})
|
|
503
|
-
};
|
|
504
|
-
form.setFieldsValue({ ...fixedParam });
|
|
505
|
-
}
|
|
506
|
-
setTableFormParams({ ...fixedParam });
|
|
502
|
+
setTableFormParams({});
|
|
507
503
|
getData({ pageSize: tableInitPageSize, currentPage: 1 }, 2)
|
|
508
504
|
}
|
|
509
505
|
|
|
@@ -34,6 +34,7 @@ const TreeSearchSelect = (props: any) => {
|
|
|
34
34
|
|
|
35
35
|
const {
|
|
36
36
|
url,
|
|
37
|
+
headers,
|
|
37
38
|
paramsKey = 'qp-name-like',
|
|
38
39
|
resKeyValue = ['id', 'name'],
|
|
39
40
|
initialParams = {},
|
|
@@ -66,7 +67,7 @@ const TreeSearchSelect = (props: any) => {
|
|
|
66
67
|
[`${paramsKey}`]: q,
|
|
67
68
|
...initialParams,
|
|
68
69
|
}
|
|
69
|
-
axios.get(`${url}?${stringify(paramsData)}
|
|
70
|
+
axios.get(`${url}?${stringify(paramsData)}`, {headers}).then(async (res: any) => {
|
|
70
71
|
const resData = res?.data || [];
|
|
71
72
|
let coverData;
|
|
72
73
|
|