| | |
| | | <workItem from="1679296917474" duration="8000" /> |
| | | <workItem from="1680243193398" duration="162000" /> |
| | | <workItem from="1680502666801" duration="6000" /> |
| | | <workItem from="1683791620023" duration="3000" /> |
| | | </task> |
| | | <task id="LOCAL-00001" summary="处理详情页侧面菜单不消失"> |
| | | <created>1627269084478</created> |
| | |
| | | // this.dateFormat = currentDate.toString()
|
| | | const aData = new Date()
|
| | | const month = aData.getMonth() < 9 ? '0' + (aData.getMonth() + 1) : aData.getMonth() + 1
|
| | | const date = aData.getDate() |
| | | const date = aData.getDate() < 10 ? '0' + aData.getDate() : aData.getDate()
|
| | | const hour = aData.getHours()
|
| | | const currentDate = aData.getFullYear() + '-' + month + '-' + date + ' ' + hour + ':00'
|
| | | this.dateFormat = currentDate.toString()
|
| | |
| | | this.times = 300
|
| | | }, 100)
|
| | | }
|
| | | this.currentHour();
|
| | | }, 1000)
|
| | | },
|
| | | // 初始化地图容器
|
| | |
| | | // const baseUrl = 'http://192.168.0.42:8081/' // lzj |
| | | // const baseUrl = 'http://192.168.0.33:8081/' // yy |
| | | // const baseUrl = 'http://192.168.0.25:8081' // jj |
| | | // const baseUrl = 'http://192.168.0.33:8085/'// swb |
| | | // const baseUrl = 'http://192.168.0.33:8081/' // new swb |
| | | // const baseUrl = 'http://192.168.0.11:8085/'// swb |
| | | // const baseUrl = 'http://192.168.0.11:8081/' // new swb |
| | | // const baseUrl = 'http://121.43.179.139:8080' |
| | | // const baseUrl = 'http://192.168.0.33:8085/' |
| | | // const baseUrl = 'http://192.168.0.33:8081/' |
| | |
| | | { |
| | | sensorName: 'SO2', |
| | | unit: 'ug/m³', |
| | | tab1: '50', |
| | | tab2: '150', |
| | | tab3: '475', |
| | | tab1: '150', |
| | | tab2: '500', |
| | | tab3: '650', |
| | | tab4: '800', |
| | | tab5: '1600', |
| | | tab6: '2100', |
| | | tab5: '', |
| | | tab6: '', |
| | | }, |
| | | { |
| | | sensorName: 'NO2', |
| | | unit: 'ug/m³', |
| | | tab1: '40', |
| | | tab2: '80', |
| | | tab3: '180', |
| | | tab4: '280', |
| | | tab5: '565', |
| | | tab6: '750', |
| | | tab1: '100', |
| | | tab2: '200', |
| | | tab3: '700', |
| | | tab4: '1200', |
| | | tab5: '2340', |
| | | tab6: '3090', |
| | | }, |
| | | { |
| | | sensorName: 'CO', |
| | | unit: 'mg/m³', |
| | | tab1: '2', |
| | | tab2: '4', |
| | | tab3: '14', |
| | | tab4: '24', |
| | | tab5: '36', |
| | | tab6: '48', |
| | | tab1: '5', |
| | | tab2: '10', |
| | | tab3: '35', |
| | | tab4: '60', |
| | | tab5: '90', |
| | | tab6: '120', |
| | | }, |
| | | { |
| | | sensorName: 'O3', |
| | |
| | | point.a21005 = parseFloat(value.a21005).toFixed(3) |
| | | point.a05024 = parseInt(value.a05024) |
| | | point.a99054 = parseFloat(value.a99054).toFixed(3) |
| | | if ( |
| | | value.dustld - 0 !== 0 && |
| | | value.dustld - 0 < 150 && |
| | | (that.carMac === 'p5dnd7a0243622' || |
| | | that.carMac === 'p5dnd7a0243625') |
| | | ) { |
| | | point.dustld = 200 |
| | | } else if ( |
| | | value.dustld - 0 !== 0 && |
| | | value.dustld - 0 >= 150 && |
| | | value.dustld - 0 <= 180 && |
| | | (that.carMac === 'p5dnd7a0243622' || |
| | | that.carMac === 'p5dnd7a0243625') |
| | | ) { |
| | | point.dustld = 220 |
| | | } else if ( |
| | | value.dustld - 0 !== 0 && |
| | | value.dustld - 0 > 180 && |
| | | value.dustld - 0 <= 200 && |
| | | (that.carMac === 'p5dnd7a0243622' || |
| | | that.carMac === 'p5dnd7a0243625') |
| | | ) { |
| | | point.dustld = 230 |
| | | } else { |
| | | point.dustld = value.dustld - 0 |
| | | } |
| | | // if ( |
| | | // value.dustld - 0 !== 0 && |
| | | // value.dustld - 0 < 150 && |
| | | // (that.carMac === 'p5dnd7a0243622' || |
| | | // that.carMac === 'p5dnd7a0243625') |
| | | // ) { |
| | | // point.dustld = 200 |
| | | // } else if ( |
| | | // value.dustld - 0 !== 0 && |
| | | // value.dustld - 0 >= 150 && |
| | | // value.dustld - 0 <= 180 && |
| | | // (that.carMac === 'p5dnd7a0243622' || |
| | | // that.carMac === 'p5dnd7a0243625') |
| | | // ) { |
| | | // point.dustld = 220 |
| | | // } else if ( |
| | | // value.dustld - 0 !== 0 && |
| | | // value.dustld - 0 > 180 && |
| | | // value.dustld - 0 <= 200 && |
| | | // (that.carMac === 'p5dnd7a0243622' || |
| | | // that.carMac === 'p5dnd7a0243625') |
| | | // ) { |
| | | // point.dustld = 230 |
| | | // } else { |
| | | // point.dustld = value.dustld - 0 |
| | | // } |
| | | } |
| | | // point.dustld = value.dustld - 0 |
| | | point.dustld = value.dustld - 0 |
| | | point.times = value.time |
| | | trackPoints.push(point) |
| | | } |
| | |
| | | var points = [] |
| | | points.push(trackPoints[0]) |
| | | for (var i = 1; i < trackPoints.length; i++) { |
| | | var flag = true |
| | | // var flag = true |
| | | var point1 = trackPoints[i] |
| | | for (var j = 0; j < points.length; j++) { |
| | | var point2 = points[j] |
| | |
| | | flag = false |
| | | } |
| | | } |
| | | points.push(point1) |
| | | console.log(points,'num'); |
| | | if (flag) { |
| | | points.push(point1) |
| | | // console.log(points,'num'); |
| | | } |
| | | } |
| | | |