name 2023-07-27
선거문자 단체문자 화면 오류 수정
@2c6d567c0bdcc81d13d501f77a718f57b68b0a3b
src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
--- src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
+++ src/main/java/itn/let/mjo/msgcampain/web/MjonMsgCampainDataController.java
@@ -843,7 +843,13 @@
 		if(letterVO.getPageUnit() != 10) {
 			letterVO.setPageUnit(letterVO.getPageUnit());
 		}
-
+		
+		for(int i=0 ; i < cateConfList.size(); i++) {
+			if("선거".equals(cateConfList.get(i).getCateNm())) {
+				letterVO.setCategoryCode(cateConfList.get(i).getCateCode());
+			}
+		}
+		
 		/** pageing */
 		PaginationInfo paginationInfo = new PaginationInfo();
 		paginationInfo.setCurrentPageNo(letterVO.getPageIndex());
@@ -861,6 +867,8 @@
 		paginationInfo.setTotalRecordCount( resultPhoList.size()> 0 ? ((Long)((EgovMap)resultPhoList.get(0)).get("totCnt")).intValue() : 0);
 		model.addAttribute("paginationInfo", paginationInfo);
 		
+		model.addAttribute("letterVO", letterVO);
+		
 		return "web/msgcampain/excel/MsgExcelDataView";
 	}
 	
src/main/webapp/WEB-INF/jsp/web/msgcampain/excel/MsgExcelDataView.jsp
--- src/main/webapp/WEB-INF/jsp/web/msgcampain/excel/MsgExcelDataView.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgcampain/excel/MsgExcelDataView.jsp
@@ -32,6 +32,13 @@
 	//그림문자 샘플 탭 활성화 시키기
 	TabType2($('.tabType2 li').eq(1), '2');
 	
+	$(".tDep2_cateCode a").each(function(index, item){
+		
+		if($(this).text() == "선거"){
+			$('.tDep2_cateCode').find('.on').removeClass('on');
+			$(this).addClass('on');
+		}
+	})
 	// 맞춤제작 요청 JSPark => 2023.02.21 추가
 	//맞춤제작 등록 Popup 
 	//customPopup();	
@@ -83,11 +90,11 @@
 		if(document.letterForm.searchKeyword.value == ''){
 			$('.bottom_content .area_total_count').hide();
 		}
-		if(form.hashTag.value != ''){
+		/* if(form.hashTag.value != ''){
 			if($('#letterLoad .nodata_box').length > 0){
 				$('#letterLoad .nodata_box').hide().next('.nodata_box.hashTag').show();
 			}
-		}
+		} */
 	});
 	
 }
@@ -117,7 +124,7 @@
 	form.pageIndex.value = index;
 	var sendData = $(document.letterForm).serializeArray();
 	//하위 카테고리
-	$("#tDep2_depThrCateCode").load("/web/mjon/msgdata/selectCateConfThrDptListAjax.do", sendData ,function(response, status, xhr){
+	$("#tDep2_depThrCateCode").load("/web/mjon/msgcampain/selectCateConfThrDptListAjax.do", sendData ,function(response, status, xhr){
 		if(document.letterForm.searchKeyword.value == ''){
 			$('.bottom_content .area_total_count').hide();
 		}
Add a comment
List