|
@ -61,7 +61,7 @@ const PlanModal = ({ visible, onCancel, dispatch, type, curRecord, tableRef, che |
|
|
name="form_in_modal" |
|
|
name="form_in_modal" |
|
|
initialValues={{ |
|
|
initialValues={{ |
|
|
...curRecord, |
|
|
...curRecord, |
|
|
checkItems: curRecord?.check_items?.map(c => c.id) |
|
|
checkItems: curRecord?.checkItems?.map(c => c.id) |
|
|
}} |
|
|
}} |
|
|
> |
|
|
> |
|
|
<Form.Item |
|
|
<Form.Item |
|
@ -96,7 +96,7 @@ const PlanModal = ({ visible, onCancel, dispatch, type, curRecord, tableRef, che |
|
|
checkItemsGroup.map(g => { |
|
|
checkItemsGroup.map(g => { |
|
|
return { |
|
|
return { |
|
|
label: g.name, |
|
|
label: g.name, |
|
|
options: g.check_items.map(c => { |
|
|
options: g.checkItems.map(c => { |
|
|
return { |
|
|
return { |
|
|
label: c.name, |
|
|
label: c.name, |
|
|
value: c.id, |
|
|
value: c.id, |
|
|