Commit 448399d7 authored by lixy's avatar lixy

营地列表

parent 5c5109fd
......@@ -428,7 +428,12 @@
},
getAddrStr(campsite) {
let regions = getRegionByCodes([campsite.addrProvince, campsite.addrCity, campsite.addrTown]);
return regions[0].name + ' ' + regions[1].name + ' ' + regions[2].name + ' ';
let address = [];
for(let i = 0; i < regions.length; i++){
address.push(regions[i].name);
}
return address.join(" ");
// return regions[0].name + ' ' + regions[1].name + ' ' + regions[2].name + ' ';
},
handleFilter() {
this.$refs.queryForm.validate(valid => {
......@@ -504,7 +509,7 @@
});
},
choiceImg(){
this.$refs.filElem.dispatchEvent(new MouseEvent('click'))
this.$refs.filElem.dispatchEvent(new MouseEvent('click'))
},
getFile(event){
let formData = new FormData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment