kts-components-document-access-point 1.3.25 → 1.3.26

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 (121) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +4 -4
  3. package/.prettierignore +7 -7
  4. package/.prettierrc +11 -11
  5. package/.umirc.ts +11 -11
  6. package/README.md +3 -3
  7. package/dist/index.esm.js +2 -13
  8. package/dist/index.js +2 -13
  9. package/docs/index.md +3 -3
  10. package/docs-dist/404.html +38 -38
  11. package/docs-dist/index.html +38 -38
  12. package/docs-dist/umi.css +10 -10
  13. package/index.html +12 -12
  14. package/package.json +56 -56
  15. package/src/DocumentWhiteList/___demo___/base/index.tsx +7 -7
  16. package/src/DocumentWhiteList/___demo___/setService/index.tsx +23 -23
  17. package/src/DocumentWhiteList/control/actions/addblack/index.ts +14 -14
  18. package/src/DocumentWhiteList/control/actions/addwhite/index.ts +14 -14
  19. package/src/DocumentWhiteList/control/actions/blacklist/index.ts +22 -22
  20. package/src/DocumentWhiteList/control/actions/checkclient/index.ts +14 -14
  21. package/src/DocumentWhiteList/control/actions/demo/index.ts +4 -4
  22. package/src/DocumentWhiteList/control/actions/didilist/index.ts +18 -18
  23. package/src/DocumentWhiteList/control/actions/enableblacklist/index.ts +17 -17
  24. package/src/DocumentWhiteList/control/actions/enablelist/index.ts +18 -18
  25. package/src/DocumentWhiteList/control/actions/enablewhitelist/index.ts +17 -17
  26. package/src/DocumentWhiteList/control/actions/getmode/index.ts +14 -14
  27. package/src/DocumentWhiteList/control/actions/setmode/index.ts +14 -14
  28. package/src/DocumentWhiteList/control/actions/synclist/index.ts +19 -19
  29. package/src/DocumentWhiteList/control/actions/whitelist/index.ts +22 -22
  30. package/src/DocumentWhiteList/control/index.tsx +42 -42
  31. package/src/DocumentWhiteList/control/state/index.ts +47 -47
  32. package/src/DocumentWhiteList/index.md +5 -5
  33. package/src/DocumentWhiteList/index.tsx +40 -40
  34. package/src/DocumentWhiteList/interface/index.ts +30 -30
  35. package/src/DocumentWhiteList/ui/clientmodal/index.tsx +190 -190
  36. package/src/DocumentWhiteList/ui/main/black.tsx +132 -132
  37. package/src/DocumentWhiteList/ui/main/index.tsx +49 -49
  38. package/src/DocumentWhiteList/ui/main/switchmode.tsx +52 -52
  39. package/src/DocumentWhiteList/ui/main/white.tsx +120 -120
  40. package/src/DocumentWhiteList/ui/pageheader/BlackHeader.tsx +143 -143
  41. package/src/DocumentWhiteList/ui/pageheader/WhiteHeader.tsx +152 -152
  42. package/src/DocumentWhiteList/ui/pageui/index.tsx +64 -64
  43. package/src/DocumentWhiteList/ui/whitemodal/index.tsx +146 -146
  44. package/src/DocumentWhiteList/util/ConfigEnum.ts +8 -8
  45. package/src/DocumentsCont/___demo___/base/index.tsx +7 -7
  46. package/src/DocumentsCont/___demo___/setService/index.tsx +25 -25
  47. package/src/DocumentsCont/index.md +9 -9
  48. package/src/DocumentsCont/index.tsx +51 -51
  49. package/src/DocumentsDemo/Controller/index.tsx +14 -14
  50. package/src/DocumentsDemo/Controller/whitelist.ts +22 -22
  51. package/src/DocumentsDemo/Text.tsx +22 -22
  52. package/src/DocumentsDemo/___demo___/base/index.tsx +7 -7
  53. package/src/DocumentsDemo/index.md +6 -6
  54. package/src/DocumentsDemo/index.tsx +38 -38
  55. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/IProperties/index.ts +69 -69
  56. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/IRules/index.ts +18 -18
  57. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/ISchema/index.ts +14 -14
  58. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/PropertyTableState/index.ts +12 -12
  59. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.ts +336 -336
  60. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/index.ts +51 -51
  61. package/src/DocumentsEdit/DocumentsEditController/actions/addProperties/index.ts +37 -37
  62. package/src/DocumentsEdit/DocumentsEditController/actions/delProperties/index.ts +48 -48
  63. package/src/DocumentsEdit/DocumentsEditController/actions/editProperties/index.ts +78 -78
  64. package/src/DocumentsEdit/DocumentsEditController/index.tsx +21 -21
  65. package/src/DocumentsEdit/___demo___/conventional/index.tsx +10 -10
  66. package/src/DocumentsEdit/___demo___/monitor/index.tsx +73 -73
  67. package/src/DocumentsEdit/___demo___/readOnly/index.tsx +16 -16
  68. package/src/DocumentsEdit/constant/propertyColumns/index.tsx +65 -65
  69. package/src/DocumentsEdit/index.less +45 -45
  70. package/src/DocumentsEdit/index.md +10 -10
  71. package/src/DocumentsEdit/index.tsx +117 -117
  72. package/src/DocumentsEdit/tools/index.ts +88 -88
  73. package/src/DocumentsEdit/ui/AddPropertyButton/index.tsx +238 -250
  74. package/src/DocumentsEdit/ui/Breadcrumb/index.tsx +51 -51
  75. package/src/DocumentsEdit/ui/EditProperty/index.tsx +290 -290
  76. package/src/DocumentsEdit/ui/EditRule/index.tsx +156 -156
  77. package/src/DocumentsEdit/ui/EditRule/ui/AddRuleButton/index.tsx +49 -49
  78. package/src/DocumentsEdit/ui/EditRule/ui/DelRuleButton/index.tsx +31 -31
  79. package/src/DocumentsEdit/ui/EditRule/ui/RuleForm/fn/algorithmFormComponent/index.tsx +142 -142
  80. package/src/DocumentsEdit/ui/EditRule/ui/RuleForm/index.tsx +154 -154
  81. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/index.less +4 -4
  82. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/index.tsx +70 -68
  83. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddChildPropertyButton/index.tsx +34 -34
  84. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddRuleButton/index.tsx +64 -64
  85. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/EditPropertyButton/index.tsx +31 -31
  86. package/src/DocumentsEdit/ui/PropertyTable/index.less +19 -19
  87. package/src/DocumentsEdit/ui/PropertyTable/index.tsx +18 -18
  88. package/src/DocumentsEdit/ui/RefPropertyButton/index.tsx +121 -121
  89. package/src/DocumentsList/DocumentsListController/DocumentsListControllerState/index.ts +55 -55
  90. package/src/DocumentsList/DocumentsListController/actions/demo/index.ts +4 -4
  91. package/src/DocumentsList/DocumentsListController/actions/typelist/index.ts +15 -15
  92. package/src/DocumentsList/DocumentsListController/index.tsx +16 -16
  93. package/src/DocumentsList/___demo___/list/index.tsx +4 -4
  94. package/src/DocumentsList/index.less +22 -22
  95. package/src/DocumentsList/index.md +3 -3
  96. package/src/DocumentsList/index.tsx +46 -46
  97. package/src/DocumentsList/ui/ModalComfirm/index.tsx +92 -92
  98. package/src/DocumentsList/ui/PageHeader/SendHeader.tsx +230 -230
  99. package/src/DocumentsList/ui/PageHeader/index.tsx +325 -325
  100. package/src/DocumentsList/ui/PageUI/index.tsx +65 -65
  101. package/src/DocumentsList/ui/RuleTable/index.tsx +163 -163
  102. package/src/DocumentsList/ui/sendlist/index.tsx +151 -151
  103. package/src/DocumentsList/util/ConfigEnum.ts +11 -11
  104. package/src/DocumentsRule/control/actions/batchsend/index.ts +13 -13
  105. package/src/DocumentsRule/control/actions/configsave/index.ts +14 -14
  106. package/src/DocumentsRule/control/actions/configupdate/index.ts +13 -13
  107. package/src/DocumentsRule/control/actions/getconfigbyid/index.ts +14 -14
  108. package/src/DocumentsRule/control/actions/getrecordbyid/index.ts +14 -14
  109. package/src/DocumentsRule/control/actions/gettemplate/index.ts +15 -15
  110. package/src/DocumentsRule/control/actions/listbysubjectid/index.ts +13 -13
  111. package/src/DocumentsRule/control/actions/typelist/index.ts +13 -13
  112. package/src/DocumentsRule/control/index.tsx +30 -30
  113. package/src/DocumentsRule/control/state/index.ts +42 -42
  114. package/src/DocumentsRule/index.md +1 -1
  115. package/src/DocumentsRule/index.tsx +25 -25
  116. package/src/DocumentsRule/interface/index.ts +28 -28
  117. package/src/DocumentsRule/ui/main/index.tsx +357 -357
  118. package/src/DocumentsService/index.ts +18 -18
  119. package/src/index.ts +9 -9
  120. package/tsconfig.json +29 -29
  121. package/typings.d.ts +3 -3
