Commit f0bc32ea authored by youjie's avatar youjie

no message

parent 7b85a8d2
......@@ -163,10 +163,31 @@
},
currentData(item,items,type) {
if(type==1){
if(this.type<3){
this.busInfor.desCountryId = item.Country
this.busInfor.desCountryName = item.CountryName
this.busInfor.desCityId = items.City
this.busInfor.desCityName = items.CityName
if(this.type==2&&this.busInfor.desCountryId!=this.busInfor.CountryId){
this.busInfor.CountryId = item.Country
this.busInfor.CountryName = item.CountryName
this.busInfor.CityId = items.City
this.busInfor.CityName = items.CityName
this.busInfor.startaddress = ''
}
}else{
this.busInfor.CountryId = item.Country
this.busInfor.CountryName = item.CountryName
this.busInfor.CityId = items.City
this.busInfor.CityName = items.CityName
if(this.busInfor.desCountryId!=this.busInfor.CountryId){
this.busInfor.desCountryId = item.Country
this.busInfor.desCountryName = item.CountryName
this.busInfor.desCityId = items.City
this.busInfor.desCityName = items.CityName
this.busInfor.destination = ''
}
}
this.busInfor.ThreeCode = item.ThreeCode
}else{
if(this.type<3){
......@@ -179,7 +200,7 @@
this.$emit('change',this.busInfor)
}
}else{
this.busInfor.startaddress = this.busInfor.desCountryName+this.busInfor.desCityName+item.name
this.busInfor.startaddress = this.busInfor.CountryName+this.busInfor.CityName+item.name
this.busInfor.oriLatitude = item.latitude
this.busInfor.oriLongitude = item.longitude
this.$emit('change',this.busInfor)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment