|
@@ -221,8 +221,30 @@
|
|
|
setTimeout(beginFun("charts_24",weekInBycategoryList,10000,"charts_24"),500);
|
|
|
|
|
|
const monthExceptionByCategory = ServiceProduct.getMonthExceptionByCategory();
|
|
|
- setTimeout(beginFunA("charts_23",monthExceptionByCategory,10000,"charts_23"),500);
|
|
|
-
|
|
|
+ // setTimeout(beginFunA("charts_23",monthExceptionByCategory,10000,"charts_23"),500);
|
|
|
+ setTimeout(beB,500);
|
|
|
+ function beB(){
|
|
|
+ var lsitMonth = monthExceptionByCategory.slice(pageIndexMonthGood,pageSizeMonthGood);
|
|
|
+ pageIndexMonthGood = pageSizeMonthGood;
|
|
|
+ pageSizeMonthGood = pageSizeMonthGood + initSize;
|
|
|
+ ChartsService.initBarWithTwoNumberRate("charts_23", lsitMonth,
|
|
|
+ ChartsService.getGridSpanSmall());
|
|
|
+ if(monthExceptionByCategory.length <= pageIndexMonthGood){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ setInterval(beginScrollB,10000);
|
|
|
+ }
|
|
|
+ function beginScrollB(){
|
|
|
+ var lsitMonth = monthExceptionByCategory.slice(pageIndexMonthGood,pageSizeMonthGood);
|
|
|
+ pageIndexMonthGood = pageSizeMonthGood;
|
|
|
+ pageSizeMonthGood = pageSizeMonthGood + initSize;
|
|
|
+ if(monthExceptionByCategory.length <= pageIndexMonthGood){
|
|
|
+ pageIndexMonthGood = 0;
|
|
|
+ pageSizeMonthGood = initSize;
|
|
|
+ }
|
|
|
+ ChartsService.initBarWithTwoNumberRate("charts_23", lsitMonth,
|
|
|
+ ChartsService.getGridSpanSmall());
|
|
|
+ }
|
|
|
|
|
|
const monthGoodList = ServiceProduct.getMonthGood();
|
|
|
setTimeout(beA,500);
|