|
|
@ -12,7 +12,7 @@ function EditModal ({ loading, parent, user, actions, editData = {}, dispatch, c |
|
|
|
const { dataService } = actions |
|
|
|
const [lookFiold, setLookFiold] = useState([]); |
|
|
|
const [interfaceName, setInterfaceName] = useState() |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
setInterfaceName(editData?.name); |
|
|
|
dispatch(dataService.getLookField({ table: editData?.table, fields: editData?.fields })).then(res => { |
|
|
@ -62,7 +62,7 @@ function EditModal ({ loading, parent, user, actions, editData = {}, dispatch, c |
|
|
|
<div style={{ width: 120, border: '1px solid #dcc', textAlign: 'center' }}>意义</div> |
|
|
|
<div style={{ width: 120, border: '1px solid #dcc', textAlign: 'center' }}>说明</div> |
|
|
|
</div> |
|
|
|
{lookFiold?.metadataDatabases?.map((s, index) => { |
|
|
|
{lookFiold?.map((s, index) => { |
|
|
|
return <div key={'lookFiold' + index} style={{ display: 'flex' }}> |
|
|
|
<div style={{ width: 120, border: '1px solid #dcc', textAlign: 'center' }}>{s.code}</div> |
|
|
|
<div style={{ width: 120, border: '1px solid #dcc', textAlign: 'center' }}>{s.name}</div> |
|
|
|