|
@@ -7,88 +7,40 @@
|
|
|
|
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
- <div class="warning_left" style="top: 70px;">
|
|
|
|
- <h4>可燃气体泄露预警</h4>
|
|
|
|
- <h2>3056</h2>
|
|
|
|
- <img src="@/assets/images/warningBg.png">
|
|
|
|
- </div>
|
|
|
|
- <div class="warning_left" style="top: 240px;">
|
|
|
|
- <h4>位移预警</h4>
|
|
|
|
- <h2>355</h2>
|
|
|
|
- <img src="@/assets/images/warningBg.png">
|
|
|
|
- </div>
|
|
|
|
- <div class="warning_left" style="top: 410px;">
|
|
|
|
- <h4>振动预警</h4>
|
|
|
|
- <h2>937</h2>
|
|
|
|
- <img src="@/assets/images/warningBg.png">
|
|
|
|
- </div>
|
|
|
|
- <div class="warning_left" style="top: 580px;">
|
|
|
|
- <h4>水位预警</h4>
|
|
|
|
- <h2>37</h2>
|
|
|
|
- <img src="@/assets/images/warningBg.png">
|
|
|
|
- </div>
|
|
|
|
- <div class="warning_left" style="top: 747px;">
|
|
|
|
- <h4>异常流量预警</h4>
|
|
|
|
- <h2>86</h2>
|
|
|
|
- <img src="@/assets/images/warningBg.png">
|
|
|
|
- </div>
|
|
|
|
- <div class="con_right con_left_js" style="top: 70px;">
|
|
|
|
- <div class="list_tit">可燃气体泄露预警说明</div>
|
|
|
|
- <!-- 预警说明内容主体 -->
|
|
|
|
- <div class="text_content">
|
|
|
|
- <h4>预警名称:可燃性气体泄漏预警</h4>
|
|
|
|
- <h4>预警描述:通过安装在燃气管道附近的燃气哨兵设备,实现管道燃气周边可燃性气体(甲烷)含量变化。</h4>
|
|
|
|
- <h4>预警阈值:3%</h4>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="con_right con_left_js" style="top: 240px;">
|
|
|
|
- <div class="list_tit">位移预警说明</div>
|
|
|
|
- <!-- 预警说明内容主体 -->
|
|
|
|
- <div class="text_content">
|
|
|
|
- <h4>预警名称:可燃性气体泄漏预警</h4>
|
|
|
|
- <h4>预警描述:通过安装在燃气管道附近的燃气哨兵设备,实现管道燃气周边可燃性气体(甲烷)含量变化。</h4>
|
|
|
|
- <h4>预警阈值:3%</h4>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="con_right con_left_js" style="top: 410px;">
|
|
|
|
- <div class="list_tit">振动预警说明</div>
|
|
|
|
- <!-- 预警说明内容主体 -->
|
|
|
|
- <div class="text_content">
|
|
|
|
- <h4>预警名称:可燃性气体泄漏预警</h4>
|
|
|
|
- <h4>预警描述:通过安装在燃气管道附近的燃气哨兵设备,实现管道燃气周边可燃性气体(甲烷)含量变化。</h4>
|
|
|
|
- <h4>预警阈值:3%</h4>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="con_right con_left_js" style="top: 580px;">
|
|
|
|
- <div class="list_tit">水位预警说明</div>
|
|
|
|
- <!-- 预警说明内容主体 -->
|
|
|
|
- <div class="text_content">
|
|
|
|
- <h4>预警名称:可燃性气体泄漏预警</h4>
|
|
|
|
- <h4>预警描述:通过安装在燃气管道附近的燃气哨兵设备,实现管道燃气周边可燃性气体(甲烷)含量变化。</h4>
|
|
|
|
- <h4>预警阈值:3%</h4>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="con_right con_left_js" style="top: 747px;">
|
|
|
|
- <div class="list_tit">异常流量预警说明</div>
|
|
|
|
- <!-- 预警说明内容主体 -->
|
|
|
|
- <div class="text_content">
|
|
|
|
- <h4>预警名称:可燃性气体泄漏预警</h4>
|
|
|
|
- <h4>预警描述:通过安装在燃气管道附近的燃气哨兵设备,实现管道燃气周边可燃性气体(甲烷)含量变化。</h4>
|
|
|
|
- <h4>预警阈值:3%</h4>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="warning_left" :class="'warning_'+index" v-for="(item,index) in option" >
|
|
|
|
+ <h4>{{item.typeName}}</h4>
|
|
|
|
+ <h2>{{item.count}}</h2>
|
|
|
|
+ <img src="@/assets/images/warningBg.png">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="con_right con_left_js" :class="'warning_'+index" v-for="(item,index) in option" >
|
|
|
|
+ <div class="list_tit">{{item.typeName}}说明</div>
|
|
|
|
+ <!-- 预警说明内容主体 -->
|
|
|
|
+ <div class="text_content">
|
|
|
|
+ <h4>预警名称:{{item.typeName}}</h4>
|
|
|
|
+ <h4>预警描述:{{item.warningDescription}}</h4>
|
|
|
|
+ <h4>告警阈值:{{item.concentrationUp}};紧急阈值:{{item.urgentUp}}</h4>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import {countByWarningCategory} from "@/api/data";
|
|
export default {
|
|
export default {
|
|
data(){
|
|
data(){
|
|
- return {
|
|
|
|
- }
|
|
|
|
|
|
+ return {
|
|
|
|
+ option:[],
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
|
|
+ this.countByWarningCategory();
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
|
|
+ countByWarningCategory(){
|
|
|
|
+ countByWarningCategory().then(req => {
|
|
|
|
+ this.option = req.data;
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -131,6 +83,22 @@ export default {
|
|
.con_left_js {
|
|
.con_left_js {
|
|
width: 400px !important;
|
|
width: 400px !important;
|
|
}
|
|
}
|
|
|
|
+ .warning_0{
|
|
|
|
+ top: 70px !important;
|
|
|
|
+ }
|
|
|
|
+ .warning_1{
|
|
|
|
+ top: 240px !important;
|
|
|
|
+ }
|
|
|
|
+ .warning_2{
|
|
|
|
+ top: 410px !important;
|
|
|
|
+ }
|
|
|
|
+ .warning_3{
|
|
|
|
+ top: 580px !important;
|
|
|
|
+ }
|
|
|
|
+ .warning_4{
|
|
|
|
+ top: 747px !important;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
.warning_left{
|
|
.warning_left{
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -164,4 +132,4 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-</style>
|
|
|
|
|
|
+</style>
|