wuhongyuq 5 年之前
父节点
当前提交
f14f96d332

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

@@ -32,7 +32,7 @@ export default {
     debtTable: [],
     shenheTable: [],
     noshenhetable: [],
-    total: 1,
+    total: 0,
   }),
   created() {
     this.search();
@@ -49,6 +49,7 @@ export default {
       this.$set(this, `debtTable`, weishenhe);
       this.$set(this, `shenheTable`, success);
       this.$set(this, `noshenhetable`, shibai);
+      this.$set(this, `total`, res.total);
     },
     handleClick(newid) {
       console.log(newid);

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

@@ -35,7 +35,7 @@ export default {
     debtTable: [],
     shenheTable: [],
     noshenhetable: [],
-    total: 1,
+    total: 0,
   }),
   created() {
     this.search();
@@ -51,7 +51,7 @@ export default {
       console.log(shibai);
       console.log(weishenhe);
       console.log(success);
-
+      this.$set(this, `total`, res.total);
       this.$set(this, `debtTable`, weishenhe);
       this.$set(this, `shenheTable`, success);
       this.$set(this, `noshenhetable`, shibai);

+ 2 - 1
src/views/companyuser/index.vue

@@ -33,7 +33,7 @@ export default {
     companyuserList, //其他用户列表
   },
   data: () => ({
-    total: 1,
+    total: 0,
     topTitle: '企业用户',
     display: 'block',
     debtTable: [
@@ -59,6 +59,7 @@ export default {
       const res = await this.query({ skip, limit, ...info });
       console.log(res);
       this.$set(this, `debtTable`, res.data);
+      this.$set(this, `total`, res.total);
     },
     // 删除
     deleteRow(id) {

+ 4 - 1
src/views/institution/index.vue

@@ -46,7 +46,7 @@ export default {
     display: 'block',
     topTitle: '金融机构',
     debtTable: [],
-    total: 1,
+    total: 0,
   }),
   created() {
     // this.search();
@@ -100,6 +100,7 @@ export default {
       var weishenhe = res.data.filter(item => item.type === '0');
 
       this.$set(this, `debtTable`, weishenhe);
+      this.$set(this, `total`, res.total);
     },
     async searchstatus1({ skip = 0, limit = 10, ...info } = {}) {
       console.log(status);
@@ -109,6 +110,7 @@ export default {
       var weishenhe = res.data.filter(item => item.type === '1');
 
       this.$set(this, `debtTable`, weishenhe);
+      this.$set(this, `total`, res.total);
     },
     async searchelse({ skip = 0, limit = 10, ...info } = {}) {
       console.log(status);
@@ -119,6 +121,7 @@ export default {
       console.log(weishenhe);
 
       this.$set(this, `debtTable`, weishenhe);
+      this.$set(this, `total`, res.total);
     },
 
     // async deleteRow(id) {

+ 1 - 1
src/views/otheruser/index.vue

@@ -35,7 +35,7 @@ export default {
     topTitle: '其他用户',
     display: 'ck',
     debtTable: [],
-    total: '',
+    total: 0,
   }),
   created() {
     this.searchInfo();

+ 1 - 0
src/views/region/index.vue

@@ -47,6 +47,7 @@ export default {
     async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
       const res = await this.query({ skip, limit, ...info });
       this.$set(this, `debtTable`, res.data);
+      this.$set(this, `total`, res.total);
     },
     // 添加
     add() {