优化:运营中心 - 添加下级时,下级默认继承上级的地区信息,上级不存在地区信息则为空

This commit is contained in:
wuhui_zzw 2024-05-31 10:57:02 +08:00
parent 9df10f8a0b
commit 2a17b73814
1 changed files with 9 additions and 6 deletions

View File

@ -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: '',