zengh
2022-09-14 8ea19a6bb34daab1410f6186992a4c1e90299c92
leafletMapOur/grabOrdersMap/js/vueMain.js
@@ -220,7 +220,7 @@
      beginCome() {
         var data = {
               appenUrl: "http://192.168.0.108:83/",
               butCT: "beginUp",
               butCT: "begin",
               buttype: 0,
               captain: "我",
               city: "南昌市",
@@ -242,7 +242,8 @@
               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解码
@@ -251,8 +252,8 @@
         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({
@@ -272,6 +273,7 @@
                  let out = res.intlat;
                  if (typeof out != "string") {
                     that.addIcon([out[1], out[0]]);
                     console.log(out)
                     //坐标输出
                     let d = {
                        uid: that.data.myid,
@@ -358,7 +360,7 @@
         // 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) => {
@@ -861,6 +863,7 @@
      let that = this;
      if (that.onPosition) {
         that.onPosition.overContinued();
         console.log("关闭地图")
      }
   }
})