Browse Source

未绑定表分页展示

Signed-off-by: hsshuxian <3049816743@qq.com>
hsshuxian 5 months ago
parent
commit
59d51da358
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ems-ui-cloud/src/views/basecfg/boundaryRel/index.vue

+ 5 - 0
ems-ui-cloud/src/views/basecfg/boundaryRel/index.vue

@@ -588,6 +588,7 @@ export default {
     /**分页*/
     handleTabClick(tab) {
       this.reset();
+      this.MeterQueryParams.pageNum = 1;
       if (tab.name === 'area') {
         this.showSearch = true;
         this.getList();
@@ -848,6 +849,7 @@ export default {
         objType = 1;
         listDevice({ ...this.MeterQueryParams, meterCls }).then(response => {
           this.areaUnbound = response.rows;
+          this.total = response.total;
           this.loading = false; // 关闭加载状态
         });
         listByObj(objType, meterCls, this.queryParams.areaCode).then(response => {
@@ -858,6 +860,7 @@ export default {
         objType = 4;
         listDevice({ ...this.MeterQueryParams, meterCls }).then(response => {
           this.organUnbound = response.rows;
+          this.total = response.total;
           this.loading = false;
         })
         listByObj(objType, meterCls, this.queryParams.areaCode).then(response => {
@@ -870,6 +873,7 @@ export default {
         objType = 2;
         listDevice({ ...this.MeterQueryParams, meterCls }).then(response => {
           this.facsUnbound = response.rows;
+          this.total = response.total;
           this.loading = false;
         });
         listByObj(objType, meterCls, this.queryParams.areaCode).then(response => {
@@ -880,6 +884,7 @@ export default {
         objType = 3;
         listDevice({ ...this.MeterQueryParams, meterCls }).then(response => {
           this.deviceUnbound = response.rows;
+          this.total = response.total;
           this.loading = false;
         })
         listByObj(objType, meterCls, this.queryParams.areaCode).then(response => {