From 465f2093d42b93ad3b5c67eca79846c03ba2432b Mon Sep 17 00:00:00 2001 From: wenlele Date: Tue, 27 Jun 2023 16:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=84=8F=E5=A4=96=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/metadataFileModal.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/web/client/src/sections/metadataManagement/components/metadataFileModal.js b/web/client/src/sections/metadataManagement/components/metadataFileModal.js index 1f04b38..99ca751 100644 --- a/web/client/src/sections/metadataManagement/components/metadataFileModal.js +++ b/web/client/src/sections/metadataManagement/components/metadataFileModal.js @@ -11,14 +11,13 @@ const MetadataFileModal = (props) => { const handleOk = () => { form.validateFields().then(values => { if (onConfirm) { - console.log(values); - // let dataSave = JSON.parse(JSON.stringify(values)); - // dataSave.attributesParam = {}; - // metadataModels.filter(mm => mm.modelType === '文件').map(m => { - // dataSave.attributesParam[m.attributeCode] = values[m.attributeCode]; - // delete dataSave[m.attributeCode]; - // }) - // onConfirm(dataSave); + let dataSave = JSON.parse(JSON.stringify(values)); + dataSave.attributesParam = {}; + metadataModels.filter(mm => mm.modelType === '文件').map(m => { + dataSave.attributesParam[m.attributeCode] = values[m.attributeCode]; + delete dataSave[m.attributeCode]; + }) + onConfirm(dataSave); } }) }