@bit-sun/business-component 2.3.22-beta7 → 2.3.22-beta9

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 (235) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
  9. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  12. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
  13. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
  14. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
  15. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
  16. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  17. package/dist/components/Business/BsLayouts/service.d.ts +1 -1
  18. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  19. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
  20. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +5 -5
  21. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -13
  22. package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
  23. package/dist/components/Business/CommonAlert/index.d.ts +2 -1
  24. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  25. package/dist/components/Business/DetailPageWrapper/index.d.ts +6 -5
  26. package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
  27. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
  28. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
  29. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
  30. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
  31. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
  32. package/dist/components/Business/StateFlow/index.d.ts +2 -1
  33. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  34. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +5 -5
  35. package/dist/components/Business/columnSettingTable/index.d.ts +2 -2
  36. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +2 -2
  37. package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
  38. package/dist/components/Functional/AddSelect/index.d.ts +2 -1
  39. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  40. package/dist/components/Functional/DataValidation/index.d.ts +3 -3
  41. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
  42. package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
  43. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
  44. package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
  45. package/dist/components/Solution/RuleComponent/services.d.ts +1 -1
  46. package/dist/index.esm.js +36 -14
  47. package/dist/index.js +36 -14
  48. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  49. package/dist/utils/LocalstorageUtils.d.ts +5 -0
  50. package/docs/index.md +21 -21
  51. package/lib/assets/drag.svg +17 -17
  52. package/lib/assets/exportFail.svg +37 -37
  53. package/lib/assets/exportProcessing.svg +28 -28
  54. package/lib/assets/exportSuccess.svg +34 -34
  55. package/lib/assets/label_icon_bottom.svg +25 -25
  56. package/lib/assets/upExport.svg +22 -22
  57. package/package.json +78 -78
  58. package/src/assets/32.svg +27 -27
  59. package/src/assets/addIcon.svg +17 -17
  60. package/src/assets/allfunc.svg +27 -27
  61. package/src/assets/arrowRight.svg +24 -24
  62. package/src/assets/btn-delete.svg +29 -29
  63. package/src/assets/btn-edit.svg +19 -19
  64. package/src/assets/btn-more.svg +17 -17
  65. package/src/assets/btn-submit.svg +19 -19
  66. package/src/assets/caidan.svg +11 -11
  67. package/src/assets/close.svg +26 -26
  68. package/src/assets/drag.svg +17 -17
  69. package/src/assets/exportFail.svg +37 -37
  70. package/src/assets/exportProcessing.svg +28 -28
  71. package/src/assets/exportSuccess.svg +34 -34
  72. package/src/assets/fixed-left-active.svg +11 -11
  73. package/src/assets/fixed-left.svg +15 -15
  74. package/src/assets/fixed-right-active.svg +11 -11
  75. package/src/assets/fixed-right.svg +15 -15
  76. package/src/assets/guanbi.svg +15 -15
  77. package/src/assets/icon-quanping.svg +15 -15
  78. package/src/assets/icon-shezhi.svg +17 -17
  79. package/src/assets/label_icon_bottom.svg +25 -25
  80. package/src/assets/list-no-img.svg +21 -21
  81. package/src/assets/morentouxiang-32.svg +23 -23
  82. package/src/assets/scanning.svg +24 -24
  83. package/src/assets/upExport.svg +22 -22
  84. package/src/common/ENUM.ts +41 -41
  85. package/src/components/Business/AddSelectBusiness/index.md +162 -162
  86. package/src/components/Business/AddSelectBusiness/index.tsx +1060 -1060
  87. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  88. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  89. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  90. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  91. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  92. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  93. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  94. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  95. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  96. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  97. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  98. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  99. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  100. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  101. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  102. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  103. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  104. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  105. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  106. package/src/components/Business/BsLayouts/index.less +79 -79
  107. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  108. package/src/components/Business/BsLayouts/service.ts +10 -10
  109. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  110. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +565 -564
  111. package/src/components/Business/BsSulaQueryTable/index.less +221 -221
  112. package/src/components/Business/BsSulaQueryTable/index.tsx +531 -531
  113. package/src/components/Business/BsSulaQueryTable/setting.tsx +853 -852
  114. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  115. package/src/components/Business/BsSulaQueryTable/utils.tsx +690 -690
  116. package/src/components/Business/CommodityEntry/index.md +70 -70
  117. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  118. package/src/components/Business/CommonAlert/index.tsx +23 -23
  119. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  120. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  121. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  122. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  123. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  124. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  125. package/src/components/Business/HomePageWrapper/index.less +33 -33
  126. package/src/components/Business/HomePageWrapper/index.md +45 -45
  127. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  128. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  129. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +205 -205
  130. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  131. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  132. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  133. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  134. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  135. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  136. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  137. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  138. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  139. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  140. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  141. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  142. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  143. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  144. package/src/components/Business/JsonQueryTable/index.less +16 -16
  145. package/src/components/Business/JsonQueryTable/index.md +328 -328
  146. package/src/components/Business/JsonQueryTable/index.tsx +535 -535
  147. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  148. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  149. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  150. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  151. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  152. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  153. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  154. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  155. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  156. package/src/components/Business/SearchSelect/BusinessUtils.ts +1762 -1762
  157. package/src/components/Business/SearchSelect/common.ts +75 -75
  158. package/src/components/Business/SearchSelect/index.md +1329 -1329
  159. package/src/components/Business/SearchSelect/index.tsx +55 -55
  160. package/src/components/Business/SearchSelect/utils.ts +100 -100
  161. package/src/components/Business/StateFlow/index.less +130 -130
  162. package/src/components/Business/StateFlow/index.md +60 -60
  163. package/src/components/Business/StateFlow/index.tsx +29 -29
  164. package/src/components/Business/TreeSearchSelect/index.md +156 -156
  165. package/src/components/Business/TreeSearchSelect/index.tsx +33 -33
  166. package/src/components/Business/TreeSearchSelect/utils.ts +75 -75
  167. package/src/components/Business/columnSettingTable/columnSetting.tsx +765 -764
  168. package/src/components/Business/columnSettingTable/index.less +247 -247
  169. package/src/components/Business/columnSettingTable/index.md +357 -357
  170. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  171. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  172. package/src/components/Business/columnSettingTable/utils.tsx +71 -71
  173. package/src/components/Business/moreTreeTable/FixedScrollBar.tsx +87 -87
  174. package/src/components/Business/moreTreeTable/hooks/useSticky.ts +21 -21
  175. package/src/components/Business/moreTreeTable/index.less +99 -99
  176. package/src/components/Business/moreTreeTable/index.md +448 -448
  177. package/src/components/Business/moreTreeTable/index.tsx +387 -387
  178. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  179. package/src/components/Functional/AddSelect/helps.ts +79 -79
  180. package/src/components/Functional/AddSelect/index.less +367 -367
  181. package/src/components/Functional/AddSelect/index.md +155 -155
  182. package/src/components/Functional/AddSelect/index.tsx +1170 -1170
  183. package/src/components/Functional/BillEntry/index.less +371 -371
  184. package/src/components/Functional/BillEntry/index.md +39 -39
  185. package/src/components/Functional/BillEntry/index.tsx +772 -772
  186. package/src/components/Functional/BsAntdSula/BsCascader/index.md +62 -62
  187. package/src/components/Functional/BsAntdSula/BsCascader/index.tsx +178 -178
  188. package/src/components/Functional/BsAntdSula/index.ts +2 -2
  189. package/src/components/Functional/DataImport/index.less +63 -63
  190. package/src/components/Functional/DataImport/index.md +44 -44
  191. package/src/components/Functional/DataImport/index.tsx +695 -695
  192. package/src/components/Functional/DataValidation/index.less +63 -63
  193. package/src/components/Functional/DataValidation/index.md +39 -39
  194. package/src/components/Functional/DataValidation/index.tsx +687 -687
  195. package/src/components/Functional/EllipsisTooltip/index.d.ts +5 -5
  196. package/src/components/Functional/EllipsisTooltip/index.js +36 -36
  197. package/src/components/Functional/EllipsisTooltip/index.md +30 -30
  198. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  199. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  200. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  201. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  202. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  203. package/src/components/Functional/SearchSelect/index.less +115 -115
  204. package/src/components/Functional/SearchSelect/index.md +141 -141
  205. package/src/components/Functional/SearchSelect/index.tsx +879 -879
  206. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  207. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  208. package/src/components/Functional/TreeSearchSelect/index.tsx +199 -199
  209. package/src/components/Solution/RuleComponent/Formula.tsx +335 -335
  210. package/src/components/Solution/RuleComponent/index.d.ts +29 -29
  211. package/src/components/Solution/RuleComponent/index.js +2032 -2032
  212. package/src/components/Solution/RuleComponent/index.less +230 -230
  213. package/src/components/Solution/RuleComponent/renderSpecificAction.js +99 -99
  214. package/src/components/Solution/RuleComponent/ruleFiled.js +2107 -2107
  215. package/src/components/Solution/RuleComponent/services.ts +13 -13
  216. package/src/components/Solution/RuleComponent/util.js +139 -139
  217. package/src/index.ts +38 -38
  218. package/src/plugin/TableColumnSetting/index.less +247 -247
  219. package/src/plugin/TableColumnSetting/index.md +50 -50
  220. package/src/plugin/TableColumnSetting/index.tsx +725 -724
  221. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  222. package/src/styles/bsDefault.less +1890 -1890
  223. package/src/utils/CheckOneUser/index.md +39 -39
  224. package/src/utils/CheckOneUser/index.ts +51 -51
  225. package/src/utils/LocalstorageUtils.ts +114 -95
  226. package/src/utils/TableUtils.tsx +18 -18
  227. package/src/utils/checkUtils.ts +39 -39
  228. package/src/utils/enumConfig.ts +11 -11
  229. package/src/utils/getFormMode.js +12 -12
  230. package/src/utils/index.ts +4 -4
  231. package/src/utils/requestUtils.ts +42 -34
  232. package/src/utils/serialize.js +7 -7
  233. package/src/utils/utils.ts +212 -212
  234. package/tsconfig.json +29 -29
  235. package/typings.d.ts +4 -4
