Commit 423b7adb authored by zhangjianqian's avatar zhangjianqian

添加报警类型

parent abf09031
...@@ -138,6 +138,10 @@ public class TDetectorInfoController extends BaseController ...@@ -138,6 +138,10 @@ public class TDetectorInfoController extends BaseController
alarm.setDetectorType("工业探测器"); alarm.setDetectorType("工业探测器");
}else if ("3".equals(alarm.getDetectorType())){ }else if ("3".equals(alarm.getDetectorType())){
alarm.setDetectorType("可燃气体探测器"); alarm.setDetectorType("可燃气体探测器");
}else if ("4".equals(alarm.getDetectorType())){
alarm.setDetectorType("激光家报");
}else if ("5".equals(alarm.getDetectorType())){
alarm.setDetectorType("地下井探测器");
} }
} }
......
...@@ -109,7 +109,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -109,7 +109,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.email AS email, a.email AS email,
CASE a.detector_type CASE a.detector_type
WHEN '1' THEN '家用探测器' WHEN '1' THEN '家用探测器'
WHEN '2' THEN '工业探测器' END AS detectorType, WHEN '2' THEN '工业探测器'
WHEN '3' THEN '可燃气体探测器'
WHEN '4' THEN '激光家报'
WHEN '5' THEN '地下井探测器'
END AS detectorType,
COUNT(a.detector_id) AS detectorCount, COUNT(a.detector_id) AS detectorCount,
SUM(CASE a.detector_status WHEN '0' THEN 1 ELSE 0 END) AS onLineNum, SUM(CASE a.detector_status WHEN '0' THEN 1 ELSE 0 END) AS onLineNum,
SUM(CASE a.detector_status WHEN '1' THEN 1 ELSE 0 END) AS offLineNum SUM(CASE a.detector_status WHEN '1' THEN 1 ELSE 0 END) AS offLineNum
......
...@@ -393,7 +393,7 @@ export default { ...@@ -393,7 +393,7 @@ export default {
data() { data() {
return { return {
open: false, open: true,
isopen: true, isopen: true,
allNum: {}, allNum: {},
diviceNum: { diviceNum: {
......
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.detectorType == '1'">家用探测器</span> <span v-if="scope.row.detectorType == '1'">家用探测器</span>
<span v-if="scope.row.detectorType == '2'">工业探测器</span> <span v-if="scope.row.detectorType == '2'">工业探测器</span>
<span v-if="scope.row.detectorType == '4'">激光家报</span>
<span v-if="scope.row.detectorType == '5'">地下井探测器</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="预警信息" align="center" prop="statusName" /> <el-table-column label="预警信息" align="center" prop="statusName" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment