|
|
@ -331,17 +331,18 @@ function pushModal (props) { |
|
|
|
u.factor?.map(v => { |
|
|
|
v.item.map(vv => factorItem.push(vv.name)) |
|
|
|
}) |
|
|
|
factorItem = [...new Set(factorItem)] |
|
|
|
return <Form.CheckboxGroup |
|
|
|
label={u.name + ':'} |
|
|
|
key={u.name + index} |
|
|
|
field={'factor' + u.id} |
|
|
|
style={{ width: 695 }} |
|
|
|
initValue={editObj?.pomsStrucFactorId ? editObj?.pomsStrucFactorId[u.id] : []} |
|
|
|
initValue={editObj?.pomsStrucFactorId ? editObj?.pomsStrucFactorId[u.id] : (factorItem || [])} |
|
|
|
direction='horizontal' |
|
|
|
showClear |
|
|
|
> |
|
|
|
{ |
|
|
|
[...new Set(factorItem)].map((v, index) => |
|
|
|
factorItem?.map((v, index) => |
|
|
|
<Form.Checkbox value={v} key={v} style={{ width: 150 }}>{v}</Form.Checkbox>) |
|
|
|
} |
|
|
|
</Form.CheckboxGroup> |
|
|
|