|
|
@ -156,7 +156,7 @@ const FilesTable = (props) => { |
|
|
|
width: '29%', |
|
|
|
ellipsis: true |
|
|
|
}, { |
|
|
|
title: '类型', |
|
|
|
title: '文件类型', |
|
|
|
dataIndex: 'type', |
|
|
|
key: 'type', |
|
|
|
width: '10%', |
|
|
@ -275,8 +275,10 @@ const FilesTable = (props) => { |
|
|
|
obj.size = values.files[0].size; |
|
|
|
obj.fileName = values.files[0].url.split('\\').pop(); |
|
|
|
} |
|
|
|
dispatch(metadataManagement.postMetadataFiles(obj)).then(() => { |
|
|
|
onSearch(); setModalVisible(false); |
|
|
|
dispatch(metadataManagement.postMetadataFiles(obj)).then(res => { |
|
|
|
if (res.success) { |
|
|
|
onSearch(); setModalVisible(false); |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
obj = { catalog: resourceCatalogId, catalogKey: resourceCatalogKey, ...values } |
|
|
|