|
|
@@ -170,37 +170,14 @@
|
|
|
return '<a href="javascript:void(0);">' + params.value + '</a>';
|
|
|
}
|
|
|
},
|
|
|
- {headerName: "xml", field: "xmlTxt", width: 100, cellClass: 'text-center', editable: true,
|
|
|
- cellEditor: 'agLargeTextCellEditor',
|
|
|
- cellRenderer: function(params) {
|
|
|
- params.value = '<button type="button"class="btn btn-success">보기</button>';
|
|
|
- return params.value;
|
|
|
- }
|
|
|
- },
|
|
|
- {headerName: "등록자", field: "regNm", width: 100, cellClass: 'text-center'},
|
|
|
{
|
|
|
- headerName: "전송일자", field: "regDt", width: 150, cellClass: 'text-center',
|
|
|
- cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }
|
|
|
- }
|
|
|
- ];
|
|
|
-
|
|
|
- let columnDefs2 = [
|
|
|
- {headerName: "No", width: 60, cellClass: 'text-center',
|
|
|
- valueGetter: function(params) { return cfnGridNumner('searchForm',params.node.rowIndex, 'A');}
|
|
|
- },
|
|
|
- {headerName: "샵링커 상품코드", field: "apiProductId", width: 130, cellClass: 'text-center'},
|
|
|
- {
|
|
|
- headerName: "API구분", field: "apiType", width: 100, cellClass: 'text-center',
|
|
|
- valueFormatter: function (params) { return gagaAgGrid.lookupValue(apiTypeValue, params.value); }
|
|
|
- },
|
|
|
- {headerName: "IF결과", field: "apiResult", width: 100, cellClass: 'text-center',
|
|
|
- valueFormatter: function (params) { return gagaAgGrid.lookupValue(procGbValue, params.value); }
|
|
|
- },
|
|
|
- {headerName: "IF결과메세지", field: "apiMessage", width: 300, cellClass: 'text-left'},
|
|
|
- {headerName: "자사 상품코드", field: "goodsCd", width: 150, cellClass: 'text-center'},
|
|
|
- {headerName: "상품명", field: "goodsNm", width: 300, cellClass: 'text-left'
|
|
|
- ,cellRenderer: function(params) {
|
|
|
- return '<a href="javascript:void(0);">' + params.value + '</a>';
|
|
|
+ headerName: "미리보기", field:"preview", width: 100, cellClass: 'text-center',
|
|
|
+ cellRenderer: function(params) {
|
|
|
+ if("PRODUCT" == params.data.apiType){
|
|
|
+ return '<button="javascript:void(0);" class="btn btn-info btn-sm">미리보기</button>';
|
|
|
+ }else{
|
|
|
+ return "";
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
{headerName: "등록자", field: "regNm", width: 100, cellClass: 'text-center'},
|
|
|
@@ -209,13 +186,8 @@
|
|
|
cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }
|
|
|
}
|
|
|
];
|
|
|
-
|
|
|
- let gridOptions;
|
|
|
- if (sessRoleCd == "G001_0000") { // SUPER관리자
|
|
|
- gridOptions = gagaAgGrid.getGridOptions(columnDefs1);
|
|
|
- } else {
|
|
|
- gridOptions = gagaAgGrid.getGridOptions(columnDefs2);
|
|
|
- }
|
|
|
+
|
|
|
+ let gridOptions = gagaAgGrid.getGridOptions(columnDefs1);
|
|
|
|
|
|
// Row Click
|
|
|
gridOptions.onCellClicked = function(event) {
|
|
|
@@ -225,6 +197,11 @@
|
|
|
}else if (event.colDef.field == "goodsCd"){
|
|
|
|
|
|
//cfnOpenFrontGoodsPopup(goodsCd, event.data.siteCd);
|
|
|
+ }else if (event.colDef.field == 'preview') {
|
|
|
+ // 미리보기 팝업
|
|
|
+ if( "PRODUCT" == event.data.apiType){
|
|
|
+ fnOpenPreviewPopup(event.data.logSq);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -429,6 +406,13 @@
|
|
|
});
|
|
|
/**************** 샵링커기획전생성엑셀 // *****************************************************/
|
|
|
|
|
|
+ /**************** 미리보기 *****************************************************/
|
|
|
+ var fnOpenPreviewPopup = function(logSq) {
|
|
|
+ var actionUrl = '/shoplinker/goods/preview/form/' + logSq;
|
|
|
+ cfOpenWindowPopup(actionUrl, 'popupShoplinkerTemplatePreview', 1200, 700);
|
|
|
+ }
|
|
|
+ /**************** 미리보기 // *****************************************************/
|
|
|
+
|
|
|
/**************** 테스트용 *******************************************************/
|
|
|
// 테스트- 실제 샵링커 호출
|
|
|
var fnTest = function(){
|