From cdf783f0924c07b3555a90c36c140f902247c2b3 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期二, 17 十月 2023 20:49:48 +0800 Subject: [PATCH] feat: 更换退款接口,修复取值错误问题 --- src/views/other/payment/collectionPlan/index.vue | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/other/payment/collectionPlan/index.vue b/src/views/other/payment/collectionPlan/index.vue index b118f45..0751b85 100644 --- a/src/views/other/payment/collectionPlan/index.vue +++ b/src/views/other/payment/collectionPlan/index.vue @@ -136,7 +136,7 @@ } else { this.serviceContractId = this.addConfig.id } - // this.getData() + this.getData() }, methods: { setTable() { @@ -169,19 +169,21 @@ // 璇锋眰鏁版嵁 async getData() { this.loading = true + console.log(this.addConfig) await getCollectionPlanList({ - serviceContractId: this.serviceContractId + sourceType: this.addConfig.keywordType === "閿�鍞槑缁嗗崟" ? 1 : 2, + sourceId: this.addConfig.id }) .then((res) => { - if (res.data.code === 200) { - if (res.data.data.data && res.data.data.data.length > 0) { - const list = res.data.data.data.map((item) => { + if (res.code === 200) { + if (res.data.data && res.data.data.length > 0) { + const list = res.data.data.map((item) => { return { ...item } }) this.tableList.tableInfomation = list || [] - this.pagerOptions.totalCount = res.data.data.count + this.pagerOptions.totalCount = res.data.count } else { this.tableList.tableInfomation = [] } -- Gitblit v1.8.0