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) }