|
|
@@ -1370,7 +1370,8 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle1]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl1]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd1]").val('');
|
|
|
- gridOptions_p1.api.updateRowData();
|
|
|
+ //gagaAgGrid.removeRowData(gridOptions_p1, false);
|
|
|
+ gridOptions_p1.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p1)});
|
|
|
}
|
|
|
}
|
|
|
function btnDeleteGridNum2(param){
|
|
|
@@ -1385,7 +1386,7 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle2]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl2]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd2]").val('');
|
|
|
- gridOptions_p2.api.updateRowData();
|
|
|
+ gridOptions_p2.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p2)});
|
|
|
}
|
|
|
}
|
|
|
function btnDeleteGridNum3(param){
|
|
|
@@ -1400,7 +1401,7 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle3]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl3]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd3]").val('');
|
|
|
- gridOptions_p3.api.updateRowData();
|
|
|
+ gridOptions_p3.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p3)});
|
|
|
}
|
|
|
}
|
|
|
function btnDeleteGridNum4(param){
|
|
|
@@ -1415,7 +1416,7 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle4]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl4]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd4]").val('');
|
|
|
- gridOptions_p4.api.updateRowData();
|
|
|
+ gridOptions_p4.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p4)});
|
|
|
}
|
|
|
}
|
|
|
function btnDeleteGridNum5(param){
|
|
|
@@ -1430,7 +1431,7 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle5]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl5]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd5]").val('');
|
|
|
- gridOptions_p5.api.updateRowData();
|
|
|
+ gridOptions_p5.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p5)});
|
|
|
}
|
|
|
}
|
|
|
function btnDeleteGridNum6(param){
|
|
|
@@ -1445,7 +1446,7 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle6]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl6]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd6]").val('');
|
|
|
- gridOptions_p6.api.updateRowData();
|
|
|
+ gridOptions_p6.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p6)});
|
|
|
}
|
|
|
}
|
|
|
function btnDeleteGridNum7(param){
|
|
|
@@ -1460,7 +1461,7 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle7]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl7]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd7]").val('');
|
|
|
- gridOptions_p7.api.updateRowData();
|
|
|
+ gridOptions_p7.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p7)});
|
|
|
}
|
|
|
}
|
|
|
function btnDeleteGridNum8(param){
|
|
|
@@ -1475,7 +1476,7 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle8]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl8]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd8]").val('');
|
|
|
- gridOptions_p8.api.updateRowData();
|
|
|
+ gridOptions_p8.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p8)});
|
|
|
}
|
|
|
}
|
|
|
function btnDeleteGridNum9(param){
|
|
|
@@ -1490,7 +1491,7 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle9]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl9]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd9]").val('');
|
|
|
- gridOptions_p9.api.updateRowData();
|
|
|
+ gridOptions_p9.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p9)});
|
|
|
}
|
|
|
}
|
|
|
function btnDeleteGridNum10(param){
|
|
|
@@ -1505,7 +1506,7 @@
|
|
|
$("#planTemplateForm input[name=goodsTitle10]").val('');
|
|
|
$("#planTemplateForm input[name=goodsUrl10]").val('');
|
|
|
$("#planTemplateForm input[name=goodsDispOrd10]").val('');
|
|
|
- gridOptions_p10.api.updateRowData();
|
|
|
+ gridOptions_p10.api.updateRowData({remove:gagaAgGrid.getAllRowData(gridOptions_p10)});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -2246,8 +2247,7 @@ $(document).ready(function() {
|
|
|
$('#planTemplateForm input[name=goodsPlanContSq'+(i+1)+']').val(goodsList[i].planContSq);
|
|
|
$('#planTemplateForm input[name=goodsPlanContItemSq'+(i+1)+']').val(goodsList[i].planContItemSq);
|
|
|
|
|
|
- if (goodsList[i].title != '' || goodsList[i].linkUrl != ''){
|
|
|
- console.log(goodsList[i].dispYn);
|
|
|
+ if (goodsList[i].title != '' || goodsList[i].linkUrl != '' ){
|
|
|
if (goodsList[i].dispYn == 'Y') {
|
|
|
$('#planTemplateForm input:checkbox[name=goodsDispYn'+(i+1)+']').prop('checked', true);
|
|
|
}else{
|
|
|
@@ -2268,47 +2268,49 @@ $(document).ready(function() {
|
|
|
$('#planTemplateForm input:radio[name=linkOpenGb'+(i+1)+']:radio[value="N"]').prop('checked', true);
|
|
|
}
|
|
|
$('#btnAddGridNum' + (i + 1)).show();
|
|
|
- gridOptions_p1.api.setRowData(goodsDetailList1);
|
|
|
- gridOptions_p2.api.setRowData(goodsDetailList2);
|
|
|
- gridOptions_p3.api.setRowData(goodsDetailList3);
|
|
|
- gridOptions_p4.api.setRowData(goodsDetailList4);
|
|
|
- gridOptions_p5.api.setRowData(goodsDetailList5);
|
|
|
- gridOptions_p6.api.setRowData(goodsDetailList6);
|
|
|
- gridOptions_p7.api.setRowData(goodsDetailList7);
|
|
|
- gridOptions_p8.api.setRowData(goodsDetailList8);
|
|
|
- gridOptions_p9.api.setRowData(goodsDetailList9);
|
|
|
- gridOptions_p10.api.setRowData(goodsDetailList10);
|
|
|
- }else if(goodsDetailList1.length > 0){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ if(goodsDetailList1.length > 0){
|
|
|
gridOptions_p1.api.setRowData(goodsDetailList1);
|
|
|
$('#btnAddGridNum1').show();
|
|
|
- }else if(goodsDetailList2.length > 0){
|
|
|
+ }
|
|
|
+ if(goodsDetailList2.length > 0){
|
|
|
gridOptions_p2.api.setRowData(goodsDetailList2);
|
|
|
$('#btnAddGridNum2').show();
|
|
|
- }else if(goodsDetailList3.length > 0){
|
|
|
+ }
|
|
|
+ if(goodsDetailList3.length > 0){
|
|
|
gridOptions_p3.api.setRowData(goodsDetailList3);
|
|
|
$('#btnAddGridNum3').show();
|
|
|
- }else if(goodsDetailList4.length > 0){
|
|
|
+ }
|
|
|
+ if(goodsDetailList4.length > 0){
|
|
|
gridOptions_p4.api.setRowData(goodsDetailList4);
|
|
|
$('#btnAddGridNum4').show();
|
|
|
- }else if(goodsDetailList5.length > 0){
|
|
|
+ }
|
|
|
+ if(goodsDetailList5.length > 0){
|
|
|
gridOptions_p5.api.setRowData(goodsDetailList5);
|
|
|
$('#btnAddGridNum5').show();
|
|
|
- }else if(goodsDetailList6.length > 0){
|
|
|
+ }
|
|
|
+ if(goodsDetailList6.length > 0){
|
|
|
gridOptions_p6.api.setRowData(goodsDetailList6);
|
|
|
$('#btnAddGridNum6').show();
|
|
|
- }else if(goodsDetailList7.length > 0){
|
|
|
+ }
|
|
|
+ if(goodsDetailList7.length > 0){
|
|
|
gridOptions_p7.api.setRowData(goodsDetailList7);
|
|
|
$('#btnAddGridNum7').show();
|
|
|
- }else if(goodsDetailList8.length > 0){
|
|
|
+ }
|
|
|
+ if(goodsDetailList8.length > 0){
|
|
|
gridOptions_p8.api.setRowData(goodsDetailList8);
|
|
|
$('#btnAddGridNum8').show();
|
|
|
- }else if(goodsDetailList9.length > 0){
|
|
|
+ }
|
|
|
+ if(goodsDetailList9.length > 0){
|
|
|
gridOptions_p9.api.setRowData(goodsDetailList9);
|
|
|
$('#btnAddGridNum9').show();
|
|
|
- }else if(goodsDetailList10.length > 0){
|
|
|
+ }
|
|
|
+ if(goodsDetailList10.length > 0){
|
|
|
gridOptions_p10.api.setRowData(goodsDetailList10);
|
|
|
$('#btnAddGridNum10').show();
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|