|
@@ -8,7 +8,7 @@
|
|
|
<financeClaimIndexInfo @clickBtn="clickBtn"></financeClaimIndexInfo>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="main">
|
|
|
- <financeclaimsList :debtTable="debtTable" :total="total" @pagechange="pagechange"></financeclaimsList>
|
|
|
+ <financeclaimsList :debtTable="debtTable" :total="total" @pagechange="pagechange" @ljdelete="ljdelete"></financeclaimsList>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</div>
|
|
@@ -29,20 +29,22 @@ export default {
|
|
|
financeclaimsList, //债权产品列表
|
|
|
},
|
|
|
data: () => ({
|
|
|
- topTitle: '债权需求',
|
|
|
+ topTitle: '债权产品列表',
|
|
|
display: 'block',
|
|
|
debtTable: [],
|
|
|
total: '',
|
|
|
- jgpro: '0',
|
|
|
+ cpname: '',
|
|
|
+ jgname:''
|
|
|
+
|
|
|
}),
|
|
|
created() {
|
|
|
this.financeclaimsList();
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
- ...financeclaims(['fclaimsList', 'orUpdate', 'one', 'dupdate']),
|
|
|
- async financeclaimsList({ skip = 1, limit = 10, uid = '5e79672d0217a7336048b4c5' } = {}) {
|
|
|
- const res = await this.fclaim({ skip, limit, uid });
|
|
|
+ ...financeclaims(['fclaimsList', 'orUpdate', 'one', 'dupdate','fetch','update']),
|
|
|
+ async financeclaimsList({ skip = 1, limit = 10, uid = '5e79672d0217a7336048b4c5' ,type=1} = {}) {
|
|
|
+ const res = await this.fclaimsList({ skip, limit, uid ,type});
|
|
|
this.$set(this, `debtTable`, res.res);
|
|
|
this.$set(this, `total`, res.total);
|
|
|
},
|
|
@@ -53,33 +55,49 @@ export default {
|
|
|
async pagechange(data) {
|
|
|
var skip = data.skip;
|
|
|
var limit = 10;
|
|
|
- var jg_id;
|
|
|
- if (this.jgpro == '0') {
|
|
|
- jg_id = '0';
|
|
|
- } else {
|
|
|
- jg_id = '5e79672d0217a7336048b4c5';
|
|
|
- }
|
|
|
- const res = await this.fclaim({ skip, limit, jg_id });
|
|
|
+ var innewname=this.jgname;
|
|
|
+ var name = this.cpname ;
|
|
|
+ var uid = '5e79672d0217a7336048b4c5' ;
|
|
|
+ var type=1;
|
|
|
+ const res = await this.fclaimsList({ skip, limit, uid ,type,innewname,name});
|
|
|
this.$set(this, `debtTable`, res.res);
|
|
|
this.$set(this, `total`, res.total);
|
|
|
},
|
|
|
//查询
|
|
|
- async clickBtn(message) {
|
|
|
- this.jgpro = message;
|
|
|
+ async clickBtn(data) {
|
|
|
+ var innewname=data.innewname;
|
|
|
+ var name = data.name;
|
|
|
+ this.cpname = data.name;
|
|
|
+ this.jgname = data.innewname;
|
|
|
var skip = 0;
|
|
|
var limit = 10;
|
|
|
- if (message == 1) {
|
|
|
- var jg_id = '0';
|
|
|
- const res = await this.fclaim({ skip, limit, jg_id });
|
|
|
- this.$set(this, `debtTable`, res.res);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
- } else {
|
|
|
- var jg_id = '5e79672d0217a7336048b4c5';
|
|
|
- const res = await this.fclaim({ skip, limit, jg_id });
|
|
|
- this.$set(this, `debtTable`, res.res);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
- }
|
|
|
+ var uid = '5e79672d0217a7336048b4c5' ;
|
|
|
+ var type=1;
|
|
|
+ const res = await this.fclaimsList({ skip, limit, uid ,type,innewname,name});
|
|
|
+ this.$set(this, `debtTable`, res.res);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
},
|
|
|
+
|
|
|
+ async ljdelete(data){
|
|
|
+ var finid = data.delid;
|
|
|
+ let finalres;
|
|
|
+ let res = await this.fetch(finid);
|
|
|
+ finalres=res.data;
|
|
|
+ finalres.status="2";
|
|
|
+ var delres = await this.update(finalres);
|
|
|
+ if (delres.errcode === 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '删除信息成功',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ message: '删除信息失败',
|
|
|
+ type: 'error',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.financeclaimsList();
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -91,4 +109,9 @@ export default {
|
|
|
.top {
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
}
|
|
|
+.search {
|
|
|
+ width: 97%;
|
|
|
+ height: 35px;
|
|
|
+ margin: 20px;
|
|
|
+}
|
|
|
</style>
|