Commit b1809dd1 authored by van.chen's avatar van.chen

修改公司逻辑

parent af6164a3
......@@ -67,7 +67,7 @@ export class CompanyComponent implements OnInit {
}
getCitys(province, city) {
this.api.city.getByProvince([{province}, (data) => {
this.api.city.getByProvince([{province: province ? province : this.req.province}, (data) => {
if (data.constructor === Array) {
this.citys = data;
this.req.city = city;
......@@ -78,7 +78,7 @@ export class CompanyComponent implements OnInit {
}
getAreas(city, area) {
this.api.area.getByCity([{city}, (data) => {
this.api.area.getByCity([{city: city ? city : this.req.city}, (data) => {
if (data.constructor === Array) {
this.areas = data;
this.req.area = area;
......
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