Browse Source

文件元数据新建修改

master
zmh 2 years ago
parent
commit
5e244277ab
  1. 8
      web/client/src/sections/metadataManagement/containers/filesTable.js

8
web/client/src/sections/metadataManagement/containers/filesTable.js

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

Loading…
Cancel
Save