@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.5-per-alpha.2
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/.umirc.ts +14 -10
- package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +19 -8
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +9 -17
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +4 -4
- package/dist/components/Functional/DataValidation/index.d.ts +5 -5
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +2203 -1852
- package/dist/index.js +2196 -1847
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/dist/utils/luckysheetLoader.d.ts +21 -0
- package/dist/utils/utils.d.ts +0 -41
- package/package.json +1 -1
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +94 -25
- package/src/components/Business/BsLayouts/index.tsx +235 -129
- package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +144 -4
- package/src/components/Business/BsSulaQueryTable/index.md +120 -0
- package/src/components/Business/BsSulaQueryTable/index.tsx +241 -24
- package/src/components/Business/BsSulaQueryTable/setting.tsx +232 -17
- package/src/components/Business/DetailPageWrapper/index.tsx +30 -27
- package/src/components/Business/HomePageWrapper/index.tsx +10 -8
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +38 -234
- package/src/components/Business/columnSettingTable/index.tsx +6 -7
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +22 -23
- package/src/components/Functional/AddSelect/index.tsx +0 -92
- package/src/components/Functional/DataImport/index.tsx +76 -3
- package/src/components/Functional/DataValidation/index.tsx +81 -3
- package/src/components/Functional/SearchSelect/index.tsx +2 -5
- package/src/components/Solution/RuleComponent/index.js +0 -1
- package/src/index.ts +0 -2
- package/src/utils/luckysheetLoader.ts +164 -0
- package/src/utils/utils.ts +1 -41
- package/dist/components/Business/SystemLog/index.d.ts +0 -78
- package/src/components/Business/SystemLog/index.md +0 -37
- package/src/components/Business/SystemLog/index.tsx +0 -87
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
nav:
|
|
3
|
-
title: '组件'
|
|
4
|
-
order: 1
|
|
5
|
-
group:
|
|
6
|
-
title: 业务组件
|
|
7
|
-
order: 1
|
|
8
|
-
title: 日志组件
|
|
9
|
-
order: 1
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# SystemLog
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## 日志业务组件
|
|
16
|
-
|
|
17
|
-
```tsx
|
|
18
|
-
import React, { useState } from 'react';
|
|
19
|
-
import { SystemLog } from '../../../index.ts';
|
|
20
|
-
|
|
21
|
-
export default () => {
|
|
22
|
-
const [modeType, setModeType] = useState('view');
|
|
23
|
-
const renderLogRef = useRef<any>();
|
|
24
|
-
|
|
25
|
-
return {
|
|
26
|
-
fields: [
|
|
27
|
-
SystemLog({
|
|
28
|
-
modeType,
|
|
29
|
-
code: '123',
|
|
30
|
-
containerName: 'Test_Log_Info',
|
|
31
|
-
renderLogRef,
|
|
32
|
-
extraParams: {},
|
|
33
|
-
})
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
```
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { handleCommonTimeRender } from '@/utils/TableUtils';
|
|
2
|
-
import { formContainerAndItemLayout, handleConvertResponse } from '@/utils/utils';
|
|
3
|
-
import { Table as BsTable } from 'bssula';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
|
|
6
|
-
//操作日志
|
|
7
|
-
const SystemLog = ({
|
|
8
|
-
modeType,
|
|
9
|
-
code,
|
|
10
|
-
containerName,
|
|
11
|
-
renderLogRef = {},
|
|
12
|
-
extraParams = {},
|
|
13
|
-
}: {
|
|
14
|
-
modeType: string,
|
|
15
|
-
code: any
|
|
16
|
-
containerName: string,
|
|
17
|
-
renderLogRef: object,
|
|
18
|
-
extraParams?: object,
|
|
19
|
-
}) => {
|
|
20
|
-
return {
|
|
21
|
-
...formContainerAndItemLayout('table', '操作日志', containerName),
|
|
22
|
-
initialVisible: modeType != 'create',
|
|
23
|
-
fields: [
|
|
24
|
-
{
|
|
25
|
-
name: 'table',
|
|
26
|
-
label: false,
|
|
27
|
-
itemLayout: {
|
|
28
|
-
span: 24,
|
|
29
|
-
labelCol: {
|
|
30
|
-
span: 0,
|
|
31
|
-
},
|
|
32
|
-
wrapperCol: {
|
|
33
|
-
span: 24,
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
field: (ctx: any) => {
|
|
37
|
-
return code && <BsTable
|
|
38
|
-
remoteDataSource={{
|
|
39
|
-
url: `/oms-ops/logInfo?qp-businessCode-eq=${code}`,
|
|
40
|
-
convertParams: ({ params }: any) => {
|
|
41
|
-
return {
|
|
42
|
-
pageSize: params.pageSize,
|
|
43
|
-
currentPage: params.current,
|
|
44
|
-
...extraParams,
|
|
45
|
-
};
|
|
46
|
-
},
|
|
47
|
-
converter: ({ data }: any) => {
|
|
48
|
-
return {
|
|
49
|
-
...handleConvertResponse(data.list, data.total || data.totalCount),
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
}}
|
|
53
|
-
columns={[
|
|
54
|
-
{
|
|
55
|
-
title: '操作人',
|
|
56
|
-
dataIndex: 'handlerName',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
title: '操作名称',
|
|
60
|
-
dataIndex: 'handlerType',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
title: '操作时间',
|
|
64
|
-
dataIndex: 'handlerTime',
|
|
65
|
-
render: ({ text }: { text: any }) => handleCommonTimeRender(text)
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
title: '操作内容',
|
|
69
|
-
dataIndex: 'logcontent',
|
|
70
|
-
},
|
|
71
|
-
]}
|
|
72
|
-
style={{ width: '100%', marginTop: '-16px', padding: '0px' }}
|
|
73
|
-
rowKey="id"
|
|
74
|
-
scroll={{ x: 'max-content' }}
|
|
75
|
-
pagination={{
|
|
76
|
-
showTotal: (total: any) => `共 ${total} 条`,
|
|
77
|
-
showQuickJumper: true,
|
|
78
|
-
hideOnSinglePage: true,
|
|
79
|
-
}}
|
|
80
|
-
ref={renderLogRef}
|
|
81
|
-
/>
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export default SystemLog
|