|
@@ -130,8 +130,7 @@ export default {
|
|
|
watch: {
|
|
|
selectedOptions:{
|
|
|
handler(newValue, oldValue) {
|
|
|
- console.log(CodeToText[newValue[1]])
|
|
|
- this.province=newValue[0]
|
|
|
+ this.province=CodeToText[newValue[0]]
|
|
|
this.selectP(this.province)
|
|
|
this.city = CodeToText[newValue[1]]
|
|
|
this.selectC(CodeToText[newValue[1]])
|
|
@@ -345,6 +344,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
selectP(val) {
|
|
|
+ this.province=CodeToText[val]
|
|
|
if (this.status) {
|
|
|
this.$emit('provinceChange', val)
|
|
|
this.loadmap(val)
|
|
@@ -360,6 +360,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
selectD(val) {
|
|
|
+ this.district=CodeToText[val]
|
|
|
if (this.status) {
|
|
|
this.loadmap(val)
|
|
|
}
|
|
@@ -373,6 +374,7 @@ export default {
|
|
|
_data.push(this.type)
|
|
|
this.$emit('addressListen',_data)
|
|
|
this.$parent.blurMap()
|
|
|
+ console.log("submit")
|
|
|
}
|
|
|
},
|
|
|
}
|