From 0d5d0e36c244175bbc11ba499a7697d22b77a813 Mon Sep 17 00:00:00 2001 From: hjjeong Date: Fri, 21 Nov 2025 13:44:21 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=EB=84=A4=EC=9D=B4?= =?UTF-8?q?=EC=85=98=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/view/partMng/partMngTempList.jsp | 23 +----------------- .../WEB-INF/view/partMng/structureList.jsp | 24 +------------------ 2 files changed, 2 insertions(+), 45 deletions(-) diff --git a/WebContent/WEB-INF/view/partMng/partMngTempList.jsp b/WebContent/WEB-INF/view/partMng/partMngTempList.jsp index 649f637..e5d7e28 100644 --- a/WebContent/WEB-INF/view/partMng/partMngTempList.jsp +++ b/WebContent/WEB-INF/view/partMng/partMngTempList.jsp @@ -196,29 +196,8 @@ ui-jqgrid tr.jqgrow td { {headerHozAlign : 'center', hozAlign : 'center', width : '120', title : '비고', field : 'REMARK' } ]; - // 중복 요청 방지 플래그 - var isSearching = false; - function fn_search(){ - // 이미 검색 중이면 중단 - if (isSearching) { - console.log('검색 중입니다. 잠시만 기다려주세요.'); - return; - } - - isSearching = true; - - _tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/partMngTempGridList.do", columns, true, function() { - // 검색 완료 후 플래그 해제 - isSearching = false; - }); - - // 타임아웃 방어 (10초 후 자동 해제) - setTimeout(function() { - if (isSearching) { - isSearching = false; - } - }, 10000); + _tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/partMngTempGridList.do", columns, true); } function openPartMngPopup(objId){ diff --git a/WebContent/WEB-INF/view/partMng/structureList.jsp b/WebContent/WEB-INF/view/partMng/structureList.jsp index cf8148c..6944cb5 100644 --- a/WebContent/WEB-INF/view/partMng/structureList.jsp +++ b/WebContent/WEB-INF/view/partMng/structureList.jsp @@ -234,31 +234,9 @@ var columns = [ {headerHozAlign : 'center', hozAlign : 'center', width : '110', title : '상태', field : 'STATUS' } ]; -// 중복 요청 방지를 위한 로딩 플래그 -var isSearching = false; - //var grid; function fn_search(){ - // 이미 검색 중이면 중복 요청 방지 - if (isSearching) { - console.log('검색 중입니다. 잠시만 기다려주세요.'); - return; - } - - isSearching = true; - - // 기존 그리드 검색 함수 실행 - _tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/searchStructureGridList.do", columns, true, function() { - // 검색 완료 후 플래그 해제 - isSearching = false; - }); - - // fnc_tabul_search가 콜백을 지원하지 않을 경우를 위한 타임아웃 처리 - setTimeout(function() { - if (isSearching) { - isSearching = false; - } - }, 10000); // 10초 타임아웃 + _tabulGrid = fnc_tabul_search(_tabul_layout_fitColumns, _tabulGrid, "/partMng/searchStructureGridList.do", columns, true); } //양산제품에 해당하는 SPEC 정보 목록을 가져온다.