From 7789daf1cc765e03e8395069551e1175e96bea29 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 20 Jul 2023 16:22:13 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B2=B4=ED=81=AC=EB=B0=95=EC=8A=A4=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/js/base/base-fims.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/resources/js/base/base-fims.js b/src/main/webapp/resources/js/base/base-fims.js index e83e9121..238e85e9 100644 --- a/src/main/webapp/resources/js/base/base-fims.js +++ b/src/main/webapp/resources/js/base/base-fims.js @@ -80,10 +80,18 @@ class FimsFormFields extends FormFields { document.querySelectorAll(this.children).forEach(input => { let property = input.name || input.id; let value = input.value; - if ("radio" == input.type) { - if (input.checked) + if("radio" == input.type) { + if(input.checked) obj[property] = value; - } else { + } else if("checkbox" == input.type) { + if(input.checked){ + if(obj[property]){ + obj[property] += ","+value; + } else { + obj[property] = value; + } + } + } else { if(input.dataset.fmtType){ const fmtType = input.dataset.fmtType; switch (fmtType) {