@@ -12,6 +12,6 @@ declare class LeftTree extends React.Component<any> {
12
12
  onChange: (e: any) => void;
13
13
  getPathList: (originData: any) => Array<any>;
14
14
  handleAdd2Menu: (path: string) => void;
15
- render(): JSX.Element;
15
+ render(): React.JSX.Element;
16
16
  }
17
17
  export default LeftTree;
@@ -24,7 +24,7 @@ declare class rightTree extends React.Component<any> {
24
24
  handleBatchDelete: () => void;
25
25
  handleAddTreeNode: (e: any, item: any) => void;
26
26
  onCheck: (checkedKeysValue: React.Key[]) => void;
27
- getChildMenu: (item: any) => JSX.Element;
28
- render(): JSX.Element;
27
+ getChildMenu: (item: any) => React.JSX.Element;
28
+ render(): React.JSX.Element;
29
29
  }
30
30
  export default rightTree;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './drawContent.less';
2
- declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => JSX.Element;
3
+ declare const DrawContent: ({ onClose, originRoutes, itemPath }: any) => React.JSX.Element;
3
4
  export default DrawContent;
@@ -1,2 +1,3 @@
1
- declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => JSX.Element;
1
+ import React from "react";
2
+ declare const CustomerMenuHeader: ({ collapsed, handleClose, originRoutes, itemPath }: any) => React.JSX.Element;
2
3
  export default CustomerMenuHeader;
