From 695ebbcc71c47587d2befa845f85dabfc6c217b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Fri, 25 Jul 2025 17:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/typings/api.d.ts | 2 ++ src/views/crmpc/customer/Edit.vue | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 25d1677..5b508e8 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -182,6 +182,8 @@ declare namespace Api { /** 列表数据 */ interface CrmListData { + country_id: any + channel_id: any data: CrmInfo[] current: number size: number diff --git a/src/views/crmpc/customer/Edit.vue b/src/views/crmpc/customer/Edit.vue index 3b1b692..beb81fd 100644 --- a/src/views/crmpc/customer/Edit.vue +++ b/src/views/crmpc/customer/Edit.vue @@ -135,8 +135,11 @@ try { // 这里调用获取品牌列表的接口 const res = await CrmService.getcustomerdetail({ id: customerId }) + res.channel_id = res.channel_id==0 ? '' : res.channel_id + res.country_id = res.country_id==0 ? '' : res.country_id customerInfo.value = res form.value = res + } catch (error) { console.log(error) }