@bit-sun/business-component 4.0.13-alpha.9 → 4.2.0-aiwei-alpha.1

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.
Files changed (150) hide show
  1. package/.umirc.ts +21 -10
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  14. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  15. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  16. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +11 -8
  17. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  18. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  19. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  20. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  21. package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -6
  22. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  23. package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -0
  24. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  29. package/dist/components/Business/ModalUtils/index.d.ts +8 -0
  30. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  31. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  32. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/SearchSelect/utils.d.ts +4 -2
  34. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  35. package/dist/components/Business/SystemLog/index.d.ts +78 -0
  36. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  37. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +9 -8
  38. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  39. package/dist/components/Business/columnSettingTable/index.d.ts +21 -4
  40. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +22 -5
  41. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  42. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  43. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  44. package/dist/components/Common/Section/index.d.ts +1 -1
  45. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  46. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  47. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  48. package/dist/components/Functional/DataValidation/index.d.ts +15 -5
  49. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  50. package/dist/components/Functional/QueryMutipleInput/index.d.ts +3 -3
  51. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  52. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  53. package/dist/components/Functional/SearchSelect/utils.d.ts +4 -4
  54. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  56. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  57. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  58. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  59. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  60. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  61. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  62. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  63. package/dist/index.d.ts +2 -0
  64. package/dist/index.esm.js +4238 -2124
  65. package/dist/index.js +4247 -2122
  66. package/dist/plugin/TableColumnSetting/index.d.ts +6 -5
  67. package/dist/utils/RequestCacheManager.d.ts +82 -0
  68. package/dist/utils/TableUtils.d.ts +18 -19
  69. package/dist/utils/cachedRequest.d.ts +76 -0
  70. package/dist/utils/index.d.ts +1 -0
  71. package/dist/utils/utils.d.ts +41 -0
  72. package/package.json +16 -14
  73. package/src/assets/btn-cancel.svg +3 -0
  74. package/src/assets/btn-copy.svg +3 -0
  75. package/src/assets/btn-delete.svg +2 -29
  76. package/src/assets/btn-edit.svg +2 -19
  77. package/src/assets/btn-hangUp.svg +3 -0
  78. package/src/assets/btn-print.svg +3 -0
  79. package/src/assets/btn-refresh.svg +3 -0
  80. package/src/assets/btn-unhook.svg +3 -0
  81. package/src/components/Business/AddSelectBusiness/index.md +8 -2
  82. package/src/components/Business/AddSelectBusiness/index.tsx +4 -1
  83. package/src/components/Business/BsLayouts/Components/ChooseStore/services.ts +1 -1
  84. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +1 -1
  85. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +1 -1
  86. package/src/components/Business/BsLayouts/Components/RightContent/home.less +1 -1
  87. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +2 -2
  88. package/src/components/Business/BsLayouts/service.ts +1 -1
  89. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +6 -5
  90. package/src/components/Business/BsSulaQueryTable/bssulaquerytable.less +0 -4
  91. package/src/components/Business/BsSulaQueryTable/index.less +5 -3
  92. package/src/components/Business/BsSulaQueryTable/index.md +45 -32
  93. package/src/components/Business/BsSulaQueryTable/index.tsx +154 -76
  94. package/src/components/Business/BsSulaQueryTable/setting.tsx +47 -11
  95. package/src/components/Business/BsSulaQueryTable/utils.less +1 -1
  96. package/src/components/Business/BsSulaQueryTable/utils.tsx +15 -12
  97. package/src/components/Business/CommodityEntry/index.md +1 -1
  98. package/src/components/Business/CommodityEntry/index.tsx +11 -9
  99. package/src/components/Business/DetailPageWrapper/index.less +1 -1
  100. package/src/components/Business/DetailPageWrapper/index.tsx +24 -5
  101. package/src/components/Business/DetailPageWrapper/utils.tsx +7 -2
  102. package/src/components/Business/HomePageWrapper/index.less +1 -1
  103. package/src/components/Business/ItemPropertySelector/index.tsx +88 -0
  104. package/src/components/Business/JsonQueryTable/function.ts +1 -1
  105. package/src/components/Business/JsonQueryTable/index.tsx +1 -1
  106. package/src/components/Business/ModalUtils/index.tsx +45 -0
  107. package/src/components/Business/PropertyModal/index.tsx +1 -1
  108. package/src/components/Business/SearchSelect/BusinessUtils.tsx +625 -76
  109. package/src/components/Business/SearchSelect/index.md +4 -4
  110. package/src/components/Business/SearchSelect/utils.ts +27 -5
  111. package/src/components/Business/SystemLog/index.md +37 -0
  112. package/src/components/Business/SystemLog/index.tsx +87 -0
  113. package/src/components/Business/columnSettingTable/columnSetting.tsx +28 -12
  114. package/src/components/Business/columnSettingTable/index.less +5 -3
  115. package/src/components/Business/columnSettingTable/index.md +200 -136
  116. package/src/components/Business/columnSettingTable/index.tsx +168 -39
  117. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +188 -56
  118. package/src/components/Functional/AddSelect/helps.ts +1 -1
  119. package/src/components/Functional/AddSelect/index.tsx +132 -13
  120. package/src/components/Functional/BillEntry/index.less +3 -0
  121. package/src/components/Functional/BillEntry/index.tsx +1 -1
  122. package/src/components/Functional/DataImport/index.tsx +1 -1
  123. package/src/components/Functional/DataValidation/index.md +1 -0
  124. package/src/components/Functional/DataValidation/index.tsx +161 -27
  125. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +1 -1
  126. package/src/components/Functional/QueryMutipleInput/index.tsx +12 -3
  127. package/src/components/Functional/QueryMutipleSelect/index.tsx +3 -2
  128. package/src/components/Functional/SearchSelect/index.less +4 -0
  129. package/src/components/Functional/SearchSelect/index.tsx +68 -24
  130. package/src/components/Functional/SearchSelect/utils.tsx +17 -11
  131. package/src/components/Functional/TreeSearchSelect/index.tsx +3 -2
  132. package/src/components/Solution/RuleComponent/InnerSelect.tsx +1 -0
  133. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +11 -2
  134. package/src/components/Solution/RuleComponent/index.js +75 -4
  135. package/src/components/Solution/RuleComponent/ruleFiled.js +26 -2
  136. package/src/components/Solution/RuleComponent/services.ts +1 -1
  137. package/src/components/Solution/RuleSetter/service.js +1 -1
  138. package/src/index.ts +3 -0
  139. package/src/plugin/TableColumnSetting/index.less +5 -3
  140. package/src/plugin/TableColumnSetting/index.tsx +80 -13
  141. package/src/styles/bsDefault.less +9 -3
  142. package/src/utils/RequestCacheManager.ts +213 -0
  143. package/src/utils/RequestCache_Examples.md +137 -0
  144. package/src/utils/RequestCache_README.md +170 -0
  145. package/src/utils/TableUtils.less +1 -1
  146. package/src/utils/cachedRequest.ts +288 -0
  147. package/src/utils/index.ts +1 -0
  148. package/src/utils/request.ts +8 -4
  149. package/src/utils/requestUtils.ts +1 -1
  150. package/src/utils/utils.ts +52 -16
