wuhongyuq 5 年之前
父节点
当前提交
997da2973b

+ 4 - 2
src/layout/companyidentify/newsInfo.vue

@@ -92,7 +92,7 @@
                   :page-size="10"
                   background
                   layout="total, sizes, prev, pager, next, jumper"
-                  :total="total"
+                  :total="totals"
                 >
                 </el-pagination>
               </el-col>
@@ -139,7 +139,7 @@
                   :page-size="10"
                   background
                   layout="total, sizes, prev, pager, next, jumper"
-                  :total="total"
+                  :total="totalss"
                 >
                 </el-pagination>
               </el-col>
@@ -160,6 +160,8 @@ export default {
     shenheTable: null,
     noshenhetable: null,
     total: null,
+    totals: null,
+    totalss: null,
   },
   components: {
     searchInfo,

+ 4 - 2
src/layout/companyup/newsInfo.vue

@@ -94,7 +94,7 @@
                   :page-size="10"
                   background
                   layout="total, sizes, prev, pager, next, jumper"
-                  :total="total"
+                  total="totals"
                 >
                 </el-pagination>
               </el-col>
@@ -141,7 +141,7 @@
                   :page-size="10"
                   background
                   layout="total, sizes, prev, pager, next, jumper"
-                  :total="total"
+                  :total="totalss"
                 >
                 </el-pagination> </el-col
             ></el-tab-pane>
@@ -161,6 +161,8 @@ export default {
     shenheTable: null,
     noshenhetable: null,
     total: null,
+    totals: null,
+    totalss: null,
   },
   components: {
     searchInfo,

+ 14 - 2
src/views/companyidentify/index.vue

@@ -6,7 +6,15 @@
       </el-col>
 
       <el-col :span="24" class="main">
-        <newsInfo :debtTable="debtTable" :total="total" @handleClick="handleClick" :noshenhetable="noshenhetable" :shenheTable="shenheTable"></newsInfo>
+        <newsInfo
+          :debtTable="debtTable"
+          :total="total"
+          :totals="totals"
+          :totalss="totalss"
+          @handleClick="handleClick"
+          :noshenhetable="noshenhetable"
+          :shenheTable="shenheTable"
+        ></newsInfo>
       </el-col>
     </el-col>
   </div>
@@ -33,6 +41,8 @@ export default {
     shenheTable: [],
     noshenhetable: [],
     total: 0,
+    totals: 0,
+    totalss: 0,
   }),
   created() {
     this.search();
@@ -49,7 +59,9 @@ export default {
       this.$set(this, `debtTable`, weishenhe);
       this.$set(this, `shenheTable`, success);
       this.$set(this, `noshenhetable`, shibai);
-      this.$set(this, `total`, res.total);
+      this.$set(this, `total`, weishenhe.length);
+      this.$set(this, `totals`, success.length);
+      this.$set(this, `totalss`, shibai.length);
     },
     handleClick(newid) {
       console.log(newid);

+ 15 - 2
src/views/companyup/index.vue

@@ -8,7 +8,15 @@
         <searchInfo></searchInfo>
       </el-col> -->
       <el-col :span="24" class="main">
-        <newsInfo :debtTable="debtTable" :total="total" @handleClick="handleClick" :noshenhetable="noshenhetable" :shenheTable="shenheTable"></newsInfo>
+        <newsInfo
+          :debtTable="debtTable"
+          :total="total"
+          :totals="totals"
+          :totalss="totalss"
+          @handleClick="handleClick"
+          :noshenhetable="noshenhetable"
+          :shenheTable="shenheTable"
+        ></newsInfo>
       </el-col>
     </el-col>
   </div>
@@ -36,6 +44,8 @@ export default {
     shenheTable: [],
     noshenhetable: [],
     total: 0,
+    totals: 0,
+    totalss: 0,
   }),
   created() {
     this.search();
@@ -51,7 +61,10 @@ export default {
       console.log(shibai);
       console.log(weishenhe);
       console.log(success);
-      this.$set(this, `total`, res.total);
+      success.length;
+      this.$set(this, `total`, weishenhe.length);
+      this.$set(this, `totals`, success.length);
+      this.$set(this, `totalss`, shibai.length);
       this.$set(this, `debtTable`, weishenhe);
       this.$set(this, `shenheTable`, success);
       this.$set(this, `noshenhetable`, shibai);

+ 9 - 12
src/views/institution/index.vue

@@ -9,7 +9,7 @@
           <searchInfo></searchInfo>
         </el-col>
         <el-col :span="24" class="list">
-          <newsInfo :debtTable="debtTable" :total="total" @handleClick="handleClick"></newsInfo>
+          <newsInfo :debtTable="debtTable" :total="totals" :totals="totals" :totalss="totalss" @handleClick="handleClick"></newsInfo>
         </el-col>
       </el-col>
     </el-row>
@@ -47,6 +47,8 @@ export default {
     topTitle: '金融机构',
     debtTable: [],
     total: 0,
+    totals: 0,
+    totalss: 0,
   }),
   created() {
     // this.search();
@@ -96,21 +98,22 @@ export default {
       console.log(status);
 
       const res = await this.query({ skip, limit, ...info });
-      console.log(res.data);
+
       var weishenhe = res.data.filter(item => item.type === '0');
+      console.log(weishenhe);
 
       this.$set(this, `debtTable`, weishenhe);
-      this.$set(this, `total`, res.total);
+      this.$set(this, `total`, weishenhe.length);
     },
     async searchstatus1({ skip = 0, limit = 10, ...info } = {}) {
       console.log(status);
 
       const res = await this.query({ skip, limit, ...info });
-      console.log(res.data);
+
       var weishenhe = res.data.filter(item => item.type === '1');
 
       this.$set(this, `debtTable`, weishenhe);
-      this.$set(this, `total`, res.total);
+      this.$set(this, `totals`, weishenhe.length);
     },
     async searchelse({ skip = 0, limit = 10, ...info } = {}) {
       console.log(status);
@@ -121,14 +124,8 @@ export default {
       console.log(weishenhe);
 
       this.$set(this, `debtTable`, weishenhe);
-      this.$set(this, `total`, res.total);
+      this.$set(this, `totalss`, weishenhe.length);
     },
-
-    // async deleteRow(id) {
-    //   const res = await this.delete(id);
-    //   this.$checkRes(res, '删除成功', '删除失败');
-    //   this.searchInfo();
-    // },
     handleClick(newid) {
       this.$router.push({ path: '/institution/detail', query: { id: newid } });
     },