| | |
| | | methods: {}, |
| | | mounted() {}, |
| | | onLoad: function(options) { |
| | | var data = []; |
| | | // console.log(options,"options") |
| | | if (options.data == undefined) { |
| | | data = [{ |
| | | "id": '100000', |
| | | "place": '无数据', |
| | | "state": '0', |
| | | "dtype": '0', |
| | | "size": '300', |
| | | "jd": "114.822311", |
| | | "wd": "28.646341" |
| | | }] |
| | | data = JSON.stringify(data); |
| | | } else { |
| | | data = options.data; |
| | | } |
| | | // console.log(options.html) |
| | | var a = options.html != undefined ? options.html : "xcxMapWz/xcxmap.html"; |
| | | // console.log(a) |
| | | this.urls = "http://web.byisf.com/xcxMapWz/xcxmap.html?data=" + data; |
| | | // this.dataList = data; |
| | | // console.log(this.urls,'url'); |
| | | |
| | | this.urls = "http://web.byisf.com/mapWz/xcxmap.html?id="+ this.$store.state.UserData.jurisdiction + "&userid="+ this.$store.state.UserData.role_id; |
| | | // this.urls = "http://127.0.0.1:5500/mapWz/xcxmap.html?id="+ this.$store.state.UserData.jurisdiction + "&userid="+ this.$store.state.UserData.role_id; |
| | | |
| | | }, |
| | | } |
| | | </script> |