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) {