| | |
| | | beginCome() { |
| | | var data = { |
| | | appenUrl: "http://192.168.0.108:83/", |
| | | butCT: "beginUp", |
| | | butCT: "begin", |
| | | buttype: 0, |
| | | captain: "我", |
| | | city: "南昌市", |
| | |
| | | team: "你,他,它", |
| | | time: "2022-02-18 14:15:52", |
| | | type: "0", |
| | | url: "http://223.82.109.183:2081/zhba/upload/20220218/67f0c8bf3e7b5024c64133691f265072.ico", |
| | | url: "http://61.131.136.25:2081/zhba/upload/20220218/67f0c8bf3e7b5024c64133691f265072.ico", |
| | | fname:"管理员" |
| | | }, |
| | | that = this; |
| | | //url解码 |
| | |
| | | if (typeof this.data == "string") { |
| | | this.data = JSON.parse(this.data) |
| | | } |
| | | // console.log(this.data) |
| | | if (this.data.isOn, || this.data.butCT == "beginUp") { |
| | | console.log(this.data) |
| | | if (this.data.isOn || this.data.butCT == "beginUp") { |
| | | //队长开启任务 |
| | | let rid = that.data.id; |
| | | that.onPosition = new $getPositions({ |
| | |
| | | let out = res.intlat; |
| | | if (typeof out != "string") { |
| | | that.addIcon([out[1], out[0]]); |
| | | console.log(out) |
| | | //坐标输出 |
| | | let d = { |
| | | uid: that.data.myid, |
| | |
| | | // desc = "+proj=longlat +datum=WGS84 +no_defs ", |
| | | // crs = new L.CRS("EPSG:4326", desc, {}); |
| | | // center = [data[0].wd, data[0].jd], |
| | | // url = `http://223.82.109.183:2082/api/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | // url = `http://106.225.193.35:83/api/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | // url = `http://localhost:89/alarm/alarm/APP-getAlarm?id=${data[0].id}`; |
| | | // this.nowPosition = center; |
| | | // axios.post(url).then((res) => { |
| | |
| | | let that = this; |
| | | if (that.onPosition) { |
| | | that.onPosition.overContinued(); |
| | | console.log("关闭地图") |
| | | } |
| | | } |
| | | }) |