diff --git a/src/api/public/login/index.js b/src/api/public/login/index.js index 668cfec..993c490 100644 --- a/src/api/public/login/index.js +++ b/src/api/public/login/index.js @@ -32,7 +32,7 @@ export function allCity(params) { params: params, }) } -// 查找所有小区 +// 查找所有小区【api不需要communityCode】 export function findcommunity(params) { return httpService({ url: `/community/findAll`, diff --git a/src/views/Login/index.vue b/src/views/Login/index.vue index cf7dd33..58a24c6 100644 --- a/src/views/Login/index.vue +++ b/src/views/Login/index.vue @@ -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; }