@@ -1,152 +1,152 @@
1
- import React, { useCallback, useState, useEffect, useMemo } from 'react';
2
- import { Table, AutoTableContainer, Pagination } from 'kts-xui';
3
- import PageHeader from '../PageHeader'
4
- import Main from '../../';
5
- import { attributionEnum } from '../../util/ConfigEnum';
6
- import moment from 'moment';
7
- import { useHistory } from 'react-router-dom';
8
- import { DocumentsService } from "../../../";
9
- export default function validaterule(props: any) {
10
- const controller = Main.useController();
11
- const history = useHistory();
12
- const params = controller.useMemo(s => s.params, [])
13
- const [billEnum, setBill] = useState([]);
14
- const [pageMeta, setpageMeta] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, total: 0, });
15
- // const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, });
16
- const [list, setList] = useState([]);
17
- const [bill, setConfig] = useState<{ [key: string]: string }>({});
18
- useEffect(() => {
19
- (async () => {
20
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/querySendRecordPage', data: params , type: 'post' }) as any;
21
- if (res.err) {
22
- return false;
23
- }
24
- if (res.res) {
25
- setList(res.res.items)
26
- setpageMeta(res.res.pageMeta);
27
- }
28
- })()
29
- }, [params]);
30
- useEffect(() => {
31
- (async () => {
32
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getDefaultTypeList', data: {}, type: 'get' }) as any;
33
- if (res.err) {
34
- return false;
35
- } else {
36
- const list = res.res.map((item: any) => {
37
- return { ...item, label: item.name, value: item.value }
38
- })
39
- setBill(list);
40
- }
41
- })()
42
- }, []);
43
- useEffect(() => {
44
- let data = {};
45
- for (let i = 0; i < billEnum.length; i++) {
46
- data[billEnum[i]['value']] = billEnum[i]['label'];
47
- }
48
- setConfig(data);
49
- }, [billEnum]);
50
- const onBillView = useCallback((id) => {
51
- history.push({ pathname: `/rule`, search: `?id=${id}&type=record` })
52
- }, []);
53
- const onPageChange = useCallback((pageNum, pageSize) => {
54
- // setpageParams({ pageNum, pageSize });
55
- controller.pipeline(async s => {
56
- s.params = { ...s.params, pageNum, pageSize };
57
- })()
58
- }, []);
59
- const columns = useMemo(() => [
60
- {
61
- title: '配置名称',
62
- dataIndex: 'configName',
63
- },
64
- {
65
- title: '使用标识',
66
- dataIndex: 'effectStatus',
67
- render: (text: any) => {
68
- if (text === 0) {
69
- return <span>已失效</span>
70
- }
71
- if (text === 1) {
72
- return <span style={{ color: '#0074ff' }}>使用中</span>
73
- }
74
- }
75
- },
76
- {
77
- title: '单据类型',
78
- dataIndex: 'type',
79
- render: (text: any) => {
80
- return bill[text];
81
- }
82
- },
83
- {
84
- title: '单据子类',
85
- dataIndex: 'profile',
86
- render: (text: string, record: any) => {
87
- if (text) {
88
- const category: any = billEnum.find((item: any) => item.value === record.type)
89
- const target = category && category.profileList && category.profileList.find((element: any) => element.value === text);
90
- return <span>{target && target.name}</span>
91
- }
92
- }
93
- },
94
- {
95
- title: '我的收发角色',
96
- dataIndex: 'attribution',
97
- render: (text: any) => attributionEnum[text]
98
- },
99
- {
100
- title: '我司对应DID',
101
- dataIndex: 'senderParticipantId',
102
- render: (text: any, record: any) => {
103
- if (record.senderParticipantNote) {
104
- return <div><div>{record.senderParticipantNote}</div>{text}</div>
105
- } else {
106
- return <span>{text}</span>
107
- }
108
-
109
- }
110
- },
111
- {
112
- title: '接受对象',
113
- dataIndex: 'receiverParticipantId',
114
-
115
- },
116
- {
117
- title: '接受对象所属公司',
118
- dataIndex: 'receiverCompany',
119
- },
120
- {
121
- title: '发布时间',
122
- dataIndex: 'createAt',
123
- render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
124
- },
125
- // {
126
- // title: '详细内容',
127
- // dataIndex: 'neirong',
128
- // },
129
- // {
130
- // title: '最近更新时间',
131
- // dataIndex: 'updateAt',
132
- // render: (text: any) => moment(text).format('YYYY-MM-DD hh:mm')
133
- // },
134
- {
135
- title: '操作',
136
- dataIndex: 'console',
137
- render: (text: any, record: any) => (
138
- <span>
139
- <a className="tabel-action" onClick={() => { onBillView(record.id) }}>查看</a>
140
- </span>
141
- )
142
- },
143
- ], [bill]);
144
- return (
145
- <>
146
- <PageHeader />
147
- <AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
148
- <Table columns={columns} rowKey="id" dataSource={list} pagination={false} />
149
- </AutoTableContainer>
150
- {pageMeta && <Pagination onChange={onPageChange} style={{ padding: '16px 0', flex: 'none', background: 'white', textAlign: 'center' }} total={pageMeta.total} pageSize={pageMeta.pageSize} current={pageMeta.pageNum} showSizeChanger={true} />}
151
- </>);
1
+ import React, { useCallback, useState, useEffect, useMemo } from 'react';
2
+ import { Table, AutoTableContainer, Pagination } from 'kts-xui';
3
+ import PageHeader from '../PageHeader'
4
+ import Main from '../../';
5
+ import { attributionEnum } from '../../util/ConfigEnum';
6
+ import moment from 'moment';
7
+ import { useHistory } from 'react-router-dom';
8
+ import { DocumentsService } from "../../../";
9
+ export default function validaterule(props: any) {
10
+ const controller = Main.useController();
11
+ const history = useHistory();
12
+ const params = controller.useMemo(s => s.params, [])
13
+ const [billEnum, setBill] = useState([]);
14
+ const [pageMeta, setpageMeta] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, total: 0, });
15
+ // const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, });
16
+ const [list, setList] = useState([]);
17
+ const [bill, setConfig] = useState<{ [key: string]: string }>({});
18
+ useEffect(() => {
19
+ (async () => {
20
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/querySendRecordPage', data: params , type: 'post' }) as any;
21
+ if (res.err) {
22
+ return false;
23
+ }
24
+ if (res.res) {
25
+ setList(res.res.items)
26
+ setpageMeta(res.res.pageMeta);
27
+ }
28
+ })()
29
+ }, [params]);
30
+ useEffect(() => {
31
+ (async () => {
32
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getDefaultTypeList', data: {}, type: 'get' }) as any;
33
+ if (res.err) {
34
+ return false;
35
+ } else {
36
+ const list = res.res.map((item: any) => {
37
+ return { ...item, label: item.name, value: item.value }
38
+ })
39
+ setBill(list);
40
+ }
41
+ })()
42
+ }, []);
43
+ useEffect(() => {
44
+ let data = {};
45
+ for (let i = 0; i < billEnum.length; i++) {
46
+ data[billEnum[i]['value']] = billEnum[i]['label'];
47
+ }
48
+ setConfig(data);
49
+ }, [billEnum]);
50
+ const onBillView = useCallback((id) => {
51
+ history.push({ pathname: `/rule`, search: `?id=${id}&type=record` })
52
+ }, []);
53
+ const onPageChange = useCallback((pageNum, pageSize) => {
54
+ // setpageParams({ pageNum, pageSize });
55
+ controller.pipeline(async s => {
56
+ s.params = { ...s.params, pageNum, pageSize };
57
+ })()
58
+ }, []);
59
+ const columns = useMemo(() => [
60
+ {
61
+ title: '配置名称',
62
+ dataIndex: 'configName',
63
+ },
64
+ {
65
+ title: '使用标识',
66
+ dataIndex: 'effectStatus',
67
+ render: (text: any) => {
68
+ if (text === 0) {
69
+ return <span>已失效</span>
70
+ }
71
+ if (text === 1) {
72
+ return <span style={{ color: '#0074ff' }}>使用中</span>
73
+ }
74
+ }
75
+ },
76
+ {
77
+ title: '单据类型',
78
+ dataIndex: 'type',
79
+ render: (text: any) => {
80
+ return bill[text];
81
+ }
82
+ },
83
+ {
84
+ title: '单据子类',
85
+ dataIndex: 'profile',
86
+ render: (text: string, record: any) => {
87
+ if (text) {
88
+ const category: any = billEnum.find((item: any) => item.value === record.type)
89
+ const target = category && category.profileList && category.profileList.find((element: any) => element.value === text);
90
+ return <span>{target && target.name}</span>
91
+ }
92
+ }
93
+ },
94
+ {
95
+ title: '我的收发角色',
96
+ dataIndex: 'attribution',
97
+ render: (text: any) => attributionEnum[text]
98
+ },
99
+ {
100
+ title: '我司对应DID',
101
+ dataIndex: 'senderParticipantId',
102
+ render: (text: any, record: any) => {
103
+ if (record.senderParticipantNote) {
104
+ return <div><div>{record.senderParticipantNote}</div>{text}</div>
105
+ } else {
106
+ return <span>{text}</span>
107
+ }
108
+
109
+ }
110
+ },
111
+ {
112
+ title: '接受对象',
113
+ dataIndex: 'receiverParticipantId',
114
+
115
+ },
116
+ {
117
+ title: '接受对象所属公司',
118
+ dataIndex: 'receiverCompany',
119
+ },
120
+ {
121
+ title: '发布时间',
122
+ dataIndex: 'createAt',
123
+ render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
124
+ },
125
+ // {
126
+ // title: '详细内容',
127
+ // dataIndex: 'neirong',
128
+ // },
129
+ // {
130
+ // title: '最近更新时间',
131
+ // dataIndex: 'updateAt',
132
+ // render: (text: any) => moment(text).format('YYYY-MM-DD hh:mm')
133
+ // },
134
+ {
135
+ title: '操作',
136
+ dataIndex: 'console',
137
+ render: (text: any, record: any) => (
138
+ <span>
139
+ <a className="tabel-action" onClick={() => { onBillView(record.id) }}>查看</a>
140
+ </span>
141
+ )
142
+ },
143
+ ], [bill]);
144
+ return (
145
+ <>
146
+ <PageHeader />
147
+ <AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
148
+ <Table columns={columns} rowKey="id" dataSource={list} pagination={false} />
149
+ </AutoTableContainer>
150
+ {pageMeta && <Pagination onChange={onPageChange} style={{ padding: '16px 0', flex: 'none', background: 'white', textAlign: 'center' }} total={pageMeta.total} pageSize={pageMeta.pageSize} current={pageMeta.pageNum} showSizeChanger={true} />}
151
+ </>);
152
152
  }
