From 437944f7efda35f9d791e967c38857974473bd4d Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 17 十月 2023 12:00:09 +0800 Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/crm-web into wn --- 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