|
@@ -21,9 +21,9 @@ const GuaranteePersonnelList = (props) => {
|
21
|
21
|
useEffect(() => {
|
22
|
22
|
if (id) {
|
23
|
23
|
console.log(formRef, "formRefformRef");
|
24
|
|
- formRef?.current?.setFieldValue('orgId', Number(id));
|
|
24
|
+ formRef?.current?.setFieldValue("orgId", Number(id));
|
25
|
25
|
formRef?.current?.submit();
|
26
|
|
-
|
|
26
|
+
|
27
|
27
|
// setTimeout(()=>{
|
28
|
28
|
// actionRef.current.reload();
|
29
|
29
|
// },1000)
|
|
@@ -125,16 +125,17 @@ const GuaranteePersonnelList = (props) => {
|
125
|
125
|
// params={{ orgId: id }}
|
126
|
126
|
rowKey="id"
|
127
|
127
|
toolBarRender={() => [
|
128
|
|
-
|
129
|
|
- <Button
|
130
|
|
- key="2"
|
131
|
|
- type="primary"
|
132
|
|
- onClick={() => {
|
133
|
|
- navigate(`/task/guarantee/personnel/edit?orgId=${id}`);
|
134
|
|
- }}
|
135
|
|
- >
|
136
|
|
- 新增
|
137
|
|
- </Button>
|
|
128
|
+ <Button
|
|
129
|
+ key="2"
|
|
130
|
+ type="primary"
|
|
131
|
+ onClick={() => {
|
|
132
|
+ navigate(
|
|
133
|
+ "/task/guarantee/personnel/edit" + (id ? `?orgId=${id}` : "")
|
|
134
|
+ );
|
|
135
|
+ }}
|
|
136
|
+ >
|
|
137
|
+ 新增
|
|
138
|
+ </Button>,
|
138
|
139
|
]}
|
139
|
140
|
request={queryTable(getCooperationPersonList)}
|
140
|
141
|
columns={columns}
|