@@ -1,12 +1,12 @@
1
- const attributionEnum:{[key:string]:string} = {
2
- '1': '发送方',
3
- '2': '接收方',
4
- '3':'接收方,发送方'
5
- }
6
-
7
- // new Map([
8
- // ['1','发送方'],
9
- // ['2','接收方'],
10
- // ['3','发送方'],
11
- // ])
1
+ const attributionEnum:{[key:string]:string} = {
2
+ '1': '发送方',
3
+ '2': '接收方',
4
+ '3':'接收方,发送方'
5
+ }
6
+
7
+ // new Map([
8
+ // ['1','发送方'],
9
+ // ['2','接收方'],
10
+ // ['3','发送方'],
11
+ // ])
12
12
  export { attributionEnum }
@@ -1,14 +1,14 @@
1
- import ControllerState from '../../state';
2
- import { DocumentsService } from "../../../..";
3
- import { message } from 'kts-components-antd-x4';
4
-
5
- export default async (s: ControllerState, params?: any) => {
6
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/batchSend', data: params, type: 'post' }) as any;
7
- if (res.err) {
8
- return false;
9
- }
10
- if (res.res) {
11
- // message.success('操作成功');
12
- return res;
13
- }
1
+ import ControllerState from '../../state';
2
+ import { DocumentsService } from "../../../..";
3
+ import { message } from 'kts-components-antd-x4';
4
+
5
+ export default async (s: ControllerState, params?: any) => {
6
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/batchSend', data: params, type: 'post' }) as any;
7
+ if (res.err) {
8
+ return false;
9
+ }
10
+ if (res.res) {
11
+ // message.success('操作成功');
12
+ return res;
13
+ }
14
14
  }
@@ -1,15 +1,15 @@
1
- import ControllerState from '../../state';
2
- import { DocumentsService } from "../../../..";
3
- import { IFilter } from '../../../interface'
4
- import { message } from 'kts-components-antd-x4';
5
-
6
- export default async (s: ControllerState, params?: any) => {
7
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/save', data: params, type: 'post' }) as any;
8
- if (res.err) {
9
- return false;
10
- }
11
- if (res.res) {
12
- // message.success('操作成功');
13
- return res;
14
- }
1
+ import ControllerState from '../../state';
2
+ import { DocumentsService } from "../../../..";
3
+ import { IFilter } from '../../../interface'
4
+ import { message } from 'kts-components-antd-x4';
5
+
6
+ export default async (s: ControllerState, params?: any) => {
7
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/save', data: params, type: 'post' }) as any;
8
+ if (res.err) {
9
+ return false;
10
+ }
11
+ if (res.res) {
12
+ // message.success('操作成功');
13
+ return res;
14
+ }
15
15
  }
@@ -1,14 +1,14 @@
1
- import ControllerState from '../../state';
2
- import { DocumentsService } from "../../../..";
3
- import { message } from 'kts-components-antd-x4';
4
-
5
- export default async (s: ControllerState, params?: any) => {
6
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/update', data: params, type: 'post' }) as any;
7
- if (res.err) {
8
- return false;
9
- }
10
- if (res.res) {
11
- // message.success('操作成功');
12
- return res;
13
- }
1
+ import ControllerState from '../../state';
2
+ import { DocumentsService } from "../../../..";
3
+ import { message } from 'kts-components-antd-x4';
4
+
5
+ export default async (s: ControllerState, params?: any) => {
6
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/update', data: params, type: 'post' }) as any;
7
+ if (res.err) {
8
+ return false;
9
+ }
10
+ if (res.res) {
11
+ // message.success('操作成功');
12
+ return res;
13
+ }
14
14
  }
@@ -1,15 +1,15 @@
1
- import ControllerState from '../../state';
2
- import { DocumentsService } from "../../../..";
3
- import { IFilter } from '../../../interface'
4
- import { message } from 'kts-components-antd-x4';
5
-
6
- export default async (s: ControllerState, params?: any) => {
7
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getConfigOneById', data: params, type: 'get' }) as any;
8
- if (res.err) {
9
- return false;
10
- }
11
- if (res.res) {
12
- // message.success('操作成功');
13
- return res;
14
- }
1
+ import ControllerState from '../../state';
2
+ import { DocumentsService } from "../../../..";
3
+ import { IFilter } from '../../../interface'
4
+ import { message } from 'kts-components-antd-x4';
5
+
6
+ export default async (s: ControllerState, params?: any) => {
7
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getConfigOneById', data: params, type: 'get' }) as any;
8
+ if (res.err) {
9
+ return false;
10
+ }
11
+ if (res.res) {
12
+ // message.success('操作成功');
13
+ return res;
14
+ }
15
15
  }
@@ -1,15 +1,15 @@
1
- import ControllerState from '../../state';
2
- import { DocumentsService } from "../../../..";
3
- import { IFilter } from '../../../interface'
4
- import { message } from 'kts-components-antd-x4';
5
-
6
- export default async (s: ControllerState, params?: any) => {
7
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getRecordOneById', data: params, type: 'get' }) as any;
8
- if (res.err) {
9
- return false;
10
- }
11
- if (res.res) {
12
- // message.success('操作成功');
13
- return res;
14
- }
1
+ import ControllerState from '../../state';
2
+ import { DocumentsService } from "../../../..";
3
+ import { IFilter } from '../../../interface'
4
+ import { message } from 'kts-components-antd-x4';
5
+
6
+ export default async (s: ControllerState, params?: any) => {
7
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getRecordOneById', data: params, type: 'get' }) as any;
8
+ if (res.err) {
9
+ return false;
10
+ }
11
+ if (res.res) {
12
+ // message.success('操作成功');
13
+ return res;
14
+ }
15
15
  }
@@ -1,16 +1,16 @@
1
- import ControllerState from '../../state';
2
- import { DocumentsService } from "../../../..";
3
- import { message } from 'kts-components-antd-x4';
4
- export interface IFilter {
5
- type:string;
6
- }
7
- export default async (s: ControllerState, params?: any) => {
8
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getDefaultTypeTemplate', data: params, type: 'get' }) as any;
9
- if (res.err) {
10
- return false;
11
- }
12
- if (res.res) {
13
- // message.success('操作成功');
14
- return res;
15
- }
1
+ import ControllerState from '../../state';
2
+ import { DocumentsService } from "../../../..";
3
+ import { message } from 'kts-components-antd-x4';
4
+ export interface IFilter {
5
+ type:string;
6
+ }
7
+ export default async (s: ControllerState, params?: any) => {
8
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getDefaultTypeTemplate', data: params, type: 'get' }) as any;
9
+ if (res.err) {
10
+ return false;
11
+ }
12
+ if (res.res) {
13
+ // message.success('操作成功');
14
+ return res;
15
+ }
16
16
  }
@@ -1,14 +1,14 @@
1
- import ControllerState from '../../state';
2
- import { DocumentsService } from "../../../..";
3
- import { message } from 'kts-components-antd-x4';
4
-
5
- export default async (s: ControllerState, params?: any) => {
6
- const res = await DocumentsService.instance.service?.call({ url: '/participant/listBySubjectId', data: params, type: 'get' }) as any;
7
- if (res.err) {
8
- return false;
9
- }
10
- if (res.res) {
11
- // message.success('操作成功');
12
- return res;
13
- }
1
+ import ControllerState from '../../state';
2
+ import { DocumentsService } from "../../../..";
3
+ import { message } from 'kts-components-antd-x4';
4
+
5
+ export default async (s: ControllerState, params?: any) => {
6
+ const res = await DocumentsService.instance.service?.call({ url: '/participant/listBySubjectId', data: params, type: 'get' }) as any;
7
+ if (res.err) {
8
+ return false;
9
+ }
10
+ if (res.res) {
11
+ // message.success('操作成功');
12
+ return res;
13
+ }
14
14
  }
@@ -1,14 +1,14 @@
1
- import ControllerState from '../../state';
2
- import { DocumentsService } from "../../../..";
3
- import { IFilter } from '../../../interface'
4
- import { message } from 'kts-components-antd-x4';
5
-
6
- export default async (s: ControllerState, params?: any) => {
7
- const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getDefaultTypeList', data: params, type: 'get' }) as any;
8
- if (res.err) {
9
- return false;
10
- }
11
- if (res.res) {
12
- return res;
13
- }
1
+ import ControllerState from '../../state';
2
+ import { DocumentsService } from "../../../..";
3
+ import { IFilter } from '../../../interface'
4
+ import { message } from 'kts-components-antd-x4';
5
+
6
+ export default async (s: ControllerState, params?: any) => {
7
+ const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getDefaultTypeList', data: params, type: 'get' }) as any;
8
+ if (res.err) {
9
+ return false;
10
+ }
11
+ if (res.res) {
12
+ return res;
13
+ }
14
14
  }
@@ -1,30 +1,30 @@
1
-
2
- import GreyReactBox from 'grey-react-box';
3
- import ControllerState from './state';
4
- import batchsend from './actions/batchsend';
5
- import configsave from './actions/configsave';
6
- import configupdate from './actions/configupdate'
7
- import getconfigbyid from './actions/getconfigbyid'
8
- import getrecordbyid from './actions/getrecordbyid';
9
- import gettemplate from './actions/gettemplate';
10
- import listbysubjectid from './actions/listbysubjectid'
11
- import typelist from './actions/typelist'
12
- export default class Controller extends GreyReactBox<ControllerState> {
13
- constructor(state = new ControllerState()) {
14
- super(state);
15
- }
16
-
17
- /** 例子-看了可以删掉 */
18
- /** 获取列表 */
19
- batchsend = this.pipeline(batchsend);
20
- configsave = this.pipeline(configsave);
21
- /** 新增 */
22
- configupdate = this.pipeline(configupdate);
23
- getconfigbyid = this.pipeline(getconfigbyid);
24
- getrecordbyid = this.pipeline(getrecordbyid);
25
- listbysubjectid = this.pipeline(listbysubjectid);
26
- typelist = this.pipeline(typelist);
27
- gettemplate = this.pipeline(gettemplate);
28
- }
29
-
30
-
1
+
2
+ import GreyReactBox from 'grey-react-box';
3
+ import ControllerState from './state';
4
+ import batchsend from './actions/batchsend';
5
+ import configsave from './actions/configsave';
6
+ import configupdate from './actions/configupdate'
7
+ import getconfigbyid from './actions/getconfigbyid'
8
+ import getrecordbyid from './actions/getrecordbyid';
9
+ import gettemplate from './actions/gettemplate';
10
+ import listbysubjectid from './actions/listbysubjectid'
11
+ import typelist from './actions/typelist'
12
+ export default class Controller extends GreyReactBox<ControllerState> {
13
+ constructor(state = new ControllerState()) {
14
+ super(state);
15
+ }
16
+
17
+ /** 例子-看了可以删掉 */
18
+ /** 获取列表 */
19
+ batchsend = this.pipeline(batchsend);
20
+ configsave = this.pipeline(configsave);
21
+ /** 新增 */
22
+ configupdate = this.pipeline(configupdate);
23
+ getconfigbyid = this.pipeline(getconfigbyid);
24
+ getrecordbyid = this.pipeline(getrecordbyid);
25
+ listbysubjectid = this.pipeline(listbysubjectid);
26
+ typelist = this.pipeline(typelist);
27
+ gettemplate = this.pipeline(gettemplate);
28
+ }
29
+
30
+