kts-components-document-access-point 1.1.22 → 1.1.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.
- package/dist/DocumentWhiteList/control/actions/setmode/index.d.ts +1 -2
- package/dist/DocumentWhiteList/control/index.d.ts +1 -1
- package/dist/DocumentWhiteList/interface/index.d.ts +1 -1
- package/dist/DocumentsList/ui/PageHeader/SendHeader.d.ts +2 -0
- package/dist/DocumentsList/ui/{PageUi → PageUI}/index.d.ts +0 -0
- package/dist/index.esm.js +279 -147
- package/dist/index.js +279 -147
- package/package.json +1 -1
- package/src/DocumentWhiteList/control/actions/addblack/index.ts +1 -1
- package/src/DocumentWhiteList/control/actions/addwhite/index.ts +1 -1
- package/src/DocumentWhiteList/control/actions/blacklist/index.ts +1 -1
- package/src/DocumentWhiteList/control/actions/checkclient/index.ts +1 -1
- package/src/DocumentWhiteList/control/actions/enableblacklist/index.ts +1 -1
- package/src/DocumentWhiteList/control/actions/enablelist/index.ts +1 -1
- package/src/DocumentWhiteList/control/actions/enablewhitelist/index.ts +1 -1
- package/src/DocumentWhiteList/control/actions/getmode/index.ts +1 -2
- package/src/DocumentWhiteList/control/actions/setmode/index.ts +2 -2
- package/src/DocumentWhiteList/control/actions/synclist/index.ts +1 -1
- package/src/DocumentWhiteList/control/actions/whitelist/index.ts +1 -1
- package/src/DocumentWhiteList/interface/index.ts +1 -1
- package/src/DocumentWhiteList/ui/main/black.tsx +4 -2
- package/src/DocumentWhiteList/ui/main/index.tsx +8 -9
- package/src/DocumentWhiteList/ui/main/switchmode.tsx +5 -5
- package/src/DocumentWhiteList/ui/main/white.tsx +4 -2
- package/src/DocumentsEdit/DocumentsEditController/DocumentsEditControllerState/index.ts +1 -1
- package/src/DocumentsEdit/DocumentsEditController/actions/editProperties/index.ts +9 -4
- package/src/DocumentsEdit/___demo___/monitor/index.tsx +1 -0
- package/src/DocumentsEdit/ui/PropertyTable/hooks/useTableProps/index.tsx +1 -0
- package/src/DocumentsList/DocumentsListController/actions/typelist/index.ts +1 -1
- package/src/DocumentsList/index.tsx +2 -2
- package/src/DocumentsList/ui/ModalComfirm/index.tsx +4 -4
- package/src/DocumentsList/ui/PageHeader/SendHeader.tsx +230 -0
- package/src/DocumentsList/ui/PageHeader/index.tsx +130 -62
- package/src/DocumentsList/ui/RuleTable/index.tsx +9 -8
- package/src/DocumentsList/ui/sendlist/index.tsx +53 -19
- package/src/DocumentsRule/ui/main/index.tsx +8 -8
|
@@ -22,7 +22,7 @@ export default () => {
|
|
|
22
22
|
const ktsRef = useRef(null);
|
|
23
23
|
useEffect(() => {
|
|
24
24
|
(async () => {
|
|
25
|
-
const res = await DocumentsService.instance.service?.call({ url: '/dap/schema/config/getDefaultTypeList', data: {}, type: 'get' }) as any;
|
|
25
|
+
const res = await DocumentsService.instance.service?.call({ url: '/dap/web/schema/config/getDefaultTypeList', data: {}, type: 'get' }) as any;
|
|
26
26
|
if (res.err) {
|
|
27
27
|
return false;
|
|
28
28
|
} else {
|
|
@@ -60,62 +60,130 @@ export default () => {
|
|
|
60
60
|
})()
|
|
61
61
|
}, [controller]);
|
|
62
62
|
useEffect(() => {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
63
|
+
if (type === 1) {
|
|
64
|
+
let obj: any = {
|
|
65
|
+
type: "object",
|
|
66
|
+
properties: {
|
|
67
|
+
configName: {
|
|
68
|
+
type: "string",
|
|
69
|
+
title: "配置名称",
|
|
70
|
+
},
|
|
71
|
+
attributionList: {
|
|
72
|
+
type: "string",
|
|
73
|
+
title: "发送对象",
|
|
74
|
+
visible: false
|
|
75
|
+
},
|
|
76
|
+
type: {
|
|
77
|
+
type: "string",
|
|
78
|
+
title: "单据大类",
|
|
79
|
+
enum: billEnum,
|
|
80
|
+
},
|
|
81
|
+
profile: {
|
|
82
|
+
type: "string",
|
|
83
|
+
title: "单据子类",
|
|
84
|
+
enum: profileEnum,
|
|
85
|
+
visible: false
|
|
86
|
+
},
|
|
87
|
+
attribution: {
|
|
88
|
+
type: "string",
|
|
89
|
+
title: "单据类型",
|
|
90
|
+
enum: [{
|
|
91
|
+
"label": "发送方",
|
|
92
|
+
"value": '1'
|
|
93
|
+
}, {
|
|
94
|
+
"label": "接收方",
|
|
95
|
+
"value": '0'
|
|
96
|
+
}],
|
|
97
|
+
'x-props': {
|
|
98
|
+
mode: "multiple"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
'[beginCreateTime,endCreateTime]': {
|
|
102
|
+
key: "[beginCreateTime,endCreateTime",
|
|
103
|
+
name: "[beginCreateTime,endCreateTime",
|
|
104
|
+
type: "daterange",
|
|
105
|
+
title: "创建时间",
|
|
106
|
+
},
|
|
107
|
+
'[beginSendTime,endSendTime]': {
|
|
108
|
+
key: "[beginSendTime,endSendTime",
|
|
109
|
+
name: "[beginSendTime,endSendTime",
|
|
110
|
+
type: "daterange",
|
|
111
|
+
title: "更新时间",
|
|
112
|
+
},
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
setSchema(obj);
|
|
116
|
+
}else if(type===2){
|
|
117
|
+
let obj: any = {
|
|
118
|
+
type: "object",
|
|
119
|
+
properties: {
|
|
120
|
+
configName: {
|
|
121
|
+
type: "string",
|
|
122
|
+
title: "配置名称",
|
|
123
|
+
},
|
|
124
|
+
biaoshi: {
|
|
125
|
+
type: "string",
|
|
126
|
+
title: "标识",
|
|
127
|
+
},
|
|
128
|
+
attributionList: {
|
|
129
|
+
type: "string",
|
|
130
|
+
title: "发送对象",
|
|
131
|
+
visible: true
|
|
132
|
+
},
|
|
133
|
+
did: {
|
|
134
|
+
type: "string",
|
|
135
|
+
title: "我司对应DID",
|
|
136
|
+
},
|
|
137
|
+
duixiang: {
|
|
138
|
+
type: "string",
|
|
139
|
+
title: "接受对象",
|
|
140
|
+
},
|
|
141
|
+
duixianggongsi: {
|
|
142
|
+
type: "string",
|
|
143
|
+
title: "接受对象所属公司",
|
|
144
|
+
},
|
|
145
|
+
type: {
|
|
146
|
+
type: "string",
|
|
147
|
+
title: "单据大类",
|
|
148
|
+
enum: billEnum,
|
|
149
|
+
},
|
|
150
|
+
profile: {
|
|
151
|
+
type: "string",
|
|
152
|
+
title: "单据子类",
|
|
153
|
+
enum: profileEnum,
|
|
154
|
+
visible: false
|
|
155
|
+
},
|
|
156
|
+
attribution: {
|
|
157
|
+
type: "string",
|
|
158
|
+
title: "单据类型",
|
|
159
|
+
enum: [{
|
|
160
|
+
"label": "发送方",
|
|
161
|
+
"value": '1'
|
|
162
|
+
}, {
|
|
163
|
+
"label": "接收方",
|
|
164
|
+
"value": '0'
|
|
165
|
+
}],
|
|
166
|
+
'x-props': {
|
|
167
|
+
mode: "multiple"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
'[beginCreateTime,endCreateTime]': {
|
|
171
|
+
key: "[beginCreateTime,endCreateTime",
|
|
172
|
+
name: "[beginCreateTime,endCreateTime",
|
|
173
|
+
type: "daterange",
|
|
174
|
+
title: "创建时间",
|
|
175
|
+
},
|
|
176
|
+
'[beginSendTime,endSendTime]': {
|
|
177
|
+
key: "[beginSendTime,endSendTime",
|
|
178
|
+
name: "[beginSendTime,endSendTime",
|
|
179
|
+
type: "daterange",
|
|
180
|
+
title: "更新时间",
|
|
181
|
+
},
|
|
182
|
+
}
|
|
116
183
|
}
|
|
184
|
+
setSchema(obj);
|
|
117
185
|
}
|
|
118
|
-
|
|
186
|
+
|
|
119
187
|
}, [billEnum, type, profileEnum])
|
|
120
188
|
const onCreateType = useCallback((category, record?) => {
|
|
121
189
|
history.push({ pathname: `/rule`, search: `?type=config&profile=${record && record.value || ''}&billtype=${category}` })
|
|
@@ -126,7 +194,7 @@ export default () => {
|
|
|
126
194
|
<div style={{ marginRight: 10 }}>
|
|
127
195
|
<Radio.Group value={type} onChange={switchType}>
|
|
128
196
|
<Radio.Button value={1}>单据校验规则配置</Radio.Button>
|
|
129
|
-
<Radio.Button value={2}
|
|
197
|
+
<Radio.Button value={2}>发布记录</Radio.Button>
|
|
130
198
|
</Radio.Group>
|
|
131
199
|
</div>
|
|
132
200
|
<AdvancedSearch
|
|
@@ -144,13 +212,12 @@ export default () => {
|
|
|
144
212
|
labelAlign='left'
|
|
145
213
|
compact={true}
|
|
146
214
|
schema={schema}
|
|
147
|
-
defaultValue={_.pick(params, ['
|
|
215
|
+
defaultValue={_.pick(params, ['configName', 'type', 'profile', 'attributionList', 'attribution', '[beginCreateTime,endCreateTime]', '[beginSendTime,endSendTime]'])}
|
|
148
216
|
effects={($: any, actions: any) => {
|
|
149
217
|
$(LifeCycleTypes.ON_FIELD_VALUE_CHANGE, 'type',).subscribe((fieldState: any) => {
|
|
150
218
|
if (fieldState.value) {
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
if (target.profileList) {
|
|
219
|
+
const target: any = billEnum.find((item: any) => item.value === fieldState.value);
|
|
220
|
+
if (target && target.profileList) {
|
|
154
221
|
actions.setFieldState('profile', (state: any) => {
|
|
155
222
|
state.visible = true;
|
|
156
223
|
});
|
|
@@ -178,9 +245,10 @@ export default () => {
|
|
|
178
245
|
>
|
|
179
246
|
</KtsForm>
|
|
180
247
|
</AdvancedSearch>
|
|
248
|
+
|
|
181
249
|
</div>
|
|
182
250
|
);
|
|
183
|
-
}, [type]);
|
|
251
|
+
}, [type, schema]);
|
|
184
252
|
const menu = useMemo(() => {
|
|
185
253
|
return (
|
|
186
254
|
<Menu>
|
|
@@ -219,7 +287,7 @@ export default () => {
|
|
|
219
287
|
<PageHeaderFoot
|
|
220
288
|
expandLeft={topExpand()}
|
|
221
289
|
expandRight={[
|
|
222
|
-
type === 1 && <Button key="1" onClick={batchSend} style={{ marginRight: 10 }}
|
|
290
|
+
type === 1 && <Button key="1" onClick={batchSend} style={{ marginRight: 10 }}>批量发布</Button>,
|
|
223
291
|
<Dropdown key="2" overlay={menu}>
|
|
224
292
|
<Button type="primary" >创建配置</Button>
|
|
225
293
|
</Dropdown>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useState, useEffect, useMemo } from 'react';
|
|
2
2
|
import { Table, AutoTableContainer, Pagination } from 'kts-xui';
|
|
3
|
-
import
|
|
3
|
+
import PageHeader from '../PageHeader'
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import Main from '../../';
|
|
6
6
|
import '../../index.less';
|
|
@@ -13,14 +13,14 @@ export default function validaterule(props: any) {
|
|
|
13
13
|
const history = useHistory();
|
|
14
14
|
const params = controller.useMemo(s => s.params, [])
|
|
15
15
|
const [pageMeta, setpageMeta] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, total: 0, });
|
|
16
|
-
const [pageParams,setpageParams]=useState<{ pageSize: number, pageNum: number, total?: number }>();
|
|
16
|
+
const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1 });
|
|
17
17
|
const [list, setList] = useState([]);
|
|
18
18
|
const [bill, setConfig] = useState<{ [key: string]: string }>({});
|
|
19
19
|
const [billEnum, setBill] = useState<any[]>([]);
|
|
20
20
|
useEffect(() => {
|
|
21
21
|
(async () => {
|
|
22
22
|
const res = await DocumentsService.instance.service?.call({
|
|
23
|
-
url: '/dap/schema/config/queryConfigSchemaPage', data: { ...params, ...pageParams }, type: 'post'
|
|
23
|
+
url: '/dap/web/schema/config/queryConfigSchemaPage', data: { ...params, ...pageParams }, type: 'post'
|
|
24
24
|
}) as any;
|
|
25
25
|
|
|
26
26
|
if (res.err) {
|
|
@@ -31,11 +31,11 @@ export default function validaterule(props: any) {
|
|
|
31
31
|
setpageMeta(res.res.pageMeta);
|
|
32
32
|
}
|
|
33
33
|
})()
|
|
34
|
-
}, [params,pageParams]);
|
|
34
|
+
}, [params, pageParams]);
|
|
35
35
|
useEffect(() => {
|
|
36
36
|
(async () => {
|
|
37
37
|
|
|
38
|
-
const res = await DocumentsService.instance.service?.call({ url: '/dap/schema/config/getDefaultTypeList', data: {}, type: 'get' }) as any;
|
|
38
|
+
const res = await DocumentsService.instance.service?.call({ url: '/dap/web/schema/config/getDefaultTypeList', data: {}, type: 'get' }) as any;
|
|
39
39
|
if (res.err) {
|
|
40
40
|
return false;
|
|
41
41
|
} else {
|
|
@@ -109,8 +109,8 @@ export default function validaterule(props: any) {
|
|
|
109
109
|
render: (text: any, record: any) => (
|
|
110
110
|
<span>
|
|
111
111
|
<a className="tabel-action" onClick={() => { onBillView(record) }}>查看</a>
|
|
112
|
-
<a className="tabel-action" onClick={() => { onSendCheck(record) }}
|
|
113
|
-
<a className="tabel-action" onClick={() => { onBillSendList(record) }}
|
|
112
|
+
<a className="tabel-action" onClick={() => { onSendCheck(record) }}>发布</a>
|
|
113
|
+
{record.publishStatus === 1 && <a className="tabel-action" onClick={() => { onBillSendList(record) }}>发布记录</a>}
|
|
114
114
|
</span>
|
|
115
115
|
)
|
|
116
116
|
},
|
|
@@ -142,7 +142,7 @@ export default function validaterule(props: any) {
|
|
|
142
142
|
controller.pipeline(async s => {
|
|
143
143
|
s.selectedRowKey = data;
|
|
144
144
|
})()
|
|
145
|
-
const res = await DocumentsService.instance.service?.call({ url: '/dap/participant/listBySubjectId', data: {}, type: 'get' }) as any;
|
|
145
|
+
const res = await DocumentsService.instance.service?.call({ url: '/dap/web/participant/listBySubjectId', data: {}, type: 'get' }) as any;
|
|
146
146
|
if (res.res) {
|
|
147
147
|
handleCancel(true);
|
|
148
148
|
}
|
|
@@ -155,6 +155,7 @@ export default function validaterule(props: any) {
|
|
|
155
155
|
}, [])
|
|
156
156
|
return (
|
|
157
157
|
<>
|
|
158
|
+
<PageHeader />
|
|
158
159
|
<AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
|
|
159
160
|
<Table columns={columns} rowKey="configNumber" rowSelection={rowSelection} dataSource={list} pagination={false} />
|
|
160
161
|
</AutoTableContainer>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useState, useEffect, useMemo } from 'react';
|
|
2
2
|
import { Table, AutoTableContainer, Pagination } from 'kts-xui';
|
|
3
|
-
import
|
|
3
|
+
import PageHeader from '../PageHeader'
|
|
4
4
|
import Main from '../../';
|
|
5
5
|
import { attributionEnum } from '../../util/ConfigEnum';
|
|
6
6
|
import moment from 'moment';
|
|
@@ -12,12 +12,12 @@ export default function validaterule(props: any) {
|
|
|
12
12
|
const params = controller.useMemo(s => s.params, [])
|
|
13
13
|
const [billEnum, setBill] = useState([]);
|
|
14
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 }>();
|
|
15
|
+
const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
16
16
|
const [list, setList] = useState([]);
|
|
17
17
|
const [bill, setConfig] = useState<{ [key: string]: string }>({});
|
|
18
18
|
useEffect(() => {
|
|
19
19
|
(async () => {
|
|
20
|
-
const res = await DocumentsService.instance.service?.call({ url: '/dap/schema/config/querySendRecordPage', data: { ...params, ...pageParams }, type: 'post' }) as any;
|
|
20
|
+
const res = await DocumentsService.instance.service?.call({ url: '/dap/web/schema/config/querySendRecordPage', data: { ...params, ...pageParams }, type: 'post' }) as any;
|
|
21
21
|
if (res.err) {
|
|
22
22
|
return false;
|
|
23
23
|
}
|
|
@@ -26,10 +26,10 @@ export default function validaterule(props: any) {
|
|
|
26
26
|
setpageMeta(res.res.pageMeta);
|
|
27
27
|
}
|
|
28
28
|
})()
|
|
29
|
-
}, [params,pageParams]);
|
|
29
|
+
}, [params, pageParams]);
|
|
30
30
|
useEffect(() => {
|
|
31
31
|
(async () => {
|
|
32
|
-
const res = await DocumentsService.instance.service?.call({ url: '/dap/schema/config/getDefaultTypeList', data: {}, type: 'get' }) as any;
|
|
32
|
+
const res = await DocumentsService.instance.service?.call({ url: '/dap/web/schema/config/getDefaultTypeList', data: {}, type: 'get' }) as any;
|
|
33
33
|
if (res.err) {
|
|
34
34
|
return false;
|
|
35
35
|
} else {
|
|
@@ -59,7 +59,19 @@ export default function validaterule(props: any) {
|
|
|
59
59
|
dataIndex: 'configName',
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
title: '
|
|
62
|
+
title: '使用标识',
|
|
63
|
+
dataIndex: 'effectStatus',
|
|
64
|
+
render: (text: any) => {
|
|
65
|
+
if (text === 0) {
|
|
66
|
+
return <span>未生效</span>
|
|
67
|
+
}
|
|
68
|
+
if (text === 1) {
|
|
69
|
+
return <span>已生效</span>
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: '单据类型',
|
|
63
75
|
dataIndex: 'type',
|
|
64
76
|
render: (text: any) => {
|
|
65
77
|
return bill[text];
|
|
@@ -77,27 +89,48 @@ export default function validaterule(props: any) {
|
|
|
77
89
|
}
|
|
78
90
|
},
|
|
79
91
|
{
|
|
80
|
-
title: '
|
|
92
|
+
title: '我的收发角色',
|
|
81
93
|
dataIndex: 'attribution',
|
|
82
94
|
render: (text: any) => attributionEnum[text]
|
|
83
95
|
},
|
|
84
|
-
// {
|
|
85
|
-
// title: '发送对象',
|
|
86
|
-
// dataIndex: 'sender',
|
|
87
|
-
// render: (text: any, record: any) => {
|
|
88
|
-
// return <a className="tabel-action" onClick={() => { onCompanyList(record); }}>查看</a>
|
|
89
|
-
// }
|
|
90
|
-
// },
|
|
91
96
|
{
|
|
92
|
-
title: '
|
|
97
|
+
title: '我司对应DID',
|
|
98
|
+
dataIndex: 'senderParticipantId',
|
|
99
|
+
render: (text: any, record: any) => {
|
|
100
|
+
return <span>{record.senderParticipantNote}:{text}</span>
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: '接受对象',
|
|
105
|
+
dataIndex: 'receiverParticipantId',
|
|
106
|
+
render: (text: any, record: any) => {
|
|
107
|
+
if (text === '*') {
|
|
108
|
+
return <span>公开发布</span>
|
|
109
|
+
} else if (text === '') {
|
|
110
|
+
return '-';
|
|
111
|
+
} else {
|
|
112
|
+
return <span>{record.receiverParticipantNote}:{text}</span>
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: '接受对象所属公司',
|
|
118
|
+
dataIndex: 'receiverCompany',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: '发布时间',
|
|
93
122
|
dataIndex: 'createAt',
|
|
94
123
|
render: (text: any) => moment(text).format('YYYY-MM-DD hh:mm')
|
|
95
124
|
},
|
|
96
125
|
{
|
|
97
|
-
title: '
|
|
98
|
-
dataIndex: '
|
|
99
|
-
render: (text: any) => moment(text).format('YYYY-MM-DD hh:mm')
|
|
126
|
+
title: '详细内容',
|
|
127
|
+
dataIndex: 'neirong',
|
|
100
128
|
},
|
|
129
|
+
// {
|
|
130
|
+
// title: '最近更新时间',
|
|
131
|
+
// dataIndex: 'updateAt',
|
|
132
|
+
// render: (text: any) => moment(text).format('YYYY-MM-DD hh:mm')
|
|
133
|
+
// },
|
|
101
134
|
{
|
|
102
135
|
title: '操作',
|
|
103
136
|
dataIndex: 'console',
|
|
@@ -110,8 +143,9 @@ export default function validaterule(props: any) {
|
|
|
110
143
|
], [bill]);
|
|
111
144
|
return (
|
|
112
145
|
<>
|
|
146
|
+
<PageHeader />
|
|
113
147
|
<AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
|
|
114
|
-
<Table
|
|
148
|
+
<Table columns={columns} rowKey="id" dataSource={list} pagination={false} />
|
|
115
149
|
</AutoTableContainer>
|
|
116
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} />}
|
|
117
151
|
</>);
|
|
@@ -44,7 +44,7 @@ export default function Rule(props: any) {
|
|
|
44
44
|
if (!id) {
|
|
45
45
|
return false;
|
|
46
46
|
}
|
|
47
|
-
const url = type === 'config' ? '/dap/schema/config/getConfigOneById' : '/dap/schema/config/getRecordOneById'
|
|
47
|
+
const url = type === 'config' ? '/dap/web/schema/config/getConfigOneById' : '/dap/web/schema/config/getRecordOneById'
|
|
48
48
|
const res = await DocumentsService.instance.service?.call({ url, data: { id }, type: 'get' }) as any;
|
|
49
49
|
if (res.err) {
|
|
50
50
|
return false;
|
|
@@ -63,7 +63,7 @@ export default function Rule(props: any) {
|
|
|
63
63
|
if (id) {
|
|
64
64
|
return false;
|
|
65
65
|
}
|
|
66
|
-
const res = await DocumentsService.instance.service?.call({ url: '/dap/schema/config/getDefaultTypeTemplate', data: { type: queryType, profile }, type: 'get' }) as any;
|
|
66
|
+
const res = await DocumentsService.instance.service?.call({ url: '/dap/web/schema/config/getDefaultTypeTemplate', data: { type: queryType, profile }, type: 'get' }) as any;
|
|
67
67
|
if (res.err) {
|
|
68
68
|
return false;
|
|
69
69
|
} else {
|
|
@@ -74,7 +74,7 @@ export default function Rule(props: any) {
|
|
|
74
74
|
|
|
75
75
|
useEffect(() => {
|
|
76
76
|
(async () => {
|
|
77
|
-
const res = await DocumentsService.instance.service?.call({ url: '/dap/schema/config/getDefaultTypeList', data: null, type: 'get' }) as any;
|
|
77
|
+
const res = await DocumentsService.instance.service?.call({ url: '/dap/web/schema/config/getDefaultTypeList', data: null, type: 'get' }) as any;
|
|
78
78
|
if (res.err) {
|
|
79
79
|
return false;
|
|
80
80
|
} else {
|
|
@@ -91,11 +91,11 @@ export default function Rule(props: any) {
|
|
|
91
91
|
}, [])
|
|
92
92
|
const autoSave = useCallback(throttle(() => {
|
|
93
93
|
(async () => {
|
|
94
|
-
let url = '/dap/schema/config/save';
|
|
94
|
+
let url = '/dap/web/schema/config/save';
|
|
95
95
|
let data: any = { ...schema };
|
|
96
96
|
const formValue = form.getFieldsValue();
|
|
97
97
|
if (record && record.id) {
|
|
98
|
-
url = '/dap/schema/config/update';
|
|
98
|
+
url = '/dap/web/schema/config/update';
|
|
99
99
|
data = { ...record, schemaContent: JSON.stringify(data), ...formValue }
|
|
100
100
|
} else {
|
|
101
101
|
data = { schemaContent: JSON.stringify(data), ...formValue }
|
|
@@ -123,7 +123,7 @@ export default function Rule(props: any) {
|
|
|
123
123
|
}, []);
|
|
124
124
|
const onSendCheck = useCallback(() => {
|
|
125
125
|
(async () => {
|
|
126
|
-
const res = await DocumentsService.instance.service?.call({ url: '/dap/participant/listBySubjectId', data: null, type: 'get' }) as any;
|
|
126
|
+
const res = await DocumentsService.instance.service?.call({ url: '/dap/web/participant/listBySubjectId', data: null, type: 'get' }) as any;
|
|
127
127
|
if (res.res) {
|
|
128
128
|
setVisible(true);
|
|
129
129
|
setList(res.res);
|
|
@@ -134,11 +134,11 @@ export default function Rule(props: any) {
|
|
|
134
134
|
(async () => {
|
|
135
135
|
const data = {
|
|
136
136
|
...record,
|
|
137
|
-
|
|
137
|
+
senderPartitionId: targetId,
|
|
138
138
|
privateList: [],
|
|
139
139
|
sendPublic: true
|
|
140
140
|
}
|
|
141
|
-
const res = await DocumentsService.instance.service?.call({ url: '/dap/schema/config/batchSend', data: [data], type: 'post' }) as any;
|
|
141
|
+
const res = await DocumentsService.instance.service?.call({ url: '/dap/web/schema/config/batchSend', data: [data], type: 'post' }) as any;
|
|
142
142
|
if (res.res) {
|
|
143
143
|
message.success('操作成功');
|
|
144
144
|
handleCancel()
|