@@ -1,4 +1,5 @@
1
+ import React from "react";
1
2
  import './index.less';
2
3
  export declare const judgeIsEmpty: (value: any) => boolean;
3
- declare const GlobalHeaderCom: (props: any) => JSX.Element;
4
+ declare const GlobalHeaderCom: (props: any) => React.JSX.Element;
4
5
  export default GlobalHeaderCom;
@@ -1,2 +1,3 @@
1
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
2
3
  export default _default;
@@ -14,5 +14,5 @@ export type BasicLayoutContext = {
14
14
  } & {
15
15
  breadcrumbNameMap: Record<string, MenuDataItem>;
16
16
  };
17
- declare const _default: (props: any) => JSX.Element;
17
+ declare const _default: (props: any) => React.JSX.Element;
18
18
  export default _default;
@@ -1 +1 @@
1
- export declare function outLogin(params: any): Promise<import("axios").AxiosResponse<any>>;
1
+ export declare function outLogin(params: any): Promise<import("axios").AxiosResponse<any, any>>;
@@ -26,14 +26,14 @@ declare class SearchItemTable extends React.Component {
26
26
  } | {
27
27
  title: string;
28
28
  dataIndex: string;
29
- render: (text: any, record: any) => JSX.Element;
29
+ render: (text: any, record: any) => React.JSX.Element;
30
30
  className?: undefined;
31
31
  width?: undefined;
32
32
  } | {
33
33
  title: string;
34
34
  dataIndex: string;
35
35
  className: string;
36
- render: () => JSX.Element;
36
+ render: () => React.JSX.Element;
37
37
  width?: undefined;
38
38
  })[];
