| | |
| | | // 总条数,根据接口获取数据长度(注意:这里不能为空)
|
| | | totalCount: 0,
|
| | | // 个数选择器(可修改)
|
| | | pageSizes: [10, 20, 30, 40],
|
| | | pageSizes: [10, 50, 100, 200],
|
| | | // 默认每页显示的条数(可修改)
|
| | | PageSize: 20,
|
| | | factorOptions: [
|
| | |
| | | window.deviceDetail = this.deviceDetail
|
| | | },
|
| | | created () {
|
| | | if (this.$store.state.orgId === 72) {
|
| | | this.changeColor = 1
|
| | | }
|
| | | const newLL = this.bd09togcj02(this.jingduNew, this.weiduNew) // 百度经纬度转高德经纬度
|
| | | this.jingduNew = newLL[1]
|
| | | this.weiduNew = newLL[0]
|
| | |
| | | this.indexsLaber = 0
|
| | | this.clickmac = marker.inforData.mac
|
| | | this.childerItem = marker.inforData
|
| | | console.log('this.defaultData', this.defaultData)
|
| | | this.defaultData.forEach(item => {
|
| | | item.devices.forEach((dev, index) => {
|
| | | if (dev.mac === marker.inforData.mac) {
|
| | | this.farterItem = item
|
| | | this.indexsLaber = index
|
| | | }
|
| | | })
|
| | | if (item.devices) {
|
| | | item.devices.forEach((dev, index) => {
|
| | | if (dev.mac === marker.inforData.mac) {
|
| | | this.farterItem = item
|
| | | this.indexsLaber = index
|
| | | }
|
| | | })
|
| | | }
|
| | | })
|
| | | this.$request({
|
| | | url: '/historyFiveMinutely/queryFiveDataByMac',
|
| | |
| | | console.log('level', level)
|
| | | if (deviceDetails.a01008) {
|
| | | var windDirs = dushu === '-' ? 0 : Number(dushu)
|
| | | console.log('windDirs', windDirs)
|
| | | WWindUtil.windValueFormat(windDirs)
|
| | | console.log('windDirs', WWindUtil.windValueFormat(windDirs))
|
| | | windDeg = windDirs
|
| | | windTip = 'inline'
|
| | | if (windDirs === 0 || windDirs === '-') {
|
| | | windDir = '-'
|
| | | windTip = 'none'
|
| | | } else if (windDirs > 0 && windDirs < 90) {
|
| | | windDir = '东北风'
|
| | | windTip = 'inline'
|
| | | } else if (windDirs === 90) {
|
| | | windDir = '东风'
|
| | | windTip = 'inline'
|
| | | } else if (windDirs > 90 && windDirs < 180) {
|
| | | windDir = '东南风'
|
| | | windTip = 'inline'
|
| | | } else if (windDirs === 180) {
|
| | | windDir = '南风'
|
| | | windTip = 'inline'
|
| | | } else if (windDirs > 180 && windDirs < 270) {
|
| | | windDir = '西南风'
|
| | | windTip = 'inline'
|
| | | } else if (windDirs === 270) {
|
| | | windDir = '西风'
|
| | | windTip = 'inline'
|
| | | } else if (windDirs > 270 && windDirs < 360) {
|
| | | windDir = '西北风'
|
| | | } else {
|
| | | windDir = WWindUtil.windValueFormat(windDirs)
|
| | | windTip = 'inline'
|
| | | }
|
| | | }
|