From 8ac3a87733b421c1f1cb3b691f946c05bdae02df Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Fri, 06 Jul 2018 13:54:14 +0800
Subject: [PATCH] 设备,监控点维护 完善

---
 src/app/business/entity/grid.ts |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/app/business/entity/grid.ts b/src/app/business/entity/grid.ts
index 5992378..b6f908c 100644
--- a/src/app/business/entity/grid.ts
+++ b/src/app/business/entity/grid.ts
@@ -66,8 +66,10 @@
             this.data = pageData.data.map(row => {
                 row['index'] = index++;
                 return row;
-            });
+            });           
             this.total = pageData.total;
+            const pages = Math.ceil(this.total / this.pageSize);
+            this.pageIndex = this.pageIndex >  pages ? pages : this.pageIndex;
         }
     }
     refreshStatus() {

--
Gitblit v1.8.0