From 3bdd4dec1869015309449fd38ea67f07c1f81f64 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 30 Jul 2024 14:07:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8F=90=EA=B8=B0=EB=B3=B4=EA=B3=A0=20?= =?UTF-8?q?=ED=86=B5=EA=B3=84=20=EC=83=81=EC=84=B8=20=EB=AA=A9=EB=A1=9D=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nims/dsuseMgtDsuseQyByPrdStatistics-main.jsp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByPrdStatistics-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByPrdStatistics-main.jsp index 0ebc87c..438ef5b 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByPrdStatistics-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtDsuseQyByPrdStatistics-main.jsp @@ -140,7 +140,7 @@ } , prefix: "dsuseMgtDsuseQyByPrdStatistics" , prefixName: "제품별 폐기 현황" - , keymapper: info => info ? info.prduct_cd : "" + , keymapper: info => info ? info.ROW_NUM : "" , dataGetter: obj => obj.${infoPrefix}List , appendData: true , infoSize: "xl" @@ -186,14 +186,14 @@ return; } - let key = item.data.prduct_cd; + let key = item.data.ROW_NUM; $("#tbody--${pageName}").setCurrentRow(key); }; - $P.control.getInfo = (obj, prductCd) => { - if(prductCd === undefined || prductCd === '') return; + $P.control.getInfo = (obj, rowNum) => { + if(rowNum === undefined || rowNum === '') return; - const row = $P.control.dataset.getData(prductCd); + const row = $P.control.dataset.getData(rowNum); if(row.dept_nm === 'TOTAL') return; if(row[obj.dataset.val] === 0 || row[obj.dataset.val] === undefined) return; @@ -203,7 +203,7 @@ params.schDateTo = ''; } params.deptCd = row.dept_cd; - params.prductCd = prductCd; + params.prductCd = row.prduct_cd; params.prgrsSttsCd = obj.dataset.div; ajax.get({ @@ -241,7 +241,7 @@ }); let replacer = (str, dataItem) => { - str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.getInfo(this, '" + dataItem.getValue("prduct_cd") + "');"); + str = str.replace(/{onclick}/gi, "pageObject['${pageName}'].control.getInfo(this, '" + dataItem.getValue("ROW_NUM") + "');"); if(dataItem.getValue("dept_cd") === "TOTAL"){ str = str.replace(/{fw-bold-if-total}/gi, "fw-bold"); str = str.replace(/{ROW_NUM}/gi, "")