Commit b4d9cd3f by 匡雅琴

省市组件方法备注

1 parent 8c6d11d9
......@@ -31,7 +31,7 @@
// 获取省市信息(可传值,具体看index.vue文件介绍)
// this.$refs.provinceForm1.provinceList
setTimeout(() => {
this.$refs.provinceForm2.provinceList()
this.$refs.provinceForm2.provinceList
})
// 省市区回显
......
......@@ -137,21 +137,21 @@ export default {
})
}
},
// 选择省
selectProvince(val) {
this.provinceForm.cityName = ''
this.provinceForm.townName = ''
this.cityList = val.districts
// 选择省回调
this.$emit('selectProvince', val.name, val.adcode)
},
// 选择市
selectCity(val) {
this.provinceForm.townName = ''
this.townList = val.districts
// 选择市回调
this.$emit('selectCity', val.name, val.adcode)
},
// 选择区
selectTown(val) {
// 选择区回调
this.$emit('selectTown', val.name, val.adcode)
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!