Browse Source

文件元数据新建修改

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

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

@ -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(() => {
dispatch(metadataManagement.postMetadataFiles(obj)).then(res => {
if (res.success) {
onSearch(); setModalVisible(false);
}
});
} else {
obj = { catalog: resourceCatalogId, catalogKey: resourceCatalogKey, ...values }

Loading…
Cancel
Save