|
@@ -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 } });
|
|
|
},
|