|
@@ -320,7 +320,7 @@ export default {
|
|
|
this.orderInfo.province =
|
|
|
[...this.provinceList.map((v, i) => ({ value: v.id, label: v.name })), ...this.provinceList_cp].find(
|
|
|
item => item.value === val
|
|
|
- )?.name || ''
|
|
|
+ )?.label || ''
|
|
|
// 清除市区街道以及详细地址数据
|
|
|
this.delDataK(1)
|
|
|
lbsAmapRegion({ pid: val }).then(res => {
|
|
@@ -358,7 +358,7 @@ export default {
|
|
|
this.orderInfo.city = [
|
|
|
...this.cityList.map((v, i) => ({ value: v.id, label: v.name })),
|
|
|
...this.cityList_cp
|
|
|
- ].find(item => item.value === val).name
|
|
|
+ ].find(item => item.value === val).label
|
|
|
// 清除区街道以及详细地址数据
|
|
|
this.delDataK(2)
|
|
|
lbsAmapRegion({ pid: val }).then(res => {
|
|
@@ -397,7 +397,7 @@ export default {
|
|
|
this.orderInfo.area = [
|
|
|
...this.areaList.map((v, i) => ({ value: v.id, label: v.name })),
|
|
|
...this.areaList_cp
|
|
|
- ].find(item => item.value === val).name
|
|
|
+ ].find(item => item.value === val).label
|
|
|
// 清除街道以及详细地址数据
|
|
|
this.delDataK(3)
|
|
|
lbsAmapRegion({ pid: val }).then(res => {
|
|
@@ -435,7 +435,7 @@ export default {
|
|
|
this.orderInfo.street = [
|
|
|
...this.streetList.map((v, i) => ({ value: v.id, label: v.name })),
|
|
|
...this.streetList_cp
|
|
|
- ].find(item => item.value === val).name
|
|
|
+ ].find(item => item.value === val).label
|
|
|
// 清除详细地址数据
|
|
|
this.delDataK(4)
|
|
|
}
|