zengh
2022-05-16 63ad2c3598400370dd7da5534659fd7e768a0a4a
src/views/dataL/dataL.vue
@@ -969,7 +969,7 @@
      this.eventDetails = useD;
    },
    getdata() {
      // const url = `/api/blade-jfpts/equipment/equipment/pageDept?deviceName=${this.myDeviceNumber}&current=1&size=10&pid=`
      // const url = `/api/equipment/equipment/pageDept?deviceName=${this.myDeviceNumber}&current=1&size=10&pid=`
      // axios.get(url)
      var that = this;
      var data = {
@@ -1161,7 +1161,7 @@
      this.startEcharts01();
    },
    getMap() {
      window.frames[1].init("DetailMap", {
      window.frames[0].init("DetailMap", {
        x: this.a.jd,
        y: this.a.wd,
      });
@@ -1192,7 +1192,7 @@
      if (manufacturer == "HK"){
        axios
          .get(
            `/api/blade-jfpts/equipment/equipment/selectEquimentPlayInfo?number=${deviceNumber}&bmp=m3u8&manufacturer=${manufacturer}`
            `/api/equipment/equipment/selectEquimentPlayInfo?number=${deviceNumber}&bmp=m3u8&manufacturer=${manufacturer}`
          )
          .then((result) => {
            that.videoSource = result.data.data.address;
@@ -1314,15 +1314,15 @@
    // this.doEvents();
    // var timel = setTimeout(() => {
    this.$refs.detailMap.onload = () => {
      // window.frames[1].init("DetailMap", {
      // window.frames[0].init("DetailMap", {
      //   x: this.a.jd,
      //   y: this.a.wd,
      // });
      if (window.frames[1].init) {
      if (window.frames[0].init) {
        this.getMap();
      } else {
        // this.re();
        console.log(`没有找到到window.frames[1].init`);
        console.log(`没有找到到window.frames[0].init`);
      }
    };
  },