| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-08-26 16:22:11 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-08-26 16:22:11 |
| | | */ |
| | | var me = new Vue({ |
| | | el: '#mapVue', |
| | | data: { |
| | |
| | | //url解码 |
| | | |
| | | var jurisdictionId = this.GetQueryString('id') |
| | | |
| | | this.userId = this.GetQueryString('userid') |
| | | |
| | | axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999&jurisdiction=' + jurisdictionId).then((res) => { |
| | | axios.get('http://223.82.109.183:2080/api/blade-user/pages?dispatch=0&jurisdiction=' + jurisdictionId + '¤t=1&size=999999').then((res) => { |
| | | |
| | | if (res.data.data.records.length > 0) { |
| | | res.data.data.records.forEach(item => { |
| | | if (item.longitude && item.latitude) { |
| | | if (item.longitude && item.latitude && item.roleId != this.userId) { |
| | | resultData.push(item) |
| | | } |
| | | }) |
| | |
| | | }; |
| | | |
| | | function showPosition(position) { |
| | | |
| | | var adCode = position.adCode; //邮政编码 |
| | | var nation = position.nation; //中国 |
| | | var city = position.city; //城市 |
| | |
| | | //TODO 如果出错了调用此方法 |
| | | }; |
| | | |
| | | |
| | | geolocation.getLocation(showPosition, showErr, options); |
| | | |
| | | }, |
| | |
| | | that.getLocationData(that.geolocation); |
| | | |
| | | }, 30000); |
| | | |
| | | }, |
| | | wacth: {} |
| | | }) |