|
@@ -132,7 +132,7 @@
|
|
|
<script>
|
|
|
import AlertChart from './components/AlertChart.vue'
|
|
|
import WarnChart from './components/WarnChart.vue'
|
|
|
-import { getSensorByPage } from '@/api/goaf/sensor'
|
|
|
+import { getSensorByPage,sensordatatatis } from '@/api/goaf/sensor'
|
|
|
import { getGoafBaseInfo } from '@/api/goaf/info'
|
|
|
import { NumConvertLM ,getTime} from '@/utils'
|
|
|
export default {
|
|
@@ -212,7 +212,19 @@ import { NumConvertLM ,getTime} from '@/utils'
|
|
|
const goafOrebelts = res.data.map(item => item.goafOrebelt)
|
|
|
this.goafOrebelts = [...new Set(goafOrebelts)]
|
|
|
this.goafList = res.data
|
|
|
- })
|
|
|
+ })
|
|
|
+ this.sensordatatatis()
|
|
|
+ },
|
|
|
+ sensordatatatis(){
|
|
|
+ sensordatatatis().then((res)=>{
|
|
|
+ let error=res.data.pressureAlarmNum+res.data.displacementAlarmNum+res.data.harmfulGasAlarmNum
|
|
|
+ let normal=res.data.sensorDataTotalNum-error
|
|
|
+ this.statistics={
|
|
|
+ total:res.data.sensorDataTotalNum,
|
|
|
+ normal,
|
|
|
+ error
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
getData(){
|
|
|
for(let key in this.conditions){
|