quanyawei
2023-10-09 36d9d2226681dbed9469391dc7508e133d4bdec7
fix:风场接口优化
1 files modified
36 ■■■■ changed files
src/components/Wind/Map.vue 36 ●●●● patch | view | raw | blame | history
src/components/Wind/Map.vue
@@ -498,8 +498,8 @@
    this.jingduNew = newLL[1]
    this.weiduNew = newLL[0]
    // 初始化风场数据
    this.windData()
    this.change(0)
    // this.windData()
    // this.change(0)
    this.getParamsData()
    this.windDir()
    this.newDate()
@@ -1540,14 +1540,14 @@
          }
        )
      }, 1000)
      if (this.windState === 1) {
        // this.ws.close()
        this.initData()
        // console.log('请求风场图')
      } else if (this.windState === 2) {
        this.windDir()
        // console.log('请求风向标')
      }
      // if (this.windState === 1) {
      //   console.log('getRegionApiRequest')
      //   this.initData()
      // console.log('请求风场图')
      // } else if (this.windState === 2) {
      // this.windDir()
      // console.log('请求风向标')
      // }
      // 请求设备坐标
      // this.deviceMaker()
      // this.getParamsData()
@@ -1582,14 +1582,14 @@
          }
          // console.log(this.chooseTimeInfo, 'this.chooseTimeInfo ')
          // clearInterval(this.timer)
          if (this.windState === 1) {
            // this.ws.close()
            this.initData()
            // console.log('请求风场图')
          } else if (this.windState === 2) {
            this.windDir()
            // console.log('请求风向标')
          }
          // if (this.windState === 1) {
          // this.ws.close()
          // this.initData()
          // console.log('请求风场图')
          // } else if (this.windState === 2) {
          // this.windDir()
          // console.log('请求风向标')
          // }
          setTimeout(() => {
            this.change(this.changeColor)
            this.times = 300