智慧保安互联网APP
shuishen
2021-08-26 47d4935166fdd8cac158c4b054ecd312a63b2270
mapWz/js/vueMain.js
@@ -1,3 +1,9 @@
/*
 * @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: {
@@ -34,13 +40,14 @@
            //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 + '&current=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)
                        }
                    })
@@ -329,6 +336,7 @@
            };
            function showPosition(position) {
                var adCode = position.adCode; //邮政编码
                var nation = position.nation; //中国
                var city = position.city; //城市
@@ -365,6 +373,7 @@
                //TODO 如果出错了调用此方法 
            };
            geolocation.getLocation(showPosition, showErr, options);
        },
@@ -383,6 +392,7 @@
            that.getLocationData(that.geolocation);
        }, 30000);
    },
    wacth: {}
})