|
|
@@ -424,6 +424,8 @@
|
|
|
let AddgridRow;
|
|
|
let mode = [[${mode}]];
|
|
|
let mktmailInfo = [[${mktmailInfo}]];
|
|
|
+ let mktmailTCInfo = [[${mktmailTCInfo}]];
|
|
|
+ let mktmailGoodsInfo = [[${mktmailGoodsInfo}]];
|
|
|
|
|
|
//팝업창 삭제버튼
|
|
|
$('#btndeleteMktmail').on('click', function() {
|
|
|
@@ -754,7 +756,50 @@
|
|
|
if(mktmailInfo.mailtGb == "A"){
|
|
|
$('#mailManagementForm input:radio[name="mailtGb"]:radio[value="A"]').prop('checked', true);
|
|
|
}
|
|
|
- }
|
|
|
+
|
|
|
+// alert(mktmailTCInfo.length);
|
|
|
+// alert(mktmailGoodsInfo.length);
|
|
|
+// alert(mktmailGoodsInfo[1]);
|
|
|
+
|
|
|
+
|
|
|
+ if(mktmailTCInfo != null && mktmailTCInfo.length > 0){
|
|
|
+ //구분자1
|
|
|
+ if($('#mailManagementForm input[name=mailtcNm]')){
|
|
|
+ $('#mailManagementForm input[name=mailtcNm]').val(mktmailTCInfo[0].mailtcNm);
|
|
|
+ $('#mailManagementForm input[name=mailtcLink]').val(mktmailTCInfo[0].mailtcLink);
|
|
|
+
|
|
|
+
|
|
|
+ $('#btnAddGridNum').show();
|
|
|
+
|
|
|
+ //구분자2
|
|
|
+ if(mktmailTCInfo.length >= 2){
|
|
|
+ $('#mailManagementForm input[name=mailtcNm2]').val(mktmailTCInfo[1].mailtcNm);
|
|
|
+ $('#mailManagementForm input[name=mailtcLink2]').val(mktmailTCInfo[1].mailtcLink);
|
|
|
+ $('#btnAddGridNum2').show();
|
|
|
+ //구분자3
|
|
|
+ if(mktmailTCInfo.length >= 3){
|
|
|
+ $('#mailManagementForm input[name=mailtcNm3]').val(mktmailTCInfo[2].mailtcNm);
|
|
|
+ $('#mailManagementForm input[name=mailtcLink3]').val(mktmailTCInfo[2].mailtcLink);
|
|
|
+ $('#btnAddGridNum3').show();
|
|
|
+ //구분자4
|
|
|
+ if(mktmailTCInfo.length >= 4){
|
|
|
+ $('#mailManagementForm input[name=mailtcNm4]').val(mktmailTCInfo[3].mailtcNm);
|
|
|
+ $('#mailManagementForm input[name=mailtcLink4]').val(mktmailTCInfo[3].mailtcLink);
|
|
|
+ $('#btnAddGridNum4').show();
|
|
|
+ //구분자5
|
|
|
+ if(mktmailTCInfo.length == 5){
|
|
|
+ $('#mailManagementForm input[name=mailtcNm5]').val(mktmailTCInfo[4].mailtcNm);
|
|
|
+ $('#mailManagementForm input[name=mailtcLink5]').val(mktmailTCInfo[4].mailtcLink);
|
|
|
+ $('#btnAddGridNum5').show();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }//end of mode
|
|
|
|
|
|
gagaAgGrid.createGrid("gridSectionGbList1", gridOptions_c1);
|
|
|
gagaAgGrid.createGrid("gridSectionGbList2", gridOptions_c2);
|
|
|
@@ -764,6 +809,14 @@
|
|
|
|
|
|
// Create a summernote
|
|
|
let snOptions = gagaSn.getToolbarOptions();
|
|
|
+
|
|
|
+
|
|
|
+ gridOptions_c1.api.setRowData(mktmailGoodsInfo);
|
|
|
+ gridOptions_c2.api.setRowData(mktmailGoodsInfo);
|
|
|
+ gridOptions_c3.api.setRowData(mktmailGoodsInfo);
|
|
|
+ gridOptions_c4.api.setRowData(mktmailGoodsInfo);
|
|
|
+ gridOptions_c5.api.setRowData(mktmailGoodsInfo);
|
|
|
+
|
|
|
gagaSn.createSummernote(snOptions, '#mailContent');
|
|
|
|
|
|
});
|