|
|
@@ -23,6 +23,7 @@ interface AddVersionModalProps extends Omit<ModalProps, 'onOk'> { |
|
|
resourceId: number; |
|
|
resourceId: number; |
|
|
identifier: string; |
|
|
identifier: string; |
|
|
resoureName: string; |
|
|
resoureName: string; |
|
|
|
|
|
is_public: boolean; |
|
|
onOk: () => void; |
|
|
onOk: () => void; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@@ -31,6 +32,7 @@ function AddVersionModal({ |
|
|
resourceId, |
|
|
resourceId, |
|
|
resoureName, |
|
|
resoureName, |
|
|
identifier, |
|
|
identifier, |
|
|
|
|
|
is_public, |
|
|
onOk, |
|
|
onOk, |
|
|
...rest |
|
|
...rest |
|
|
}: AddVersionModalProps) { |
|
|
}: AddVersionModalProps) { |
|
|
@@ -71,6 +73,7 @@ function AddVersionModal({ |
|
|
const params = { |
|
|
const params = { |
|
|
id: resourceId, |
|
|
id: resourceId, |
|
|
identifier, |
|
|
identifier, |
|
|
|
|
|
is_public, |
|
|
[config.filePropKey]: version_vos, |
|
|
[config.filePropKey]: version_vos, |
|
|
...omit(formData, 'fileList'), |
|
|
...omit(formData, 'fileList'), |
|
|
[config.sourceParamKey]: DataSource.Create, |
|
|
[config.sourceParamKey]: DataSource.Create, |
|
|
|