kts-components-document-access-point 1.4.4 → 1.4.5

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 (123) 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 +6 -2
  8. package/dist/index.js +6 -2
  9. package/docs/index.md +3 -3
  10. package/index.html +12 -12
  11. package/package.json +56 -56
  12. package/src/DocumentWhiteList/___demo___/base/index.tsx +7 -7
  13. package/src/DocumentWhiteList/___demo___/setService/index.tsx +23 -23
  14. package/src/DocumentWhiteList/control/actions/addblack/index.ts +14 -14
  15. package/src/DocumentWhiteList/control/actions/addwhite/index.ts +14 -14
  16. package/src/DocumentWhiteList/control/actions/blacklist/index.ts +22 -22
  17. package/src/DocumentWhiteList/control/actions/checkclient/index.ts +14 -14
  18. package/src/DocumentWhiteList/control/actions/demo/index.ts +4 -4
  19. package/src/DocumentWhiteList/control/actions/didilist/index.ts +18 -18
  20. package/src/DocumentWhiteList/control/actions/enableblacklist/index.ts +17 -17
  21. package/src/DocumentWhiteList/control/actions/enablelist/index.ts +18 -18
  22. package/src/DocumentWhiteList/control/actions/enablewhitelist/index.ts +17 -17
  23. package/src/DocumentWhiteList/control/actions/getmode/index.ts +14 -14
  24. package/src/DocumentWhiteList/control/actions/setmode/index.ts +14 -14
  25. package/src/DocumentWhiteList/control/actions/synclist/index.ts +19 -19
  26. package/src/DocumentWhiteList/control/actions/whitelist/index.ts +22 -22
  27. package/src/DocumentWhiteList/control/index.tsx +42 -42
  28. package/src/DocumentWhiteList/control/state/index.ts +47 -47
  29. package/src/DocumentWhiteList/index.md +5 -5
  30. package/src/DocumentWhiteList/index.tsx +40 -40
  31. package/src/DocumentWhiteList/interface/index.ts +30 -30
  32. package/src/DocumentWhiteList/ui/clientmodal/index.tsx +190 -190
  33. package/src/DocumentWhiteList/ui/main/black.tsx +132 -132
  34. package/src/DocumentWhiteList/ui/main/index.tsx +49 -49
  35. package/src/DocumentWhiteList/ui/main/switchmode.tsx +52 -52
  36. package/src/DocumentWhiteList/ui/main/white.tsx +120 -120
  37. package/src/DocumentWhiteList/ui/pageheader/BlackHeader.tsx +143 -143
  38. package/src/DocumentWhiteList/ui/pageheader/WhiteHeader.tsx +152 -152
  39. package/src/DocumentWhiteList/ui/pageui/index.tsx +64 -64
  40. package/src/DocumentWhiteList/ui/whitemodal/index.tsx +146 -146
  41. package/src/DocumentWhiteList/util/ConfigEnum.ts +8 -8
  42. package/src/DocumentsCont/___demo___/base/index.tsx +7 -7
  43. package/src/DocumentsCont/___demo___/setService/index.tsx +25 -25
  44. package/src/DocumentsCont/index.md +9 -9
  45. package/src/DocumentsCont/index.tsx +54 -51
  46. package/src/DocumentsDemo/Controller/index.tsx +14 -14
  47. package/src/DocumentsDemo/Controller/whitelist.ts +22 -22
  48. package/src/DocumentsDemo/Text.tsx +22 -22
  49. package/src/DocumentsDemo/___demo___/base/index.tsx +7 -7
  50. package/src/DocumentsDemo/index.md +6 -6
  51. package/src/DocumentsDemo/index.tsx +38 -38
  52. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/IProperties/index.ts +69 -69
  53. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/IRules/index.ts +18 -18
  54. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/ISchema/index.ts +14 -14
  55. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/PropertyTableState/index.ts +12 -12
  56. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/RuleState/index.ts +336 -336
  57. package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/index.ts +51 -51
  58. package/src/DocumentsEdit/DocumentsEditController/actions/addProperties/index.ts +37 -37
  59. package/src/DocumentsEdit/DocumentsEditController/actions/delProperties/index.ts +48 -48
  60. package/src/DocumentsEdit/DocumentsEditController/actions/editProperties/index.ts +93 -93
  61. package/src/DocumentsEdit/DocumentsEditController/index.tsx +21 -21
  62. package/src/DocumentsEdit/___demo___/conventional/index.tsx +10 -10
  63. package/src/DocumentsEdit/___demo___/monitor/index.tsx +1421 -1421
  64. package/src/DocumentsEdit/___demo___/readOnly/index.tsx +16 -16
  65. package/src/DocumentsEdit/constant/propertyColumns/index.tsx +65 -65
  66. package/src/DocumentsEdit/index.less +45 -45
  67. package/src/DocumentsEdit/index.md +10 -10
  68. package/src/DocumentsEdit/index.tsx +117 -117
  69. package/src/DocumentsEdit/tools/index.ts +88 -88
  70. package/src/DocumentsEdit/ui/AddPropertyButton/index.tsx +238 -238
  71. package/src/DocumentsEdit/ui/Breadcrumb/index.tsx +51 -51
  72. package/src/DocumentsEdit/ui/EditProperty/index.tsx +290 -290
  73. package/src/DocumentsEdit/ui/EditRule/index.tsx +156 -156
  74. package/src/DocumentsEdit/ui/EditRule/ui/AddRuleButton/index.tsx +49 -49
  75. package/src/DocumentsEdit/ui/EditRule/ui/DelRuleButton/index.tsx +31 -31
  76. package/src/DocumentsEdit/ui/EditRule/ui/RuleForm/fn/algorithmFormComponent/index.tsx +142 -142
  77. package/src/DocumentsEdit/ui/EditRule/ui/RuleForm/index.tsx +154 -154
  78. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/index.less +4 -4
  79. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/index.tsx +70 -70
  80. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddChildPropertyButton/index.tsx +34 -34
  81. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/AddRuleButton/index.tsx +64 -64
  82. package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/ui/EditPropertyButton/index.tsx +31 -31
  83. package/src/DocumentsEdit/ui/PropertyTable/index.less +19 -19
  84. package/src/DocumentsEdit/ui/PropertyTable/index.tsx +18 -18
  85. package/src/DocumentsEdit/ui/RefPropertyButton/index.tsx +121 -121
  86. package/src/DocumentsList/DocumentsListController/DocumentsListControllerState/index.ts +55 -55
  87. package/src/DocumentsList/DocumentsListController/actions/demo/index.ts +4 -4
  88. package/src/DocumentsList/DocumentsListController/actions/typelist/index.ts +15 -15
  89. package/src/DocumentsList/DocumentsListController/index.tsx +16 -16
  90. package/src/DocumentsList/___demo___/list/index.tsx +4 -4
  91. package/src/DocumentsList/index.less +22 -22
  92. package/src/DocumentsList/index.md +3 -3
  93. package/src/DocumentsList/index.tsx +46 -46
  94. package/src/DocumentsList/ui/ModalComfirm/index.tsx +94 -92
  95. package/src/DocumentsList/ui/PageHeader/SendHeader.tsx +230 -230
  96. package/src/DocumentsList/ui/PageHeader/index.tsx +325 -325
  97. package/src/DocumentsList/ui/PageUI/index.tsx +65 -65
  98. package/src/DocumentsList/ui/RuleTable/index.tsx +163 -163
  99. package/src/DocumentsList/ui/sendlist/index.tsx +151 -151
  100. package/src/DocumentsList/util/ConfigEnum.ts +11 -11
  101. package/src/DocumentsRule/control/actions/batchsend/index.ts +13 -13
  102. package/src/DocumentsRule/control/actions/configsave/index.ts +14 -14
  103. package/src/DocumentsRule/control/actions/configupdate/index.ts +13 -13
  104. package/src/DocumentsRule/control/actions/getconfigbyid/index.ts +14 -14
  105. package/src/DocumentsRule/control/actions/getrecordbyid/index.ts +14 -14
  106. package/src/DocumentsRule/control/actions/gettemplate/index.ts +15 -15
  107. package/src/DocumentsRule/control/actions/listbysubjectid/index.ts +13 -13
  108. package/src/DocumentsRule/control/actions/typelist/index.ts +13 -13
  109. package/src/DocumentsRule/control/index.tsx +30 -30
  110. package/src/DocumentsRule/control/state/index.ts +42 -42
  111. package/src/DocumentsRule/index.md +1 -1
  112. package/src/DocumentsRule/index.tsx +25 -25
  113. package/src/DocumentsRule/interface/index.ts +28 -28
  114. package/src/DocumentsRule/ui/main/index.tsx +362 -362
  115. package/src/DocumentsService/index.ts +18 -18
  116. package/src/index.ts +9 -9
  117. package/tsconfig.json +29 -29
  118. package/typings.d.ts +3 -3
  119. package/docs-dist/404.html +0 -38
  120. package/docs-dist/index.html +0 -38
  121. package/docs-dist/static/icon.050945f2.svg +0 -1
  122. package/docs-dist/umi.css +0 -11
  123. package/docs-dist/umi.js +0 -1
@@ -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
+