@@ -52,7 +52,7 @@
52
52
  margin: 0 0 5px !important;
53
53
  }
54
54
  .card_department {
55
- color: #005cff !important;
55
+ color: #005CFF !important;
56
56
  }
57
57
 
58
58
  .user_info_card {
@@ -242,24 +242,27 @@ export const tableColumnsImage = (
242
242
  url?: string,
243
243
  paramsObj?: tableColumnsImageType,
244
244
  ) => {
245
- // 测试使用 测试类型缩小 随时可删除 start
246
- const imgHtml = document.querySelector('.ant-image-mask-info')!;
247
- if (imgHtml) {
248
- let str = imgHtml?.innerHTML;
249
- str = str?.replace('预览', '');
250
- imgHtml.innerHTML = str;
251
- }
252
- // 测试使用 测试类型缩小 end
245
+ // 默认预览配置(修复失真问题)
246
+ const defaultPreview = {
247
+ width: "40%", // 基于视窗宽度
248
+ objectFit: 'cover'
249
+ };
253
250
 
254
251
  return (
255
252
  <>
256
253
  {url ? (
257
- <div className={`clomnsImg`}>
258
- <Image src={url} width="16px" height="16px" {...paramsObj}></Image>
254
+ <div className="clomnsImg">
255
+ <Image
256
+ src={url}
257
+ width="16px"
258
+ height="16px"
259
+ preview={defaultPreview} // 直接使用配置,避免展开运算符
260
+ {...paramsObj}
261
+ />
259
262
  </div>
260
263
  ) : (
261
- <div className={`clomnsImg2`}>
262
- <img {...paramsObj} src={noImg}></img>
264
+ <div className="clomnsImg2">
265
+ <img {...paramsObj} src={noImg} alt="无图片" />
263
266
  </div>
264
267
  )}
265
268
  </>
@@ -28,7 +28,7 @@ export default () => {
28
28
  console.log('确定操作,可获取到成功录入的商品,做一系列操作')
29
29
  console.log(resultData)
30
30
  // 一般拿到导入数据是做请求接口操作
31
- // import {request} from "bssula";
31
+ // import {request} from 'bssula';
32
32
  // request({
33
33
  // url: `/bop/api/sku/import/save`,
34
34
  // method: "POST",
@@ -34,16 +34,18 @@ const CommodityEntry = (props: any) => {
34
34
 
35
35
  const handleOk = () => {
36
36
  // 方法获取当前组件内部的数据,然后进行自身的业务操作
37
- const resultData = dataValidationRef.current?.getValidateData();
37
+ let resultData = props?.notValid ? dataValidationRef.current?.getData() : dataValidationRef.current?.getValidateData();
38
38
 
39
- if (!resultData.successData.length) {
40
- message.error("无校验通过数据,请校验数据");
41
- return;
42
- }
43
-
44
- if (resultData.failData.length) {
45
- message.error(`有${resultData.failData.length}条校验失败数据`);
46
- return;
39
+ if(!(!!props?.notValid)) {
40
+ if (!resultData.successData.length) {
41
+ message.error("无校验通过数据,请校验数据");
42
+ return;
43
+ }
44
+
45
+ if (resultData.failData.length) {
46
+ message.error(`有${resultData.failData.length}条校验失败数据`);
47
+ return;
48
+ }
47
49
  }
48
50
 
49
51
  callbackHandleOk(resultData, () => {
@@ -94,7 +94,7 @@
94
94
  align-items: center;
95
95
  gap: 2px;
96
96
  border-radius: 3px;
97
- padding: 0 10px;
97
+ padding: 0 2px;
98
98
  }
99
99
  .ant-btn-dangerous {
100
100
  background-color: #EC5246 !important;
@@ -12,6 +12,12 @@ import editIcon from '../../../assets/btn-edit.svg';
12
12
  import submitIcon from '../../../assets/btn-submit.svg';
13
13
  import deleteIcon from '../../../assets/btn-delete.svg';
14
14
  import moreIcon from '../../../assets/btn-more.svg';
15
+ import hangUpIcon from '../../../assets/btn-hangUp.svg';
16
+ import unhookIcon from '../../../assets/btn-unhook.svg';
17
+ import refreshIcon from '../../../assets/btn-refresh.svg';
18
+ import printIcon from '../../../assets/btn-print.svg';
19
+ import copyIcon from '../../../assets/btn-copy.svg';
20
+ import cancelIcon from '../../../assets/btn-cancel.svg';
15
21
  import { useLocation, formatMessage } from 'umi';
16
22
  import CommonAlert from '../CommonAlert';
17
23
  import ENUM from '@/utils/enumConfig';
@@ -30,11 +36,21 @@ interface actionItem {
30
36
  action: object;
31
37
  }
32
38
 
39
+ const iconStyle = {
40
+ width: 16,
41
+ height: 16,
42
+ };
33
43
  export const iconMap = {
34
- edit: <img src={editIcon} />,
35
- delete: <img src={deleteIcon} />,
36
- submit: <img src={submitIcon} />,
37
- more: <img src={moreIcon} />,
44
+ edit: <img src={editIcon} {...iconStyle} />,
45
+ delete: <img src={deleteIcon} {...iconStyle} />,
46
+ submit: <img src={submitIcon} {...iconStyle} />,
47
+ more: <img src={moreIcon} {...iconStyle} />,
48
+ hangUp: <img src={hangUpIcon} {...iconStyle} />,
49
+ unhook: <img src={unhookIcon} {...iconStyle} />,
50
+ refresh: <img src={refreshIcon} {...iconStyle} />,
51
+ print: <img src={printIcon} {...iconStyle} />,
52
+ copy: <img src={copyIcon} {...iconStyle} />,
53
+ cancel: <img src={cancelIcon} {...iconStyle} />,
38
54
  };
39
55
 
40
56
  export default (props: any) => {
@@ -194,6 +210,7 @@ const DetailWrapper = React.memo(
194
210
  <Button
195
211
  type={type || 'primary'}
196
212
  icon={item.icon ? iconMap[item.icon] : ''}
213
+ style={item.icon ? {} : {}}
197
214
  danger={item.name === '删除' ? true : false}
198
215
  disabled={item.disabled}
199
216
  onClick={() => {
@@ -203,13 +220,15 @@ const DetailWrapper = React.memo(
203
220
  doDetailPageAction(item.action);
204
221
  }
205
222
  }}
223
+ {...item?.buttomProps}
206
224
  >
207
225
  {item.name}
208
226
  </Button>
209
227
  );
210
228
  };
211
229
 
212
- if (visibleActions.length <= 3) {
230
+ // 可在actionList第一项设置visibleActionCount,控制按钮几个开始显示更多,默认为3
231
+ if (visibleActions.length <= (actionLists?.[0]?.visibleActionCount || 3)) {
213
232
  return visibleActions.map((item) => {
214
233
  return renderButton(item);
215
234
  });
@@ -85,7 +85,12 @@ export const getMainCrumbNameMap = (menuData) => {
85
85
 
86
86
  const flattenMenuData = (data, parent) => {
87
87
  let pNameMap = parent.nameMap ? [...parent.nameMap] : [];
88
- data.forEach((menuItem) => {
88
+ data.forEach((menuItem) => {
89
+ // 面包屑路径,增加显示一级导航路径显示
90
+ if(parent.isMenuRoot) {
91
+ const newList = (window.top||window)?.applicationList?.filter?.((app: any) => app.code === menuItem.belongAppCode) || [];
92
+ pNameMap = newList.length > 0 ? [newList[0].name] : [];
93
+ }
89
94
  let newMenuItem = {
90
95
  ...menuItem,
91
96
  nameMap: [...pNameMap, menuItem.name]
@@ -100,7 +105,7 @@ export const getMainCrumbNameMap = (menuData) => {
100
105
  };
101
106
  });
102
107
  };
103
- flattenMenuData(menuData, {});
108
+ flattenMenuData(menuData,{ isMenuRoot: true });
104
109
  return routerMap;
105
110
  }
106
111
 
@@ -1,5 +1,5 @@
1
1
  .bs_home_page_head_wrapper{
2
- height: 32px;
2
+ // 如果设置高度 需要考虑列表页引用有传提示参数alertProps情况,写死固定高度会导致提示遮挡筛选条件
3
3
  position: sticky;
4
4
  background: #fff;
5
5
  width: 100%;
@@ -0,0 +1,88 @@
1
+ // @ts-nocheck
2
+
3
+ import React, { useState, useEffect } from 'react';
4
+ import { Input, Select } from 'antd';
5
+ import { request } from 'bssula';
6
+
7
+ const ItemPropertySelector = ({
8
+ onChange,
9
+ value,
10
+ propertyCode,
11
+ name,
12
+ ...restProps
13
+ }: any) => {
14
+
15
+ const [source, setSource] = useState([]);
16
+
17
+ useEffect(() => {
18
+ // FIXME: 目前只能通过固定属性编码先获取属性id,再通过属性id去查属性值 @林军
19
+ if (propertyCode) {
20
+ request({
21
+ url: `/items/item/propertyValue/getPropertyValueNoPagerByCode?qp-propertyCode-eq=${propertyCode}&pageSize=5000`,
22
+ method: 'GET',
23
+ converter: ({ data }: any) => {
24
+ const source = (data?.items || []).map(item => ({
25
+ text: item.value,
26
+ value: item.value
27
+ }))
28
+ setSource(source);
29
+ }
30
+ })
31
+ return;
32
+ request({
33
+ url: `/items/item/property?qp-propertyCode-eq=${propertyCode}`,
34
+ metod: 'GET',
35
+ converter: ({ data }: any) => {
36
+ let propInfo = data?.items?.[0] || {};
37
+ if (propInfo?.dictIs) {
38
+ request({
39
+ url: `/items/bscDict/detailAndFilter/${propInfo?.dictCode}`,
40
+ method: 'GET',
41
+ converter: ({ data }: any) => {
42
+ const source = (data?.dictItemResVoList || []).map(item => ({
43
+ text: item.dictItemName,
44
+ value: item.dictItemName
45
+ }))
46
+ setSource(source);
47
+ }
48
+ })
49
+ return;
50
+ }
51
+
52
+ if (propInfo?.id) {
53
+ request({
54
+ url: `/items/item/propertyValue?qp-propertyId-eq=${propInfo?.id}`,
55
+ method: 'GET',
56
+ converter: ({ data }: any) => {
57
+ const source = (data?.items || []).map(item => ({
58
+ text: item.value,
59
+ value: item.value
60
+ }))
61
+ setSource(source);
62
+ }
63
+ })
64
+ }
65
+ }
66
+ })
67
+ }
68
+ }, [propertyCode]);
69
+
70
+
71
+ return (
72
+ <Select
73
+ {...restProps}
74
+ value={value}
75
+ allowClear
76
+ style={{width: '100%'}}
77
+ onChange={(v: any) => {
78
+ onChange(v);
79
+ }}
80
+ >
81
+ {source.map((res) => {
82
+ return <Select.Option value={res.value}>{res.text}</Select.Option>;
83
+ })}
84
+ </Select>
85
+ );
86
+ };
87
+
88
+ export default ItemPropertySelector;
@@ -1,4 +1,4 @@
1
- import {request} from "bssula";
1
+ import {request} from 'bssula';
2
2
 
3
3
  export const convertActionList = (obj:any, detail:any) => {
4
4
  return {
@@ -4,7 +4,7 @@ import { message, Button, Table, Tabs } from 'antd';
4
4
  import Drawer from './drawer';
5
5
  import ConfigButton from './configButton';
6
6
  import Editor from './jsonEditor';
7
- import request from '@/utils/request';
7
+ import request from '@/utils/cachedRequest';
8
8
  import FieldsSettingsTable from './components/FieldsSettingsTable';
9
9
  import { isEmpty } from "lodash"
10
10
  import './index.less';
@@ -0,0 +1,45 @@
1
+ import { Modal } from 'antd';
2
+
3
+ const ModalUtils = {
4
+ success: (content: any) => {
5
+ Modal.success({
6
+ title: '成功提示',
7
+ content: content,
8
+ width: '30%',
9
+ maskClosable: true,
10
+ okText: "确定",
11
+ });
12
+ },
13
+ error: (content: any) => {
14
+ Modal.error({
15
+ title: '错误提示',
16
+ content: content,
17
+ width: '30%',
18
+ maskClosable: true,
19
+ okText: "确定",
20
+ });
21
+ },
22
+ warning: (content: any) => {
23
+ Modal.warning({
24
+ title: '警告提示',
25
+ content: content,
26
+ width: '30%',
27
+ maskClosable: true,
28
+ okText: "确定",
29
+ });
30
+ },
31
+ confirm: (title: any, content: any, width: any, onOk: any, onCancel: any) => {
32
+ Modal.confirm({
33
+ title: title,
34
+ content: content,
35
+ width: width,
36
+ onOk: onOk,
37
+ onCancel: onCancel
38
+ });
39
+ },
40
+ custom: (config: any) => {
41
+ Modal.info(config);
42
+ }
43
+ };
44
+
45
+ export default ModalUtils;
@@ -4,7 +4,7 @@ import "./index.less";
4
4
  import { MockPropertyList } from "./mockData";
5
5
  import PropertyGroup from "./propertyGroup";
6
6
  import { CaretUpOutlined, CaretDownOutlined, CaretUpFilled, CaretDownFilled } from '@ant-design/icons';
7
- import request from '@/utils/request';
7
+ import request from '@/utils/cachedRequest';
8
8
  import { judgeIsRequestError } from "@/utils";
9
9
 
10
10
  interface propertyValueType {