From da3dbb56388ae49097e50ded584ed2abb7f5022d Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 17 十月 2023 14:16:25 +0800
Subject: [PATCH] bug修复(5243)
---
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