chengjie месяцев назад: 6
Родитель
Сommit
f49c743082
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/api/yjbdc/yjbdcController.js

+ 4 - 1
src/api/yjbdc/yjbdcController.js

@@ -437,16 +437,19 @@ export async function GetYJBDCArticleList(ctx) {
437
         };
437
         };
438
     }
438
     }
439
     else if (!param.ID){
439
     else if (!param.ID){
440
-        let arr=[],count=0;
440
+        let arr=[],count=0,total=0;
441
         for(let i=0;i<result.length;i++){
441
         for(let i=0;i<result.length;i++){
442
             if (result[i].Flag==0){
442
             if (result[i].Flag==0){
443
                 if (param.PageID>result[i].ID && count<param.PageCount){
443
                 if (param.PageID>result[i].ID && count<param.PageCount){
444
                     arr.push(result[i]);
444
                     arr.push(result[i]);
445
                     count++;
445
                     count++;
446
                 }
446
                 }
447
+                total++;
447
             }
448
             }
448
         }
449
         }
449
         result=arr;
450
         result=arr;
451
+        if (result.length>0)
452
+            result[0].RowsCount=total;
450
     }
453
     }
451
     // console.log(result.length);
454
     // console.log(result.length);
452
     // console.log(result.TodayCount);
455
     // console.log(result.TodayCount);