|
|
|
@ -258,7 +258,7 @@ export default {
|
|
|
|
|
getCommunity(cityId){
|
|
|
|
|
this.$axios({
|
|
|
|
|
method:'get',
|
|
|
|
|
url:process.env.VUE_APP_URL+'manage/community/findAll',
|
|
|
|
|
url:process.env.VUE_APP_URL+'manage/community/findAll',//【api不需要communityCode】
|
|
|
|
|
params:{ //这里是发送给后台的数据
|
|
|
|
|
cityId:cityId
|
|
|
|
|
}
|
|
|
|
@ -269,9 +269,11 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 选择城市后获取该城市小区
|
|
|
|
|
onChange(data){
|
|
|
|
|
this.getCommunity(data[2])
|
|
|
|
|
},
|
|
|
|
|
// 级联筛选
|
|
|
|
|
filter(inputValue, path) {
|
|
|
|
|
return path.some(cityList => cityList.name.toLowerCase().indexOf(inputValue.toLowerCase()) > -1);
|
|
|
|
|
},
|
|
|
|
@ -421,7 +423,5 @@ export default {
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
margin-left: 25px;
|
|
|
|
|
width:90%;
|
|
|
|
|
overflow-y:hidden;
|
|
|
|
|
overflow-x:hidden;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|