| | |
| | | */ |
| | | export const useOptions = Behavior({ |
| | | data: { |
| | | time:'', |
| | | time: '', |
| | | }, |
| | | methods: { |
| | | setLocation(e) { |
| | |
| | | locationValue, |
| | | } = e.detail; |
| | | this.setData({ |
| | | provinceName, |
| | | cityName, |
| | | districtName, |
| | | townName, |
| | | provinceCode, |
| | | cityCode, |
| | | districtCode, |
| | | townCode, |
| | | locationValue, |
| | | location: { |
| | | provinceName, |
| | | cityName, |
| | | districtName, |
| | | townName, |
| | | provinceCode, |
| | | cityCode, |
| | | districtCode, |
| | | townCode, |
| | | locationValue, |
| | | }, |
| | | }); |
| | | }, |
| | | initLocation(e) { |
| | |
| | | // 行政区划切换时,获取新的线上监管信息以及线下巡查监管信息 |
| | | onLocationChange(e) { |
| | | this.setLocation(e); |
| | | this.fetchSupervision(); |
| | | this.fetchInspection(); |
| | | this._startLoad(); |
| | | }, |
| | | |
| | | // 时间更改 |