From 2a17b738142a9a4b8b94e47da406975f9658c652 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Fri, 31 May 2024 10:57:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E8=BF=90=E8=90=A5?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=20-=20=E6=B7=BB=E5=8A=A0=E4=B8=8B=E7=BA=A7?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=B8=8B=E7=BA=A7=E9=BB=98=E8=AE=A4=E7=BB=A7?= =?UTF-8?q?=E6=89=BF=E4=B8=8A=E7=BA=A7=E7=9A=84=E5=9C=B0=E5=8C=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=E4=B8=8A=E7=BA=A7=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E4=BF=A1=E6=81=AF=E5=88=99=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/marketing/agent/agent/template/edit.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/marketing/agent/agent/template/edit.vue b/src/views/marketing/agent/agent/template/edit.vue index 782fbc8..32a8930 100644 --- a/src/views/marketing/agent/agent/template/edit.vue +++ b/src/views/marketing/agent/agent/template/edit.vue @@ -696,19 +696,22 @@ export default { this.info.uid = item.uid; this.info.user = item; this.closeStaff(); - }else{ + } + else{ let nowTime = Date.now(); + let info = Object.assign({}, this.info); + this.children_list[String(nowTime)] = { uid: item.uid, - pid: this.info.id || 0, + pid: info.id || 0, agent_type: this.create_role_type, agent_stock: 0, contact_name: item.real_name || item.nickname, contact_phone: item.phone || '', - province_id: 0, - city_id: 0, - area_id: 0, - street_id: 0, + province_id: info.province_id || 0, + city_id: info.city_id || 0, + area_id: info.area_id || 0, + street_id: info.street_id || 0, address: '', lat: '', lng: '',