39
39
  showModal: () => void;
@@ -44,17 +44,17 @@ declare class SearchItemTable extends React.Component {
44
44
  oldIndex: any;
45
45
  newIndex: any;
46
46
  }) => void;
47
- DraggableContainer: (props: any) => JSX.Element;
47
+ DraggableContainer: (props: any) => React.JSX.Element;
48
48
  DraggableBodyRow: ({ className, style, ...restProps }: {
49
49
  [x: string]: any;
50
50
  className: any;
51
51
  style: any;
52
- }) => JSX.Element;
52
+ }) => React.JSX.Element;
53
53
  onChange: (e: CheckboxChangeEvent, label: any) => void;
54
54
  handleReset: () => void;
55
55
  handleResetSetting: () => void;
56
56
  onSearch: (e: any) => void;
57
57
  onSearchSort: (e: any) => void;
58
- render(): JSX.Element;
58
+ render(): React.JSX.Element;
59
59
  }
60
60
  export default SearchItemTable;
@@ -1,2 +1,3 @@
1
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
2
3
  export default _default;
@@ -26,14 +26,14 @@ declare class SortableTable extends React.Component {
26
26
  } | {
27
27
  title: string;
28
28
  dataIndex: string;
29
- render: (text: any, record: any) => JSX.Element;
29
+ render: (text: any, record: any) => React.JSX.Element;
30
30
  className?: undefined;
31
31
  width?: undefined;
32
32
  } | {
33
33
  title: string;
34
34
  dataIndex: string;
35
35
  className: string;
36
- render: () => JSX.Element;
36
+ render: () => React.JSX.Element;
37
37
  width?: undefined;
38
38
  })[];
39
39
  showModal: () => void;
@@ -44,17 +44,17 @@ declare class SortableTable extends React.Component {
44
44
  oldIndex: any;
45
45
  newIndex: any;
46
46
  }) => void;
47
- DraggableContainer: (props: any) => JSX.Element;
47
+ DraggableContainer: (props: any) => React.JSX.Element;
48
48
  DraggableBodyRow: ({ className, style, ...restProps }: {
49
49
  [x: string]: any;
50
50
  className: any;
51
51
  style: any;
52
- }) => JSX.Element;
52
+ }) => React.JSX.Element;
53
53
  onChange: (e: CheckboxChangeEvent, title: any) => void;
54
54
  handleReset: () => void;
55
55
  handleResetSetting: () => void;
56
56
  onSearch: (e: any) => void;
57
57
  onSearchSort: (e: any) => void;
58
- render(): JSX.Element;
58
+ render(): React.JSX.Element;
59
59
  }
60
60
  export default SortableTable;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import moment from 'moment';
2
3
  import './utils.less';
3
- export declare const handleStatusBadge: (text: any, color: any) => JSX.Element;
4
- export declare const HandleTotalCount: (totalParams: any) => JSX.Element;
4
+ export declare const handleStatusBadge: (text: any, color: any) => React.JSX.Element;
5
+ export declare const HandleTotalCount: (totalParams: any) => React.JSX.Element;
5
6
  export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) => {
6
7
  type: string;
7
8
  width: number;
@@ -41,17 +42,17 @@ export declare const updateGuanDate: (requestParams: any, dateKeyParams?: any) =
41
42
  };
