chengjie 4 months ago
parent
commit
f49c743082
1 changed files with 4 additions and 1 deletions
  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 439
     else if (!param.ID){
440
-        let arr=[],count=0;
440
+        let arr=[],count=0,total=0;
441 441
         for(let i=0;i<result.length;i++){
442 442
             if (result[i].Flag==0){
443 443
                 if (param.PageID>result[i].ID && count<param.PageCount){
444 444
                     arr.push(result[i]);
445 445
                     count++;
446 446
                 }
447
+                total++;
447 448
             }
448 449
         }
449 450
         result=arr;
451
+        if (result.length>0)
452
+            result[0].RowsCount=total;
450 453
     }
451 454
     // console.log(result.length);
452 455
     // console.log(result.TodayCount);