diff --git a/src/api/substation/substation.js b/src/api/substation/substation.js index 2cc93ad..a358ad0 100644 --- a/src/api/substation/substation.js +++ b/src/api/substation/substation.js @@ -166,3 +166,52 @@ export const queryWarnConfigApi = (data) => { }) } +// 查询有限空间监测设备 - 报警记录 +export const queryWarnSpaceListApi = (data) => { + return request.get(`/base/screen/info/queryInfoWarnSpaceList`, { + params: data + }) +} + +// 查询有限空间当年监测设备 - 报警记录 +export const queryWarnSpaceMonthApi = (data) => { + return request.get(`/base/screen/info/queryInfoWarnSpaceMonth`, { + params: data + }) +} + +// 查询有限空间当年违章类型占比监测设备 - 报警记录 +export const queryWarnSpaceTypeApi = (data) => { + return request.get(`/base/screen/info/queryInfoWarnSpaceType`, { + params: data + }) +} + +// 删除受限空间视频预警 +export const delWarnSpace = (data) => { + return request.post('/base/screen/info/delWarnSpace', data) +} + +// 查询近电感应设备 - 报警记录 +export const queryWarnElectListApi = (data) => { + return request.get(`/base/screen/info/queryInfoWarnElectList`, { + params: data + }) +} + +// 删除近电感应预警 +export const delWarnElect = (data) => { + return request.post('/base/screen/info/delWarnElect', data) +} + +// 查询近电感应参数配置数据 +export const getWarnElectConfigApi = (data) => { + return request.get(`/base/screen/info/getWarnElectConfig`, { + params: data + }) +} + +// 修改近电感应参数配置数据 +export const editConfig = (data) => { + return request.post('/base/screen/info/editConfig', data) +} \ No newline at end of file diff --git a/src/assets/img/pm1.0.png b/src/assets/img/pm1.0.png new file mode 100644 index 0000000..9e62470 Binary files /dev/null and b/src/assets/img/pm1.0.png differ diff --git a/src/components/substation/deformDetect.vue b/src/components/substation/deformDetect.vue index 2776d46..2040b7e 100644 --- a/src/components/substation/deformDetect.vue +++ b/src/components/substation/deformDetect.vue @@ -344,8 +344,8 @@ - - + + { - // if(item.devType === '117') { - // item.angle = item.jcValue + '°' - // } else if(item.dev === '118') { - // item.pull = item.jcValue + 'N' - // } - // }) - // this.detectList = res.data - // }, - // async getEnvironmentData(devId, type) { - // let res = await queryEnvironmentInfoByIdApi({ - // devId - // }) - // if(type === '117') { - // this.angleFirst = res.data.data[0].jcValue - // this.angleList = res.data.data.filter(item => item.jcUnit === '°') - // } else if(type === '118') { - // this.pullFirst = res.data.data[0].jcValue - // this.pullList = res.data.data.filter(item => item.jcUnit === 'N') - // } - // }, + selTowerAngle(val) { console.log(val) this.currentAngleTower = val.devId diff --git a/src/components/substation/gllDetect.vue b/src/components/substation/gllDetect.vue index 48aad89..482318d 100644 --- a/src/components/substation/gllDetect.vue +++ b/src/components/substation/gllDetect.vue @@ -6,6 +6,22 @@ GLL通管监测 +
+ + + +
{{environmentInfoList ? environmentInfoList[8].jcValue : '0'}}°C + >{{environmentInfoList ? environmentInfoList[0].jcValue : '0'}}°C 温度
@@ -38,7 +54,7 @@ {{ environmentInfoList - ? environmentInfoList[9].jcValue + ? environmentInfoList[1].jcValue : '0' }}%rh @@ -46,26 +62,15 @@
- {{ environmentInfoList - ? environmentInfoList[5].jcValue - : '0' - }}db - 噪声 - -
-
- {{ - environmentInfoList - ? environmentInfoList[3].jcValue + ? environmentInfoList[2].jcValue : '0' }}/ugm3 PM1.0 - +
{ + let pm1Arr = list['pm1.0'].map((item) => { return Number(item.jcValue) }) - let loudXList = list['噪声'].map((item) => { + let pm21XList = list['pm1.0'].map((item) => { return item.xtime }) @@ -324,9 +329,6 @@ export default { let pm10Arr = list['pm10'].map((item) => { return Number(item.jcValue) }) - let windSpeedList = list['风速'].map((item) => { - return Number(item.jcValue) - }) // 温度图表 let tempOption = { grid: { @@ -493,114 +495,6 @@ export default { let sdChart = echarts.init(document.querySelector('#sd-chart')) sdChart.setOption(sdOption) - - - // // 风速图表 - // let wetOption = { - // grid: { - // width: '80%', - // height: '60%', - // }, - // tooltip: { - // trigger: 'axis', - // axisPointer: { - // type: 'shadow', - // }, - // valueFormatter: (value) => { - // return value + 'm/s' - // }, - // }, - // xAxis: { - // type: 'category', - // data: wetXList, - // }, - // yAxis: { - // type: 'value', - // name: 'm/s', - // }, - // series: [ - // { - // name: '风速', - // data: windSpeedList, - // type: 'line', - // smooth: true, - // lineStyle: { - // color: '#FE8511', - // }, - // itemStyle: { - // normal: { - // color: '#FE8511', - // }, - // }, - // areaStyle: { - // color: { - // x: 0, - // y: 0, - // x2: 0, - // y2: 1, - // type: 'linear', - // colorStops: [ - // { offset: 0, color: '#F5CC91' }, - // { offset: 1, color: '#F8F6F6' }, - // ], - // }, - // }, - // }, - // ], - // } - // let wetChart = echarts.init(document.querySelector('#wet-chart')) - // wetChart.setOption(wetOption) - // // 噪声图表 - // let loudOption = { - // grid: { - // width: '80%', - // height: '60%', - // }, - // tooltip: { - // trigger: 'axis', - // axisPointer: { - // type: 'shadow', - // }, - // valueFormatter: (value) => { - // return value + '分贝' - // }, - // }, - // xAxis: { - // type: 'category', - // data: loudXList, - // }, - // yAxis: { - // type: 'value', - // name: 'db', - // }, - // series: [ - // { - // name: '噪声', - // data: loudArr, - // type: 'line', - // smooth: true, - // symbol: 'none', - // lineStyle: { - // color: '#4781FC', - // }, - // areaStyle: { - // color: { - // x: 0, - // y: 0, - // x2: 0, - // y2: 1, - // type: 'linear', - // colorStops: [ - // { offset: 0, color: '#CCDBFF' }, - // { offset: 1, color: '#ECF2FF' }, - // ], - // }, - // }, - // }, - // ], - // } - // let loudChart = echarts.init(document.querySelector('#loud-chart')) - // loudChart.setOption(loudOption) // 空气质量图表 let airOption = { grid: { @@ -625,16 +519,31 @@ export default { name: 'ugm3', }, series: [ + { + name: 'PM1.0', + data: pm1Arr, + type: 'line', + lineStyle: { + color: 'cornflowerblue', + }, + itemStyle: { + normal: { + color: 'cornflowerblue', + }, + }, + symbol: 'none', + smooth: true, + }, { name: 'PM2.5', data: pm25Arr, type: 'line', lineStyle: { - color: '#FC8B2D', + color: '#9484FC', }, itemStyle: { normal: { - color: '#FC8B2D', + color: '#9484FC', }, }, symbol: 'none', @@ -645,11 +554,11 @@ export default { data: pm10Arr, type: 'line', lineStyle: { - color: '#4B84FC', + color: '#1db1c0', }, itemStyle: { normal: { - color: '#4B84FC', + color: '#1db1c0', }, }, symbol: 'none', @@ -825,7 +734,6 @@ export default { box-sizing: border-box; padding: 10px 20px; background-color: #eff4fe; - display: flex; align-items: center; justify-content: space-between; color: #000; diff --git a/src/components/substation/powerWorkDetect.vue b/src/components/substation/powerWorkDetect.vue index 05e026b..49082ae 100644 --- a/src/components/substation/powerWorkDetect.vue +++ b/src/components/substation/powerWorkDetect.vue @@ -1,111 +1,113 @@ + @@ -152,17 +146,27 @@ />
+ + + + + +