bibi 3 years ago
parent 4d652df0a1
commit 5170215707

@ -32,7 +32,7 @@ export function allCity(params) {
params: params, params: params,
}) })
} }
// 查找所有小区 // 查找所有小区【api不需要communityCode】
export function findcommunity(params) { export function findcommunity(params) {
return httpService({ return httpService({
url: `/community/findAll`, url: `/community/findAll`,

@ -258,7 +258,7 @@ export default {
getCommunity(cityId){ getCommunity(cityId){
this.$axios({ this.$axios({
method:'get', method:'get',
url:process.env.VUE_APP_URL+'manage/community/findAll', url:process.env.VUE_APP_URL+'manage/community/findAll',//apicommunityCode
params:{ // params:{ //
cityId:cityId cityId:cityId
} }
@ -269,9 +269,11 @@ export default {
}) })
}, },
//
onChange(data){ onChange(data){
this.getCommunity(data[2]) this.getCommunity(data[2])
}, },
//
filter(inputValue, path) { filter(inputValue, path) {
return path.some(cityList => cityList.name.toLowerCase().indexOf(inputValue.toLowerCase()) > -1); return path.some(cityList => cityList.name.toLowerCase().indexOf(inputValue.toLowerCase()) > -1);
}, },
@ -421,7 +423,5 @@ export default {
margin-top: 20px; margin-top: 20px;
margin-left: 25px; margin-left: 25px;
width:90%; width:90%;
overflow-y:hidden;
overflow-x:hidden;
} }
</style> </style>

Loading…
Cancel
Save