From 2d8e67d347bfb07abf2b77191f622aa4fead15e6 Mon Sep 17 00:00:00 2001 From: minuk926 Date: Thu, 28 Apr 2022 16:22:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B1=B0=EC=A3=BC=EC=9E=90/=EC=9E=A5?= =?UTF-8?q?=EC=95=A0=EC=9D=B8=20=EC=9E=90=EB=A3=8C=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/biz/judge/JudgeDataModifyForm.jsx | 7 ++++--- src/views/cmm/file-ctl/FileInputForms.jsx | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/biz/judge/JudgeDataModifyForm.jsx b/src/views/biz/judge/JudgeDataModifyForm.jsx index 0530e5a..0155d6b 100644 --- a/src/views/biz/judge/JudgeDataModifyForm.jsx +++ b/src/views/biz/judge/JudgeDataModifyForm.jsx @@ -62,10 +62,10 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav formData.append('scName', scName); formData.append('scDong', scDong); formData.append('scContDoc', selectedContDoc); - formData.append('scCdate', scCdate); + formData.append('scCdate', scCdate ? scCdate?.replace(/-/g, '') : ''); formData.append('scIngb', selectedIngb); - formData.append('scWdate', scWdate); - formData.append('scJbtime', scJbtime); + formData.append('scWdate', scWdate ? scWdate?.replace(/-/g, '') : ''); + formData.append('scJbtime', scJbtime ? scJbtime?.replace(/:/g, '') : ''); formData.append('scPos', scPos); formData.append('zipcode1', zipcode1 ? zipcode1.substring(0, 3) : ''); formData.append('zipcode2', zipcode1 ? zipcode1.substring(3) : ''); @@ -115,6 +115,7 @@ const JudgeDataModifyForm = ({ rowData, contDocs, ingbs, setOpen, handleModalSav setPicads((picads) => { const updated = { ...picads }; updated[fileArrKey] = e.target.files[0]; + e.target.fileName = e.target.files[0].name; return updated; }); } else if (fileKey === 'scFrecad') { diff --git a/src/views/cmm/file-ctl/FileInputForms.jsx b/src/views/cmm/file-ctl/FileInputForms.jsx index 9b928e5..65a1be6 100644 --- a/src/views/cmm/file-ctl/FileInputForms.jsx +++ b/src/views/cmm/file-ctl/FileInputForms.jsx @@ -17,7 +17,7 @@ const FileInputForms = ({ fieldName, index, labelName, selectedFile, fileName, h } onClick={() => {}}