|
@@ -220,27 +220,31 @@
|
|
const weekInBycategoryList = ServiceProduct.getWeekInByCategory();
|
|
const weekInBycategoryList = ServiceProduct.getWeekInByCategory();
|
|
setTimeout(beginFun("charts_24",weekInBycategoryList,10000,"charts_24"),500);
|
|
setTimeout(beginFun("charts_24",weekInBycategoryList,10000,"charts_24"),500);
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ var pageSizeMonthGoodB = 3;
|
|
|
|
+ var pageIndexMonthGoodB = 0;
|
|
const monthExceptionByCategory = ServiceProduct.getMonthExceptionByCategory();
|
|
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);
|
|
setTimeout(beB,500);
|
|
function beB(){
|
|
function beB(){
|
|
- var lsitMonth = monthExceptionByCategory.slice(pageIndexMonthGood,pageSizeMonthGood);
|
|
|
|
- pageIndexMonthGood = pageSizeMonthGood;
|
|
|
|
- pageSizeMonthGood = pageSizeMonthGood + initSize;
|
|
|
|
|
|
+ var lsitMonth = monthExceptionByCategory.slice(pageIndexMonthGoodB,pageSizeMonthGoodB);
|
|
|
|
+ pageIndexMonthGoodB = pageSizeMonthGoodB;
|
|
|
|
+ pageSizeMonthGoodB = pageSizeMonthGoodB + initSize;
|
|
ChartsService.initBarWithTwoNumberRate("charts_23", lsitMonth,
|
|
ChartsService.initBarWithTwoNumberRate("charts_23", lsitMonth,
|
|
ChartsService.getGridSpanSmall());
|
|
ChartsService.getGridSpanSmall());
|
|
- if(monthExceptionByCategory.length <= pageIndexMonthGood){
|
|
|
|
|
|
+ if(monthExceptionByCategory.length <= pageIndexMonthGoodB){
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
setInterval(beginScrollB,10000);
|
|
setInterval(beginScrollB,10000);
|
|
}
|
|
}
|
|
function beginScrollB(){
|
|
function beginScrollB(){
|
|
- var lsitMonth = monthExceptionByCategory.slice(pageIndexMonthGood,pageSizeMonthGood);
|
|
|
|
- pageIndexMonthGood = pageSizeMonthGood;
|
|
|
|
- pageSizeMonthGood = pageSizeMonthGood + initSize;
|
|
|
|
- if(monthExceptionByCategory.length <= pageIndexMonthGood){
|
|
|
|
- pageIndexMonthGood = 0;
|
|
|
|
- pageSizeMonthGood = initSize;
|
|
|
|
|
|
+ var lsitMonth = monthExceptionByCategory.slice(pageIndexMonthGoodB,pageSizeMonthGoodB);
|
|
|
|
+ pageIndexMonthGoodB = pageSizeMonthGoodB;
|
|
|
|
+ pageSizeMonthGoodB = pageSizeMonthGoodB + initSize;
|
|
|
|
+ if(monthExceptionByCategory.length <= pageIndexMonthGoodB){
|
|
|
|
+ pageIndexMonthGoodB = 0;
|
|
|
|
+ pageSizeMonthGoodB = initSize;
|
|
}
|
|
}
|
|
ChartsService.initBarWithTwoNumberRate("charts_23", lsitMonth,
|
|
ChartsService.initBarWithTwoNumberRate("charts_23", lsitMonth,
|
|
ChartsService.getGridSpanSmall());
|
|
ChartsService.getGridSpanSmall());
|