| | |
| | | this.jingduNew = newLL[1]
|
| | | this.weiduNew = newLL[0]
|
| | | // 初始化风场数据
|
| | | this.windData()
|
| | | this.change(0)
|
| | | // this.windData()
|
| | | // this.change(0)
|
| | | this.getParamsData()
|
| | | this.windDir()
|
| | | this.newDate()
|
| | |
| | | this.getParamsData()
|
| | | setTimeout(() => {
|
| | | $.getJSON(
|
| | | 'http://47.99.64.149:8080/screen_api_v2/screen/windAndDeviceDataByArea',
|
| | | 'http://47.99.64.149:8080/api/screen_api_v2/screen/windAndDeviceDataByArea',
|
| | | { monitorPointId: this.$store.state.monitorPointId },
|
| | | (data) => {
|
| | | // 遍历所有图层
|
| | |
| | | }
|
| | | )
|
| | | }, 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()
|
| | |
| | | }
|
| | | // 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
|