From 27d057875c26ab58aa8f3c03b18af895c0158452 Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 6 Aug 2024 14:44:06 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/sprt/sprt02020-info.jsp | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp index c8de745f..1b7b1cb4 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt02020-info.jsp @@ -418,6 +418,17 @@ }); } + // 삭제 + $P.control.remove = (params) => { + if (!params) return; + + ajax.post({ + url: wctx.url("/" + params.taskSeCd + "/crdn/crdn06/010/remove.do") + , data: params || {} + , success: resp => $P.control.onRemove(resp) + }); + } + // 삭제 callback $P.control.onRemove = (resp) => { let btnTitle = $("#btnRemoveCrdn--${pageName}").attr("title"); @@ -429,23 +440,16 @@ , onOK: () => { } }); - if (resp.saved) { fnClose${pageNameMain}(true); } // Dialog 닫기 - } - - // 삭제 - $P.control.remove = (params) => { - if (!params) return; - - ajax.post({ - url: wctx.url("/" + params.taskSeCd + "/crdn/crdn06/010/remove.do") - , data: params || {} - , success: resp => $P.control.onRemove(resp) - }); + if (resp.saved) { + pageObject['sprt02010'].fnClose(true); + } } - + + /************************************************************************** * 사용자 함수(function) **************************************************************************/ + // 자료 재조회 $P.fnRefreshDataInfo = () => { // 단속 ID @@ -915,6 +919,8 @@ $P.updatePayer(params); } + + // 확인 필요 // 차적조회(단속내역,민원상담내역,차적기본조회,장애인표지조회) $P.getVehicleTotalInfo = async function(vhrnoEl) {