42
43
  export declare const renderZeroInSummary: (value: any) => number | "- -";
43
44
  export declare const calculateValidPeriod: (start: any, end: any) => string;
44
- export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
45
- export declare const handleTextLineFeed: (text: string | undefined, width?: number) => JSX.Element;
46
- export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
47
- export declare const handleTooltip: (text: any, timeTrue?: boolean) => JSX.Element;
48
- export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => JSX.Element;
45
+ export declare const handleTextDouble: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
46
+ export declare const handleTextLineFeed: (text: string | undefined, width?: number) => React.JSX.Element;
47
+ export declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
48
+ export declare const handleTooltip: (text: any, timeTrue?: boolean) => React.JSX.Element;
49
+ export declare const handleTooltipHours: (text: any, timeTrue?: boolean) => React.JSX.Element;
49
50
  type tableColumnsImageType = {
50
51
  width?: number | string;
51
52
  height?: number | string;
52
53
  [key: string]: any;
53
54
  };
54
- export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => JSX.Element;
55
+ export declare const tableColumnsImage: (url?: string, paramsObj?: tableColumnsImageType) => React.JSX.Element;
55
56
  type UserColumnsType = {
56
57
  name: string;
57
58
  department?: string;
@@ -59,8 +60,8 @@ type UserColumnsType = {
59
60
  company?: string;
60
61
  avatar?: string;
61
62
  };
62
- export declare const userColumns: (props: UserColumnsType) => JSX.Element;
63
- export declare const userInfoCard: (props: any) => JSX.Element;
63
+ export declare const userColumns: (props: UserColumnsType) => React.JSX.Element;
64
+ export declare const userInfoCard: (props: any) => React.JSX.Element;
64
65
  export declare function handleCommonTimeRenderHours(text: any, format?: any): any;
65
66
  export declare function handleCommonTimeRender(text: any, format?: any): any;
66
67
  interface ColumnsEditInterfave {
@@ -78,9 +79,9 @@ interface ColumnsEditInterfave {
78
79
  };
79
80
  [key: string]: any;
80
81
  }
81
- export declare const ColumnsEdit: (props: ColumnsEditInterfave) => JSX.Element;
82
- export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => JSX.Element;
83
- export declare const textIcon: (type: string | number, text?: string) => JSX.Element | undefined;
82
+ export declare const ColumnsEdit: (props: ColumnsEditInterfave) => React.JSX.Element;
83
+ export declare const handleTextDoubleOrId: (textOne: string | undefined, textTwo: string | undefined) => React.JSX.Element;
84
+ export declare const textIcon: (type: string | number, text?: string) => React.JSX.Element | undefined;
84
85
  export declare const renderFixed2: (text: any) => any;
85
86
  export declare const getItemDefaultWidth: (item: any) => number;
86
87
  /**
@@ -1,2 +1,3 @@
1
- declare const CommodityEntry: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const CommodityEntry: (props: any) => React.JSX.Element;
2
3
  export default CommodityEntry;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
- declare const _default: (props: any) => JSX.Element;
3
+ declare const _default: (props: any) => React.JSX.Element;
3
4
  export default _default;
@@ -1,6 +1,6 @@
1
- import { Component } from "react";
1
+ import React, { Component } from "react";
2
2
  import './index.less';
3
3
  export default class GuideWrapper extends Component {
4
- static Field: ({ children, ...props }: any) => JSX.Element;
5
- render(): JSX.Element;
4
+ static Field: ({ children, ...props }: any) => React.JSX.Element;
5
+ render(): React.JSX.Element;
6
6
  }
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  export declare const iconMap: {
3
- edit: JSX.Element;
4
- delete: JSX.Element;
5
- submit: JSX.Element;
6
- more: JSX.Element;
4
+ edit: React.JSX.Element;
5
+ delete: React.JSX.Element;
6
+ submit: React.JSX.Element;
7
+ more: React.JSX.Element;
7
8
  };
8
- declare const _default: (props: any) => JSX.Element;
9
+ declare const _default: (props: any) => React.JSX.Element;
9
10
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
- declare const _default: (props: any) => JSX.Element;
3
+ declare const _default: (props: any) => React.JSX.Element;
3
4
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const FieldsModifyModal: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const FieldsModifyModal: (props: any) => React.JSX.Element;
2
3
  export default FieldsModifyModal;
@@ -1,2 +1,3 @@
1
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
2
3
  export default _default;
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  declare const App: ({ record, setValue, formula }: {
2
3
  record: any;
3
4
  setValue: any;
4
5
  formula: any;
5
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
6
7
  export default App;
@@ -1,2 +1,3 @@
1
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: (props: any) => React.JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import './index.less';
2
- declare const _default: (props: any) => JSX.Element;
3
+ declare const _default: (props: any) => React.JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
2
+ declare const _default: React.MemoExoticComponent<(props: any) => React.JSX.Element>;
3
3
  export default _default;
@@ -27,14 +27,14 @@ declare class SortableTable extends React.Component<SortTableProps> {
27
27
  } | {
28
28
  title: string;
29
29
  dataIndex: string;
30
- render: (text: any, record: any) => JSX.Element;
30
+ render: (text: any, record: any) => React.JSX.Element;
31
31
  className?: undefined;
32
32
  width?: undefined;
33
33
  } | {
34
34
  title: string;
35
35
  dataIndex: string;
36
36
  className: string;
37
- render: () => JSX.Element;
37
+ render: () => React.JSX.Element;
38
38
  width?: undefined;
39
39
  })[];
40
40
  showModal: () => void;
@@ -42,13 +42,13 @@ declare class SortableTable extends React.Component<SortTableProps> {
42
42
  handleCancel: (e: React.MouseEvent<HTMLElement>) => void;
43
43
  handleTableHeadHidden: (title: string) => void;
44
44
  onSortEnd: ({ oldIndex, newIndex }: any) => void;
45
- DraggableContainer: (props: any) => JSX.Element;
46
- DraggableBodyRow: ({ className, style, ...restProps }: any) => JSX.Element;
45
+ DraggableContainer: (props: any) => React.JSX.Element;
46
+ DraggableBodyRow: ({ className, style, ...restProps }: any) => React.JSX.Element;
47
47
  onChange: (e: any, title: any) => void;
48
48
  handleReset: () => void;
49
49
  onSearch: (e: any) => void;
50
50
  onSearchSort: (e: any) => void;
51
51
  getConfigFromlocalstorage: () => any;
52
- render(): JSX.Element;
52
+ render(): React.JSX.Element;
53
53
  }
54
54
  export default SortableTable;
@@ -10,7 +10,7 @@ export default class ColumnSettingTable extends React.Component {
10
10
  getTableSummaryInfo: () => () => any;
11
11
  handledynamicColumns: (col: any[]) => any[];
12
12
  handleResize: (index: any) => (_: any, { size }: any) => void;
13
- ResizeableTitle: (props: any) => JSX.Element;
13
+ ResizeableTitle: (props: any) => React.JSX.Element;
14
14
  getTableScrollXWidth: (cols: any[]) => any;
15
- render(): JSX.Element;
15
+ render(): React.JSX.Element;
16
16
  }
@@ -11,7 +11,7 @@ export default class ColumnSettingSulaTable extends React.Component {
11
11
  getTableSummaryInfo: () => () => any;
12
12
  handledynamicColumns: (col: any[]) => any[];
13
13
  handleResize: (index: any) => (_: any, { size }: any) => void;
14
- ResizeableTitle: (props: any) => JSX.Element;
14
+ ResizeableTitle: (props: any) => React.JSX.Element;
15
15
  getTableScrollXWidth: (cols: any[]) => any;
16
- render(): JSX.Element;
16
+ render(): React.JSX.Element;
17
17
  }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  /**
2
3
  * 非空数组
3
4
  * @param arr 要判断的数据
@@ -5,4 +6,4 @@
5
6
  */
6
7
  export declare const noEmptyArray: (arr: any[]) => boolean;
7
8
  export declare const getItemDefaultWidth: (item: any) => number;
8
- export declare const handleTextOverflow: (text: string | undefined, width?: number) => JSX.Element;
9
+ export declare const handleTextOverflow: (text: string | undefined, width?: number) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
- declare const AddSelect: (props: any) => JSX.Element;
3
+ declare const AddSelect: (props: any) => React.JSX.Element;
3
4
  export default AddSelect;
@@ -137,8 +137,8 @@ declare class DataImport extends React.Component {
137
137
  toggleData: () => void;
138
138
  onChange: (e: any) => void;
139
139
  errorChange: (e: any) => void;
140
- menuList: JSX.Element;
141
- leftMenu: JSX.Element;
142
- render(): JSX.Element;
140
+ menuList: React.JSX.Element;
141
+ leftMenu: React.JSX.Element;
142
+ render(): React.JSX.Element;
143
143
  }
144
144
  export default DataImport;
@@ -137,8 +137,8 @@ declare class DataValidation extends React.Component {
137
137
  toggleData: () => void;
138
138
  onChange: (e: any) => void;
139
139
  errorChange: (e: any) => void;
140
- menuList: JSX.Element;
141
- leftMenu: JSX.Element;
142
- render(): JSX.Element;
140
+ menuList: React.JSX.Element;
141
+ leftMenu: React.JSX.Element;
142
+ render(): React.JSX.Element;
143
143
  }
144
144
  export default DataValidation;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface exportIconType {
2
3
  /** others选填,使用axios发请求,*/
3
4
  request: {
@@ -8,5 +9,5 @@ interface exportIconType {
8
9
  /** BsSulaQueryTable的tableRef*/
9
10
  tableRef: any;
10
11
  }
11
- declare const ExportIcon: ({ request, tableRef }: exportIconType) => JSX.Element;
12
+ declare const ExportIcon: ({ request, tableRef }: exportIconType) => React.JSX.Element;
12
13
  export default ExportIcon;
@@ -1,5 +1,6 @@
1
+ import React from 'react';
1
2
  import './index.less';
2
3
  declare const QueryMutipleInput: ({ onValueChange }: {
3
4
  onValueChange: any;
4
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
5
6
  export default QueryMutipleInput;
@@ -1,2 +1,3 @@
1
- declare const TreeSearchSelect: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const TreeSearchSelect: (props: any) => React.JSX.Element;
2
3
  export default TreeSearchSelect;
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  declare const App: ({ setValue, formula, record, sourceData, disabled }: {
2
3
  setValue: any;
3
4
  record: any;
4
5
  sourceData: any;
5
6
  formula?: any;
6
7
  disabled?: boolean | undefined;
7
- }) => JSX.Element;
8
+ }) => React.JSX.Element;
8
9
  export default App;
@@ -1 +1 @@
1
- export declare function getRegularThresholdRange(params: any): Promise<import("axios").AxiosResponse<any>>;
1
+ export declare function getRegularThresholdRange(params: any): Promise<import("axios").AxiosResponse<any, any>>;
package/dist/index.esm.js CHANGED
@@ -69,9 +69,6 @@ var getConfigTableColumns = function getConfigTableColumns(tableCode) {
69
69
  }
70
70
  return [];
71
71
  };
72
- var getCurrentTenantId = function getCurrentTenantId() {
73
- return localStorage.getItem('current_tenant_id') || 1;
74
- };
75
72
  function getEmployeeId() {
76
73
  var _resposne$employeeRes;
77
74
  return (resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes = resposne.employeeResVo) === null || _resposne$employeeRes === void 0 ? void 0 : _resposne$employeeRes.id) || 2;
@@ -83,9 +80,24 @@ function getEmployeeCode() {
83
80
  function getSessionId() {
84
81
  return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
85
82
  }
86
- function getAccountId() {
87
- var _resposne$accountPers;
88
- return (resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers = resposne.accountPersonDetail) === null || _resposne$accountPers === void 0 ? void 0 : _resposne$accountPers.accountId) || -1;
83
+ //--------赢家项目登录信息---------
84
+ function getEekaSessionId() {
85
+ return (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
86
+ }
87
+ function getEekaAccountId() {
88
+ var _resposne$personDetai;
89
+ return (resposne === null || resposne === void 0 ? void 0 : (_resposne$personDetai = resposne.personDetailResDto) === null || _resposne$personDetai === void 0 ? void 0 : _resposne$personDetai.accountId) || -1;
90
+ }
91
+ function getEekaEmployeeId() {
92
+ var _resposne$personDetai2;
93
+ return (resposne === null || resposne === void 0 ? void 0 : (_resposne$personDetai2 = resposne.personDetailResDto) === null || _resposne$personDetai2 === void 0 ? void 0 : _resposne$personDetai2.employeeId) || 2;
94
+ }
95
+ function getEekaTenantId() {
96
+ var _resposne$personDetai3;
97
+ return (resposne === null || resposne === void 0 ? void 0 : (_resposne$personDetai3 = resposne.personDetailResDto) === null || _resposne$personDetai3 === void 0 ? void 0 : _resposne$personDetai3.tenantId) || 1;
98
+ }
99
+ function getEekaToken() {
100
+ return resposne === null || resposne === void 0 ? void 0 : resposne.token;
89
101
  }
90
102
  function getUserId() {
91
103
  var _resposne$accountPers2;
@@ -121,10 +133,16 @@ function handleRequestAuthHeader(config) {
121
133
  }
122
134
  // 处理请求头
123
135
  var handleRequestHeader = function handleRequestHeader(config) {
124
- config.headers['sso-sessionid'] = getSessionId();
125
- config.headers['x-account-id'] = getAccountId();
126
- config.headers['x-employee-id'] = getEmployeeId();
127
- config.headers['x-tenant-id'] = getCurrentTenantId();
136
+ // config.headers['sso-sessionid'] = getSessionId()
137
+ // config.headers['x-account-id'] = getAccountId()
138
+ // config.headers['x-employee-id'] = getEmployeeId()
139
+ // config.headers['x-tenant-id'] = getCurrentTenantId()
140
+ //赢家项目请求头
141
+ config.headers['x-sso-sessionid'] = getEekaSessionId();
142
+ config.headers['x-account-id'] = getEekaAccountId();
143
+ config.headers['x-employee-id'] = getEekaEmployeeId();
144
+ config.headers['x-tenant-id'] = getEekaTenantId();
145
+ config.headers['x-user-token'] = getEekaToken();
128
146
  if (localStorage.getItem('x-user-auth-context')) {
129
147
  config.headers['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
130
148
  }
@@ -3626,7 +3644,8 @@ var TableColumnSetting = /*#__PURE__*/function (_React$Component) {
3626
3644
  };
3627
3645
  });
3628
3646
  axios({
3629
- url: '/user/appConfig/saveUserOrder',
3647
+ // url: '/user/appConfig/saveUserOrder',
3648
+ url: '/api/mallops/appConfig/saveUserOrder',
3630
3649
  method: 'POST',
3631
3650
  data: {
3632
3651
  "code": tableCode,
@@ -10491,7 +10510,8 @@ var SortableTable = /*#__PURE__*/function (_React$Component) {
10491
10510
  };
10492
10511
  });
10493
10512
  axios({
10494
- url: '/user/appConfig/saveUserOrder',
10513
+ // url: '/user/appConfig/saveUserOrder',
10514
+ url: '/api/mallops/appConfig/saveUserOrder',
10495
10515
  method: 'POST',
10496
10516
  data: {
10497
10517
  "code": tableCode,
@@ -12062,7 +12082,8 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
12062
12082
  }) : '';
12063
12083
  return new Promise(function (resolve, reject) {
12064
12084
  axios({
12065
- url: '/user/appConfig/saveUserOrder',
12085
+ // url: '/user/appConfig/saveUserOrder',
12086
+ url: '/api/mallops/appConfig/saveUserOrder',
12066
12087
  method: 'POST',
12067
12088
  data: {
12068
12089
  code: that.state.bsTableCode,
@@ -12810,7 +12831,8 @@ var SearchItemTable = /*#__PURE__*/function (_React$Component) {
12810
12831
  };
12811
12832
  }) : '';
12812
12833
  axios({
12813
- url: '/user/appConfig/saveQueryCriteria',
12834
+ // url: '/user/appConfig/saveQueryCriteria',
12835
+ url: '/api/mallops/appConfig/saveQueryCriteria',
12814
12836
  method: 'POST',
12815
12837
  data: {
12816
12838
  code: that.state.bsTableCode,