Showing
1 changed file
with
9 additions
and
9 deletions
@@ -429,17 +429,17 @@ grid.prototype = { | @@ -429,17 +429,17 @@ grid.prototype = { | ||
429 | var index = $(this).data("index"); | 429 | var index = $(this).data("index"); |
430 | if (checked) { | 430 | if (checked) { |
431 | /**************业务控制 特殊情况**************/ | 431 | /**************业务控制 特殊情况**************/ |
432 | - if(batchOperateShelve){ | ||
433 | - if($.inArray(g.rows[index]['productSkn'], batchOperateShelve) == -1 ){ | ||
434 | - batchOperateShelve.push(g.rows[index]['productSkn']); | 432 | + if(window.batchOperateShelve){ |
433 | + if($.inArray(g.rows[index]['productSkn'], window.batchOperateShelve) == -1 ){ | ||
434 | + window.batchOperateShelve.push(g.rows[index]['productSkn']); | ||
435 | } | 435 | } |
436 | } | 436 | } |
437 | /*********************************************/ | 437 | /*********************************************/ |
438 | g.selected.push(g.rows[index]); | 438 | g.selected.push(g.rows[index]); |
439 | }else{ | 439 | }else{ |
440 | /**************业务控制 特殊情况**************/ | 440 | /**************业务控制 特殊情况**************/ |
441 | - if(batchOperateShelve){ | ||
442 | - batchOperateShelve.splice($.inArray(g.rows[index]['productSkn'],batchOperateShelve),1); | 441 | + if(window.batchOperateShelve){ |
442 | + window.batchOperateShelve.splice($.inArray(g.rows[index]['productSkn'],window.batchOperateShelve),1); | ||
443 | } | 443 | } |
444 | /********************************************/ | 444 | /********************************************/ |
445 | } | 445 | } |
@@ -452,13 +452,13 @@ grid.prototype = { | @@ -452,13 +452,13 @@ grid.prototype = { | ||
452 | var selected = true; | 452 | var selected = true; |
453 | 453 | ||
454 | /************业务控制 特殊情况****************/ | 454 | /************业务控制 特殊情况****************/ |
455 | - if(batchOperateShelve){ | 455 | + if(window.batchOperateShelve){ |
456 | if($(this).prop("checked")){ | 456 | if($(this).prop("checked")){ |
457 | - if($.inArray(g.rows[$(this).attr("data-index")]['productSkn'], batchOperateShelve) == -1 ){ | ||
458 | - batchOperateShelve.push(g.rows[$(this).attr("data-index")]['productSkn']); | 457 | + if($.inArray(g.rows[$(this).attr("data-index")]['productSkn'], window.batchOperateShelve) == -1 ){ |
458 | + window.batchOperateShelve.push(g.rows[$(this).attr("data-index")]['productSkn']); | ||
459 | } | 459 | } |
460 | }else{ | 460 | }else{ |
461 | - batchOperateShelve.splice($.inArray(g.rows[$(this).attr("data-index")]['productSkn'],batchOperateShelve),1); | 461 | + window.batchOperateShelve.splice($.inArray(g.rows[$(this).attr("data-index")]['productSkn'],window.batchOperateShelve),1); |
462 | } | 462 | } |
463 | } | 463 | } |
464 | /********************************************/ | 464 | /********************************************/ |
-
Please register or login to post a comment