Browse Source

checkItem属性名修改

master
liujiangyong 2 years ago
parent
commit
3dbb71025f
  1. 4
      web/client/src/sections/patrolManage/components/planTemplateModal.js

4
web/client/src/sections/patrolManage/components/planTemplateModal.js

@ -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,

Loading…
Cancel
Save