|
@@ -116,22 +116,9 @@
|
|
|
{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
{width: 40, minWidth: 40, cellClass: 'text-center', headerCheckboxSelection: true, checkboxSelection: true, filter: false},
|
|
|
{headerName: "정렬", field: "dispOrd", width: 70 ,hide: false, cellClass: 'text-center', rowDrag: true },
|
|
{headerName: "정렬", field: "dispOrd", width: 70 ,hide: false, cellClass: 'text-center', rowDrag: true },
|
|
|
//{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
|
|
//{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
|
|
|
- {headerName: "이미지", field: "imgPath1", width: 100, height: 60, cellClass: 'text-center'
|
|
|
|
|
|
|
+ {headerName: "이미지", field: "sysImgNm", width: 100, height: 60, cellClass: 'text-center'
|
|
|
,cellRenderer: function(params) {
|
|
,cellRenderer: function(params) {
|
|
|
- if (params.data.imgType == "G030_A"){
|
|
|
|
|
- if (gagajf.isNull(params.value)) {
|
|
|
|
|
- return '<img width="60" src="'+ params.data.imgPath6 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
|
|
- } else {
|
|
|
|
|
- return '<img width="60" src="'+ params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- }else{
|
|
|
|
|
- if(!gagajf.isNull(params.data.imgPath6)){
|
|
|
|
|
- return '<img width="60" src="'+ uploadGoodsUrl+params.data.imgPath6 + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
|
|
- }else{
|
|
|
|
|
- return '<img width="60" src="'+ uploadGoodsUrl+params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ return '<img width="60" src="'+ _goodsUrl+ "/" + params.value + '" alt="" onerror="this.src=\'/image/no.gif\';"/>';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{headerName: "구성상품코드", field: "compsGoodsCd" , width: 130, cellClass: 'text-center'},
|
|
{headerName: "구성상품코드", field: "compsGoodsCd" , width: 130, cellClass: 'text-center'},
|
|
@@ -256,9 +243,7 @@
|
|
|
, goodsNm : goods.goodsNm
|
|
, goodsNm : goods.goodsNm
|
|
|
, selfGoodsYn : goods.selfGoodsYn
|
|
, selfGoodsYn : goods.selfGoodsYn
|
|
|
, supplyCompCd : goods.supplyCompCd
|
|
, supplyCompCd : goods.supplyCompCd
|
|
|
- , imgType : goods.imgType
|
|
|
|
|
- , imgPath1 : goods.imgPath1
|
|
|
|
|
- , imgPath6 : goods.imgPath6
|
|
|
|
|
|
|
+ , sysImgNm : goods.sysImgNm
|
|
|
};
|
|
};
|
|
|
//그리드 마지막에 추가해야함
|
|
//그리드 마지막에 추가해야함
|
|
|
gridGoodsSetOptions.api.updateRowData({add: [data], addIndex: idx});
|
|
gridGoodsSetOptions.api.updateRowData({add: [data], addIndex: idx});
|