diff --git a/src/api/substation/substation.js b/src/api/substation/substation.js index 7327b6d..1f993b7 100644 --- a/src/api/substation/substation.js +++ b/src/api/substation/substation.js @@ -75,6 +75,13 @@ export const queryLimitSpaceApi = (data) => { }) } +// 查询有限空间监测设备 - new +export const queryNewLimitSpaceApi = (data) => { + return request.get(`/base/screen/info/getPitDevAttributeRecordByDay`, { + params: data + }) +} + // 查询组塔监测设备 - 当日监测 export const queryTowerTodayApi = (data) => { return request.get(`/base/screen/info/getTowerDevAttributeRecordByDay`, { diff --git a/src/components/substation/envirDetect.vue b/src/components/substation/envirDetect.vue index 01ca406..951648f 100644 --- a/src/components/substation/envirDetect.vue +++ b/src/components/substation/envirDetect.vue @@ -140,7 +140,8 @@ import * as echarts from 'echarts' import { queryDeviceByProApi, queryEnvironmentInfoByIdApi, - queryChartsInfoByIdApi + queryChartsInfoByIdApi, + queryWarnInfoByIdApi } from '@/api/substation/substation' export default { components: { diff --git a/src/components/substation/pitDetect.vue b/src/components/substation/pitDetect.vue index 634aab4..6769c79 100644 --- a/src/components/substation/pitDetect.vue +++ b/src/components/substation/pitDetect.vue @@ -5,7 +5,7 @@
- 组塔检测
+ 基坑检测
@@ -175,7 +175,9 @@
import {
queryDeviceByProApi,
queryPitDataApi,
- queryLimitSpaceApi
+ queryLimitSpaceApi,
+ queryNewLimitSpaceApi,
+ queryEnvironmentInfoByIdApi
} from '@/api/substation/substation'
import * as echarts from 'echarts'
export default {
@@ -191,21 +193,13 @@ export default {
name: 'pitDetect',
data() {
return {
- currentPit: 1,
+ environmentInfoList: undefined,
+ currentPit: undefined,
pitVal: undefined,
pitRange: [],
// 暂定 0离线 1报警 2在线
pitList: [
- { id: 1, status: 1 },
- { id: 2, status: 2 },
- { id: 3, status: 0 },
- { id: 4, status: 0 },
- { id: 5, status: 2 },
- { id: 6, status: 2 },
- { id: 7, status: 1 },
- { id: 8, status: 1 },
- { id: 9, status: 2 },
- { id: 10, status: 2 },
+
],
todayRecordList: []
}
@@ -228,15 +222,23 @@ export default {
})
if(res.data.data.length !== 0) {
this.pitVal = res.data.data[0].devId
+ this.pitList = res.data.data
this.pitRange = res.data.data.map(item => {
return {
label: item.devName,
value: item.devId
}
})
+ await this.getEnvironmentData(this.pitVal)
await this.getPitData(this.pitVal)
}
},
+ async getEnvironmentData(devId) {
+ let res = await queryEnvironmentInfoByIdApi({
+ devId
+ })
+ this.environmentInfoList = res.data.data
+ },
async getPitData(devId) {
let res = await queryPitDataApi({
devId
@@ -244,16 +246,19 @@ export default {
this.generateCharts(res.data)
},
async getLimitData(proId) {
- let res = await queryLimitSpaceApi({
+ let res = await queryNewLimitSpaceApi({
proId
})
this.todayRecordList = res.data
},
- selPit(val) {
- this.currentPit = val.id
+ selPit(v) {
+ this.currentPit = v
+ this.getEnvironmentData(v)
+ this.getPitData(v)
},
pitChange(e) {
console.log(e)
+ this.getEnvironmentData(e)
this.getPitData(e)
},
rowStyle(scope) {
@@ -690,11 +695,12 @@ export default {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
+ overflow-y: auto;
.single-tower{
width: 35%;
- height: 19%;
+ height: 25%;
border-radius: 20px;
cursor: pointer;
display: flex;
diff --git a/src/components/substation/towerDetect.vue b/src/components/substation/towerDetect.vue
index 0c49c0a..83473d0 100644
--- a/src/components/substation/towerDetect.vue
+++ b/src/components/substation/towerDetect.vue
@@ -24,23 +24,23 @@
倾角监测设备
@@ -49,23 +49,23 @@
拉力监测设备
@@ -84,22 +84,25 @@