feat: 팝업 페이지 이동 모듈화 반영

main
minuk926 2 years ago
parent 2c8666b7a4
commit 56037646a8

@ -92,7 +92,7 @@
return {extrlRegltCntcId: d.extrlRegltCntcId, regltSeCode: d.regltSeCode}
})
pageNav = new PageNavigation(GRID, gridDatas, props.rowKey);
fnBiz.pagePopup('detail', {extrlRegltCntcId: pageNav.gridInfo.curRowData.extrlRegltCntcId, regltSeCode: pageNav.gridInfo.curRowData.regltSeCode});
fnBiz.pagePopup('detail', pageNav.gridInfo.curRowData);
}
}

@ -129,7 +129,7 @@
return {interfaceSeqN: d.interfaceSeqN, ctznSttemntDetailSn: d.ctznSttemntDetailSn}
})
pageNav = new PageNavigation(GRID, gridDatas, props.rowKey);
fnBiz.pagePopup('detail', {interfaceSeqN: pageNav.gridInfo.curRowData.interfaceSeqN, ctznSttemntDetailSn: pageNav.gridInfo.curRowData.ctznSttemntDetailSn});
fnBiz.pagePopup('detail', pageNav.gridInfo);
}
,onClickCreateAnswerPopup: function(props){
const rowData = props.grid.getRow(props.rowKey);

@ -83,7 +83,7 @@
}
,pagePopup: function(flag, params){
let url = '<c:url value="/fims/biz/rt/rtRegltMgtPopup.do"/>';
let url = fimsApiUrl.POPUP_RT_REGLT_INFO;
let popTitle;
let popOption = {width: 1200, height:900};
switch (flag) {
@ -117,7 +117,7 @@
return {regltId: d.regltId, regltSeCode: d.regltSeCode}
})
pageNav = new PageNavigation(GRID, gridDatas, props.rowKey);
fnBiz.pagePopup('detail', {regltId: pageNav.gridInfo.curRowData.regltId, regltSeCode: pageNav.gridInfo.curRowData.regltSeCode});
fnBiz.pagePopup('detail', pageNav.gridInfo.curRowData);
}
}
@ -284,7 +284,7 @@
initialRequest: true, // 화면 load시 조회 안함 - default
api: {
readData: {
url: '<c:url value="/fims/biz/rt/findRtReglts.do"/>'
url: fimsApiUrl.FIND_RT_REGLTS
,serializer: (params) => {
const param = {
sch_date_opt: $('#sch_date_opt').val()

@ -150,7 +150,7 @@
search: (params) => {
cmmAjax({
showSuccessMsg: false
,url: '<c:url value="/fims/biz/rt/findRtRegltAndAttchFiles.do"/>'
,url: fimsApiUrl.FIND_RT_REGLT_INFO_AND_ATTCH_FILES
,data: params
,success: (res) => {
cmmImgDownload('#imgList', res.attchFiles, true);
@ -162,8 +162,8 @@
,downloadImg: () => {
cmmAjax({
showSuccessMsg: false
,url: '<c:url value="/fims/biz/rt/findRtRegltAttchFiles.do"/>'
,data: {regltId:'${dto.regltId}', regltSeCode: '${dto.regltSeCode}'}
,url: fimsApiUrl.FIND_RT_REGLT_ATTCH_FILES
,data: downloadImgParam
,success: (res) => {
cmmImgDownload('#imgList', res.data?.contents, true);
}
@ -173,7 +173,7 @@
if (!fnBiz.validate()) return;
cmmBizAjax('add', {
url: '<c:url value="/fims/biz/rt/addRtReglt.do"/>'
url: fimsApiUrl.ADD_RT_REGLT
, data: $("#frmSearch").serialize()
})
}
@ -181,14 +181,14 @@
/*if (!fnBiz.validate()) return;*/
cmmBizAjax('modify', {
url: '<c:url value="/fims/biz/rt/modifyRtReglt.do"/>'
url: fimsApiUrl.MODIFY_RT_REGLT
,data: $("#frmSearch").serialize()
});
}
,remove: () => {
$("input[name=useAt]").val('N');
cmmBizAjax('remove', {
url: '<c:url value="/fims/biz/rt/removeRtReglt.do"/>'
url: fimsApiUrl.MODIFY_RT_REGLT
,data: $("#frmSearch").serialize()
});
}

@ -6,8 +6,6 @@ const fimsApiUrl = {
/**
* fims API URL
*/
@ -44,4 +42,14 @@ const fimsApiUrl = {
,FIND_BUS_ONLY_EC_EXTRL_REGLT_CNTC_ATTCH_FILES: '/fims/biz/ec/findBusCctvCrackdownFiles.do' //CCTV 외부연계(버스전용차료) 데이타 조회
,FIND_EC_EXTRL_REGLT_CNTC_ATTCH_FILES: '/fims/biz/ec/findExtrlRegltCntcAttchFiles.do' //CCTV 외부연계 첨부파일 목록 조회
//단속관리 - 단속현황관리
,POPUP_RT_REGLT_INFO: '/fims/biz/rt/rtRegltMgtPopup.do' //단속정보 상세 팝업
,FIND_RT_REGLTS: '/fims/biz/rt/findRtReglts.do' //단속 목록 조회
,FIND_RT_REGLT_INFO_AND_ATTCH_FILES: '/fims/biz/rt/findRtRegltAndAttchFiles.do' //단속 정보 및 첨부파일 목록 조회
,ADD_RT_REGLT: '/fims/biz/rt/addRtReglt.do' //단속 데이타 저장
,MODIFY_RT_REGLT: '/fims/biz/rt/modifyRtReglt.do' //단속 데이타 변경
,REMOVE_RT_REGLT: '/fims/biz/rt/removeRtReglt.do' //단속 데이타 변경
,FIND_RT_REGLT_ATTCH_FILES: '/fims/biz/rt/findRtRegltAttchFiles.do' //단속 정보 첨부파일 목록 조회
}

Loading…
Cancel
Save