|
|
@@ -102,6 +102,9 @@
|
|
|
<!-- 리스트 영역 -->
|
|
|
<div class="panelStyle">
|
|
|
<ul class="panelBar">
|
|
|
+ <li>
|
|
|
+ <button type="button" class="btn btn-default btn-lg" id="btnExcel">엑셀다운로드</button>
|
|
|
+ </li>
|
|
|
<li class="right">
|
|
|
검색결과 : <strong>
|
|
|
<span id="gridRowTotalCount">0</span> 건</strong> 쪽번호 <span id="pgNo">0</span>/
|
|
|
@@ -140,7 +143,7 @@
|
|
|
},
|
|
|
{
|
|
|
headerName: "사이트", field: "siteCd", width: 100, cellClass: 'text-center',
|
|
|
- valueFormatter: function (params) { return gagaAgGrid.lookupValue(siteList, params.value); }
|
|
|
+ valueGetter: function (params) { return gagaAgGrid.lookupValue(siteList, params.data.siteCd); }
|
|
|
},
|
|
|
{
|
|
|
headerName: "문의일시", field: "questDt", width: 150, cellClass: 'text-center',
|
|
|
@@ -187,7 +190,7 @@
|
|
|
// },
|
|
|
{
|
|
|
headerName: "답변상태", field: "ansStat", width: 100, cellClass: 'text-center',
|
|
|
- cellRenderer: function (params) { return gagaAgGrid.lookupValue(ansStatList, params.value); }
|
|
|
+ valueGetter: function (params) { return gagaAgGrid.lookupValue(ansStatList, params.data.ansStat); }
|
|
|
},
|
|
|
{headerName: "답변자번호", field: "ansNo", width: 100, cellClass: 'text-center', hide: true},
|
|
|
{headerName: "답변자명", field: "ansNm", width: 100, cellClass: 'text-center'},
|
|
|
@@ -251,6 +254,11 @@
|
|
|
gagaPaging.createPagination(result.pageing.pageable);
|
|
|
}
|
|
|
|
|
|
+ // 엑셀다운로드
|
|
|
+ $('#btnExcel').on('click', function() {
|
|
|
+ gagaAgGrid.exportToExcel('상품문의 목록', gridOptions);
|
|
|
+ });
|
|
|
+
|
|
|
$(document).ready(function() {
|
|
|
// 공통 달력 생성
|
|
|
cfnCreateCalendar('#terms', 'termStdt', 'termEddt', true);
|