From 15bb4a276cda14aebd3f0fa1515670a4f2d38031 Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 5 Aug 2024 13:36:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=EC=A0=95=EB=A6=AC(html?= =?UTF-8?q?=EC=97=98=EB=A6=AC=EB=A8=BC=ED=8A=B8=20id=EC=A0=9C=EA=B1=B0=20?= =?UTF-8?q?=EB=B0=8F=20name=EC=B6=94=EA=B0=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/crdn02010-main.jsp | 28 +++++++++---------- .../WEB-INF/jsp/fims/crdn/crdn05020-info.jsp | 8 +++--- .../WEB-INF/jsp/fims/crdn/crdn05030-info.jsp | 6 ++-- .../WEB-INF/jsp/fims/crdn/crdn06010-main.jsp | 8 +++--- .../WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp | 4 +-- .../WEB-INF/jsp/fims/cvlc/cvlc01050-info.jsp | 5 ++-- .../WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp | 4 +-- .../WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp | 10 +++---- .../WEB-INF/jsp/fims/cvlc/cvlc05010-main.jsp | 4 +-- .../WEB-INF/jsp/fims/cvlc/cvlc06010-main.jsp | 4 +-- 10 files changed, 40 insertions(+), 41 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp index 5e0821f4..62421964 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp @@ -256,15 +256,15 @@
선택자료 - -
+ +
비교자료(선택자료의 다음 자료가 보여집니다.) - -
+ +
@@ -833,15 +833,15 @@ $(document).ready(function(){ $P.showPhoto = (dataKey, nextDataKey, curDataVhrno, nextDataVhrno) => { if(dataKey == ""){ - $("#curDataVhrno--${pageName}").html(""); - $("#nextDataVhrno--${pageName}").html(""); - $("#curDataFiles--${pageName}").html(""); - $("#nextDataFiles--${pageName}").html(""); + $P.$find("curDataVhrno").html(""); + $P.$find("nextDataVhrno").html(""); + $P.$find("curDataFiles").html(""); + $P.$find("nextDataFiles").html(""); return; } - $("#curDataVhrno--${pageName}").html(curDataVhrno); - $("#nextDataVhrno--${pageName}").html(nextDataVhrno); + $P.$find("curDataVhrno").html(curDataVhrno); + $P.$find("nextDataVhrno").html(nextDataVhrno); ajax.get({ url:"file/list.do", @@ -857,16 +857,16 @@ $(document).ready(function(){ var currentDataFileList = fileList.filter(x => x.INF_KEY == dataKey); var nextDataFileList = fileList.filter(x => x.INF_KEY == nextDataKey); - $("#curDataFiles--${pageName}").html(""); - $("#nextDataFiles--${pageName}").html(""); + $P.$find("curDataFiles").html(""); + $P.$find("nextDataFiles").html(""); currentDataFileList.forEach(function(item, index, array){ var output = fnMakeImgTagForInspection(item.URL, item.FILE_NM,"cur"+item.FILE_ID+'${pageName}',item.MOSAIC); - $("#curDataFiles--${pageName}").append(output); + $P.$find("curDataFiles").append(output); }); nextDataFileList.forEach(function(item, index, array){ var output = fnMakeImgTagForInspection(item.URL, item.FILE_NM,"next"+item.FILE_ID+'${pageName}',item.MOSAIC); - $("#nextDataFiles--${pageName}").append(output); + $P.$find("nextDataFiles").append(output); }); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp index 77e1c6c1..0ce69fb2 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp @@ -146,7 +146,7 @@
-
+
@@ -199,7 +199,7 @@ $(document).ready(function(){ }; $P.ctrl.dataset.onCurrentChange = (dataItem) => { - $("#imageArea--${pageName}").html(""); + $P.$find("imageArea").html(""); if(dataItem && dataItem.data){ var dataKey = dataItem.data.FILE_NAME; @@ -352,13 +352,13 @@ $(document).ready(function(){ span.appendChild(img); div.appendChild(span); } - $("#imageArea--${pageName}").append(div); + $P.$find("imageArea").append(div); } else { var img = document.createElement("img"); img.style["object-fit"] = "contain"; img.src = src; - $("#imageArea--${pageName}").append(img); + $P.$find("imageArea").append(img); } } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp index 3762502a..c53237e3 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05030-info.jsp @@ -354,7 +354,7 @@
-
+
@@ -428,7 +428,7 @@ $(document).ready(function(){ } $P.fnDisplay = () => { - var displayArea = document.querySelector("#display--${pageName}"); + var displayArea = $P.find("display"); var concatArr = $P.localUploadArr.concat($P.captureFileArr); var tagsText = $P.fnMakeImgForNewFile(concatArr); @@ -554,7 +554,7 @@ $(document).ready(function(){ }); $P.$find("btnCancelAddFile").on('click', () => { - var checked = $("#display--${pageName}").find("[name='newPhoto']:checked"); + var checked = $P.$find("display").find("[name='newPhoto']:checked"); if(checked.length < 1){ alert("선택된 사진이 없습니다."); return; diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp index 8a01ebae..f648484f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp @@ -109,7 +109,7 @@
-
+