Authored by xuhongyun

网销列表页,SKC/SKU上下架不刷新主列表

@@ -323,11 +323,12 @@ var g = new common.grid({ @@ -323,11 +323,12 @@ var g = new common.grid({
323 var intValue ; 323 var intValue ;
324 if (item.status == 4 || item.status == 1 || item.status == 5 || item.status == 6) { 324 if (item.status == 4 || item.status == 1 || item.status == 5 || item.status == 6) {
325 HtmArr.push('<a target="_blank" href="/goods/netsale/edit/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs edit-btn">编辑</a>'); 325 HtmArr.push('<a target="_blank" href="/goods/netsale/edit/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs edit-btn">编辑</a>');
326 - HtmArr.push('<a href="javascript:;" class="btn btn-danger btn-xs shelve-btn" data-index="' + item.__index + '">下架</a>'); 326 + // HtmArr.push('<a href="javascript:;" class="btn btn-danger btn-xs shelve-btn" data-index="' + item.__index + '">下架</a>');
327 } else if (item.status == 3 || item.status == 8 || item.status == 2 || item.status == 0) { 327 } else if (item.status == 3 || item.status == 8 || item.status == 2 || item.status == 0) {
328 HtmArr.push('<a target="_blank" href="/goods/netsale/edit/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs edit-btn">编辑</a>'); 328 HtmArr.push('<a target="_blank" href="/goods/netsale/edit/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs edit-btn">编辑</a>');
329 - HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs shelve-btn" data-index="' + item.__index + '">上架</a>'); 329 + // HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs shelve-btn" data-index="' + item.__index + '">上架</a>');
330 } 330 }
  331 + HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs shelve-btn" data-index="' + item.__index + '">上/下架</a>');
331 HtmArr.push('<a target="_blank" href="/goods/netsale/info/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs info-btn">查看</a>'); 332 HtmArr.push('<a target="_blank" href="/goods/netsale/info/' + item.productSkn + editPostion + '" class="btn btn-info btn-xs info-btn">查看</a>');
332 HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs chima-btn" data-index="' + item.__index + '">尺码</a>'); 333 HtmArr.push('<a href="javascript:;" class="btn btn-success btn-xs chima-btn" data-index="' + item.__index + '">尺码</a>');
333 if(typeof(item.productSearch) == "undefined"){ 334 if(typeof(item.productSearch) == "undefined"){
@@ -614,7 +615,7 @@ $(document).on("click", ".btnskc", function () { @@ -614,7 +615,7 @@ $(document).on("click", ".btnskc", function () {
614 goodsList = res.data.goodsList; 615 goodsList = res.data.goodsList;
615 shelveTable.init(res.data.goodsList); 616 shelveTable.init(res.data.goodsList);
616 }); 617 });
617 - g.init("/goods/netsale/getList"); 618 + // g.init("/goods/netsale/getList");
618 } 619 }
619 }) 620 })
620 }); 621 });